@elyx-code/project-logic-tree 0.0.6964 → 0.0.6965
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.cjs +25 -24
- package/dist/index.js +533 -372
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ const op = [d.GlobalEvent], ek = [
|
|
|
82
82
|
], _t = [
|
|
83
83
|
...jC,
|
|
84
84
|
d.InternalCall
|
|
85
|
-
],
|
|
85
|
+
], Kt = [
|
|
86
86
|
d.FunctionDeclaration,
|
|
87
87
|
...op
|
|
88
88
|
], ur = [
|
|
@@ -97,15 +97,15 @@ const op = [d.GlobalEvent], ek = [
|
|
|
97
97
|
d.ContinueStatement
|
|
98
98
|
], ar = [
|
|
99
99
|
..._t,
|
|
100
|
-
...
|
|
100
|
+
...Kt
|
|
101
101
|
], GQe = [
|
|
102
102
|
...jC,
|
|
103
|
-
...
|
|
104
|
-
], FC = [...ur, ...
|
|
103
|
+
...Kt
|
|
104
|
+
], FC = [...ur, ...Kt], C3i = [
|
|
105
105
|
...tk,
|
|
106
|
-
...
|
|
106
|
+
...Kt
|
|
107
107
|
], _r = [
|
|
108
|
-
...
|
|
108
|
+
...Kt,
|
|
109
109
|
d.Loop
|
|
110
110
|
], Ct = [
|
|
111
111
|
d.ReturnStatement,
|
|
@@ -67543,12 +67543,12 @@ const aii = Ts(
|
|
|
67543
67543
|
outputName: null,
|
|
67544
67544
|
outputDescription: null,
|
|
67545
67545
|
parent: null
|
|
67546
|
-
},
|
|
67546
|
+
}, qt = ie[d.Operation][$i.GoogleDriveFiles];
|
|
67547
67547
|
var qj = /* @__PURE__ */ ((s) => (s.Audio = "application/vnd.google-apps.audio", s.Document = "application/vnd.google-apps.document", s.DriveSdk = "application/vnd.google-apps.drive-sdk", s.Drawing = "application/vnd.google-apps.drawing", s.File = "application/vnd.google-apps.file", s.Folder = "application/vnd.google-apps.folder", s.Form = "application/vnd.google-apps.form", s.FusionTable = "application/vnd.google-apps.fusiontable", s.Jam = "application/vnd.google-apps.jam", s.MailLayout = "application/vnd.google-apps.mail-layout", s.Map = "application/vnd.google-apps.map", s.Photo = "application/vnd.google-apps.photo", s.Presentation = "application/vnd.google-apps.presentation", s.Script = "application/vnd.google-apps.script", s.Shortcut = "application/vnd.google-apps.shortcut", s.Site = "application/vnd.google-apps.site", s.Spreadsheet = "application/vnd.google-apps.spreadsheet", s.Unknown = "application/vnd.google-apps.unknown", s.Vid = "application/vnd.google-apps.vid", s.Video = "application/vnd.google-apps.video", s))(qj || {});
|
|
67548
67548
|
const GI = Object.values(qj), rc = {
|
|
67549
67549
|
id: "external-integration--google-drive--get--files--ref",
|
|
67550
67550
|
type: d.GenericReference,
|
|
67551
|
-
entityId:
|
|
67551
|
+
entityId: qt.id,
|
|
67552
67552
|
version: "1",
|
|
67553
67553
|
entityType: d.ActionDescriptor
|
|
67554
67554
|
}, Eu = (s) => ({
|
|
@@ -67564,7 +67564,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67564
67564
|
version: "1",
|
|
67565
67565
|
entityType: d.Property
|
|
67566
67566
|
}), zii = {
|
|
67567
|
-
id:
|
|
67567
|
+
id: qt.inputs.connection.dataType.id,
|
|
67568
67568
|
version: "1",
|
|
67569
67569
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67570
67570
|
previousVersion: null,
|
|
@@ -67589,9 +67589,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67589
67589
|
andChildrenGroup: null,
|
|
67590
67590
|
orChildrenGroup: null,
|
|
67591
67591
|
entity: PI,
|
|
67592
|
-
parent: Eu(
|
|
67592
|
+
parent: Eu(qt.inputs.connection.id)
|
|
67593
67593
|
}, Jii = {
|
|
67594
|
-
id:
|
|
67594
|
+
id: qt.inputs.connection.id,
|
|
67595
67595
|
version: "1",
|
|
67596
67596
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67597
67597
|
previousVersion: null,
|
|
@@ -67610,7 +67610,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67610
67610
|
dataType: zii,
|
|
67611
67611
|
parent: rc
|
|
67612
67612
|
}, Yii = {
|
|
67613
|
-
id:
|
|
67613
|
+
id: qt.inputs.filesFilter.dataType.id,
|
|
67614
67614
|
version: "1",
|
|
67615
67615
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67616
67616
|
previousVersion: null,
|
|
@@ -67635,9 +67635,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67635
67635
|
andChildrenGroup: null,
|
|
67636
67636
|
orChildrenGroup: null,
|
|
67637
67637
|
entity: be,
|
|
67638
|
-
parent: Eu(
|
|
67638
|
+
parent: Eu(qt.inputs.filesFilter.id)
|
|
67639
67639
|
}, Qii = {
|
|
67640
|
-
id:
|
|
67640
|
+
id: qt.inputs.filesFilter.id,
|
|
67641
67641
|
version: "1",
|
|
67642
67642
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67643
67643
|
previousVersion: null,
|
|
@@ -67656,7 +67656,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67656
67656
|
dataType: Yii,
|
|
67657
67657
|
parent: rc
|
|
67658
67658
|
}, Xii = {
|
|
67659
|
-
id:
|
|
67659
|
+
id: qt.inputs.foldersFilter.dataType.id,
|
|
67660
67660
|
version: "1",
|
|
67661
67661
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67662
67662
|
previousVersion: null,
|
|
@@ -67681,9 +67681,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67681
67681
|
andChildrenGroup: null,
|
|
67682
67682
|
orChildrenGroup: null,
|
|
67683
67683
|
entity: be,
|
|
67684
|
-
parent: Eu(
|
|
67684
|
+
parent: Eu(qt.inputs.foldersFilter.id)
|
|
67685
67685
|
}, eri = {
|
|
67686
|
-
id:
|
|
67686
|
+
id: qt.inputs.foldersFilter.id,
|
|
67687
67687
|
version: "1",
|
|
67688
67688
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67689
67689
|
previousVersion: null,
|
|
@@ -67702,7 +67702,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67702
67702
|
dataType: Xii,
|
|
67703
67703
|
parent: rc
|
|
67704
67704
|
}, tri = {
|
|
67705
|
-
id:
|
|
67705
|
+
id: qt.inputs.mimeTypes.dataType.id,
|
|
67706
67706
|
version: "1",
|
|
67707
67707
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67708
67708
|
previousVersion: null,
|
|
@@ -67727,9 +67727,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67727
67727
|
andChildrenGroup: null,
|
|
67728
67728
|
orChildrenGroup: null,
|
|
67729
67729
|
entity: Gt,
|
|
67730
|
-
parent: Eu(
|
|
67730
|
+
parent: Eu(qt.inputs.mimeTypes.id)
|
|
67731
67731
|
}, iri = {
|
|
67732
|
-
id:
|
|
67732
|
+
id: qt.inputs.mimeTypes.id,
|
|
67733
67733
|
version: "1",
|
|
67734
67734
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67735
67735
|
previousVersion: null,
|
|
@@ -67748,7 +67748,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67748
67748
|
dataType: tri,
|
|
67749
67749
|
parent: rc
|
|
67750
67750
|
}, rri = {
|
|
67751
|
-
id:
|
|
67751
|
+
id: qt.inputs.trashed.dataType.id,
|
|
67752
67752
|
version: "1",
|
|
67753
67753
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67754
67754
|
previousVersion: null,
|
|
@@ -67773,9 +67773,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67773
67773
|
andChildrenGroup: null,
|
|
67774
67774
|
orChildrenGroup: null,
|
|
67775
67775
|
entity: ht,
|
|
67776
|
-
parent: Eu(
|
|
67776
|
+
parent: Eu(qt.inputs.trashed.id)
|
|
67777
67777
|
}, nri = {
|
|
67778
|
-
id:
|
|
67778
|
+
id: qt.inputs.trashed.id,
|
|
67779
67779
|
version: "1",
|
|
67780
67780
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67781
67781
|
previousVersion: null,
|
|
@@ -67790,7 +67790,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67790
67790
|
index: 4,
|
|
67791
67791
|
required: !0,
|
|
67792
67792
|
defaultValue: {
|
|
67793
|
-
id:
|
|
67793
|
+
id: qt.inputs.trashed.defaultValue.id,
|
|
67794
67794
|
deletable: !1,
|
|
67795
67795
|
editable: !1,
|
|
67796
67796
|
type: d.LiteralValue,
|
|
@@ -67805,13 +67805,13 @@ const GI = Object.values(qj), rc = {
|
|
|
67805
67805
|
value: !1,
|
|
67806
67806
|
valueAsTypeList: null,
|
|
67807
67807
|
valueAsTypeSingle: null,
|
|
67808
|
-
parent: Eu(
|
|
67808
|
+
parent: Eu(qt.inputs.trashed.id)
|
|
67809
67809
|
},
|
|
67810
67810
|
parentRelationType: U.FixedArguments,
|
|
67811
67811
|
dataType: rri,
|
|
67812
67812
|
parent: rc
|
|
67813
67813
|
}, ari = {
|
|
67814
|
-
id:
|
|
67814
|
+
id: qt.inputs.pageSize.dataType.id,
|
|
67815
67815
|
version: "1",
|
|
67816
67816
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67817
67817
|
previousVersion: null,
|
|
@@ -67836,9 +67836,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67836
67836
|
andChildrenGroup: null,
|
|
67837
67837
|
orChildrenGroup: null,
|
|
67838
67838
|
entity: xe,
|
|
67839
|
-
parent: Eu(
|
|
67839
|
+
parent: Eu(qt.inputs.pageSize.id)
|
|
67840
67840
|
}, sri = {
|
|
67841
|
-
id:
|
|
67841
|
+
id: qt.inputs.pageSize.id,
|
|
67842
67842
|
version: "1",
|
|
67843
67843
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67844
67844
|
previousVersion: null,
|
|
@@ -67868,13 +67868,13 @@ const GI = Object.values(qj), rc = {
|
|
|
67868
67868
|
value: 100,
|
|
67869
67869
|
valueAsTypeList: null,
|
|
67870
67870
|
valueAsTypeSingle: null,
|
|
67871
|
-
parent: Eu(
|
|
67871
|
+
parent: Eu(qt.inputs.pageSize.id)
|
|
67872
67872
|
},
|
|
67873
67873
|
parentRelationType: U.FixedArguments,
|
|
67874
67874
|
dataType: ari,
|
|
67875
67875
|
parent: rc
|
|
67876
67876
|
}, lri = {
|
|
67877
|
-
id:
|
|
67877
|
+
id: qt.inputs.pageToken.dataType.id,
|
|
67878
67878
|
version: "1",
|
|
67879
67879
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67880
67880
|
previousVersion: null,
|
|
@@ -67899,9 +67899,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67899
67899
|
andChildrenGroup: null,
|
|
67900
67900
|
orChildrenGroup: null,
|
|
67901
67901
|
entity: be,
|
|
67902
|
-
parent: Eu(
|
|
67902
|
+
parent: Eu(qt.inputs.pageToken.id)
|
|
67903
67903
|
}, ori = {
|
|
67904
|
-
id:
|
|
67904
|
+
id: qt.inputs.pageToken.id,
|
|
67905
67905
|
version: "1",
|
|
67906
67906
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67907
67907
|
previousVersion: null,
|
|
@@ -67922,23 +67922,23 @@ const GI = Object.values(qj), rc = {
|
|
|
67922
67922
|
}, Zj = {
|
|
67923
67923
|
id: "external-integration--google-drive--get--files-response-entity--ref",
|
|
67924
67924
|
type: d.GenericReference,
|
|
67925
|
-
entityId:
|
|
67925
|
+
entityId: qt.dataType.entity.id,
|
|
67926
67926
|
version: "1",
|
|
67927
67927
|
entityType: d.DefinitionEntity
|
|
67928
67928
|
}, dri = {
|
|
67929
67929
|
id: "external-integration--google-drive--get--files-response-entity-properties-results-data-type--ref",
|
|
67930
67930
|
type: d.GenericReference,
|
|
67931
|
-
entityId:
|
|
67931
|
+
entityId: qt.dataType.entity.properties.results.dataType.id,
|
|
67932
67932
|
version: "1",
|
|
67933
67933
|
entityType: d.DataType
|
|
67934
67934
|
}, t0 = {
|
|
67935
67935
|
id: "external-integration--google-drive--get--files-results-entity--ref",
|
|
67936
67936
|
type: d.GenericReference,
|
|
67937
|
-
entityId:
|
|
67937
|
+
entityId: qt.dataType.entity.properties.results.dataType.entity.id,
|
|
67938
67938
|
version: "1",
|
|
67939
67939
|
entityType: d.DefinitionEntity
|
|
67940
67940
|
}, uri = {
|
|
67941
|
-
id:
|
|
67941
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.dataType.id,
|
|
67942
67942
|
version: "1",
|
|
67943
67943
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67944
67944
|
previousVersion: null,
|
|
@@ -67964,10 +67964,10 @@ const GI = Object.values(qj), rc = {
|
|
|
67964
67964
|
orChildrenGroup: null,
|
|
67965
67965
|
entity: be,
|
|
67966
67966
|
parent: e0(
|
|
67967
|
-
|
|
67967
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.id
|
|
67968
67968
|
)
|
|
67969
67969
|
}, pri = {
|
|
67970
|
-
id:
|
|
67970
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.id,
|
|
67971
67971
|
name: "id",
|
|
67972
67972
|
deletable: !1,
|
|
67973
67973
|
editable: !1,
|
|
@@ -67995,7 +67995,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67995
67995
|
previousVersion: null,
|
|
67996
67996
|
deleted: !1
|
|
67997
67997
|
}, cri = {
|
|
67998
|
-
id:
|
|
67998
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.parents.dataType.id,
|
|
67999
67999
|
version: "1",
|
|
68000
68000
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68001
68001
|
previousVersion: null,
|
|
@@ -68021,10 +68021,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68021
68021
|
orChildrenGroup: null,
|
|
68022
68022
|
entity: be,
|
|
68023
68023
|
parent: e0(
|
|
68024
|
-
|
|
68024
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.parents.id
|
|
68025
68025
|
)
|
|
68026
68026
|
}, fri = {
|
|
68027
|
-
id:
|
|
68027
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.parents.id,
|
|
68028
68028
|
name: "Parents",
|
|
68029
68029
|
deletable: !1,
|
|
68030
68030
|
editable: !1,
|
|
@@ -68052,7 +68052,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68052
68052
|
previousVersion: null,
|
|
68053
68053
|
deleted: !1
|
|
68054
68054
|
}, yri = {
|
|
68055
|
-
id:
|
|
68055
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.name.dataType.id,
|
|
68056
68056
|
version: "1",
|
|
68057
68057
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68058
68058
|
previousVersion: null,
|
|
@@ -68078,10 +68078,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68078
68078
|
orChildrenGroup: null,
|
|
68079
68079
|
entity: be,
|
|
68080
68080
|
parent: e0(
|
|
68081
|
-
|
|
68081
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.name.id
|
|
68082
68082
|
)
|
|
68083
68083
|
}, hri = {
|
|
68084
|
-
id:
|
|
68084
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.name.id,
|
|
68085
68085
|
name: "Name",
|
|
68086
68086
|
deletable: !1,
|
|
68087
68087
|
editable: !1,
|
|
@@ -68109,7 +68109,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68109
68109
|
previousVersion: null,
|
|
68110
68110
|
deleted: !1
|
|
68111
68111
|
}, mri = {
|
|
68112
|
-
id:
|
|
68112
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.dataType.id,
|
|
68113
68113
|
version: "1",
|
|
68114
68114
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68115
68115
|
previousVersion: null,
|
|
@@ -68135,10 +68135,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68135
68135
|
orChildrenGroup: null,
|
|
68136
68136
|
entity: Gt,
|
|
68137
68137
|
parent: e0(
|
|
68138
|
-
|
|
68138
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.id
|
|
68139
68139
|
)
|
|
68140
68140
|
}, Tri = {
|
|
68141
|
-
id:
|
|
68141
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.id,
|
|
68142
68142
|
name: "Mime Type",
|
|
68143
68143
|
deletable: !1,
|
|
68144
68144
|
editable: !1,
|
|
@@ -68166,7 +68166,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68166
68166
|
previousVersion: null,
|
|
68167
68167
|
deleted: !1
|
|
68168
68168
|
}, vri = {
|
|
68169
|
-
id:
|
|
68169
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.dataType.id,
|
|
68170
68170
|
version: "1",
|
|
68171
68171
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68172
68172
|
previousVersion: null,
|
|
@@ -68192,10 +68192,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68192
68192
|
orChildrenGroup: null,
|
|
68193
68193
|
entity: be,
|
|
68194
68194
|
parent: e0(
|
|
68195
|
-
|
|
68195
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.id
|
|
68196
68196
|
)
|
|
68197
68197
|
}, bri = {
|
|
68198
|
-
id:
|
|
68198
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.id,
|
|
68199
68199
|
name: "Web view link",
|
|
68200
68200
|
deletable: !1,
|
|
68201
68201
|
editable: !1,
|
|
@@ -68223,7 +68223,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68223
68223
|
previousVersion: null,
|
|
68224
68224
|
deleted: !1
|
|
68225
68225
|
}, Eri = {
|
|
68226
|
-
id:
|
|
68226
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.dataType.id,
|
|
68227
68227
|
version: "1",
|
|
68228
68228
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68229
68229
|
previousVersion: null,
|
|
@@ -68249,10 +68249,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68249
68249
|
orChildrenGroup: null,
|
|
68250
68250
|
entity: be,
|
|
68251
68251
|
parent: e0(
|
|
68252
|
-
|
|
68252
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.id
|
|
68253
68253
|
)
|
|
68254
68254
|
}, Ari = {
|
|
68255
|
-
id:
|
|
68255
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.id,
|
|
68256
68256
|
name: "Modified time",
|
|
68257
68257
|
deletable: !1,
|
|
68258
68258
|
editable: !1,
|
|
@@ -68286,7 +68286,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68286
68286
|
additionalProperties: !1,
|
|
68287
68287
|
additionalPropertiesDataType: null,
|
|
68288
68288
|
allPropertiesImplement: null,
|
|
68289
|
-
id:
|
|
68289
|
+
id: qt.dataType.entity.properties.results.dataType.entity.id,
|
|
68290
68290
|
version: "1",
|
|
68291
68291
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68292
68292
|
author: "1",
|
|
@@ -68313,7 +68313,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68313
68313
|
y: 0,
|
|
68314
68314
|
parent: dri
|
|
68315
68315
|
}, gri = {
|
|
68316
|
-
id:
|
|
68316
|
+
id: qt.dataType.entity.properties.results.dataType.id,
|
|
68317
68317
|
version: "1",
|
|
68318
68318
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68319
68319
|
previousVersion: null,
|
|
@@ -68341,12 +68341,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68341
68341
|
parent: {
|
|
68342
68342
|
id: "external-integration--google-drive--get--files-response-entity-prop-results-dt--ref",
|
|
68343
68343
|
type: d.GenericReference,
|
|
68344
|
-
entityId:
|
|
68344
|
+
entityId: qt.dataType.entity.properties.results.dataType.id,
|
|
68345
68345
|
version: "1",
|
|
68346
68346
|
entityType: d.Property
|
|
68347
68347
|
}
|
|
68348
68348
|
}, Rri = {
|
|
68349
|
-
id:
|
|
68349
|
+
id: qt.dataType.entity.properties.results.id,
|
|
68350
68350
|
name: "Files metadata",
|
|
68351
68351
|
deletable: !1,
|
|
68352
68352
|
editable: !1,
|
|
@@ -68374,7 +68374,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68374
68374
|
previousVersion: null,
|
|
68375
68375
|
deleted: !1
|
|
68376
68376
|
}, wri = {
|
|
68377
|
-
id:
|
|
68377
|
+
id: qt.dataType.entity.properties.nextPageToken.dataType.id,
|
|
68378
68378
|
version: "1",
|
|
68379
68379
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68380
68380
|
previousVersion: null,
|
|
@@ -68402,12 +68402,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68402
68402
|
parent: {
|
|
68403
68403
|
id: "external-integration--google-drive--get--files-response-entity-prop-nextPageToken-dt--ref",
|
|
68404
68404
|
type: d.GenericReference,
|
|
68405
|
-
entityId:
|
|
68405
|
+
entityId: qt.dataType.entity.properties.nextPageToken.dataType.id,
|
|
68406
68406
|
version: "1",
|
|
68407
68407
|
entityType: d.Property
|
|
68408
68408
|
}
|
|
68409
68409
|
}, Dri = {
|
|
68410
|
-
id:
|
|
68410
|
+
id: qt.dataType.entity.properties.nextPageToken.id,
|
|
68411
68411
|
name: "Next page token",
|
|
68412
68412
|
deletable: !1,
|
|
68413
68413
|
editable: !1,
|
|
@@ -68441,7 +68441,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68441
68441
|
additionalProperties: !1,
|
|
68442
68442
|
additionalPropertiesDataType: null,
|
|
68443
68443
|
allPropertiesImplement: null,
|
|
68444
|
-
id:
|
|
68444
|
+
id: qt.dataType.entity.id,
|
|
68445
68445
|
version: "1",
|
|
68446
68446
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68447
68447
|
author: "1",
|
|
@@ -68465,12 +68465,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68465
68465
|
parent: {
|
|
68466
68466
|
id: "external-integration--google-drive--get--files-response-entity-parent--ref",
|
|
68467
68467
|
type: d.GenericReference,
|
|
68468
|
-
entityId:
|
|
68468
|
+
entityId: qt.dataType.id,
|
|
68469
68469
|
version: "1",
|
|
68470
68470
|
entityType: d.DataType
|
|
68471
68471
|
}
|
|
68472
68472
|
}, Ori = {
|
|
68473
|
-
id:
|
|
68473
|
+
id: qt.dataType.id,
|
|
68474
68474
|
version: "1",
|
|
68475
68475
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68476
68476
|
previousVersion: null,
|
|
@@ -68497,7 +68497,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68497
68497
|
entity: Cri,
|
|
68498
68498
|
parent: rc
|
|
68499
68499
|
}, _ri = {
|
|
68500
|
-
id:
|
|
68500
|
+
id: qt.id,
|
|
68501
68501
|
version: "1",
|
|
68502
68502
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68503
68503
|
previousVersion: null,
|
|
@@ -82782,7 +82782,7 @@ class nn extends z_ {
|
|
|
82782
82782
|
})), c == null || c.attemptAutoclose(a, i.id), !1) : !0;
|
|
82783
82783
|
}
|
|
82784
82784
|
checkCanEditFromScopeOwner(i, r) {
|
|
82785
|
-
const a =
|
|
82785
|
+
const a = Ft(i, i.project);
|
|
82786
82786
|
return a ? this.checkCanEdit(a, r) : !0;
|
|
82787
82787
|
}
|
|
82788
82788
|
checkCanEditFromScopeOwnerWithSideEffects(i, r, a) {
|
|
@@ -82946,7 +82946,7 @@ const Ei = class Ei extends nn {
|
|
|
82946
82946
|
const b = r.get(
|
|
82947
82947
|
te(a.parent)
|
|
82948
82948
|
);
|
|
82949
|
-
if (b &&
|
|
82949
|
+
if (b && Kt.includes(b.type)) {
|
|
82950
82950
|
const E = b.implements;
|
|
82951
82951
|
if (E) {
|
|
82952
82952
|
const A = E.inputs.find(
|
|
@@ -84345,7 +84345,7 @@ R(Ei, "repository", {
|
|
|
84345
84345
|
},
|
|
84346
84346
|
APILoad: async (i, ...r) => null,
|
|
84347
84347
|
APILoadVersion: async (i, r, ...a) => null
|
|
84348
|
-
}), R(Ei, "type", d.ArgumentDeclaration), R(Ei, "USER_MANAGED_PARENT_TYPES", [...
|
|
84348
|
+
}), R(Ei, "type", d.ArgumentDeclaration), R(Ei, "USER_MANAGED_PARENT_TYPES", [...Kt]), R(Ei, "PARENT_TYPES", [
|
|
84349
84349
|
...Ei.USER_MANAGED_PARENT_TYPES
|
|
84350
84350
|
]), R(Ei, "MUTABLE_BASE_PROPERTIES", [
|
|
84351
84351
|
"name",
|
|
@@ -98660,12 +98660,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
98660
98660
|
}
|
|
98661
98661
|
// The return statements, don't belong to the loop itself, but to the parent scope entity
|
|
98662
98662
|
addReturnStatement(i) {
|
|
98663
|
-
return
|
|
98663
|
+
return Kt.includes(this.parent.type) && this.parent.addReturnStatement(
|
|
98664
98664
|
i
|
|
98665
98665
|
), this;
|
|
98666
98666
|
}
|
|
98667
98667
|
removeReturnStatement(i) {
|
|
98668
|
-
return
|
|
98668
|
+
return Kt.includes(this.parent.type) && this.parent.removeReturnStatement(
|
|
98669
98669
|
i
|
|
98670
98670
|
), this;
|
|
98671
98671
|
}
|
|
@@ -124271,7 +124271,7 @@ class uT extends Wy {
|
|
|
124271
124271
|
async schedule(i, r, a) {
|
|
124272
124272
|
if (this.hasExecuted(i))
|
|
124273
124273
|
return null;
|
|
124274
|
-
if (
|
|
124274
|
+
if (Kt.includes(i.type))
|
|
124275
124275
|
return this.executeBranch(
|
|
124276
124276
|
i,
|
|
124277
124277
|
a,
|
|
@@ -124294,7 +124294,7 @@ class uT extends Wy {
|
|
|
124294
124294
|
// And returns a resolved list of dynamic values to be used during the execution
|
|
124295
124295
|
mergeExernalValuesWithInternalInputs(i, r) {
|
|
124296
124296
|
const a = [];
|
|
124297
|
-
return [..._t, ...
|
|
124297
|
+
return [..._t, ...Kt].includes(
|
|
124298
124298
|
r.type
|
|
124299
124299
|
) ? a.push(
|
|
124300
124300
|
...r.inputs
|
|
@@ -124308,7 +124308,7 @@ class uT extends Wy {
|
|
|
124308
124308
|
);
|
|
124309
124309
|
if (f)
|
|
124310
124310
|
return f;
|
|
124311
|
-
if (!f &&
|
|
124311
|
+
if (!f && Kt.includes(r.type) && (f = i.find(
|
|
124312
124312
|
(m) => {
|
|
124313
124313
|
var b;
|
|
124314
124314
|
return ((b = m.valueOwner.declaration) == null ? void 0 : b.id) === e.id;
|
|
@@ -128179,7 +128179,7 @@ class dn {
|
|
|
128179
128179
|
if (d.DefinitionEntity === e.type) {
|
|
128180
128180
|
r.push(e);
|
|
128181
128181
|
return;
|
|
128182
|
-
} else if (
|
|
128182
|
+
} else if (Kt.includes(e.type)) {
|
|
128183
128183
|
a.push(e);
|
|
128184
128184
|
return;
|
|
128185
128185
|
}
|
|
@@ -128349,7 +128349,7 @@ class dn {
|
|
|
128349
128349
|
this.parents.forEach((r) => {
|
|
128350
128350
|
r !== this.calculationEntryPoint && r.shiftDownAlone(i);
|
|
128351
128351
|
});
|
|
128352
|
-
} else if ([...
|
|
128352
|
+
} else if ([...Kt].includes(this.entity.type) && this.children.length)
|
|
128353
128353
|
this.centerHeaderVerticallyOverCombinedAllChildrenHeaderHeight();
|
|
128354
128354
|
else if (!this.children.length && this.parents.length > 1) {
|
|
128355
128355
|
const i = p.filter(
|
|
@@ -128603,7 +128603,7 @@ async function AZi(s, p, i = {}) {
|
|
|
128603
128603
|
for (const e of s.instancesList) {
|
|
128604
128604
|
if (s.diggestedBuiltInBaseEntitiesIds.has(e.id) || !sh.includes(e.type) || ((c = mt(e)) == null ? void 0 : c.id) !== e.id)
|
|
128605
128605
|
continue;
|
|
128606
|
-
let f =
|
|
128606
|
+
let f = Ft(e, s);
|
|
128607
128607
|
if (!f) {
|
|
128608
128608
|
console.log(
|
|
128609
128609
|
"No top scope owner for instance: ",
|
|
@@ -128613,9 +128613,9 @@ async function AZi(s, p, i = {}) {
|
|
|
128613
128613
|
);
|
|
128614
128614
|
continue;
|
|
128615
128615
|
}
|
|
128616
|
-
if (!(
|
|
128616
|
+
if (!(Kt.includes(f.type) && f.collapsed && f.id !== e.id)) {
|
|
128617
128617
|
for (; f.parent && f.parent !== s; )
|
|
128618
|
-
f = f.parent,
|
|
128618
|
+
f = f.parent, Kt.includes(f.type) && f.collapsed && (f.id, e.id);
|
|
128619
128619
|
e.x = 0, e.y = 0, p == null || p.add(
|
|
128620
128620
|
e,
|
|
128621
128621
|
W.Updated
|
|
@@ -128629,10 +128629,10 @@ async function IZi(s, p, i = {}) {
|
|
|
128629
128629
|
for (const e of c) {
|
|
128630
128630
|
if (s.project.diggestedBuiltInBaseEntitiesIds.has(e.id))
|
|
128631
128631
|
continue;
|
|
128632
|
-
let f =
|
|
128633
|
-
if (f && !(
|
|
128632
|
+
let f = Ft(e, s.project);
|
|
128633
|
+
if (f && !(Kt.includes(f.type) && f.collapsed && f.id !== e.id)) {
|
|
128634
128634
|
for (; f.parent && f.parent !== s.project; )
|
|
128635
|
-
f = f.parent,
|
|
128635
|
+
f = f.parent, Kt.includes(f.type) && f.collapsed && (f.id, e.id);
|
|
128636
128636
|
e.x = 0, e.y = 0, p == null || p.add(
|
|
128637
128637
|
e,
|
|
128638
128638
|
W.Updated
|
|
@@ -129563,7 +129563,7 @@ The 'variable-declaration' must be called before any internal call that referenc
|
|
|
129563
129563
|
entity: s
|
|
129564
129564
|
}).error
|
|
129565
129565
|
);
|
|
129566
|
-
const e =
|
|
129566
|
+
const e = Ft(i, s.project), f = Ft(s, s.project);
|
|
129567
129567
|
if ((e == null ? void 0 : e.type) !== d.Project && e && f) {
|
|
129568
129568
|
const m = !!a.find(
|
|
129569
129569
|
(b) => b.id === s.id
|
|
@@ -129593,7 +129593,7 @@ The 'variable-declaration' must be called in the same scope or in a higher scope
|
|
|
129593
129593
|
else if (as(e, f, s.project)) {
|
|
129594
129594
|
let b = f;
|
|
129595
129595
|
for (; b.id !== e.id && b.id !== s.project.id; ) {
|
|
129596
|
-
const A =
|
|
129596
|
+
const A = Ft(b, s.project);
|
|
129597
129597
|
if (A.id === e.id)
|
|
129598
129598
|
break;
|
|
129599
129599
|
b = A;
|
|
@@ -132487,7 +132487,7 @@ The 'variable-declaration' must be called before any internal call that referenc
|
|
|
132487
132487
|
entity: s
|
|
132488
132488
|
}).error
|
|
132489
132489
|
);
|
|
132490
|
-
const e =
|
|
132490
|
+
const e = Ft(i, s.project), f = Ft(s, s.project);
|
|
132491
132491
|
if ((e == null ? void 0 : e.type) !== d.Project && e && f) {
|
|
132492
132492
|
const m = !!a.find(
|
|
132493
132493
|
(b) => b.id === s.id
|
|
@@ -132517,7 +132517,7 @@ The 'variable-declaration' must be called in the same scope or in a higher scope
|
|
|
132517
132517
|
else if (as(e, f, s.project)) {
|
|
132518
132518
|
let b = f;
|
|
132519
132519
|
for (; b.id !== e.id && b.id !== s.project.id; ) {
|
|
132520
|
-
const A =
|
|
132520
|
+
const A = Ft(b, s.project);
|
|
132521
132521
|
if (A.id === e.id)
|
|
132522
132522
|
break;
|
|
132523
132523
|
b = A;
|
|
@@ -138375,7 +138375,7 @@ The entity is ${li(k, { nested: !1 }).lines[0].text}.`, J += "Technically, an im
|
|
|
138375
138375
|
);
|
|
138376
138376
|
}
|
|
138377
138377
|
} else if (Ct.includes(h.type)) {
|
|
138378
|
-
const V = h, B =
|
|
138378
|
+
const V = h, B = Ft(V, r), M = V.getDataType(null), k = (N = eo(
|
|
138379
138379
|
ds(M),
|
|
138380
138380
|
{ removeDuplicates: !0, removeNulls: !0 }
|
|
138381
138381
|
).find((q) => !!q.entity)) == null ? void 0 : N.entity;
|
|
@@ -177353,7 +177353,7 @@ function _6i(s, p) {
|
|
|
177353
177353
|
modifiedData: null,
|
|
177354
177354
|
messageAddition: ""
|
|
177355
177355
|
};
|
|
177356
|
-
if (
|
|
177356
|
+
if (Kt.includes(p.type) ? s.calls && (r.push(
|
|
177357
177357
|
new De({
|
|
177358
177358
|
id: `${p.id}--${Te.InvalidInmutablePropertyOverride}`,
|
|
177359
177359
|
message: `Entity of type "${p.type}" with id "${p.id}" cannot have the property "calls" updated.`,
|
|
@@ -178018,7 +178018,7 @@ All pass-through callable entities are: ${It(
|
|
|
178018
178018
|
", ",
|
|
178019
178019
|
" and "
|
|
178020
178020
|
)}.`, g1 = `Entry point entities are the entities which start the execution of a logic chain. They are ${It(
|
|
178021
|
-
|
|
178021
|
+
Kt,
|
|
178022
178022
|
", ",
|
|
178023
178023
|
" and "
|
|
178024
178024
|
)}. They aren't explicitly called by any entities. Rather, they can be called implicitly by the system, or as a function-call somewhere else in the case of a function-declaration. `, dRi = `Caller entities are entities that can call other entities. Regarless of whether they are entry-point entities or pass-through callable entities. All caller entity types are: ${It(
|
|
@@ -178285,7 +178285,7 @@ async function G6i(s, p, i = !1, r) {
|
|
|
178285
178285
|
(E) => ur.includes(E.type)
|
|
178286
178286
|
).reduce(
|
|
178287
178287
|
(E, A) => {
|
|
178288
|
-
const _ =
|
|
178288
|
+
const _ = Ft(A, s), N = E.find((B) => B.scope.id === (_ == null ? void 0 : _.id));
|
|
178289
178289
|
return N ? (N.callables.push(A), E) : [
|
|
178290
178290
|
..._.type === d.Project ? [{ scope: _, callables: [A] }] : [],
|
|
178291
178291
|
...E,
|
|
@@ -178356,7 +178356,7 @@ async function G6i(s, p, i = !1, r) {
|
|
|
178356
178356
|
}), { explanations: a };
|
|
178357
178357
|
}
|
|
178358
178358
|
let c = tp.SuccessCaller;
|
|
178359
|
-
i ? c = tp.ErrorCaller : p &&
|
|
178359
|
+
i ? c = tp.ErrorCaller : p && Kt.includes(p.type) && (c = tp.EntryPointCaller);
|
|
178360
178360
|
const e = await _1(
|
|
178361
178361
|
p,
|
|
178362
178362
|
c,
|
|
@@ -178392,7 +178392,7 @@ function IRi(s, p) {
|
|
|
178392
178392
|
}, r = [];
|
|
178393
178393
|
i.calledByEntry ? typeof i.calledByEntry == "string" && (i.calledByEntry = [i.calledByEntry]) : i.calledByEntry = [], i.calledBySuccess ? typeof i.calledBySuccess == "string" && (i.calledBySuccess = [i.calledBySuccess]) : i.calledBySuccess = [], i.calledByError ? typeof i.calledByError == "string" && (i.calledByError = [i.calledByError]) : i.calledByError = [];
|
|
178394
178394
|
const a = [];
|
|
178395
|
-
if (
|
|
178395
|
+
if (Kt.includes(p.type))
|
|
178396
178396
|
a.push(
|
|
178397
178397
|
new De({
|
|
178398
178398
|
id: `${s.id}--${p.id}--${Te.InvalidReference}`,
|
|
@@ -178466,7 +178466,7 @@ For the 'calledBySuccess' property, you specifically need to reference a pass-th
|
|
|
178466
178466
|
}
|
|
178467
178467
|
function gRi(s, p) {
|
|
178468
178468
|
const i = [], r = [];
|
|
178469
|
-
if (
|
|
178469
|
+
if (Kt.includes(p.type))
|
|
178470
178470
|
r.push(
|
|
178471
178471
|
new De({
|
|
178472
178472
|
id: `${s.id}--${p.id}--${Te.InvalidReference}`,
|
|
@@ -178681,14 +178681,14 @@ function wRi(s, p) {
|
|
|
178681
178681
|
message: `Entity of type "${i.type}" with id "${i.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`
|
|
178682
178682
|
})
|
|
178683
178683
|
);
|
|
178684
|
-
const f =
|
|
178685
|
-
i.type === d.ReturnStatement && f && !
|
|
178684
|
+
const f = Ft(i, p);
|
|
178685
|
+
i.type === d.ReturnStatement && f && !Kt.includes(f.type) ? (a.push(
|
|
178686
178686
|
new De({
|
|
178687
178687
|
id: `${i.id}--${Te.IncompatibleScope}`,
|
|
178688
178688
|
code: Te.IncompatibleScope,
|
|
178689
178689
|
severity: ve.Error,
|
|
178690
178690
|
message: `Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${It(
|
|
178691
|
-
|
|
178691
|
+
Kt,
|
|
178692
178692
|
"', '",
|
|
178693
178693
|
"' or '"
|
|
178694
178694
|
)}' entity. A return statement's parent should always be resolved to a function declaration or global event.`
|
|
@@ -178732,7 +178732,7 @@ function wRi(s, p) {
|
|
|
178732
178732
|
);
|
|
178733
178733
|
return;
|
|
178734
178734
|
}
|
|
178735
|
-
const _ =
|
|
178735
|
+
const _ = Ft(A, p);
|
|
178736
178736
|
if (f)
|
|
178737
178737
|
Ns(
|
|
178738
178738
|
f,
|
|
@@ -178983,7 +178983,7 @@ All value writing entity types are: ${It(
|
|
|
178983
178983
|
)}.`
|
|
178984
178984
|
})
|
|
178985
178985
|
);
|
|
178986
|
-
const r =
|
|
178986
|
+
const r = Ft(s, p.project), a = Ft(
|
|
178987
178987
|
p,
|
|
178988
178988
|
p.project
|
|
178989
178989
|
);
|
|
@@ -179188,7 +179188,7 @@ function B6i(s, p, i = "calledBy") {
|
|
|
179188
179188
|
message: `Entity with id "${s}" referenced in '${i}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`
|
|
179189
179189
|
})
|
|
179190
179190
|
), r;
|
|
179191
|
-
if ([..._t, ...
|
|
179191
|
+
if ([..._t, ...Kt].includes(a.type))
|
|
179192
179192
|
return [];
|
|
179193
179193
|
if (Ct.includes(a.type)) {
|
|
179194
179194
|
const c = a.calledBy || [], e = c.length ? `
|
|
@@ -179271,7 +179271,7 @@ Termination entities are ${It(
|
|
|
179271
179271
|
})
|
|
179272
179272
|
);
|
|
179273
179273
|
} else
|
|
179274
|
-
|
|
179274
|
+
Kt.includes(c.type) ? (a.push(
|
|
179275
179275
|
new De({
|
|
179276
179276
|
id: `last-action--${c.id}--${Te.InvalidReference}`,
|
|
179277
179277
|
code: Te.InvalidReference,
|
|
@@ -180521,7 +180521,7 @@ function Z6i(s) {
|
|
|
180521
180521
|
function Y6(s) {
|
|
180522
180522
|
var a, c, e, f;
|
|
180523
180523
|
if (s.type !== d.InternalCall) {
|
|
180524
|
-
if (!
|
|
180524
|
+
if (!Kt.includes(s.parent.type))
|
|
180525
180525
|
return !1;
|
|
180526
180526
|
const h = s.parent;
|
|
180527
180527
|
if (!!h.returnStatements.length)
|
|
@@ -180529,7 +180529,7 @@ function Y6(s) {
|
|
|
180529
180529
|
const b = ((a = h.implements) == null ? void 0 : a.getDataType(null)) || null;
|
|
180530
180530
|
return !(!b || ((c = b.entity) == null ? void 0 : c.id) === ie["primitive-entity"].void.id);
|
|
180531
180531
|
}
|
|
180532
|
-
if (!
|
|
180532
|
+
if (!Kt.includes(s.parent.parent.type))
|
|
180533
180533
|
return !1;
|
|
180534
180534
|
const p = s.parent.parent;
|
|
180535
180535
|
if (!!p.returnStatements.length)
|
|
@@ -180559,7 +180559,7 @@ function w1(s) {
|
|
|
180559
180559
|
}
|
|
180560
180560
|
function $a(s) {
|
|
180561
180561
|
const p = [];
|
|
180562
|
-
if (!ur.includes(s.type) || Ct.includes(s.type) ||
|
|
180562
|
+
if (!ur.includes(s.type) || Ct.includes(s.type) || Kt.includes(s.type) || !Y6(
|
|
180563
180563
|
s
|
|
180564
180564
|
))
|
|
180565
180565
|
return p;
|
|
@@ -197287,7 +197287,7 @@ function NC(s, p, i, r, a = {}) {
|
|
|
197287
197287
|
}
|
|
197288
197288
|
function PC(s, p, i, r, a = {}) {
|
|
197289
197289
|
const c = a.onPrefix ? a.onPrefix(s) : "";
|
|
197290
|
-
if (
|
|
197290
|
+
if (Kt.includes(s.type)) {
|
|
197291
197291
|
s.inputs.length > 0 && (ui(r, p, i, "INPUTS:"), s.inputs.forEach(
|
|
197292
197292
|
(b) => {
|
|
197293
197293
|
const E = a.onPrefix ? a.onPrefix(b) : "", A = kt(
|
|
@@ -197632,13 +197632,13 @@ async function _1(s, p, i = {}) {
|
|
|
197632
197632
|
const ye = ud(
|
|
197633
197633
|
s,
|
|
197634
197634
|
s.project
|
|
197635
|
-
), he =
|
|
197635
|
+
), he = Ft(s, s.project), Ie = ye ? yt(ye).filter(
|
|
197636
197636
|
(Re) => {
|
|
197637
197637
|
var $e;
|
|
197638
197638
|
return Re.id !== s.id && oe.every((Ge) => Ge.callee.id !== Re.id) && ar.includes(Re.type) && // (!PASS_THROUGH_CALLABLE_TYPES.includes(call.type) ||
|
|
197639
197639
|
// (!(call as PassThroughCallableEntityState).successCalls.length &&
|
|
197640
197640
|
// !(call as PassThroughCallableEntityState).errorCalls.length)) &&
|
|
197641
|
-
!z.some((Ge) => Ge.id === Re.id) && (($e =
|
|
197641
|
+
!z.some((Ge) => Ge.id === Re.id) && (($e = Ft(Re, s.project)) == null ? void 0 : $e.id) === (he == null ? void 0 : he.id);
|
|
197642
197642
|
}
|
|
197643
197643
|
) : [];
|
|
197644
197644
|
z.push(...Ie), z = C(
|
|
@@ -197654,7 +197654,7 @@ async function _1(s, p, i = {}) {
|
|
|
197654
197654
|
]);
|
|
197655
197655
|
continue;
|
|
197656
197656
|
}
|
|
197657
|
-
const $e =
|
|
197657
|
+
const $e = Ft(Re, s.project);
|
|
197658
197658
|
if ((s.type === d.ContinueStatement || s.type === d.BreakStatement) && ($e == null ? void 0 : $e.type) !== d.Loop) {
|
|
197659
197659
|
A(Re, [
|
|
197660
197660
|
"continue-or-break-statement-called-from-outside-loop"
|
|
@@ -197738,7 +197738,7 @@ async function _1(s, p, i = {}) {
|
|
|
197738
197738
|
]);
|
|
197739
197739
|
break;
|
|
197740
197740
|
}
|
|
197741
|
-
const Ji =
|
|
197741
|
+
const Ji = Ft(
|
|
197742
197742
|
ti.last,
|
|
197743
197743
|
s.project
|
|
197744
197744
|
);
|
|
@@ -197829,7 +197829,7 @@ async function _1(s, p, i = {}) {
|
|
|
197829
197829
|
}
|
|
197830
197830
|
if (z.includes(Re))
|
|
197831
197831
|
return !1;
|
|
197832
|
-
const $e =
|
|
197832
|
+
const $e = Ft(
|
|
197833
197833
|
Re,
|
|
197834
197834
|
s.project
|
|
197835
197835
|
);
|
|
@@ -197881,7 +197881,7 @@ async function _1(s, p, i = {}) {
|
|
|
197881
197881
|
);
|
|
197882
197882
|
const Y = b.flatMap(
|
|
197883
197883
|
(he) => UC(he)
|
|
197884
|
-
), de =
|
|
197884
|
+
), de = Ft(s, s.project), ue = (de == null ? void 0 : de.type) === d.Project;
|
|
197885
197885
|
let ye = !1;
|
|
197886
197886
|
ue && d.VariableDeclaration !== h.type && !se.calledBy.length && (ye = !0), i.allowReadWriteToFixableScope && [
|
|
197887
197887
|
...ye ? await ACi(s.project, { tracker: r }) : await ICi(s.project, {
|
|
@@ -197893,9 +197893,9 @@ async function _1(s, p, i = {}) {
|
|
|
197893
197893
|
].forEach((Ie) => {
|
|
197894
197894
|
if (Y.includes(Ie))
|
|
197895
197895
|
return;
|
|
197896
|
-
const Re = RN(Ie), $e =
|
|
197896
|
+
const Re = RN(Ie), $e = Ft(Ie, s.project), Ge = [];
|
|
197897
197897
|
if ($e && se.type === d.VariableDeclaration && !se.variableInstances.every((ke) => {
|
|
197898
|
-
const Ze =
|
|
197898
|
+
const Ze = Ft(ke, s.project);
|
|
197899
197899
|
return !!Ze && (as(
|
|
197900
197900
|
$e,
|
|
197901
197901
|
Ze,
|
|
@@ -197911,7 +197911,7 @@ async function _1(s, p, i = {}) {
|
|
|
197911
197911
|
], Ze = se.calledBy.some(
|
|
197912
197912
|
(Ke) => {
|
|
197913
197913
|
var et;
|
|
197914
|
-
return ((et =
|
|
197914
|
+
return ((et = Ft(Ke, s.project)) == null ? void 0 : et.id) !== ($e == null ? void 0 : $e.id);
|
|
197915
197915
|
}
|
|
197916
197916
|
);
|
|
197917
197917
|
!Ze && ke.length === 0 && !Ge.length ? (e[Ie.id] = {
|
|
@@ -197984,7 +197984,7 @@ async function _1(s, p, i = {}) {
|
|
|
197984
197984
|
]);
|
|
197985
197985
|
return;
|
|
197986
197986
|
}
|
|
197987
|
-
const de =
|
|
197987
|
+
const de = Ft(z, s.project);
|
|
197988
197988
|
if (((ue = s.parent) == null ? void 0 : ue.type) === d.Loop && (de == null ? void 0 : de.type) !== d.Loop) {
|
|
197989
197989
|
A(z, [
|
|
197990
197990
|
"element-in-loop-body-calling-outside-loop"
|
|
@@ -198002,7 +198002,7 @@ async function _1(s, p, i = {}) {
|
|
|
198002
198002
|
}), yt(s).forEach((z) => {
|
|
198003
198003
|
if (z.id === s.id || m.includes(z) || b.includes(z))
|
|
198004
198004
|
return !1;
|
|
198005
|
-
const Y =
|
|
198005
|
+
const Y = Ft(
|
|
198006
198006
|
z,
|
|
198007
198007
|
s.project
|
|
198008
198008
|
);
|
|
@@ -198028,9 +198028,9 @@ async function _1(s, p, i = {}) {
|
|
|
198028
198028
|
].filter((z) => !z.calledBy.length);
|
|
198029
198029
|
for (const z of oe) {
|
|
198030
198030
|
if (await r.tick(), z.type === d.VariableDeclaration) {
|
|
198031
|
-
const Y =
|
|
198031
|
+
const Y = Ft(s, s.project), de = (Y == null ? void 0 : Y.type) === d.Project;
|
|
198032
198032
|
if (Y && !z.variableInstances.every((ue) => {
|
|
198033
|
-
const ye =
|
|
198033
|
+
const ye = Ft(ue, s.project);
|
|
198034
198034
|
return de || !!ye && as(
|
|
198035
198035
|
Y,
|
|
198036
198036
|
ye,
|
|
@@ -198077,7 +198077,7 @@ async function _1(s, p, i = {}) {
|
|
|
198077
198077
|
/* SiblingInternalCallAlreadyUsedInParentVariable */
|
|
198078
198078
|
]);
|
|
198079
198079
|
});
|
|
198080
|
-
const ue =
|
|
198080
|
+
const ue = Ft(s, s.project);
|
|
198081
198081
|
oe.forEach((ye) => {
|
|
198082
198082
|
if ([
|
|
198083
198083
|
...s.successCalls || []
|
|
@@ -198088,7 +198088,7 @@ async function _1(s, p, i = {}) {
|
|
|
198088
198088
|
]);
|
|
198089
198089
|
return;
|
|
198090
198090
|
}
|
|
198091
|
-
const Ie =
|
|
198091
|
+
const Ie = Ft(ye, s.project);
|
|
198092
198092
|
if (ue !== Ie) {
|
|
198093
198093
|
A(ye, [
|
|
198094
198094
|
"other-incompatible-scope-reason"
|
|
@@ -198165,7 +198165,7 @@ async function _1(s, p, i = {}) {
|
|
|
198165
198165
|
/* CannotBeCalledBeforeDeclaration */
|
|
198166
198166
|
]), b.includes(ye))
|
|
198167
198167
|
continue;
|
|
198168
|
-
const $e =
|
|
198168
|
+
const $e = Ft(
|
|
198169
198169
|
ye,
|
|
198170
198170
|
s.project
|
|
198171
198171
|
);
|
|
@@ -198275,9 +198275,9 @@ async function _1(s, p, i = {}) {
|
|
|
198275
198275
|
].filter((he) => !he.calledBy.length);
|
|
198276
198276
|
for (const he of ye) {
|
|
198277
198277
|
if (await r.tick(), he.type === d.VariableDeclaration) {
|
|
198278
|
-
const Ie =
|
|
198278
|
+
const Ie = Ft(s, s.project), Re = (Ie == null ? void 0 : Ie.type) === d.Project;
|
|
198279
198279
|
if (Ie && !he.variableInstances.every(($e) => {
|
|
198280
|
-
const Ge =
|
|
198280
|
+
const Ge = Ft($e, s.project);
|
|
198281
198281
|
return Re || !!Ge && as(
|
|
198282
198282
|
Ie,
|
|
198283
198283
|
Ge,
|
|
@@ -198331,7 +198331,7 @@ async function _1(s, p, i = {}) {
|
|
|
198331
198331
|
/* CannotCallAncestor */
|
|
198332
198332
|
]
|
|
198333
198333
|
);
|
|
198334
|
-
const oe =
|
|
198334
|
+
const oe = Ft(s, s.project);
|
|
198335
198335
|
m.forEach((z) => {
|
|
198336
198336
|
if ([
|
|
198337
198337
|
...s.errorCalls || []
|
|
@@ -198342,7 +198342,7 @@ async function _1(s, p, i = {}) {
|
|
|
198342
198342
|
]);
|
|
198343
198343
|
return;
|
|
198344
198344
|
}
|
|
198345
|
-
const de =
|
|
198345
|
+
const de = Ft(z, s.project);
|
|
198346
198346
|
if (oe !== de) {
|
|
198347
198347
|
A(z, [
|
|
198348
198348
|
"other-incompatible-scope-reason"
|
|
@@ -198408,7 +198408,7 @@ async function _1(s, p, i = {}) {
|
|
|
198408
198408
|
/* CannotBeCalledBeforeDeclaration */
|
|
198409
198409
|
]), b.includes(z))
|
|
198410
198410
|
continue;
|
|
198411
|
-
const ye =
|
|
198411
|
+
const ye = Ft(
|
|
198412
198412
|
z,
|
|
198413
198413
|
s.project
|
|
198414
198414
|
);
|
|
@@ -198491,9 +198491,9 @@ async function _1(s, p, i = {}) {
|
|
|
198491
198491
|
].filter((Y) => !Y.calledBy.length);
|
|
198492
198492
|
for (const Y of z) {
|
|
198493
198493
|
if (await r.tick(), Y.type === d.VariableDeclaration) {
|
|
198494
|
-
const de =
|
|
198494
|
+
const de = Ft(s, s.project), ue = (de == null ? void 0 : de.type) === d.Project;
|
|
198495
198495
|
if (de && !Y.variableInstances.every((ye) => {
|
|
198496
|
-
const he =
|
|
198496
|
+
const he = Ft(ye, s.project);
|
|
198497
198497
|
return ue || !!he && as(
|
|
198498
198498
|
de,
|
|
198499
198499
|
he,
|
|
@@ -198583,7 +198583,7 @@ async function _1(s, p, i = {}) {
|
|
|
198583
198583
|
}
|
|
198584
198584
|
);
|
|
198585
198585
|
if (i.allowReadWriteToFixableScope) {
|
|
198586
|
-
const ue =
|
|
198586
|
+
const ue = Ft(s, s.project), ye = Wu(s);
|
|
198587
198587
|
[
|
|
198588
198588
|
...await gCi(s.project, {
|
|
198589
198589
|
tracker: r
|
|
@@ -198598,7 +198598,7 @@ async function _1(s, p, i = {}) {
|
|
|
198598
198598
|
return;
|
|
198599
198599
|
const Re = yf(Ie), $e = [];
|
|
198600
198600
|
if (ue && (Re == null ? void 0 : Re.type) === d.VariableDeclaration && !Re.variableInstances.every((Ge) => {
|
|
198601
|
-
const ke =
|
|
198601
|
+
const ke = Ft(Ge, s.project);
|
|
198602
198602
|
return !!ke && (as(
|
|
198603
198603
|
ue,
|
|
198604
198604
|
ke,
|
|
@@ -198614,7 +198614,7 @@ async function _1(s, p, i = {}) {
|
|
|
198614
198614
|
], ke = Re.calledBy.some(
|
|
198615
198615
|
(Ze) => {
|
|
198616
198616
|
var Ke;
|
|
198617
|
-
return ((Ke =
|
|
198617
|
+
return ((Ke = Ft(Ze, s.project)) == null ? void 0 : Ke.id) !== (ue == null ? void 0 : ue.id);
|
|
198618
198618
|
}
|
|
198619
198619
|
);
|
|
198620
198620
|
!ke && !Ge.length && !$e.length ? (e[Ie.id] = {
|
|
@@ -198820,7 +198820,7 @@ async function D5i(s, p, i, r, a, c) {
|
|
|
198820
198820
|
const h = a.compatible[f.id];
|
|
198821
198821
|
if (h && h.requiresCallConnectionToFrom && h.requiresCallConnectionTo) {
|
|
198822
198822
|
const m = h.requiresCallConnectionToFrom, b = h.requiresCallConnectionTo;
|
|
198823
|
-
if (
|
|
198823
|
+
if (Kt.includes(m.type) ? (m.addCall(
|
|
198824
198824
|
b,
|
|
198825
198825
|
r
|
|
198826
198826
|
), b.addEntryCaller(
|
|
@@ -198924,7 +198924,7 @@ function C5i(s, p, i, r) {
|
|
|
198924
198924
|
return;
|
|
198925
198925
|
}
|
|
198926
198926
|
case "called-by": {
|
|
198927
|
-
ar.includes(s.type) && ur.includes(p.type) && (
|
|
198927
|
+
ar.includes(s.type) && ur.includes(p.type) && (Kt.includes(s.type) ? (s.addCall(
|
|
198928
198928
|
p,
|
|
198929
198929
|
r
|
|
198930
198930
|
), p.addEntryCaller(
|
|
@@ -198943,7 +198943,7 @@ function C5i(s, p, i, r) {
|
|
|
198943
198943
|
return;
|
|
198944
198944
|
}
|
|
198945
198945
|
case "entry-point-caller": {
|
|
198946
|
-
if (
|
|
198946
|
+
if (Kt.includes(s.type) && ur.includes(p.type) && (s.addCall(
|
|
198947
198947
|
p,
|
|
198948
198948
|
r
|
|
198949
198949
|
), p.addEntryCaller(
|
|
@@ -199117,7 +199117,9 @@ function ml(s, p) {
|
|
|
199117
199117
|
return {
|
|
199118
199118
|
list: i.flatMap((e) => {
|
|
199119
199119
|
if (e === p)
|
|
199120
|
-
return r = e,
|
|
199120
|
+
return r = e, Kt.includes(e.type) ? e.parent.type === d.Loop ? a = "loop-body" : a = "entry" : e.successCalls.includes(s) ? a = "success" : e.errorCalls.includes(
|
|
199121
|
+
s
|
|
199122
|
+
) && (a = "error"), [e];
|
|
199121
199123
|
if (e.type === d.FunctionDeclaration && e.parent.type === d.Loop && e.parent === p)
|
|
199122
199124
|
return r = e.parent, a = "loop-body", [e];
|
|
199123
199125
|
if (!ur.includes(e.type))
|
|
@@ -199141,20 +199143,24 @@ function O5i(s, p) {
|
|
|
199141
199143
|
(a) => a.callee === p
|
|
199142
199144
|
))
|
|
199143
199145
|
return null;
|
|
199144
|
-
if (
|
|
199146
|
+
if (Kt.includes(s.type)) {
|
|
199145
199147
|
if (s.calls.includes(p))
|
|
199146
199148
|
return s.type === d.Loop ? "loop-body" : "entry";
|
|
199147
199149
|
} else if (_t.includes(s.type) && s.type !== d.InternalCall) {
|
|
199148
|
-
if (s.successCalls.includes(
|
|
199150
|
+
if (s.successCalls.includes(
|
|
199151
|
+
p
|
|
199152
|
+
))
|
|
199149
199153
|
return "success";
|
|
199150
|
-
if (s.errorCalls.includes(
|
|
199154
|
+
if (s.errorCalls.includes(
|
|
199155
|
+
p
|
|
199156
|
+
))
|
|
199151
199157
|
return "error";
|
|
199152
199158
|
}
|
|
199153
199159
|
return null;
|
|
199154
199160
|
}
|
|
199155
199161
|
function zA(s) {
|
|
199156
|
-
const p =
|
|
199157
|
-
return p ?
|
|
199162
|
+
const p = Ft(s, s.project);
|
|
199163
|
+
return p ? Kt.includes(p.type) ? p : p.type === d.Loop ? p.body : null : null;
|
|
199158
199164
|
}
|
|
199159
199165
|
function $Di(s, p) {
|
|
199160
199166
|
const i = s.calledBy;
|
|
@@ -199197,7 +199203,10 @@ function Kc(s) {
|
|
|
199197
199203
|
);
|
|
199198
199204
|
return [
|
|
199199
199205
|
...c,
|
|
199200
|
-
{
|
|
199206
|
+
{
|
|
199207
|
+
caller: e,
|
|
199208
|
+
callType: "success"
|
|
199209
|
+
},
|
|
199201
199210
|
...f
|
|
199202
199211
|
];
|
|
199203
199212
|
}
|
|
@@ -199212,7 +199221,10 @@ function Kc(s) {
|
|
|
199212
199221
|
);
|
|
199213
199222
|
return [
|
|
199214
199223
|
...c,
|
|
199215
|
-
{
|
|
199224
|
+
{
|
|
199225
|
+
caller: e,
|
|
199226
|
+
callType: "error"
|
|
199227
|
+
},
|
|
199216
199228
|
...f
|
|
199217
199229
|
];
|
|
199218
199230
|
}
|
|
@@ -199253,7 +199265,11 @@ function GDi(s) {
|
|
|
199253
199265
|
ancestor: null,
|
|
199254
199266
|
callType: null
|
|
199255
199267
|
};
|
|
199256
|
-
const r = p.filter((c) => !(c === s || !ar.includes(c.type) || !yt(
|
|
199268
|
+
const r = p.filter((c) => !(c === s || !ar.includes(c.type) || !yt(
|
|
199269
|
+
c
|
|
199270
|
+
).find(
|
|
199271
|
+
(h) => h === s
|
|
199272
|
+
))).filter(
|
|
199257
199273
|
// Filter out duplicate callers
|
|
199258
199274
|
(c, e, f) => f.findIndex((h) => h === c) === e
|
|
199259
199275
|
).filter((c) => $Di(
|
|
@@ -199261,8 +199277,12 @@ function GDi(s) {
|
|
|
199261
199277
|
c
|
|
199262
199278
|
)), a = r.filter(
|
|
199263
199279
|
(c) => {
|
|
199264
|
-
const e = yt(
|
|
199265
|
-
|
|
199280
|
+
const e = yt(
|
|
199281
|
+
c
|
|
199282
|
+
), f = r.filter((m) => m !== c).map((m) => m);
|
|
199283
|
+
return !e.some((m) => !!f.find(
|
|
199284
|
+
(E) => E === m
|
|
199285
|
+
));
|
|
199266
199286
|
}
|
|
199267
199287
|
);
|
|
199268
199288
|
if (a.length === 0)
|
|
@@ -199278,7 +199298,7 @@ function GDi(s) {
|
|
|
199278
199298
|
ancestor: c,
|
|
199279
199299
|
callType: "loop-body"
|
|
199280
199300
|
};
|
|
199281
|
-
} else if (
|
|
199301
|
+
} else if (Kt.includes(c.type)) {
|
|
199282
199302
|
if (c.calls.includes(s))
|
|
199283
199303
|
return c.type === d.FunctionDeclaration && c.parent.type === d.Loop ? {
|
|
199284
199304
|
ancestor: c,
|
|
@@ -199288,16 +199308,12 @@ function GDi(s) {
|
|
|
199288
199308
|
callType: "entry"
|
|
199289
199309
|
};
|
|
199290
199310
|
} else if (_t.includes(c.type)) {
|
|
199291
|
-
if (c.successCalls.includes(
|
|
199292
|
-
s
|
|
199293
|
-
))
|
|
199311
|
+
if (c.successCalls.includes(s))
|
|
199294
199312
|
return {
|
|
199295
199313
|
ancestor: c,
|
|
199296
199314
|
callType: "success"
|
|
199297
199315
|
};
|
|
199298
|
-
if (c.errorCalls.includes(
|
|
199299
|
-
s
|
|
199300
|
-
))
|
|
199316
|
+
if (c.errorCalls.includes(s))
|
|
199301
199317
|
return {
|
|
199302
199318
|
ancestor: c,
|
|
199303
199319
|
callType: "error"
|
|
@@ -199359,7 +199375,13 @@ function BDi(s, p, i) {
|
|
|
199359
199375
|
`[findNextCombinedSingleCallerAncestor] Invalid 'from' ${i.type} -- ${i.id} argument, doesn't contain 'targetB' entity ${p.type} -- ${p.id}`
|
|
199360
199376
|
);
|
|
199361
199377
|
}
|
|
199362
|
-
const a = ud(
|
|
199378
|
+
const a = ud(
|
|
199379
|
+
s,
|
|
199380
|
+
s.project
|
|
199381
|
+
), c = ud(
|
|
199382
|
+
p,
|
|
199383
|
+
p.project
|
|
199384
|
+
);
|
|
199363
199385
|
if ((a == null ? void 0 : a.id) !== (c == null ? void 0 : c.id))
|
|
199364
199386
|
return r;
|
|
199365
199387
|
if (!a)
|
|
@@ -199367,7 +199389,7 @@ function BDi(s, p, i) {
|
|
|
199367
199389
|
ancestor: null,
|
|
199368
199390
|
callType: null
|
|
199369
199391
|
};
|
|
199370
|
-
const e =
|
|
199392
|
+
const e = Ft(s, s.project), f = Ft(p, p.project);
|
|
199371
199393
|
if (!e)
|
|
199372
199394
|
throw new Error(
|
|
199373
199395
|
`[findNextCombinedSingleCallerAncestor] Invalid 'targetA' argument, doesn't have a scope owner: ${s.type} -- ${s.id}`
|
|
@@ -199537,10 +199559,12 @@ function Uy(s, p, i = !1) {
|
|
|
199537
199559
|
"findNextSingleCallerAncestor: Target is not defined, cannot find ancestor."
|
|
199538
199560
|
);
|
|
199539
199561
|
let r = s;
|
|
199540
|
-
(s.type === d.VariableDeclaration || s.type === d.VariableInstance) && !s.calledBy.length && !s.successCalls.length && !s.errorCalls.length && s.internalCalls.some(
|
|
199562
|
+
(s.type === d.VariableDeclaration || s.type === d.VariableInstance) && !s.calledBy.length && !s.successCalls.length && !s.errorCalls.length && s.internalCalls.some(
|
|
199563
|
+
(k) => !!k.calledBy.length
|
|
199564
|
+
) && (r = s.internalCalls.find(
|
|
199541
199565
|
(q) => !!q.calledBy.length
|
|
199542
199566
|
));
|
|
199543
|
-
const a =
|
|
199567
|
+
const a = Ft(r, s.project);
|
|
199544
199568
|
let c = p || a;
|
|
199545
199569
|
if (!c)
|
|
199546
199570
|
return {
|
|
@@ -199573,7 +199597,7 @@ function Uy(s, p, i = !1) {
|
|
|
199573
199597
|
ancestor: k,
|
|
199574
199598
|
callType: "loop-body"
|
|
199575
199599
|
};
|
|
199576
|
-
if (
|
|
199600
|
+
if (Kt.includes(k.type))
|
|
199577
199601
|
return k.type === d.FunctionDeclaration && k.parent.type === d.Loop ? {
|
|
199578
199602
|
ancestor: k.parent,
|
|
199579
199603
|
callType: "loop-body"
|
|
@@ -199582,16 +199606,12 @@ function Uy(s, p, i = !1) {
|
|
|
199582
199606
|
callType: "entry"
|
|
199583
199607
|
};
|
|
199584
199608
|
if (_t.includes(k.type)) {
|
|
199585
|
-
if (k.successCalls.includes(
|
|
199586
|
-
r
|
|
199587
|
-
))
|
|
199609
|
+
if (k.successCalls.includes(r))
|
|
199588
199610
|
return {
|
|
199589
199611
|
ancestor: k,
|
|
199590
199612
|
callType: "success"
|
|
199591
199613
|
};
|
|
199592
|
-
if (k.errorCalls.includes(
|
|
199593
|
-
r
|
|
199594
|
-
))
|
|
199614
|
+
if (k.errorCalls.includes(r))
|
|
199595
199615
|
return {
|
|
199596
199616
|
ancestor: k,
|
|
199597
199617
|
callType: "error"
|
|
@@ -199621,8 +199641,10 @@ function Uy(s, p, i = !1) {
|
|
|
199621
199641
|
ancestor: c,
|
|
199622
199642
|
callType: "loop-body"
|
|
199623
199643
|
};
|
|
199624
|
-
} else if (
|
|
199625
|
-
if (c.calls.includes(
|
|
199644
|
+
} else if (Kt.includes(c.type)) {
|
|
199645
|
+
if (c.calls.includes(
|
|
199646
|
+
r
|
|
199647
|
+
))
|
|
199626
199648
|
return c.type === d.FunctionDeclaration && c.parent.type === d.Loop ? {
|
|
199627
199649
|
ancestor: c.parent,
|
|
199628
199650
|
callType: "loop-body"
|
|
@@ -199631,16 +199653,12 @@ function Uy(s, p, i = !1) {
|
|
|
199631
199653
|
callType: "entry"
|
|
199632
199654
|
};
|
|
199633
199655
|
} else if (_t.includes(c.type) && r.calledBy.length === 1) {
|
|
199634
|
-
if (c.successCalls.includes(
|
|
199635
|
-
r
|
|
199636
|
-
))
|
|
199656
|
+
if (c.successCalls.includes(r))
|
|
199637
199657
|
return {
|
|
199638
199658
|
ancestor: c,
|
|
199639
199659
|
callType: "success"
|
|
199640
199660
|
};
|
|
199641
|
-
if (c.errorCalls.includes(
|
|
199642
|
-
r
|
|
199643
|
-
))
|
|
199661
|
+
if (c.errorCalls.includes(r))
|
|
199644
199662
|
return {
|
|
199645
199663
|
ancestor: c,
|
|
199646
199664
|
callType: "error"
|
|
@@ -199678,8 +199696,10 @@ function Uy(s, p, i = !1) {
|
|
|
199678
199696
|
};
|
|
199679
199697
|
const A = E.filter(
|
|
199680
199698
|
(k) => {
|
|
199681
|
-
const q = E.filter((re) => re !== k).map(
|
|
199682
|
-
|
|
199699
|
+
const q = E.filter((re) => re !== k).map(
|
|
199700
|
+
(re) => re.callee
|
|
199701
|
+
);
|
|
199702
|
+
return Kt.includes(k.callee.type) && k.callee.calls.length === 1 && q.find(
|
|
199683
199703
|
(re) => re === k.callee.calls[0]
|
|
199684
199704
|
) || _t.includes(k.callee.type) && k.callee.successCalls.length === 1 && q.find(
|
|
199685
199705
|
(re) => {
|
|
@@ -199714,7 +199734,7 @@ function Uy(s, p, i = !1) {
|
|
|
199714
199734
|
callType: "loop-body"
|
|
199715
199735
|
};
|
|
199716
199736
|
} else {
|
|
199717
|
-
if (
|
|
199737
|
+
if (Kt.includes(k.callee.type))
|
|
199718
199738
|
return k.callee.type === d.FunctionDeclaration && k.callee.parent.type === d.Loop ? {
|
|
199719
199739
|
ancestor: k.callee.parent,
|
|
199720
199740
|
callType: "loop-body"
|
|
@@ -199822,7 +199842,7 @@ function _5i(s) {
|
|
|
199822
199842
|
});
|
|
199823
199843
|
if (r.length === 1) {
|
|
199824
199844
|
const f = r[0];
|
|
199825
|
-
if (
|
|
199845
|
+
if (Kt.includes(f.type))
|
|
199826
199846
|
return f.parent.type === d.Loop ? {
|
|
199827
199847
|
ancestor: f.parent,
|
|
199828
199848
|
callType: "loop-body"
|
|
@@ -199842,7 +199862,9 @@ function _5i(s) {
|
|
|
199842
199862
|
ancestor: f,
|
|
199843
199863
|
callType: "success"
|
|
199844
199864
|
};
|
|
199845
|
-
if (f.errorCalls.includes(
|
|
199865
|
+
if (f.errorCalls.includes(
|
|
199866
|
+
p
|
|
199867
|
+
))
|
|
199846
199868
|
return {
|
|
199847
199869
|
ancestor: f,
|
|
199848
199870
|
callType: "error"
|
|
@@ -199856,7 +199878,7 @@ function _5i(s) {
|
|
|
199856
199878
|
}
|
|
199857
199879
|
const a = r.map((f) => {
|
|
199858
199880
|
var m;
|
|
199859
|
-
if (
|
|
199881
|
+
if (Kt.includes(f.type))
|
|
199860
199882
|
return f.parent.type === d.Loop ? {
|
|
199861
199883
|
ancestor: f.parent,
|
|
199862
199884
|
callType: "loop-body"
|
|
@@ -199899,13 +199921,17 @@ function _5i(s) {
|
|
|
199899
199921
|
return h;
|
|
199900
199922
|
}).filter(
|
|
199901
199923
|
// Filter out duplicates
|
|
199902
|
-
(f, h, m) => h === m.findIndex(
|
|
199903
|
-
|
|
199904
|
-
|
|
199905
|
-
|
|
199924
|
+
(f, h, m) => h === m.findIndex(
|
|
199925
|
+
(b) => {
|
|
199926
|
+
var E, A;
|
|
199927
|
+
return ((E = b.ancestor) == null ? void 0 : E.id) === ((A = f.ancestor) == null ? void 0 : A.id);
|
|
199928
|
+
}
|
|
199929
|
+
)
|
|
199906
199930
|
), c = zA(p), e = a.filter((f) => f != null && f.ancestor ? c === f.ancestor ? !0 : !a.filter(
|
|
199907
199931
|
(b) => b.ancestor !== f.ancestor
|
|
199908
|
-
).map(
|
|
199932
|
+
).map(
|
|
199933
|
+
(b) => b.ancestor
|
|
199934
|
+
).some((b) => {
|
|
199909
199935
|
const E = ml(
|
|
199910
199936
|
f.ancestor,
|
|
199911
199937
|
b
|
|
@@ -199940,7 +199966,7 @@ function MDi(s, p) {
|
|
|
199940
199966
|
if (yt(s).includes(p) || !yt(p).includes(s))
|
|
199941
199967
|
return !1;
|
|
199942
199968
|
const a = s.calledBy;
|
|
199943
|
-
return a.length === 0 ? !1 : a.length === 1 ? a[0] === p : LDi(a).length > 1 && a.includes(p) ? !1 : a.every((e) => s === p ? !0 :
|
|
199969
|
+
return a.length === 0 ? !1 : a.length === 1 ? a[0] === p : LDi(a).length > 1 && a.includes(p) ? !1 : a.every((e) => s === p ? !0 : Kt.includes(e.type) ? !1 : MDi(
|
|
199944
199970
|
e,
|
|
199945
199971
|
p
|
|
199946
199972
|
));
|
|
@@ -200014,7 +200040,7 @@ function yA(s) {
|
|
|
200014
200040
|
return s.project;
|
|
200015
200041
|
const i = p.reduce(
|
|
200016
200042
|
(r, a) => {
|
|
200017
|
-
const c =
|
|
200043
|
+
const c = Ft(a, s.project);
|
|
200018
200044
|
return !c || c.type === d.Project ? r : r.type === d.Project || MT(
|
|
200019
200045
|
c,
|
|
200020
200046
|
r
|
|
@@ -200040,7 +200066,10 @@ function Rt(s, p) {
|
|
|
200040
200066
|
s.project
|
|
200041
200067
|
);
|
|
200042
200068
|
!a.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200043
|
-
a.type !== "b-is-global-a-is-not" ? s.parent.remove({ ignoreUpstream: !1 }, p) : (s.parent.setParent(
|
|
200069
|
+
a.type !== "b-is-global-a-is-not" ? s.parent.remove({ ignoreUpstream: !1 }, p) : (s.parent.setParent(
|
|
200070
|
+
i,
|
|
200071
|
+
p
|
|
200072
|
+
), s.parent.addSelfToProject(p));
|
|
200044
200073
|
} else
|
|
200045
200074
|
s.parent.setParent(i, p), s.parent.addSelfToProject(p);
|
|
200046
200075
|
else if ((s.type === d.ContinueStatement || s.type === d.BreakStatement) && i.type !== d.Loop) {
|
|
@@ -200061,7 +200090,10 @@ function Rt(s, p) {
|
|
|
200061
200090
|
!c.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200062
200091
|
c.type !== "b-is-global-a-is-not" ? s.remove({ ignoreUpstream: !1 }, p) : (s.setParent(i, p), s.addSelfToProject(p));
|
|
200063
200092
|
} else
|
|
200064
|
-
s.setParent(
|
|
200093
|
+
s.setParent(
|
|
200094
|
+
i,
|
|
200095
|
+
p
|
|
200096
|
+
), s.addSelfToProject(p);
|
|
200065
200097
|
else if (s.type === d.VariableInstance) {
|
|
200066
200098
|
const c = Ns(
|
|
200067
200099
|
i,
|
|
@@ -200086,7 +200118,10 @@ function Rt(s, p) {
|
|
|
200086
200118
|
s.project
|
|
200087
200119
|
);
|
|
200088
200120
|
!e.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200089
|
-
e.type !== "b-is-global-a-is-not" ? a.parent.remove(
|
|
200121
|
+
e.type !== "b-is-global-a-is-not" ? a.parent.remove(
|
|
200122
|
+
{ ignoreUpstream: !1 },
|
|
200123
|
+
p
|
|
200124
|
+
) : (a.parent.setParent(
|
|
200090
200125
|
c,
|
|
200091
200126
|
p
|
|
200092
200127
|
), a.parent.addSelfToProject(p));
|
|
@@ -200098,7 +200133,9 @@ function Rt(s, p) {
|
|
|
200098
200133
|
else if ((a.type === d.ContinueStatement || a.type === d.BreakStatement) && c.type !== d.Loop) {
|
|
200099
200134
|
a.remove({ ignoreUpstream: !1 }, p);
|
|
200100
200135
|
return;
|
|
200101
|
-
} else if (a.type === d.ReturnStatement && !_r.includes(
|
|
200136
|
+
} else if (a.type === d.ReturnStatement && !_r.includes(
|
|
200137
|
+
c.type
|
|
200138
|
+
)) {
|
|
200102
200139
|
a.remove({ ignoreUpstream: !1 }, p);
|
|
200103
200140
|
return;
|
|
200104
200141
|
} else if (Ut.includes(a.type)) {
|
|
@@ -200111,7 +200148,10 @@ function Rt(s, p) {
|
|
|
200111
200148
|
s.project
|
|
200112
200149
|
);
|
|
200113
200150
|
!f.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200114
|
-
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200151
|
+
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200152
|
+
c,
|
|
200153
|
+
p
|
|
200154
|
+
), a.addSelfToProject(p));
|
|
200115
200155
|
} else
|
|
200116
200156
|
a.setParent(
|
|
200117
200157
|
c,
|
|
@@ -200124,7 +200164,10 @@ function Rt(s, p) {
|
|
|
200124
200164
|
s.project
|
|
200125
200165
|
);
|
|
200126
200166
|
!f.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200127
|
-
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200167
|
+
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200168
|
+
c,
|
|
200169
|
+
p
|
|
200170
|
+
), a.addSelfToProject(p));
|
|
200128
200171
|
} else
|
|
200129
200172
|
a.setParent(
|
|
200130
200173
|
c,
|
|
@@ -200159,7 +200202,9 @@ function LC(s, p) {
|
|
|
200159
200202
|
}
|
|
200160
200203
|
function I5(s, p) {
|
|
200161
200204
|
if (!s || !p)
|
|
200162
|
-
throw new Error(
|
|
200205
|
+
throw new Error(
|
|
200206
|
+
"Both entities must be defined to find a common ancestor"
|
|
200207
|
+
);
|
|
200163
200208
|
if (s === p)
|
|
200164
200209
|
return s;
|
|
200165
200210
|
const i = s.parent;
|
|
@@ -200182,7 +200227,9 @@ function I5(s, p) {
|
|
|
200182
200227
|
}
|
|
200183
200228
|
function V5i(s, p, i = !0) {
|
|
200184
200229
|
if (!s || !p)
|
|
200185
|
-
throw new Error(
|
|
200230
|
+
throw new Error(
|
|
200231
|
+
"Both entities must be defined to find a common ancestor"
|
|
200232
|
+
);
|
|
200186
200233
|
if (s === p)
|
|
200187
200234
|
return {
|
|
200188
200235
|
ancestor: s,
|
|
@@ -200319,7 +200366,10 @@ function Sc(s, p) {
|
|
|
200319
200366
|
return null;
|
|
200320
200367
|
if (sh.includes(i.type)) {
|
|
200321
200368
|
if (i.type === d.FunctionDeclaration) {
|
|
200322
|
-
const r = hT(
|
|
200369
|
+
const r = hT(
|
|
200370
|
+
i.parent,
|
|
200371
|
+
p
|
|
200372
|
+
);
|
|
200323
200373
|
if (r) {
|
|
200324
200374
|
if (r.type === d.DefinitionEntity)
|
|
200325
200375
|
return r;
|
|
@@ -200336,7 +200386,10 @@ function Sc(s, p) {
|
|
|
200336
200386
|
// To represent dynamically inferred data-types, in which case,
|
|
200337
200387
|
// they are not canvas entities, but we can still find their parent canvas entity as usual
|
|
200338
200388
|
(i.type === d.DefinitionEntity && r.type === d.DataType || i.type === d.Condition && r.type === d.Condition))
|
|
200339
|
-
return Sc(
|
|
200389
|
+
return Sc(
|
|
200390
|
+
r,
|
|
200391
|
+
p
|
|
200392
|
+
);
|
|
200340
200393
|
}
|
|
200341
200394
|
return i;
|
|
200342
200395
|
} else {
|
|
@@ -200351,14 +200404,18 @@ function Sc(s, p) {
|
|
|
200351
200404
|
function mn(s) {
|
|
200352
200405
|
if (s.type === d.Loop) {
|
|
200353
200406
|
const p = [
|
|
200354
|
-
...Un(s.successCalls).map(
|
|
200355
|
-
|
|
200356
|
-
|
|
200357
|
-
|
|
200358
|
-
|
|
200359
|
-
|
|
200360
|
-
|
|
200361
|
-
|
|
200407
|
+
...Un(s.successCalls).map(
|
|
200408
|
+
(a) => ({
|
|
200409
|
+
callee: a,
|
|
200410
|
+
callType: "success"
|
|
200411
|
+
})
|
|
200412
|
+
),
|
|
200413
|
+
...Un(s.errorCalls).map(
|
|
200414
|
+
(a) => ({
|
|
200415
|
+
callee: a,
|
|
200416
|
+
callType: "error"
|
|
200417
|
+
})
|
|
200418
|
+
),
|
|
200362
200419
|
...(s.body ? yt(s.body) : []).map((a) => ({
|
|
200363
200420
|
callee: a,
|
|
200364
200421
|
callType: "loop-body"
|
|
@@ -200383,10 +200440,12 @@ function mn(s) {
|
|
|
200383
200440
|
callType: "success"
|
|
200384
200441
|
})
|
|
200385
200442
|
),
|
|
200386
|
-
...Un(s.errorCalls).map(
|
|
200387
|
-
|
|
200388
|
-
|
|
200389
|
-
|
|
200443
|
+
...Un(s.errorCalls).map(
|
|
200444
|
+
(a) => ({
|
|
200445
|
+
callee: a,
|
|
200446
|
+
callType: "error"
|
|
200447
|
+
})
|
|
200448
|
+
)
|
|
200390
200449
|
];
|
|
200391
200450
|
return C(
|
|
200392
200451
|
p.map((a) => a.callee)
|
|
@@ -200399,7 +200458,7 @@ function mn(s) {
|
|
|
200399
200458
|
};
|
|
200400
200459
|
});
|
|
200401
200460
|
}
|
|
200402
|
-
if (
|
|
200461
|
+
if (Kt.includes(s.type)) {
|
|
200403
200462
|
const p = [
|
|
200404
200463
|
...Un(s.calls).map(
|
|
200405
200464
|
(a) => s.parent.type === d.Loop ? {
|
|
@@ -200474,7 +200533,10 @@ function x5i(s) {
|
|
|
200474
200533
|
const a = i[i.length - 1];
|
|
200475
200534
|
if (a) {
|
|
200476
200535
|
const c = a[a.length - 1];
|
|
200477
|
-
ed(
|
|
200536
|
+
ed(
|
|
200537
|
+
r,
|
|
200538
|
+
c
|
|
200539
|
+
) ? i.push([r]) : a.push(r);
|
|
200478
200540
|
} else
|
|
200479
200541
|
i.push([r]);
|
|
200480
200542
|
}), i;
|
|
@@ -200493,7 +200555,7 @@ function wN(s) {
|
|
|
200493
200555
|
...Sd(
|
|
200494
200556
|
s.errorCalls
|
|
200495
200557
|
)
|
|
200496
|
-
] :
|
|
200558
|
+
] : Kt.includes(s.type) ? Sd(
|
|
200497
200559
|
s.calls
|
|
200498
200560
|
) : [];
|
|
200499
200561
|
}
|
|
@@ -200583,7 +200645,7 @@ function yt(s, p = {}) {
|
|
|
200583
200645
|
...Un(r, { sorting: p.sorting })
|
|
200584
200646
|
]);
|
|
200585
200647
|
}
|
|
200586
|
-
if (
|
|
200648
|
+
if (Kt.includes(s.type)) {
|
|
200587
200649
|
const i = p.sorting === "local-y-axis" ? s.calls.sort((r, a) => {
|
|
200588
200650
|
const c = mt(
|
|
200589
200651
|
r
|
|
@@ -200626,10 +200688,13 @@ async function g0(s, p = {}) {
|
|
|
200626
200688
|
tracker: i,
|
|
200627
200689
|
sorting: p.sorting
|
|
200628
200690
|
}),
|
|
200629
|
-
...s.body ? await g0(
|
|
200630
|
-
|
|
200631
|
-
|
|
200632
|
-
|
|
200691
|
+
...s.body ? await g0(
|
|
200692
|
+
s.body,
|
|
200693
|
+
{
|
|
200694
|
+
tracker: i,
|
|
200695
|
+
sorting: p.sorting
|
|
200696
|
+
}
|
|
200697
|
+
) : []
|
|
200633
200698
|
],
|
|
200634
200699
|
{ tracker: i }
|
|
200635
200700
|
);
|
|
@@ -200668,7 +200733,7 @@ async function g0(s, p = {}) {
|
|
|
200668
200733
|
{ tracker: i }
|
|
200669
200734
|
);
|
|
200670
200735
|
}
|
|
200671
|
-
if (
|
|
200736
|
+
if (Kt.includes(s.type)) {
|
|
200672
200737
|
const r = p.sorting === "local-y-axis" ? s.calls.sort((a, c) => {
|
|
200673
200738
|
const e = mt(
|
|
200674
200739
|
a
|
|
@@ -200690,7 +200755,7 @@ function B5i(s) {
|
|
|
200690
200755
|
return _t.includes(s.type) ? [
|
|
200691
200756
|
...Un(s.successCalls),
|
|
200692
200757
|
...Un(s.errorCalls)
|
|
200693
|
-
] :
|
|
200758
|
+
] : Kt.includes(s.type) ? Un(s.calls) : [];
|
|
200694
200759
|
}
|
|
200695
200760
|
function zDi(s, p = /* @__PURE__ */ new Set()) {
|
|
200696
200761
|
return s.writesValues.filter(
|
|
@@ -200712,29 +200777,7 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200712
200777
|
).reduce((r, a) => [...r, ...hr(a, p)], []);
|
|
200713
200778
|
if (s.type === d.FunctionCall || s.type === d.Operation || s.type === d.Condition)
|
|
200714
200779
|
return [
|
|
200715
|
-
...yt(s).reduce(
|
|
200716
|
-
(c, e) => {
|
|
200717
|
-
const f = mt(e);
|
|
200718
|
-
return [
|
|
200719
|
-
...c,
|
|
200720
|
-
...hr(
|
|
200721
|
-
f || e,
|
|
200722
|
-
p
|
|
200723
|
-
)
|
|
200724
|
-
];
|
|
200725
|
-
},
|
|
200726
|
-
[]
|
|
200727
|
-
),
|
|
200728
|
-
...qDi(s.inputs),
|
|
200729
|
-
...HDi(s.outputs)
|
|
200730
|
-
].reduce((c, e) => [...c, ...hr(e, p)], []);
|
|
200731
|
-
if (op.includes(s.type)) {
|
|
200732
|
-
const i = [
|
|
200733
|
-
...GC(
|
|
200734
|
-
s.inputs
|
|
200735
|
-
)
|
|
200736
|
-
], a = yt(s).reduce(
|
|
200737
|
-
(c, e) => {
|
|
200780
|
+
...yt(s).reduce((c, e) => {
|
|
200738
200781
|
const f = mt(e);
|
|
200739
200782
|
return [
|
|
200740
200783
|
...c,
|
|
@@ -200743,9 +200786,27 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200743
200786
|
p
|
|
200744
200787
|
)
|
|
200745
200788
|
];
|
|
200746
|
-
},
|
|
200747
|
-
|
|
200748
|
-
|
|
200789
|
+
}, []),
|
|
200790
|
+
...qDi(s.inputs),
|
|
200791
|
+
...HDi(
|
|
200792
|
+
s.outputs
|
|
200793
|
+
)
|
|
200794
|
+
].reduce((c, e) => [...c, ...hr(e, p)], []);
|
|
200795
|
+
if (op.includes(s.type)) {
|
|
200796
|
+
const i = [
|
|
200797
|
+
...GC(
|
|
200798
|
+
s.inputs
|
|
200799
|
+
)
|
|
200800
|
+
], a = yt(s).reduce((c, e) => {
|
|
200801
|
+
const f = mt(e);
|
|
200802
|
+
return [
|
|
200803
|
+
...c,
|
|
200804
|
+
...hr(
|
|
200805
|
+
f || e,
|
|
200806
|
+
p
|
|
200807
|
+
)
|
|
200808
|
+
];
|
|
200809
|
+
}, []);
|
|
200749
200810
|
return i.push(...a), i.reduce((c, e) => [...c, ...hr(e)], []);
|
|
200750
200811
|
}
|
|
200751
200812
|
if (s.type === d.FunctionDeclaration) {
|
|
@@ -200755,36 +200816,30 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200755
200816
|
)
|
|
200756
200817
|
], a = yt(
|
|
200757
200818
|
s
|
|
200758
|
-
).reduce(
|
|
200759
|
-
(
|
|
200760
|
-
|
|
200761
|
-
|
|
200762
|
-
|
|
200763
|
-
|
|
200764
|
-
|
|
200765
|
-
|
|
200766
|
-
|
|
200767
|
-
|
|
200768
|
-
},
|
|
200769
|
-
[]
|
|
200770
|
-
);
|
|
200819
|
+
).reduce((c, e) => {
|
|
200820
|
+
const f = mt(e);
|
|
200821
|
+
return [
|
|
200822
|
+
...c,
|
|
200823
|
+
...hr(
|
|
200824
|
+
f || e,
|
|
200825
|
+
p
|
|
200826
|
+
)
|
|
200827
|
+
];
|
|
200828
|
+
}, []);
|
|
200771
200829
|
return i.push(...a), i.reduce((c, e) => [...c, ...hr(e)], []);
|
|
200772
200830
|
}
|
|
200773
200831
|
if (Ut.includes(s.type)) {
|
|
200774
200832
|
p.add(s.id);
|
|
200775
|
-
const r = yt(s).reduce(
|
|
200776
|
-
(
|
|
200777
|
-
|
|
200778
|
-
|
|
200779
|
-
|
|
200780
|
-
|
|
200781
|
-
|
|
200782
|
-
|
|
200783
|
-
|
|
200784
|
-
|
|
200785
|
-
},
|
|
200786
|
-
[]
|
|
200787
|
-
);
|
|
200833
|
+
const r = yt(s).reduce((a, c) => {
|
|
200834
|
+
const e = mt(c);
|
|
200835
|
+
return [
|
|
200836
|
+
...a,
|
|
200837
|
+
...hr(
|
|
200838
|
+
e || c,
|
|
200839
|
+
p
|
|
200840
|
+
)
|
|
200841
|
+
];
|
|
200842
|
+
}, []);
|
|
200788
200843
|
return [
|
|
200789
200844
|
s,
|
|
200790
200845
|
...r,
|
|
@@ -200855,19 +200910,25 @@ function YDi(s) {
|
|
|
200855
200910
|
...h,
|
|
200856
200911
|
...GC(m.inputs),
|
|
200857
200912
|
...Un(
|
|
200858
|
-
Sd(
|
|
200913
|
+
Sd(
|
|
200914
|
+
m.calls
|
|
200915
|
+
)
|
|
200859
200916
|
),
|
|
200860
200917
|
...m.returnStatements
|
|
200861
200918
|
], []), e = s.functions.reduce((h, m) => [
|
|
200862
200919
|
...h,
|
|
200863
200920
|
...Un(
|
|
200864
|
-
Sd(
|
|
200921
|
+
Sd(
|
|
200922
|
+
m.calls
|
|
200923
|
+
)
|
|
200865
200924
|
),
|
|
200866
200925
|
...m.returnStatements
|
|
200867
200926
|
], []), f = s.events.reduce((h, m) => [
|
|
200868
200927
|
...h,
|
|
200869
200928
|
...Un(
|
|
200870
|
-
Sd(
|
|
200929
|
+
Sd(
|
|
200930
|
+
m.calls
|
|
200931
|
+
)
|
|
200871
200932
|
),
|
|
200872
200933
|
...m.returnStatements
|
|
200873
200934
|
], []);
|
|
@@ -200930,9 +200991,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
200930
200991
|
debug: !1,
|
|
200931
200992
|
...i
|
|
200932
200993
|
};
|
|
200933
|
-
if (r.ignoreBuiltInBaseEntities && (Ra.includes(s.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
200934
|
-
s.id
|
|
200935
|
-
)))
|
|
200994
|
+
if (r.ignoreBuiltInBaseEntities && (Ra.includes(s.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(s.id)))
|
|
200936
200995
|
return {
|
|
200937
200996
|
upstream: {},
|
|
200938
200997
|
downstream: {}
|
|
@@ -200940,11 +200999,15 @@ function rd(s, p = {}, i = {}) {
|
|
|
200940
200999
|
const a = s, c = s, e = s, f = s, h = s, m = s, b = s, E = s, A = s, _ = s, N = s, V = s, B = s, M = [
|
|
200941
201000
|
...B.readsValue ? [B.readsValue] : [],
|
|
200942
201001
|
...B.declaration ? [B.declaration] : [],
|
|
200943
|
-
...(V.calledByEntry || []).flatMap(
|
|
201002
|
+
...(V.calledByEntry || []).flatMap(
|
|
201003
|
+
(J) => J
|
|
201004
|
+
),
|
|
200944
201005
|
...(V.calledBySuccess || []).flatMap(
|
|
200945
201006
|
(J) => J
|
|
200946
201007
|
),
|
|
200947
|
-
...(V.calledByError || []).flatMap(
|
|
201008
|
+
...(V.calledByError || []).flatMap(
|
|
201009
|
+
(J) => J
|
|
201010
|
+
),
|
|
200948
201011
|
..._.parent ? [_.parent] : [],
|
|
200949
201012
|
...c.foreignKeyRef ? [c.foreignKeyRef] : []
|
|
200950
201013
|
];
|
|
@@ -200957,7 +201020,9 @@ function rd(s, p = {}, i = {}) {
|
|
|
200957
201020
|
(J) => J
|
|
200958
201021
|
)
|
|
200959
201022
|
) : A.extends && M.push(A.extends), h.valueAsTypeList && Array.isArray(h.valueAsTypeList) && M.push(
|
|
200960
|
-
...h.valueAsTypeList.flatMap(
|
|
201023
|
+
...h.valueAsTypeList.flatMap(
|
|
201024
|
+
(J) => J
|
|
201025
|
+
)
|
|
200961
201026
|
), h.valueAsTypeSingle && M.push(h.valueAsTypeSingle), (B.internalCalls || []).forEach((J) => {
|
|
200962
201027
|
const ne = te(J);
|
|
200963
201028
|
if (ne && p[ne]) {
|
|
@@ -200985,9 +201050,13 @@ function rd(s, p = {}, i = {}) {
|
|
|
200985
201050
|
...V.defaultValue ? [V.defaultValue] : [],
|
|
200986
201051
|
...(V.successCalls || []).flatMap((J) => J),
|
|
200987
201052
|
...(V.errorCalls || []).flatMap((J) => J),
|
|
200988
|
-
...(e.properties || []).flatMap(
|
|
201053
|
+
...(e.properties || []).flatMap(
|
|
201054
|
+
(J) => J
|
|
201055
|
+
),
|
|
200989
201056
|
...(e.methods || []).flatMap((J) => J),
|
|
200990
|
-
...(e.abstractMethods || []).flatMap(
|
|
201057
|
+
...(e.abstractMethods || []).flatMap(
|
|
201058
|
+
(J) => J
|
|
201059
|
+
),
|
|
200991
201060
|
...b.error ? [b.error] : [],
|
|
200992
201061
|
..._.throws ? [_.throws] : [],
|
|
200993
201062
|
...(c.andChildrenGroup || []).flatMap(
|
|
@@ -201011,7 +201080,14 @@ function rd(s, p = {}, i = {}) {
|
|
|
201011
201080
|
];
|
|
201012
201081
|
if (s.type === d.DataType) {
|
|
201013
201082
|
const J = c.entity ? te(c.entity) : null, ne = J ? p[J] : null, ee = ne ? ne == null ? void 0 : ne.parent : null, se = ee ? te(ee) : null;
|
|
201014
|
-
r.debug && (console.log(
|
|
201083
|
+
r.debug && (console.log(
|
|
201084
|
+
"[getReferencedIds] referencedEntId " + J
|
|
201085
|
+
), console.log("[getReferencedIds] foundInAllKnown ", ne), console.log(
|
|
201086
|
+
"[getReferencedIds] refParentOfChild ",
|
|
201087
|
+
ee
|
|
201088
|
+
), console.log(
|
|
201089
|
+
"[getReferencedIds] parentIdOfChild " + se
|
|
201090
|
+
), console.log("[getReferencedIds] Own id " + s.id), console.log(
|
|
201015
201091
|
"[getReferencedIds] is same " + (se === s.id)
|
|
201016
201092
|
)), c.entity && p[te(c.entity)] && p[te(c.entity)].parent && te(
|
|
201017
201093
|
p[te(c.entity)].parent
|
|
@@ -201038,9 +201114,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
201038
201114
|
return M.forEach((J) => {
|
|
201039
201115
|
var se;
|
|
201040
201116
|
const ne = te(J);
|
|
201041
|
-
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
201042
|
-
ne
|
|
201043
|
-
)))
|
|
201117
|
+
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(ne)))
|
|
201044
201118
|
return;
|
|
201045
201119
|
const ee = J.version;
|
|
201046
201120
|
if (ne) {
|
|
@@ -201050,9 +201124,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
201050
201124
|
}), k.forEach((J) => {
|
|
201051
201125
|
var se;
|
|
201052
201126
|
const ne = te(J);
|
|
201053
|
-
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
201054
|
-
ne
|
|
201055
|
-
)))
|
|
201127
|
+
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(ne)))
|
|
201056
201128
|
return;
|
|
201057
201129
|
const ee = J.version;
|
|
201058
201130
|
if (ne) {
|
|
@@ -201106,7 +201178,10 @@ function k5i(s, p) {
|
|
|
201106
201178
|
...s.inputs || [],
|
|
201107
201179
|
...s.outputs || []
|
|
201108
201180
|
].map((c) => {
|
|
201109
|
-
const e = hT(
|
|
201181
|
+
const e = hT(
|
|
201182
|
+
c,
|
|
201183
|
+
p
|
|
201184
|
+
);
|
|
201110
201185
|
return e ? rCi(
|
|
201111
201186
|
e,
|
|
201112
201187
|
p
|
|
@@ -201117,7 +201192,9 @@ function k5i(s, p) {
|
|
|
201117
201192
|
);
|
|
201118
201193
|
}
|
|
201119
201194
|
if (Ut.includes(s.type)) {
|
|
201120
|
-
const r = kT(
|
|
201195
|
+
const r = kT(
|
|
201196
|
+
s
|
|
201197
|
+
);
|
|
201121
201198
|
r && i.push(r);
|
|
201122
201199
|
}
|
|
201123
201200
|
return C(i);
|
|
@@ -201140,7 +201217,9 @@ function jf(s) {
|
|
|
201140
201217
|
);
|
|
201141
201218
|
}
|
|
201142
201219
|
if (tn.includes(s.type)) {
|
|
201143
|
-
const i = kT(
|
|
201220
|
+
const i = kT(
|
|
201221
|
+
s
|
|
201222
|
+
);
|
|
201144
201223
|
i && p.push(i);
|
|
201145
201224
|
}
|
|
201146
201225
|
return C(
|
|
@@ -201172,13 +201251,18 @@ async function eCi(s, p = {}) {
|
|
|
201172
201251
|
f !== null && c.push(f), await i.tick();
|
|
201173
201252
|
}
|
|
201174
201253
|
r.push(
|
|
201175
|
-
...await Wc(
|
|
201176
|
-
|
|
201177
|
-
|
|
201254
|
+
...await Wc(
|
|
201255
|
+
c,
|
|
201256
|
+
{
|
|
201257
|
+
tracker: i
|
|
201258
|
+
}
|
|
201259
|
+
)
|
|
201178
201260
|
);
|
|
201179
201261
|
}
|
|
201180
201262
|
if (tn.includes(s.type)) {
|
|
201181
|
-
const a = kT(
|
|
201263
|
+
const a = kT(
|
|
201264
|
+
s
|
|
201265
|
+
);
|
|
201182
201266
|
a && r.push(a);
|
|
201183
201267
|
}
|
|
201184
201268
|
return await Wc(r, {
|
|
@@ -201188,7 +201272,9 @@ async function eCi(s, p = {}) {
|
|
|
201188
201272
|
async function R5(s, p = {}) {
|
|
201189
201273
|
const i = Se.from(p);
|
|
201190
201274
|
await i.tick();
|
|
201191
|
-
const r = await eCi(s, { tracker: i }), a = [
|
|
201275
|
+
const r = await eCi(s, { tracker: i }), a = [
|
|
201276
|
+
...r
|
|
201277
|
+
];
|
|
201192
201278
|
for (const c of r) {
|
|
201193
201279
|
const e = await R5(
|
|
201194
201280
|
c,
|
|
@@ -201259,7 +201345,9 @@ async function nCi(s, p = /* @__PURE__ */ new Set(), i = {}) {
|
|
|
201259
201345
|
pe(s, s.project),
|
|
201260
201346
|
s.id
|
|
201261
201347
|
), await r.tick();
|
|
201262
|
-
const a = await JA(s, !1, {
|
|
201348
|
+
const a = await JA(s, !1, {
|
|
201349
|
+
tracker: r
|
|
201350
|
+
});
|
|
201263
201351
|
a.forEach((e) => {
|
|
201264
201352
|
p.add(e.id);
|
|
201265
201353
|
});
|
|
@@ -201285,7 +201373,10 @@ function D5(s) {
|
|
|
201285
201373
|
return C(
|
|
201286
201374
|
Sd(
|
|
201287
201375
|
C(
|
|
201288
|
-
p.flatMap((i) => [
|
|
201376
|
+
p.flatMap((i) => [
|
|
201377
|
+
...i.successCalls,
|
|
201378
|
+
...i.errorCalls
|
|
201379
|
+
])
|
|
201289
201380
|
)
|
|
201290
201381
|
)
|
|
201291
201382
|
);
|
|
@@ -201294,7 +201385,10 @@ function C5(s) {
|
|
|
201294
201385
|
const p = s.internalCalls || [];
|
|
201295
201386
|
return C(
|
|
201296
201387
|
C(
|
|
201297
|
-
p.flatMap((i) => [
|
|
201388
|
+
p.flatMap((i) => [
|
|
201389
|
+
...i.successCalls,
|
|
201390
|
+
...i.errorCalls
|
|
201391
|
+
])
|
|
201298
201392
|
)
|
|
201299
201393
|
);
|
|
201300
201394
|
}
|
|
@@ -201381,9 +201475,7 @@ function nd(s, p = !1) {
|
|
|
201381
201475
|
if (op.includes(s.type)) {
|
|
201382
201476
|
if (s.collapsed && p)
|
|
201383
201477
|
return [];
|
|
201384
|
-
const r = s.inputs.map((c) => zo(c)).flat(), a = s.calls.map(
|
|
201385
|
-
(c) => mt(c)
|
|
201386
|
-
);
|
|
201478
|
+
const r = s.inputs.map((c) => zo(c)).flat(), a = s.calls.map((c) => mt(c));
|
|
201387
201479
|
i.push(
|
|
201388
201480
|
...C(
|
|
201389
201481
|
r
|
|
@@ -201428,9 +201520,7 @@ function nd(s, p = !1) {
|
|
|
201428
201520
|
);
|
|
201429
201521
|
i.push(...c);
|
|
201430
201522
|
}
|
|
201431
|
-
const r = s.errorCalls.map(
|
|
201432
|
-
(c) => mt(c)
|
|
201433
|
-
), a = s.successCalls.map((c) => mt(c));
|
|
201523
|
+
const r = s.errorCalls.map((c) => mt(c)), a = s.successCalls.map((c) => mt(c));
|
|
201434
201524
|
i.push(
|
|
201435
201525
|
...a,
|
|
201436
201526
|
...r
|
|
@@ -201501,7 +201591,9 @@ function BC(s, p = !1) {
|
|
|
201501
201591
|
if (Ut.includes(s.type)) {
|
|
201502
201592
|
const r = Jo(
|
|
201503
201593
|
s
|
|
201504
|
-
), a = C5(
|
|
201594
|
+
), a = C5(
|
|
201595
|
+
s
|
|
201596
|
+
);
|
|
201505
201597
|
i.push(
|
|
201506
201598
|
...r,
|
|
201507
201599
|
...a
|
|
@@ -201548,7 +201640,10 @@ function MC(s, p = !1) {
|
|
|
201548
201640
|
...i,
|
|
201549
201641
|
...i.reduce((a, c) => [
|
|
201550
201642
|
...a,
|
|
201551
|
-
...MC(
|
|
201643
|
+
...MC(
|
|
201644
|
+
c,
|
|
201645
|
+
p
|
|
201646
|
+
)
|
|
201552
201647
|
], [])
|
|
201553
201648
|
];
|
|
201554
201649
|
return C(r);
|
|
@@ -201561,10 +201656,15 @@ function RA(s, p = !1) {
|
|
|
201561
201656
|
...i,
|
|
201562
201657
|
...i.reduce((a, c) => [
|
|
201563
201658
|
...a,
|
|
201564
|
-
...RA(
|
|
201659
|
+
...RA(
|
|
201660
|
+
c,
|
|
201661
|
+
p
|
|
201662
|
+
)
|
|
201565
201663
|
], [])
|
|
201566
201664
|
];
|
|
201567
|
-
return C(
|
|
201665
|
+
return C(
|
|
201666
|
+
r
|
|
201667
|
+
);
|
|
201568
201668
|
}
|
|
201569
201669
|
async function JA(s, p = !1, i = {}) {
|
|
201570
201670
|
ce.log(
|
|
@@ -201617,9 +201717,7 @@ async function JA(s, p = !1, i = {}) {
|
|
|
201617
201717
|
);
|
|
201618
201718
|
}
|
|
201619
201719
|
if (op.includes(s.type) && !(s.collapsed && p)) {
|
|
201620
|
-
const c = s.inputs.map((f) => zo(f)).flat(), e = s.calls.map(
|
|
201621
|
-
(f) => mt(f)
|
|
201622
|
-
);
|
|
201720
|
+
const c = s.inputs.map((f) => zo(f)).flat(), e = s.calls.map((f) => mt(f));
|
|
201623
201721
|
a.push(
|
|
201624
201722
|
...C(
|
|
201625
201723
|
c
|
|
@@ -201665,9 +201763,7 @@ async function JA(s, p = !1, i = {}) {
|
|
|
201665
201763
|
);
|
|
201666
201764
|
a.push(...f);
|
|
201667
201765
|
}
|
|
201668
|
-
const c = s.errorCalls.map(
|
|
201669
|
-
(f) => mt(f)
|
|
201670
|
-
), e = s.successCalls.map((f) => mt(f));
|
|
201766
|
+
const c = s.errorCalls.map((f) => mt(f)), e = s.successCalls.map((f) => mt(f));
|
|
201671
201767
|
a.push(
|
|
201672
201768
|
...e,
|
|
201673
201769
|
...c
|
|
@@ -201742,7 +201838,9 @@ async function kC(s, p = !1, i = {}) {
|
|
|
201742
201838
|
if (Ut.includes(s.type)) {
|
|
201743
201839
|
const c = Jo(
|
|
201744
201840
|
s
|
|
201745
|
-
), e = C5(
|
|
201841
|
+
), e = C5(
|
|
201842
|
+
s
|
|
201843
|
+
);
|
|
201746
201844
|
a.push(
|
|
201747
201845
|
...c,
|
|
201748
201846
|
...e
|
|
@@ -201801,9 +201899,13 @@ async function O5(s, p = !1, i = {}) {
|
|
|
201801
201899
|
async function sCi(s, p = !1, i = {}) {
|
|
201802
201900
|
const r = Se.from(i);
|
|
201803
201901
|
await r.tick();
|
|
201804
|
-
const a = await kC(
|
|
201805
|
-
|
|
201806
|
-
|
|
201902
|
+
const a = await kC(
|
|
201903
|
+
s,
|
|
201904
|
+
p,
|
|
201905
|
+
{
|
|
201906
|
+
tracker: r
|
|
201907
|
+
}
|
|
201908
|
+
), c = [
|
|
201807
201909
|
...a
|
|
201808
201910
|
];
|
|
201809
201911
|
for (const e of a) {
|
|
@@ -201814,7 +201916,9 @@ async function sCi(s, p = !1, i = {}) {
|
|
|
201814
201916
|
);
|
|
201815
201917
|
c.push(...f);
|
|
201816
201918
|
}
|
|
201817
|
-
return C(
|
|
201919
|
+
return C(
|
|
201920
|
+
c
|
|
201921
|
+
);
|
|
201818
201922
|
}
|
|
201819
201923
|
function V1(s) {
|
|
201820
201924
|
if (!s)
|
|
@@ -201900,7 +202004,9 @@ function pi(s, p) {
|
|
|
201900
202004
|
throw new Error(
|
|
201901
202005
|
`checkHasBaseEntity: entity is not a '${d.DefinitionEntity}' or '${d.BuiltInBaseEntity}', got ${s.type}`
|
|
201902
202006
|
);
|
|
201903
|
-
return s.type === d.BuiltInBaseEntity ? !!(s.name === p || [
|
|
202007
|
+
return s.type === d.BuiltInBaseEntity ? !!(s.name === p || [
|
|
202008
|
+
...hf(s)
|
|
202009
|
+
].includes(p)) : !!jT(s).includes(p);
|
|
201904
202010
|
}
|
|
201905
202011
|
function lCi(s, p) {
|
|
201906
202012
|
if (!s)
|
|
@@ -201918,7 +202024,10 @@ function lCi(s, p) {
|
|
|
201918
202024
|
if (pi(s.extends, p))
|
|
201919
202025
|
return s.extends;
|
|
201920
202026
|
if (s.extends.type === d.BuiltInBaseEntity)
|
|
201921
|
-
return Yu(
|
|
202027
|
+
return Yu(
|
|
202028
|
+
s.extends,
|
|
202029
|
+
p
|
|
202030
|
+
);
|
|
201922
202031
|
}
|
|
201923
202032
|
return null;
|
|
201924
202033
|
}
|
|
@@ -201929,11 +202038,17 @@ function lCi(s, p) {
|
|
|
201929
202038
|
if (i.type === d.BuiltInBaseEntity) {
|
|
201930
202039
|
if (pi(i, p))
|
|
201931
202040
|
return i;
|
|
201932
|
-
const r = Yu(
|
|
202041
|
+
const r = Yu(
|
|
202042
|
+
i,
|
|
202043
|
+
p
|
|
202044
|
+
);
|
|
201933
202045
|
if (r)
|
|
201934
202046
|
return r;
|
|
201935
202047
|
} else if (i.type === d.DefinitionEntity) {
|
|
201936
|
-
const r = Yu(
|
|
202048
|
+
const r = Yu(
|
|
202049
|
+
i,
|
|
202050
|
+
p
|
|
202051
|
+
);
|
|
201937
202052
|
if (r)
|
|
201938
202053
|
return r;
|
|
201939
202054
|
}
|
|
@@ -201954,7 +202069,10 @@ function Yu(s, p) {
|
|
|
201954
202069
|
if (s.extends.name === p)
|
|
201955
202070
|
return s.extends;
|
|
201956
202071
|
if (s.extends.type === d.BuiltInBaseEntity)
|
|
201957
|
-
return Yu(
|
|
202072
|
+
return Yu(
|
|
202073
|
+
s.extends,
|
|
202074
|
+
p
|
|
202075
|
+
);
|
|
201958
202076
|
}
|
|
201959
202077
|
return null;
|
|
201960
202078
|
}
|
|
@@ -201965,11 +202083,17 @@ function Yu(s, p) {
|
|
|
201965
202083
|
if (i.type === d.BuiltInBaseEntity) {
|
|
201966
202084
|
if (i.name === p)
|
|
201967
202085
|
return i;
|
|
201968
|
-
const r = Yu(
|
|
202086
|
+
const r = Yu(
|
|
202087
|
+
i,
|
|
202088
|
+
p
|
|
202089
|
+
);
|
|
201969
202090
|
if (r)
|
|
201970
202091
|
return r;
|
|
201971
202092
|
} else if (i.type === d.DefinitionEntity) {
|
|
201972
|
-
const r = Yu(
|
|
202093
|
+
const r = Yu(
|
|
202094
|
+
i,
|
|
202095
|
+
p
|
|
202096
|
+
);
|
|
201973
202097
|
if (r)
|
|
201974
202098
|
return r;
|
|
201975
202099
|
}
|
|
@@ -202060,7 +202184,7 @@ function N5(s) {
|
|
|
202060
202184
|
}
|
|
202061
202185
|
function oCi(s) {
|
|
202062
202186
|
if ([
|
|
202063
|
-
...
|
|
202187
|
+
...Kt,
|
|
202064
202188
|
d.DefinitionEntity,
|
|
202065
202189
|
d.InstalledProject,
|
|
202066
202190
|
d.Project
|
|
@@ -202073,7 +202197,7 @@ function oCi(s) {
|
|
|
202073
202197
|
}
|
|
202074
202198
|
function P5(s) {
|
|
202075
202199
|
return [
|
|
202076
|
-
...
|
|
202200
|
+
...Kt,
|
|
202077
202201
|
d.DefinitionEntity,
|
|
202078
202202
|
d.InstalledProject,
|
|
202079
202203
|
d.Project
|
|
@@ -202171,7 +202295,7 @@ function R0(s) {
|
|
|
202171
202295
|
return null;
|
|
202172
202296
|
}
|
|
202173
202297
|
}
|
|
202174
|
-
function
|
|
202298
|
+
function Ft(s, p, i = null) {
|
|
202175
202299
|
const r = s != null && s.parent ? te(s == null ? void 0 : s.parent) : null;
|
|
202176
202300
|
let a = r ? p.get(r) : null, c = i || s;
|
|
202177
202301
|
if ((s == null ? void 0 : s.id) === (p == null ? void 0 : p.id))
|
|
@@ -202180,7 +202304,7 @@ function qt(s, p, i = null) {
|
|
|
202180
202304
|
return _n(s, p, c);
|
|
202181
202305
|
if (s.type === d.FunctionDeclaration && (a == null ? void 0 : a.type) === d.Loop)
|
|
202182
202306
|
return a;
|
|
202183
|
-
if (
|
|
202307
|
+
if (Kt.includes(s.type))
|
|
202184
202308
|
return s;
|
|
202185
202309
|
if (s.type === d.Loop)
|
|
202186
202310
|
return c.id === s.id ? a : s;
|
|
@@ -202194,9 +202318,9 @@ function qt(s, p, i = null) {
|
|
|
202194
202318
|
if (!f)
|
|
202195
202319
|
return null;
|
|
202196
202320
|
const h = p.get(f);
|
|
202197
|
-
return h ?
|
|
202321
|
+
return h ? Ft(h, p, c) : null;
|
|
202198
202322
|
} else
|
|
202199
|
-
return e === p ? p :
|
|
202323
|
+
return e === p ? p : Ft(e, p, c);
|
|
202200
202324
|
}
|
|
202201
202325
|
function _n(s, p, i = null) {
|
|
202202
202326
|
const r = s != null && s.parent ? te(s == null ? void 0 : s.parent) : null;
|
|
@@ -202207,7 +202331,7 @@ function _n(s, p, i = null) {
|
|
|
202207
202331
|
p,
|
|
202208
202332
|
c
|
|
202209
202333
|
);
|
|
202210
|
-
if (
|
|
202334
|
+
if (Kt.includes(s.type))
|
|
202211
202335
|
return s;
|
|
202212
202336
|
if (Ra.includes(s.type))
|
|
202213
202337
|
return null;
|
|
@@ -202219,7 +202343,11 @@ function _n(s, p, i = null) {
|
|
|
202219
202343
|
if (!f)
|
|
202220
202344
|
return null;
|
|
202221
202345
|
const h = p.get(f);
|
|
202222
|
-
return h ? _n(
|
|
202346
|
+
return h ? _n(
|
|
202347
|
+
h,
|
|
202348
|
+
p,
|
|
202349
|
+
c
|
|
202350
|
+
) : null;
|
|
202223
202351
|
} else
|
|
202224
202352
|
return e === p ? p : _n(e, p, c);
|
|
202225
202353
|
}
|
|
@@ -202245,11 +202373,11 @@ function ud(s, p) {
|
|
|
202245
202373
|
function as(s, p, i) {
|
|
202246
202374
|
if (s === p || p === i || s === i || !s || !p)
|
|
202247
202375
|
return !1;
|
|
202248
|
-
const r =
|
|
202376
|
+
const r = Ft(
|
|
202249
202377
|
p.parent,
|
|
202250
202378
|
i
|
|
202251
202379
|
);
|
|
202252
|
-
return r === i ? !1 : r === s ? !0 : as(
|
|
202380
|
+
return r === i ? !1 : r === s ? !0 : as(s, r, i);
|
|
202253
202381
|
}
|
|
202254
202382
|
var YA = /* @__PURE__ */ ((s) => (s.SameBothLocal = "same-both-local", s.AInB = "a-in-b", s.BInA = "b-in-a", s.ParallelInCommonParent = "parallel-in-common-parent", s.ParallelInProject = "parallel-in-project", s.AIsGlobalBIsNot = "a-is-global-b-is-not", s.BIsGlobalAIsNot = "b-is-global-a-is-not", s.SameBothGlobal = "same-both-global", s))(YA || {});
|
|
202255
202383
|
function Ns(s, p, i) {
|
|
@@ -202283,7 +202411,7 @@ function Ns(s, p, i) {
|
|
|
202283
202411
|
commonAncestorScope: p
|
|
202284
202412
|
};
|
|
202285
202413
|
}
|
|
202286
|
-
const r =
|
|
202414
|
+
const r = Ft(s, i), a = Ft(p, i);
|
|
202287
202415
|
if ((s == null ? void 0 : s.id) === (a == null ? void 0 : a.id))
|
|
202288
202416
|
return {
|
|
202289
202417
|
compatible: !0,
|
|
@@ -202297,9 +202425,13 @@ function Ns(s, p, i) {
|
|
|
202297
202425
|
commonAncestorScope: p
|
|
202298
202426
|
};
|
|
202299
202427
|
if (!r)
|
|
202300
|
-
throw new Error(
|
|
202428
|
+
throw new Error(
|
|
202429
|
+
"Could not find scope owner for the entity: " + s.id
|
|
202430
|
+
);
|
|
202301
202431
|
if (!a)
|
|
202302
|
-
throw new Error(
|
|
202432
|
+
throw new Error(
|
|
202433
|
+
"Could not find scope owner for the entity: " + p.id
|
|
202434
|
+
);
|
|
202303
202435
|
if (r === a && r.type !== d.Project)
|
|
202304
202436
|
return {
|
|
202305
202437
|
compatible: !0,
|
|
@@ -202344,7 +202476,7 @@ function Ns(s, p, i) {
|
|
|
202344
202476
|
} : f ? {
|
|
202345
202477
|
compatible: !1,
|
|
202346
202478
|
type: "parallel-in-common-parent",
|
|
202347
|
-
commonAncestorScope:
|
|
202479
|
+
commonAncestorScope: Ft(
|
|
202348
202480
|
f,
|
|
202349
202481
|
i
|
|
202350
202482
|
)
|
|
@@ -202364,7 +202496,7 @@ function pCi(s, p, i) {
|
|
|
202364
202496
|
return null;
|
|
202365
202497
|
if (s === p)
|
|
202366
202498
|
return s;
|
|
202367
|
-
let a =
|
|
202499
|
+
let a = Ft(s.parent, i);
|
|
202368
202500
|
if (a) {
|
|
202369
202501
|
if (a === p)
|
|
202370
202502
|
return p;
|
|
@@ -202380,12 +202512,12 @@ function pCi(s, p, i) {
|
|
|
202380
202512
|
return s;
|
|
202381
202513
|
} else
|
|
202382
202514
|
return s;
|
|
202383
|
-
a =
|
|
202515
|
+
a = Ft(
|
|
202384
202516
|
a.parent,
|
|
202385
202517
|
i
|
|
202386
202518
|
);
|
|
202387
202519
|
}
|
|
202388
|
-
let c =
|
|
202520
|
+
let c = Ft(p.parent, i);
|
|
202389
202521
|
if (c) {
|
|
202390
202522
|
if (c === s)
|
|
202391
202523
|
return s;
|
|
@@ -202401,7 +202533,7 @@ function pCi(s, p, i) {
|
|
|
202401
202533
|
return p;
|
|
202402
202534
|
} else
|
|
202403
202535
|
return p;
|
|
202404
|
-
c =
|
|
202536
|
+
c = Ft(
|
|
202405
202537
|
c.parent,
|
|
202406
202538
|
i
|
|
202407
202539
|
);
|
|
@@ -202410,7 +202542,11 @@ function pCi(s, p, i) {
|
|
|
202410
202542
|
}
|
|
202411
202543
|
function cCi(s) {
|
|
202412
202544
|
return s.length === 0 ? null : s.length === 1 ? s[0] : s.reduce((i, r) => {
|
|
202413
|
-
const a = pCi(
|
|
202545
|
+
const a = pCi(
|
|
202546
|
+
i,
|
|
202547
|
+
r,
|
|
202548
|
+
r.project
|
|
202549
|
+
);
|
|
202414
202550
|
return !a || a === r ? i : r;
|
|
202415
202551
|
}, s[0]);
|
|
202416
202552
|
}
|
|
@@ -202852,25 +202988,47 @@ function QA(s) {
|
|
|
202852
202988
|
return !0;
|
|
202853
202989
|
}
|
|
202854
202990
|
function iSi(s, p, i) {
|
|
202855
|
-
const r =
|
|
202856
|
-
|
|
202857
|
-
|
|
202858
|
-
|
|
202859
|
-
|
|
202991
|
+
const r = [];
|
|
202992
|
+
if (i) {
|
|
202993
|
+
const a = Ft(
|
|
202994
|
+
i,
|
|
202995
|
+
s
|
|
202996
|
+
);
|
|
202997
|
+
console.log(
|
|
202998
|
+
`Own "${pe(i, s)}" from ${a == null ? void 0 : a.type} "${pe(a, s)}"
|
|
202999
|
+
`
|
|
203000
|
+
);
|
|
203001
|
+
}
|
|
203002
|
+
return p.forEach((a) => {
|
|
203003
|
+
var c;
|
|
203004
|
+
if (i) {
|
|
203005
|
+
if (a.id === i.id) {
|
|
203006
|
+
r.push(a);
|
|
203007
|
+
return;
|
|
203008
|
+
}
|
|
203009
|
+
const e = Ns(
|
|
203010
|
+
i,
|
|
202860
203011
|
a,
|
|
202861
|
-
f,
|
|
202862
203012
|
s
|
|
202863
|
-
)
|
|
202864
|
-
|
|
202865
|
-
|
|
203013
|
+
), f = Ft(
|
|
203014
|
+
a,
|
|
203015
|
+
s
|
|
203016
|
+
), h = {
|
|
203017
|
+
...e
|
|
203018
|
+
};
|
|
203019
|
+
if (delete h.commonAncestorScope, console.log(
|
|
203020
|
+
`For "${pe(a, s)}" from ${f == null ? void 0 : f.type} "${pe(f, s)}": `,
|
|
203021
|
+
h
|
|
203022
|
+
), e.compatible)
|
|
203023
|
+
r.push(a);
|
|
203024
|
+
else
|
|
202866
203025
|
return;
|
|
202867
|
-
e.push(f);
|
|
202868
203026
|
} else {
|
|
202869
|
-
if (((
|
|
203027
|
+
if (((c = a.parent) == null ? void 0 : c.type) !== d.Project)
|
|
202870
203028
|
return;
|
|
202871
|
-
|
|
203029
|
+
r.push(a);
|
|
202872
203030
|
}
|
|
202873
|
-
}), C(
|
|
203031
|
+
}), C(r);
|
|
202874
203032
|
}
|
|
202875
203033
|
function M4(s, p) {
|
|
202876
203034
|
var i, r, a, c;
|
|
@@ -202994,10 +203152,7 @@ function aSi(s, p) {
|
|
|
202994
203152
|
);
|
|
202995
203153
|
if (!c || c.id !== a.id) {
|
|
202996
203154
|
if (_t.includes(a.type))
|
|
202997
|
-
return a.addSuccessCall(
|
|
202998
|
-
r,
|
|
202999
|
-
p
|
|
203000
|
-
), r.addSuccessCaller(
|
|
203155
|
+
return a.addSuccessCall(r, p), r.addSuccessCaller(
|
|
203001
203156
|
a,
|
|
203002
203157
|
p,
|
|
203003
203158
|
!0
|
|
@@ -203005,7 +203160,7 @@ function aSi(s, p) {
|
|
|
203005
203160
|
valid: i,
|
|
203006
203161
|
newCallerEntity: a
|
|
203007
203162
|
};
|
|
203008
|
-
if (
|
|
203163
|
+
if (Kt.includes(a.type))
|
|
203009
203164
|
return a.addCall(
|
|
203010
203165
|
r,
|
|
203011
203166
|
p
|
|
@@ -203020,10 +203175,12 @@ function aSi(s, p) {
|
|
|
203020
203175
|
}
|
|
203021
203176
|
function gT(s) {
|
|
203022
203177
|
const p = [];
|
|
203023
|
-
return Ct.includes(s.type) ? (p.push(...s.outputs), s.throws && p.push(
|
|
203024
|
-
|
|
203025
|
-
|
|
203026
|
-
|
|
203178
|
+
return Ct.includes(s.type) ? (p.push(...s.outputs), s.throws && p.push(
|
|
203179
|
+
s.throws
|
|
203180
|
+
), p) : _t.includes(s.type) ? (p.push(
|
|
203181
|
+
...s.inputs.flatMap(
|
|
203182
|
+
(i) => [i]
|
|
203183
|
+
)
|
|
203027
203184
|
), s.type === d.Condition && p.push(
|
|
203028
203185
|
...(s.andChildrenGroup || []).flatMap(
|
|
203029
203186
|
(i) => gT(i)
|
|
@@ -203035,7 +203192,9 @@ function gT(s) {
|
|
|
203035
203192
|
...s.internalCalls.flatMap(
|
|
203036
203193
|
(i) => gT(i)
|
|
203037
203194
|
)
|
|
203038
|
-
), p.push(s)), C(
|
|
203195
|
+
), p.push(s)), C(
|
|
203196
|
+
p
|
|
203197
|
+
)) : [];
|
|
203039
203198
|
}
|
|
203040
203199
|
function UC(s) {
|
|
203041
203200
|
const p = [];
|
|
@@ -203043,7 +203202,7 @@ function UC(s) {
|
|
|
203043
203202
|
...s.internalCalls.flatMap(
|
|
203044
203203
|
(i) => UC(i)
|
|
203045
203204
|
)
|
|
203046
|
-
), p.push(s)), p) :
|
|
203205
|
+
), p.push(s)), p) : Kt.includes(s.type) ? (p.push(...s.inputs), p) : [];
|
|
203047
203206
|
}
|
|
203048
203207
|
async function ACi(s, p = {}) {
|
|
203049
203208
|
const i = Se.from(p), r = [];
|
|
@@ -203085,13 +203244,15 @@ async function k4(s, p, i) {
|
|
|
203085
203244
|
m
|
|
203086
203245
|
).find((E) => E.id === s.id)));
|
|
203087
203246
|
for (const e of c)
|
|
203088
|
-
if (
|
|
203089
|
-
e.removeCall(s, p), s.removeCaller(e, p), await r.onCallRemoved(
|
|
203247
|
+
if (Kt.includes(e.type))
|
|
203248
|
+
e.removeCall(s, p), s.removeCaller(e, p), await r.onCallRemoved(
|
|
203249
|
+
e,
|
|
203250
|
+
s,
|
|
203251
|
+
"entry"
|
|
203252
|
+
);
|
|
203090
203253
|
else if (_t.includes(e.type)) {
|
|
203091
203254
|
let f = "success";
|
|
203092
|
-
e.errorCalls.includes(
|
|
203093
|
-
s
|
|
203094
|
-
) && (f = "error"), e.removeCall(
|
|
203255
|
+
e.errorCalls.includes(s) && (f = "error"), e.removeCall(
|
|
203095
203256
|
s,
|
|
203096
203257
|
p
|
|
203097
203258
|
), s.removeCaller(e, p, !0), await r.onCallRemoved(
|
|
@@ -220358,7 +220519,7 @@ export {
|
|
|
220358
220519
|
_3i as ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES,
|
|
220359
220520
|
KC as ENTITY_WITH_VALUE_TYPES,
|
|
220360
220521
|
g1 as ENTRY_POINT_ENTITIES_EXPLANATION,
|
|
220361
|
-
|
|
220522
|
+
Kt as ENTRY_POINT_TYPES,
|
|
220362
220523
|
ID as ERROR_PROPERTY_HEIGHT,
|
|
220363
220524
|
op as EVENT_TYPES,
|
|
220364
220525
|
FC as EXECUTABLE_TYPES,
|
|
@@ -221833,7 +221994,7 @@ export {
|
|
|
221833
221994
|
EV as getRelationalDBInstanceNameFromEntityId,
|
|
221834
221995
|
ud as getRootEntryPointScopeOwner,
|
|
221835
221996
|
xZi as getRootExternalIntegrationFromAlias,
|
|
221836
|
-
|
|
221997
|
+
Ft as getScopeOwner,
|
|
221837
221998
|
ffi as getSecond,
|
|
221838
221999
|
lxt as getSecondDateArg,
|
|
221839
222000
|
sxt as getSecondDateDT,
|