angles-javascript-client 1.0.45 → 1.0.47
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/README.md +14 -0
- package/dist/lib/AnglesReporter.d.ts +16 -0
- package/dist/lib/AnglesReporter.js +40 -0
- package/dist/lib/AnglesReporter.js.map +1 -1
- package/dist/lib/models/requests/CompareOptions.d.ts +8 -0
- package/dist/lib/models/requests/CompareOptions.js +7 -0
- package/dist/lib/models/requests/CompareOptions.js.map +1 -0
- package/dist/lib/models/response/ImageCompareResponse.d.ts +16 -0
- package/dist/lib/models/response/ImageCompareResponse.js +4 -1
- package/dist/lib/models/response/ImageCompareResponse.js.map +1 -1
- package/dist/lib/requests/BuildRequests.d.ts +10 -0
- package/dist/lib/requests/BuildRequests.js +17 -0
- package/dist/lib/requests/BuildRequests.js.map +1 -1
- package/dist/lib/requests/ScreenshotRequests.d.ts +12 -2
- package/dist/lib/requests/ScreenshotRequests.js +24 -6
- package/dist/lib/requests/ScreenshotRequests.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,20 @@ await anglesReporter.saveTest();
|
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
### Batch mode
|
|
57
|
+
By default every call to `saveTest()` sends the test execution to the Angles API straight away. If you'd rather send the whole test run in a single request at the end (e.g. for large runs), you can enable batch mode. The build is still created up-front and screenshots are still uploaded individually as the tests run (they need the build id), but the executions are gathered by the reporter until you call `saveAllTests()`.
|
|
58
|
+
|
|
59
|
+
``` javascript
|
|
60
|
+
anglesReporter.setBatchMode(true);
|
|
61
|
+
await anglesReporter.startBuild('TestRunName', 'Team', 'Environment', 'Component');
|
|
62
|
+
|
|
63
|
+
// run your tests as usual: startTest(), saveScreenshot(), pass()/fail() and saveTest()
|
|
64
|
+
// saveTest() now stores the executions in the reporter rather than sending them.
|
|
65
|
+
|
|
66
|
+
// once all tests are done, store all the executions against the build in one request.
|
|
67
|
+
await anglesReporter.saveAllTests();
|
|
68
|
+
```
|
|
69
|
+
|
|
56
70
|
If you want to create your own reporter, you can instantiate the request classes yourself.
|
|
57
71
|
```javascript
|
|
58
72
|
|
|
@@ -23,6 +23,8 @@ export declare class AnglesReporterClass {
|
|
|
23
23
|
private currentBuild;
|
|
24
24
|
private currentExecution;
|
|
25
25
|
private currentAction;
|
|
26
|
+
private batchMode;
|
|
27
|
+
private batchedExecutions;
|
|
26
28
|
private apiConfig;
|
|
27
29
|
constructor();
|
|
28
30
|
setBaseUrl(baseUrl: string): void;
|
|
@@ -32,6 +34,15 @@ export declare class AnglesReporterClass {
|
|
|
32
34
|
* @param apiKey
|
|
33
35
|
*/
|
|
34
36
|
setApiKey(apiKey: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* When batch mode is enabled, saveTest() no longer sends each test execution to the Angles
|
|
39
|
+
* API individually, but stores them in the reporter instead. Once all tests are done, call
|
|
40
|
+
* saveAllTests() to store all the executions against the current build in a single request.
|
|
41
|
+
* Screenshots are always uploaded individually (they need the build id), so they can still
|
|
42
|
+
* be saved as the tests run.
|
|
43
|
+
* @param batchMode
|
|
44
|
+
*/
|
|
45
|
+
setBatchMode(batchMode: boolean): void;
|
|
35
46
|
/**
|
|
36
47
|
* If the current build at a seperate point, then you can set it again by calling this function.
|
|
37
48
|
* @param buildId
|
|
@@ -51,6 +62,11 @@ export declare class AnglesReporterClass {
|
|
|
51
62
|
updateTestName(title: string, suite: string): void;
|
|
52
63
|
storePlatformDetails(platform: Platform): void;
|
|
53
64
|
saveTest(): Promise<Execution>;
|
|
65
|
+
/**
|
|
66
|
+
* Stores all the test executions gathered by saveTest() whilst in batch mode against the
|
|
67
|
+
* current build in a single request. Call this once at the end of the test run.
|
|
68
|
+
*/
|
|
69
|
+
saveAllTests(): Promise<Build>;
|
|
54
70
|
saveScreenshot(filePath: string, view: string, tags: string[]): Promise<Screenshot>;
|
|
55
71
|
saveScreenshotWithPlatform(filePath: string, view: string, tags: string[], platform: ScreenshotPlatform): Promise<Screenshot>;
|
|
56
72
|
compareScreenshotAgainstBaseline(screenshotId: string): Promise<ImageCompareResponse>;
|
|
@@ -19,6 +19,8 @@ const StepStates_1 = require("./models/enum/StepStates");
|
|
|
19
19
|
const Step_1 = require("./models/Step");
|
|
20
20
|
class AnglesReporterClass {
|
|
21
21
|
constructor() {
|
|
22
|
+
this.batchMode = false;
|
|
23
|
+
this.batchedExecutions = [];
|
|
22
24
|
this.apiConfig = {
|
|
23
25
|
returnRejectedPromiseOnError: true,
|
|
24
26
|
timeout: 10000,
|
|
@@ -49,6 +51,17 @@ class AnglesReporterClass {
|
|
|
49
51
|
this.apiConfig.headers.common['x-api-key'] = apiKey;
|
|
50
52
|
this.instantiateAxios();
|
|
51
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* When batch mode is enabled, saveTest() no longer sends each test execution to the Angles
|
|
56
|
+
* API individually, but stores them in the reporter instead. Once all tests are done, call
|
|
57
|
+
* saveAllTests() to store all the executions against the current build in a single request.
|
|
58
|
+
* Screenshots are always uploaded individually (they need the build id), so they can still
|
|
59
|
+
* be saved as the tests run.
|
|
60
|
+
* @param batchMode
|
|
61
|
+
*/
|
|
62
|
+
setBatchMode(batchMode) {
|
|
63
|
+
this.batchMode = batchMode;
|
|
64
|
+
}
|
|
52
65
|
/**
|
|
53
66
|
* If the current build at a seperate point, then you can set it again by calling this function.
|
|
54
67
|
* @param buildId
|
|
@@ -126,8 +139,35 @@ class AnglesReporterClass {
|
|
|
126
139
|
}
|
|
127
140
|
}
|
|
128
141
|
saveTest() {
|
|
142
|
+
if (this.batchMode) {
|
|
143
|
+
this.batchedExecutions.push(this.currentExecution);
|
|
144
|
+
return Promise.resolve(null);
|
|
145
|
+
}
|
|
129
146
|
return this.executions.saveExecution(this.currentExecution);
|
|
130
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Stores all the test executions gathered by saveTest() whilst in batch mode against the
|
|
150
|
+
* current build in a single request. Call this once at the end of the test run.
|
|
151
|
+
*/
|
|
152
|
+
saveAllTests() {
|
|
153
|
+
if (this.batchedExecutions.length === 0) {
|
|
154
|
+
return Promise.resolve(this.currentBuild);
|
|
155
|
+
}
|
|
156
|
+
const executions = this.batchedExecutions;
|
|
157
|
+
this.batchedExecutions = [];
|
|
158
|
+
return new Promise((resolve, reject) => {
|
|
159
|
+
this.builds.addExecutions(this.currentBuild._id, executions)
|
|
160
|
+
.then((updatedBuild) => {
|
|
161
|
+
this.currentBuild = updatedBuild;
|
|
162
|
+
resolve(updatedBuild);
|
|
163
|
+
})
|
|
164
|
+
.catch((error) => {
|
|
165
|
+
// put the executions back so a retry of saveAllTests() doesn't lose them
|
|
166
|
+
this.batchedExecutions = executions.concat(this.batchedExecutions);
|
|
167
|
+
reject(error);
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
}
|
|
131
171
|
saveScreenshot(filePath, view, tags) {
|
|
132
172
|
return this.saveScreenshotWithPlatform(filePath, view, tags, undefined);
|
|
133
173
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnglesReporter.js","sourceRoot":"","sources":["../../src/lib/AnglesReporter.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuD;AACvD,0DAAuD;AACvD,wEAAqE;AACrE,4DAAyD;AACzD,oEAAiE;AACjE,sEAAmE;AACnE,0CAAuC;AACvC,uEAAoE;AACpE,4CAAyC;AACzC,+DAA4D;AAG5D,uEAAoE;AACpE,yDAAsD;AACtD,wCAAqC;AAMrC,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"AnglesReporter.js","sourceRoot":"","sources":["../../src/lib/AnglesReporter.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuD;AACvD,0DAAuD;AACvD,wEAAqE;AACrE,4DAAyD;AACzD,oEAAiE;AACjE,sEAAmE;AACnE,0CAAuC;AACvC,uEAAoE;AACpE,4CAAyC;AACzC,+DAA4D;AAG5D,uEAAoE;AACpE,yDAAsD;AACtD,wCAAqC;AAMr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-pixel colour-distance threshold (0-1, pixel algorithm only). Defaults to 0.5. */
|
|
5
|
+
threshold?: number;
|
|
6
|
+
/** When true (pixel algorithm only), changed pixels are clustered into regions. */
|
|
7
|
+
regions?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareOptions.js","sourceRoot":"","sources":["../../../../src/lib/models/requests/CompareOptions.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;CAO1B;AAPD,wCAOC"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
export declare class DiffRegion {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
/** Number of changed pixels inside the region. */
|
|
7
|
+
pixels: number;
|
|
8
|
+
}
|
|
1
9
|
export declare class ImageCompareResponse {
|
|
10
|
+
/** Algorithm that produced this result: 'pixel', 'ssim', or 'phash'. */
|
|
11
|
+
algorithm?: string;
|
|
2
12
|
isSameDimensions: boolean;
|
|
3
13
|
rawMisMatchPercentage: number;
|
|
4
14
|
misMatchPercentage: number;
|
|
5
15
|
analysisTime: number;
|
|
16
|
+
/** SSIM score in [-1, 1] (1 = identical); present when algorithm is 'ssim'. */
|
|
17
|
+
ssim?: number;
|
|
18
|
+
/** Normalised perceptual-hash distance (0-1); present when algorithm is 'phash'. */
|
|
19
|
+
distance?: number;
|
|
20
|
+
/** Clustered change regions; present when requested with regions=true (pixel only). */
|
|
21
|
+
regions?: DiffRegion[];
|
|
6
22
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageCompareResponse = void 0;
|
|
3
|
+
exports.ImageCompareResponse = exports.DiffRegion = void 0;
|
|
4
|
+
class DiffRegion {
|
|
5
|
+
}
|
|
6
|
+
exports.DiffRegion = DiffRegion;
|
|
4
7
|
class ImageCompareResponse {
|
|
5
8
|
}
|
|
6
9
|
exports.ImageCompareResponse = ImageCompareResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCompareResponse.js","sourceRoot":"","sources":["../../../../src/lib/models/response/ImageCompareResponse.ts"],"names":[],"mappings":";;;AAAA,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"ImageCompareResponse.js","sourceRoot":"","sources":["../../../../src/lib/models/response/ImageCompareResponse.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;CAOtB;AAPD,gCAOC;AAED,MAAa,oBAAoB;CAahC;AAbD,oDAaC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
2
|
import { BaseRequests } from './BaseRequests';
|
|
3
3
|
import { CreateBuild } from '../models/requests/CreateBuild';
|
|
4
|
+
import { CreateExecution } from '../models/requests/CreateExecution';
|
|
4
5
|
import { Build } from '../models/Build';
|
|
5
6
|
import { Artifact } from '../models/Artifact';
|
|
6
7
|
import { BuildsResponse } from '../models/response/BuildsResponse';
|
|
@@ -32,5 +33,14 @@ export declare class BuildRequests extends BaseRequests {
|
|
|
32
33
|
getBuildReport(buildId: string): Promise<AxiosResponse>;
|
|
33
34
|
deleteBuild(buildId: string): Promise<DefaultResponse>;
|
|
34
35
|
setKeep(buildId: string, keep: boolean): Promise<Build>;
|
|
36
|
+
/**
|
|
37
|
+
* Stores all the given test executions against an existing build in a single call.
|
|
38
|
+
* Executions are grouped into suites by their suite name and the build metrics are
|
|
39
|
+
* recalculated by the Angles API.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} buildId - id of the build to add the executions to.
|
|
42
|
+
* @param {CreateExecution[]} executions - the executions to store against the build.
|
|
43
|
+
*/
|
|
44
|
+
addExecutions(buildId: string, executions: CreateExecution[]): Promise<Build>;
|
|
35
45
|
addArtifacts(buildId: string, artifacts: Artifact[]): Promise<Build>;
|
|
36
46
|
}
|
|
@@ -92,6 +92,23 @@ class BuildRequests extends BaseRequests_1.BaseRequests {
|
|
|
92
92
|
setKeep(buildId, keep) {
|
|
93
93
|
return this.put(`build/${buildId}/keep`, { keep });
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Stores all the given test executions against an existing build in a single call.
|
|
97
|
+
* Executions are grouped into suites by their suite name and the build metrics are
|
|
98
|
+
* recalculated by the Angles API.
|
|
99
|
+
*
|
|
100
|
+
* @param {string} buildId - id of the build to add the executions to.
|
|
101
|
+
* @param {CreateExecution[]} executions - the executions to store against the build.
|
|
102
|
+
*/
|
|
103
|
+
addExecutions(buildId, executions) {
|
|
104
|
+
return this.put(`build/${buildId}/executions`, {
|
|
105
|
+
executions,
|
|
106
|
+
}, {
|
|
107
|
+
headers: {
|
|
108
|
+
'Content-Type': 'application/json',
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
95
112
|
addArtifacts(buildId, artifacts) {
|
|
96
113
|
return this.put(`build/${buildId}/artifacts`, {
|
|
97
114
|
artifacts,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/BuildRequests.ts"],"names":[],"mappings":";;;;;;AACA,iDAA8C;
|
|
1
|
+
{"version":3,"file":"BuildRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/BuildRequests.ts"],"names":[],"mappings":";;;;;;AACA,iDAA8C;AAO9C,oDAA4B;AAE5B,MAAa,aAAc,SAAQ,2BAAY;IAE7C,YAAmB,aAA4B;QAC7C,KAAK,CAAC,aAAa,CAAC,CAAC;IACvB,CAAC;IAEM,WAAW,CAAC,OAAoB;QACrC,OAAO,IAAI,CAAC,IAAI,CAAQ,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,MAAa,EAAE,QAAkB,EAAE,sBAA+B;QACjF,IAAI,WAAW,GAAG,iBAAiB,MAAM,EAAE,CAAC;QAC5C,IAAI,QAAQ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EAC5B;YACE,SAAS;SACV,EACD;YACE,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CACF,CAAC;IACJ,CAAC;CAEF;AA/ID,sCA+IC"}
|
|
@@ -5,6 +5,7 @@ import { StoreScreenshot } from '../models/requests/StoreScreenshot';
|
|
|
5
5
|
import { ImageCompareResponse } from '../models/response/ImageCompareResponse';
|
|
6
6
|
import { ImageFindResponse } from '../models/response/ImageFindResponse';
|
|
7
7
|
import { FindImageOptions } from '../models/requests/FindImageOptions';
|
|
8
|
+
import { CompareOptions } from '../models/requests/CompareOptions';
|
|
8
9
|
import { DefaultResponse } from "../models/response/DefaultResponse";
|
|
9
10
|
export declare class ScreenshotRequests extends BaseRequests {
|
|
10
11
|
constructor(axiosInstance: AxiosInstance);
|
|
@@ -25,8 +26,17 @@ export declare class ScreenshotRequests extends BaseRequests {
|
|
|
25
26
|
deleteScreenshot(screenshotId: string): Promise<DefaultResponse>;
|
|
26
27
|
getScreenshotImage(screenshotId: string): Promise<AxiosResponse>;
|
|
27
28
|
getDynamicBaselineImage(screenshotId: string, numberOfImagesToCompare: number): Promise<Screenshot>;
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Compares two stored screenshots and returns the comparison statistics.
|
|
31
|
+
* @param {CompareOptions} [options] - algorithm/threshold/regions
|
|
32
|
+
*/
|
|
33
|
+
compareScreenshots(screenshotId: string, screenshotCompareId: string, options?: CompareOptions): Promise<ImageCompareResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Compares two stored screenshots and resolves with the diff image.
|
|
36
|
+
*/
|
|
37
|
+
compareScreenshotsImage(screenshotId: string, screenshotCompareId: string, cache?: boolean, options?: CompareOptions): Promise<AxiosResponse>;
|
|
38
|
+
getBaselineCompareImage(screenshotId: string, cache: boolean, options?: CompareOptions): Promise<AxiosResponse>;
|
|
39
|
+
getBaselineCompare(screenshotId: string, options?: CompareOptions): Promise<ImageCompareResponse>;
|
|
30
40
|
/**
|
|
31
41
|
* Finds a stored screenshot (the template) within another stored screenshot using
|
|
32
42
|
* multi-scale template matching, and returns the matched region(s).
|
|
@@ -107,17 +107,35 @@ class ScreenshotRequests extends BaseRequests_1.BaseRequests {
|
|
|
107
107
|
}
|
|
108
108
|
return this.get(path);
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Compares two stored screenshots and returns the comparison statistics.
|
|
112
|
+
* @param {CompareOptions} [options] - algorithm/threshold/regions
|
|
113
|
+
*/
|
|
114
|
+
compareScreenshots(screenshotId, screenshotCompareId, options) {
|
|
115
|
+
return this.get(`screenshot/${screenshotId}/compare/${screenshotCompareId}`, {
|
|
116
|
+
params: options,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Compares two stored screenshots and resolves with the diff image.
|
|
121
|
+
*/
|
|
122
|
+
compareScreenshotsImage(screenshotId, screenshotCompareId, cache, options) {
|
|
123
|
+
return this.get(`screenshot/${screenshotId}/compare/${screenshotCompareId}/image`, {
|
|
124
|
+
params: Object.assign({ useCache: cache || false }, options),
|
|
125
|
+
responseType: 'arraybuffer',
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
getBaselineCompareImage(screenshotId, cache, options) {
|
|
113
129
|
const useCache = cache || false;
|
|
114
130
|
return this.get(`screenshot/${screenshotId}/baseline/compare/image/`, {
|
|
115
|
-
params: { useCache },
|
|
131
|
+
params: Object.assign({ useCache }, options),
|
|
116
132
|
responseType: 'arraybuffer'
|
|
117
133
|
});
|
|
118
134
|
}
|
|
119
|
-
getBaselineCompare(screenshotId) {
|
|
120
|
-
return this.get(`screenshot/${screenshotId}/baseline/compare
|
|
135
|
+
getBaselineCompare(screenshotId, options) {
|
|
136
|
+
return this.get(`screenshot/${screenshotId}/baseline/compare/`, {
|
|
137
|
+
params: options,
|
|
138
|
+
});
|
|
121
139
|
}
|
|
122
140
|
/**
|
|
123
141
|
* Finds a stored screenshot (the template) within another stored screenshot using
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenshotRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/ScreenshotRequests.ts"],"names":[],"mappings":";;;;;;AACA,0DAAiC;AACjC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"ScreenshotRequests.js","sourceRoot":"","sources":["../../../src/lib/requests/ScreenshotRequests.ts"],"names":[],"mappings":";;;;;;AACA,0DAAiC;AACjC,iDAA8C;AAS9C,MAAa,kBAAmB,SAAQ,2BAAY;IAElD,YAAmB,aAA4B;QAC7C,KAAK,CAAC,aAAa,CAAC,CAAC;IACvB,CAAC;IAEM,cAAc,CAAC,eAAgC;QACpD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAC;QAChC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAG,QAAQ,EAAE,GAAG,eAAe,CAAC;QACtE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9B,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;QACtD,IAAI,IAAI;YAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QACxD,IAAI,QAAQ,EAAE;YACZ,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;gBAChD,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC,C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