@terafina/tffa-sfdx-plugin 0.1.2 → 1.0.3
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 +7 -0
- package/assets/favicon.png +0 -0
- package/assets/highlight.css +68 -0
- package/assets/highlight.js +2801 -0
- package/assets/icon.png +0 -0
- package/assets/index.css +447 -0
- package/assets/index.js +411 -0
- package/assets/logo.png +0 -0
- package/assets/lunr.js +3471 -0
- package/assets/mark.js +13 -0
- package/assets/menu.js +34 -0
- package/assets/search.js +98 -0
- package/lib/apexdoc/common/apex-docs-error.d.ts +23 -0
- package/lib/apexdoc/common/apex-docs-error.js +28 -0
- package/lib/apexdoc/common/apex-docs-error.js.map +1 -0
- package/lib/apexdoc/common/array-utils.d.ts +9 -0
- package/lib/apexdoc/common/array-utils.js +36 -0
- package/lib/apexdoc/common/array-utils.js.map +1 -0
- package/lib/apexdoc/common/line-reader.d.ts +40 -0
- package/lib/apexdoc/common/line-reader.js +92 -0
- package/lib/apexdoc/common/line-reader.js.map +1 -0
- package/lib/apexdoc/common/models/apex-model.d.ts +51 -0
- package/lib/apexdoc/common/models/apex-model.js +264 -0
- package/lib/apexdoc/common/models/apex-model.js.map +1 -0
- package/lib/apexdoc/common/models/class-group.d.ts +10 -0
- package/lib/apexdoc/common/models/class-group.js +32 -0
- package/lib/apexdoc/common/models/class-group.js.map +1 -0
- package/lib/apexdoc/common/models/class-model.d.ts +38 -0
- package/lib/apexdoc/common/models/class-model.js +216 -0
- package/lib/apexdoc/common/models/class-model.js.map +1 -0
- package/lib/apexdoc/common/models/engine-config.d.ts +21 -0
- package/lib/apexdoc/common/models/engine-config.js +29 -0
- package/lib/apexdoc/common/models/engine-config.js.map +1 -0
- package/lib/apexdoc/common/models/enum-model.d.ts +15 -0
- package/lib/apexdoc/common/models/enum-model.js +47 -0
- package/lib/apexdoc/common/models/enum-model.js.map +1 -0
- package/lib/apexdoc/common/models/index.d.ts +10 -0
- package/lib/apexdoc/common/models/index.js +14 -0
- package/lib/apexdoc/common/models/index.js.map +1 -0
- package/lib/apexdoc/common/models/method-model.d.ts +26 -0
- package/lib/apexdoc/common/models/method-model.js +309 -0
- package/lib/apexdoc/common/models/method-model.js.map +1 -0
- package/lib/apexdoc/common/models/property-model.d.ts +12 -0
- package/lib/apexdoc/common/models/property-model.js +47 -0
- package/lib/apexdoc/common/models/property-model.js.map +1 -0
- package/lib/apexdoc/common/models/top-level-model.d.ts +19 -0
- package/lib/apexdoc/common/models/top-level-model.js +32 -0
- package/lib/apexdoc/common/models/top-level-model.js.map +1 -0
- package/lib/apexdoc/common/settings.d.ts +55 -0
- package/lib/apexdoc/common/settings.js +124 -0
- package/lib/apexdoc/common/settings.js.map +1 -0
- package/lib/apexdoc/common/tags.d.ts +22 -0
- package/lib/apexdoc/common/tags.js +168 -0
- package/lib/apexdoc/common/tags.js.map +1 -0
- package/lib/apexdoc/common/utils.d.ts +38 -0
- package/lib/apexdoc/common/utils.js +198 -0
- package/lib/apexdoc/common/utils.js.map +1 -0
- package/lib/apexdoc/common/validator-engine.d.ts +24 -0
- package/lib/apexdoc/common/validator-engine.js +162 -0
- package/lib/apexdoc/common/validator-engine.js.map +1 -0
- package/lib/apexdoc/common/validator.d.ts +16 -0
- package/lib/apexdoc/common/validator.js +35 -0
- package/lib/apexdoc/common/validator.js.map +1 -0
- package/lib/apexdoc/engine/file-manager.d.ts +52 -0
- package/lib/apexdoc/engine/file-manager.js +390 -0
- package/lib/apexdoc/engine/file-manager.js.map +1 -0
- package/lib/apexdoc/engine/generators/generator-utils.d.ts +12 -0
- package/lib/apexdoc/engine/generators/generator-utils.js +100 -0
- package/lib/apexdoc/engine/generators/generator-utils.js.map +1 -0
- package/lib/apexdoc/engine/generators/menu-generator.d.ts +9 -0
- package/lib/apexdoc/engine/generators/menu-generator.js +81 -0
- package/lib/apexdoc/engine/generators/menu-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/child-enum-markup-generator.d.ts +10 -0
- package/lib/apexdoc/engine/generators/models/child-enum-markup-generator.js +65 -0
- package/lib/apexdoc/engine/generators/models/child-enum-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/class-markup-generator.d.ts +8 -0
- package/lib/apexdoc/engine/generators/models/class-markup-generator.js +49 -0
- package/lib/apexdoc/engine/generators/models/class-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/enum-markup-generator.d.ts +9 -0
- package/lib/apexdoc/engine/generators/models/enum-markup-generator.js +40 -0
- package/lib/apexdoc/engine/generators/models/enum-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/markup-generator.d.ts +27 -0
- package/lib/apexdoc/engine/generators/models/markup-generator.js +148 -0
- package/lib/apexdoc/engine/generators/models/markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/method-markup-generator.d.ts +22 -0
- package/lib/apexdoc/engine/generators/models/method-markup-generator.js +224 -0
- package/lib/apexdoc/engine/generators/models/method-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/property-markup-generator.d.ts +11 -0
- package/lib/apexdoc/engine/generators/models/property-markup-generator.js +66 -0
- package/lib/apexdoc/engine/generators/models/property-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/source-markup-generator.d.ts +10 -0
- package/lib/apexdoc/engine/generators/models/source-markup-generator.js +39 -0
- package/lib/apexdoc/engine/generators/models/source-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/models/top-level-markup-generator.d.ts +10 -0
- package/lib/apexdoc/engine/generators/models/top-level-markup-generator.js +49 -0
- package/lib/apexdoc/engine/generators/models/top-level-markup-generator.js.map +1 -0
- package/lib/apexdoc/engine/generators/see-link-generator.d.ts +20 -0
- package/lib/apexdoc/engine/generators/see-link-generator.js +183 -0
- package/lib/apexdoc/engine/generators/see-link-generator.js.map +1 -0
- package/lib/commands/tffa/apexdoc.d.ts +29 -0
- package/lib/commands/tffa/apexdoc.js +272 -0
- package/lib/commands/tffa/apexdoc.js.map +1 -0
- package/lib/commands/tffa/ping.d.ts +3 -0
- package/lib/commands/tffa/ping.js +4 -0
- package/lib/commands/tffa/ping.js.map +1 -1
- package/lib/commands/tffa/scan.d.ts +52 -0
- package/lib/commands/tffa/scan.js +348 -0
- package/lib/commands/tffa/scan.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/shared/model.d.ts +30 -0
- package/lib/shared/model.js +17 -0
- package/lib/shared/model.js.map +1 -0
- package/lib/shared/parser.d.ts +3 -0
- package/lib/shared/parser.js +101 -0
- package/lib/shared/parser.js.map +1 -0
- package/lib/shared/rules.d.ts +3 -0
- package/lib/shared/rules.js +5 -0
- package/lib/shared/rules.js.map +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +47 -25
- package/CHANGELOG.md +0 -14
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApexModel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/**
|
|
6
|
+
* Copyright (c) NCR Terafina
|
|
7
|
+
**/
|
|
8
|
+
const tags = tslib_1.__importStar(require("../tags"));
|
|
9
|
+
const utils_1 = tslib_1.__importDefault(require("../utils"));
|
|
10
|
+
const settings_1 = tslib_1.__importDefault(require("../settings"));
|
|
11
|
+
/* eslint-disable no-useless-escape */
|
|
12
|
+
class ApexModel {
|
|
13
|
+
constructor(comments, sourceUrl) {
|
|
14
|
+
this._annotations = [];
|
|
15
|
+
this._author = '';
|
|
16
|
+
this._deprecated = '';
|
|
17
|
+
this._description = '';
|
|
18
|
+
this._example = '';
|
|
19
|
+
this._apipath = '';
|
|
20
|
+
this._restUrl = '';
|
|
21
|
+
this._apimethod = '';
|
|
22
|
+
this._exception = [];
|
|
23
|
+
this._groupContentPath = '';
|
|
24
|
+
this._groupName = '';
|
|
25
|
+
this._tags = '';
|
|
26
|
+
this._lineNum = 0;
|
|
27
|
+
this._nameLine = '';
|
|
28
|
+
this._params = [];
|
|
29
|
+
this._queryparams = [];
|
|
30
|
+
this._requestheaders = [];
|
|
31
|
+
this._responseheaders = [];
|
|
32
|
+
this._returns = '';
|
|
33
|
+
this._scope = '';
|
|
34
|
+
this._see = [];
|
|
35
|
+
this._since = '';
|
|
36
|
+
this._source = '';
|
|
37
|
+
this.parseComments(comments);
|
|
38
|
+
this._sourceUrl = sourceUrl;
|
|
39
|
+
}
|
|
40
|
+
get annotations() {
|
|
41
|
+
return this._annotations;
|
|
42
|
+
}
|
|
43
|
+
get description() {
|
|
44
|
+
return this._description;
|
|
45
|
+
}
|
|
46
|
+
get lineNum() {
|
|
47
|
+
return this._lineNum;
|
|
48
|
+
}
|
|
49
|
+
get nameLine() {
|
|
50
|
+
return this._nameLine;
|
|
51
|
+
}
|
|
52
|
+
get scope() {
|
|
53
|
+
return this._scope;
|
|
54
|
+
}
|
|
55
|
+
get sourceUrl() {
|
|
56
|
+
return this._sourceUrl;
|
|
57
|
+
}
|
|
58
|
+
get source() {
|
|
59
|
+
return this._source;
|
|
60
|
+
}
|
|
61
|
+
setSource(source) {
|
|
62
|
+
this._source = source;
|
|
63
|
+
}
|
|
64
|
+
/* ===================================================================================================
|
|
65
|
+
* NOTE: Ideally, we should only expose those getters on this class that are shared amongst all
|
|
66
|
+
* ApexModel descendants. The following three break this convention. 'Example,' 'Deprecated,' and
|
|
67
|
+
* 'See' are only available to MethodModel and TopLevelModel, however it aids us in reducing repetitive
|
|
68
|
+
* code in their respective markup generators to expose these getters here. This way, we can write the
|
|
69
|
+
* markup generation code for these attributes only once on the base MarkupGenerator class, rather than
|
|
70
|
+
* repeating the same or very similar code on both MethodMarkupGenerator and TopLevelMarkupGenerator.
|
|
71
|
+
* ===================================================================================================
|
|
72
|
+
*/
|
|
73
|
+
get example() {
|
|
74
|
+
// remove trailing white space which may have built
|
|
75
|
+
// up due to the allowance of preserving white space
|
|
76
|
+
return this._example.trimRight();
|
|
77
|
+
}
|
|
78
|
+
get apipath() {
|
|
79
|
+
// remove trailing white space which may have built
|
|
80
|
+
// up due to the allowance of preserving white space
|
|
81
|
+
return this._apipath.trimRight().trimLeft();
|
|
82
|
+
}
|
|
83
|
+
get restUrl() {
|
|
84
|
+
// remove trailing white space which may have built
|
|
85
|
+
// up due to the allowance of preserving white space
|
|
86
|
+
return this._restUrl.trimRight().trimLeft();
|
|
87
|
+
}
|
|
88
|
+
get apimethod() {
|
|
89
|
+
// remove trailing white space which may have built
|
|
90
|
+
// up due to the allowance of preserving white space
|
|
91
|
+
return this._apimethod.trimRight().trimLeft();
|
|
92
|
+
}
|
|
93
|
+
get deprecated() {
|
|
94
|
+
return this._deprecated;
|
|
95
|
+
}
|
|
96
|
+
get see() {
|
|
97
|
+
return this._see;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* This method is based closely on: https://gitlab.com/StevenWCox/sfapexdoc/blob/master/src/apex/com/main/Model.java#L196
|
|
101
|
+
*/
|
|
102
|
+
parseComments(comments) {
|
|
103
|
+
let currBlock = null;
|
|
104
|
+
let block = null;
|
|
105
|
+
for (let line of comments) {
|
|
106
|
+
let newBlock = false, isBreak = false;
|
|
107
|
+
const lineLower = line.toLowerCase();
|
|
108
|
+
let i;
|
|
109
|
+
// skip lines that are just opening or closing comment blocks
|
|
110
|
+
if (line.trim() === '/**' || line.trim() === '*/') {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
// if we find a tag, start a new block
|
|
114
|
+
if ((i = lineLower.indexOf((block = tags.AUTHOR.label))) >= 0 ||
|
|
115
|
+
(i = lineLower.indexOf((block = tags.SINCE.label))) >= 0 ||
|
|
116
|
+
(i = lineLower.indexOf((block = tags.SEE.label))) >= 0 ||
|
|
117
|
+
(i = lineLower.indexOf((block = tags.RETURN.label))) >= 0 ||
|
|
118
|
+
(i = lineLower.indexOf((block = tags.RETURNS.label))) >= 0 ||
|
|
119
|
+
(i = lineLower.indexOf((block = tags.QUERYPARAM.label))) >= 0 ||
|
|
120
|
+
(i = lineLower.indexOf((block = tags.REQUESTHEADER.label))) >= 0 ||
|
|
121
|
+
(i = lineLower.indexOf((block = tags.RESPONSEHEADER.label))) >= 0 ||
|
|
122
|
+
(i = lineLower.indexOf((block = tags.PARAM.label))) >= 0 ||
|
|
123
|
+
(i = lineLower.indexOf((block = tags.EXCEPTION.label))) >= 0 ||
|
|
124
|
+
(i = lineLower.indexOf((block = tags.DEPRECATED.label))) >= 0 ||
|
|
125
|
+
(i = lineLower.indexOf((block = tags.DESCRIPTION.label))) >= 0 ||
|
|
126
|
+
(i = lineLower.indexOf((block = tags.GROUP.label))) >= 0 ||
|
|
127
|
+
(i = lineLower.indexOf((block = tags.TAGS.label))) >= 0 ||
|
|
128
|
+
(i = lineLower.indexOf((block = tags.GROUP_CONTENT.label))) >= 0 ||
|
|
129
|
+
(i = lineLower.indexOf((block = tags.EXAMPLE.label))) >= 0 ||
|
|
130
|
+
(i = lineLower.indexOf((block = tags.APIPATH.label))) >= 0 ||
|
|
131
|
+
(i = lineLower.indexOf((block = tags.APIMETHOD.label))) >= 0) {
|
|
132
|
+
line = line.substring(i + block.length);
|
|
133
|
+
currBlock = block;
|
|
134
|
+
newBlock = true;
|
|
135
|
+
}
|
|
136
|
+
// get everything after opening '*'s
|
|
137
|
+
line = line.replace(/\s*\/?\*+/, '');
|
|
138
|
+
// replace docblock break marker and indicate we should break after
|
|
139
|
+
// this round. Otherwise we may get some strange behavior due to
|
|
140
|
+
// multi-line support and this common parser for all models
|
|
141
|
+
if (line.includes(settings_1.default.DOC_BLOCK_BREAK)) {
|
|
142
|
+
line = line.replace(settings_1.default.DOC_BLOCK_BREAK, '');
|
|
143
|
+
isBreak = true;
|
|
144
|
+
}
|
|
145
|
+
// add line to appropriate block...
|
|
146
|
+
// if currBlock was not reset on this iteration we're on the next line of the last tag, add line
|
|
147
|
+
// to that value. Allow empty lines in @example blocks to preserve whitespace in complex examples
|
|
148
|
+
if (currBlock !== null && (line.trim() || (!line.trim() && currBlock === tags.EXAMPLE.label) || line.trim())) {
|
|
149
|
+
if (currBlock === tags.AUTHOR.label) {
|
|
150
|
+
this._author += (this._author ? ' ' : '') + line.trim();
|
|
151
|
+
}
|
|
152
|
+
else if (currBlock === tags.SINCE.label) {
|
|
153
|
+
this._since += (this._since ? ' ' : '') + line.trim();
|
|
154
|
+
}
|
|
155
|
+
else if (currBlock === tags.SEE.label) {
|
|
156
|
+
this._see.push(line.trim());
|
|
157
|
+
}
|
|
158
|
+
else if (currBlock === tags.RETURNS.label || currBlock === tags.RETURN.label) {
|
|
159
|
+
this._returns += (this._returns ? ' ' : '') + line.trim();
|
|
160
|
+
}
|
|
161
|
+
else if (currBlock === tags.REQUESTHEADER.label) {
|
|
162
|
+
const p = newBlock ? '' : this._requestheaders.pop();
|
|
163
|
+
this._requestheaders.push(p + (p && p.length > 0 ? ' ' : '') + line.trim());
|
|
164
|
+
}
|
|
165
|
+
else if (currBlock === tags.RESPONSEHEADER.label) {
|
|
166
|
+
const p = newBlock ? '' : this._responseheaders.pop();
|
|
167
|
+
this._responseheaders.push(p + (p && p.length > 0 ? ' ' : '') + line.trim());
|
|
168
|
+
}
|
|
169
|
+
else if (currBlock === tags.QUERYPARAM.label) {
|
|
170
|
+
const p = newBlock ? '' : this._queryparams.pop();
|
|
171
|
+
this._queryparams.push(p + (p && p.length > 0 ? ' ' : '') + line.trim());
|
|
172
|
+
}
|
|
173
|
+
else if (currBlock === tags.PARAM.label) {
|
|
174
|
+
const p = newBlock ? '' : this._params.pop();
|
|
175
|
+
this._params.push(p + (p && p.length > 0 ? ' ' : '') + line.trim());
|
|
176
|
+
}
|
|
177
|
+
else if (currBlock === tags.EXCEPTION.label) {
|
|
178
|
+
const p = newBlock ? '' : this._exception.pop();
|
|
179
|
+
this._exception.push(p + (p && p.length > 0 ? ' ' : '') + line.trim());
|
|
180
|
+
}
|
|
181
|
+
else if (currBlock === tags.DEPRECATED.label) {
|
|
182
|
+
this._deprecated += (this._deprecated ? ' ' : '') + line.trim();
|
|
183
|
+
}
|
|
184
|
+
else if (currBlock === tags.DESCRIPTION.label) {
|
|
185
|
+
this._description += (this._description ? ' ' : '') + line.trim();
|
|
186
|
+
}
|
|
187
|
+
else if (currBlock === tags.EXAMPLE.label) {
|
|
188
|
+
this._example += (this._example ? ' \n' : '') + line;
|
|
189
|
+
}
|
|
190
|
+
else if (currBlock === tags.APIPATH.label) {
|
|
191
|
+
this._apipath += (this._apipath ? ' \n' : '') + line;
|
|
192
|
+
}
|
|
193
|
+
else if (currBlock === tags.APIMETHOD.label) {
|
|
194
|
+
this._apimethod += (this._apimethod ? ' \n' : '') + line;
|
|
195
|
+
}
|
|
196
|
+
// These tags only support a single line if a duplicate
|
|
197
|
+
// tag is encountered, override any existing value.
|
|
198
|
+
else if (currBlock === tags.GROUP.label) {
|
|
199
|
+
this._groupName = line.trim();
|
|
200
|
+
}
|
|
201
|
+
else if (currBlock === tags.TAGS.label) {
|
|
202
|
+
this._tags = line.trim();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// not a recognized tag, assume we're in un-tagged _description
|
|
206
|
+
else if (currBlock === null && line.trim()) {
|
|
207
|
+
currBlock = block = tags.DESCRIPTION.label;
|
|
208
|
+
this._description += (this._description ? ' ' : '') + line.trim();
|
|
209
|
+
}
|
|
210
|
+
else if (!line.trim()) {
|
|
211
|
+
currBlock = null;
|
|
212
|
+
}
|
|
213
|
+
if (isBreak) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
parseAnnotations(line, previousLine) {
|
|
219
|
+
if (previousLine) {
|
|
220
|
+
previousLine = previousLine.trim();
|
|
221
|
+
// if previous line is not a comment line it may contain annotations.
|
|
222
|
+
if (!previousLine.startsWith('*') && /.*(@\w+\s*(\([\w=.*''/\s]+\))?)$/.test(previousLine)) {
|
|
223
|
+
line = previousLine + ' ' + line;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const matches = line.match(/@\w+\s*(\([\w=.*''/\s]+\))?/g);
|
|
227
|
+
if (matches !== null) {
|
|
228
|
+
matches.forEach(match => {
|
|
229
|
+
if (match) {
|
|
230
|
+
const line = match.trim();
|
|
231
|
+
this.annotations.push(line);
|
|
232
|
+
if (match.trim().includes('RestResource')) {
|
|
233
|
+
const regex = /(?<=@RestResource\(urlMapping\=\')(.*)(?=\/\*\')/;
|
|
234
|
+
const urlmatches = regex.exec(match);
|
|
235
|
+
if (urlmatches) {
|
|
236
|
+
this._restUrl = urlmatches[0];
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
parseScope() {
|
|
244
|
+
if (this._nameLine) {
|
|
245
|
+
const _scope = utils_1.default.getScope(this._nameLine);
|
|
246
|
+
if (_scope) {
|
|
247
|
+
this._scope = _scope;
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
// _scope is implicitly private
|
|
251
|
+
this._scope = 'private';
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
setNameLine(_nameLine, _lineNum) {
|
|
256
|
+
// strip any _annotations from the signature line
|
|
257
|
+
// we'll capture those and display them separately
|
|
258
|
+
this._nameLine = utils_1.default.stripAnnotations(_nameLine).trim();
|
|
259
|
+
this._lineNum = _lineNum;
|
|
260
|
+
this.parseScope();
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.ApexModel = ApexModel;
|
|
264
|
+
//# sourceMappingURL=apex-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apex-model.js","sourceRoot":"","sources":["../../../../src/apexdoc/common/models/apex-model.ts"],"names":[],"mappings":";;;;AAAA;;IAEI;AACJ,sDAAgC;AAChC,6DAA6B;AAE7B,mEAAmC;AACnC,sCAAsC;AACtC,MAAe,SAAS;IA0BtB,YAAsB,QAAkB,EAAE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,SAAS,CAAC,CAAC;YAC9C,IAAI,MAAM,EAAE;gBACV,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;aACtB;iBAAM;gBACL,+BAA+B;gBAC/B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;aACzB;SACF;IACH,CAAC;IAES,WAAW,CAAC,SAAiB,EAAE,QAAgB;QACvD,iDAAiD;QACjD,kDAAkD;QAClD,IAAI,CAAC,SAAS,GAAG,eAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class ClassGroup {
|
|
2
|
+
private _name;
|
|
3
|
+
private _contentSource;
|
|
4
|
+
constructor(name: string, contentSource: string);
|
|
5
|
+
get name(): string;
|
|
6
|
+
get contentSource(): string;
|
|
7
|
+
set contentSource(contentSource: string);
|
|
8
|
+
get contentFileName(): string;
|
|
9
|
+
}
|
|
10
|
+
export { ClassGroup };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClassGroup = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) NCR Terafina
|
|
6
|
+
**/
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
class ClassGroup {
|
|
9
|
+
constructor(name, contentSource) {
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._contentSource = contentSource;
|
|
12
|
+
}
|
|
13
|
+
get name() {
|
|
14
|
+
return this._name;
|
|
15
|
+
}
|
|
16
|
+
get contentSource() {
|
|
17
|
+
return this._contentSource;
|
|
18
|
+
}
|
|
19
|
+
set contentSource(contentSource) {
|
|
20
|
+
this._contentSource = contentSource;
|
|
21
|
+
}
|
|
22
|
+
get contentFileName() {
|
|
23
|
+
if (this._contentSource) {
|
|
24
|
+
const fileName = path_1.basename(this._contentSource);
|
|
25
|
+
const idx = fileName.lastIndexOf('.');
|
|
26
|
+
return fileName.substring(0, idx);
|
|
27
|
+
}
|
|
28
|
+
return '';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ClassGroup = ClassGroup;
|
|
32
|
+
//# sourceMappingURL=class-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-group.js","sourceRoot":"","sources":["../../../../src/apexdoc/common/models/class-group.ts"],"names":[],"mappings":";;;AAAA;;IAEI;AACJ,+BAAgC;AAEhC,MAAM,UAAU;IAIZ,YAAmB,IAAY,EAAE,aAAqB;QAClD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACxC,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAGD,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,IAAW,aAAa,CAAC,aAAqB;QAC1C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACxC,CAAC;IAED,IAAW,eAAe;QACtB,IAAI,IAAI,CAAC,cAAc,EAAE;YACrB,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAC/C,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;SACrC;QAED,OAAO,EAAE,CAAC;IACd,CAAC;CACJ;AAEQ,gCAAU"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) NCR Terafina
|
|
3
|
+
**/
|
|
4
|
+
import { EnumModel } from './enum-model';
|
|
5
|
+
import { MethodModel } from './method-model';
|
|
6
|
+
import { TopLevelModel } from './top-level-model';
|
|
7
|
+
import { IDTODefinition, IRestPath, IRestTags, Option } from '../..';
|
|
8
|
+
import { PropertyModel } from './property-model';
|
|
9
|
+
declare class ClassModel extends TopLevelModel {
|
|
10
|
+
private _childClassMap;
|
|
11
|
+
private _cModelParent?;
|
|
12
|
+
private _enums;
|
|
13
|
+
private _isInterface;
|
|
14
|
+
private _methods;
|
|
15
|
+
private _properties;
|
|
16
|
+
constructor(cModelParent: Option<ClassModel>, comments: string[], nameLine: string, lineNum: number, sourceUrl: Option<string>);
|
|
17
|
+
addChildClass(child: ClassModel): void;
|
|
18
|
+
get childClasses(): Array<ClassModel>;
|
|
19
|
+
get childClassesSorted(): Array<ClassModel>;
|
|
20
|
+
get childClassMap(): Map<string, ClassModel>;
|
|
21
|
+
get enums(): Array<EnumModel>;
|
|
22
|
+
get enumsSorted(): Array<EnumModel>;
|
|
23
|
+
get groupName(): string;
|
|
24
|
+
get tags(): IRestTags;
|
|
25
|
+
get isInterface(): boolean;
|
|
26
|
+
get isDTO(): boolean;
|
|
27
|
+
get methods(): Array<MethodModel>;
|
|
28
|
+
get restDefinition(): IRestPath[];
|
|
29
|
+
get dtoDefinition(): IDTODefinition;
|
|
30
|
+
get methodsSorted(): Array<MethodModel>;
|
|
31
|
+
get name(): string;
|
|
32
|
+
get properties(): Array<PropertyModel>;
|
|
33
|
+
get propertiesSorted(): Array<PropertyModel>;
|
|
34
|
+
get topMostClassName(): string;
|
|
35
|
+
private setIsInterface;
|
|
36
|
+
get isInnerClass(): boolean;
|
|
37
|
+
}
|
|
38
|
+
export { ClassModel };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClassModel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const top_level_model_1 = require("./top-level-model");
|
|
6
|
+
const settings_1 = tslib_1.__importDefault(require("../settings"));
|
|
7
|
+
class ClassModel extends top_level_model_1.TopLevelModel {
|
|
8
|
+
constructor(cModelParent, comments, nameLine, lineNum, sourceUrl) {
|
|
9
|
+
super(comments, top_level_model_1.ModelType.CLASS, sourceUrl);
|
|
10
|
+
this._isInterface = false;
|
|
11
|
+
super.setNameLine(nameLine, lineNum);
|
|
12
|
+
this.setIsInterface(nameLine);
|
|
13
|
+
this._childClassMap = new Map();
|
|
14
|
+
this._cModelParent = cModelParent;
|
|
15
|
+
this._properties = [];
|
|
16
|
+
this._methods = [];
|
|
17
|
+
this._enums = [];
|
|
18
|
+
}
|
|
19
|
+
addChildClass(child) {
|
|
20
|
+
this._childClassMap.set(child.name.toLowerCase(), child);
|
|
21
|
+
}
|
|
22
|
+
get childClasses() {
|
|
23
|
+
return Array.from(this._childClassMap.values());
|
|
24
|
+
}
|
|
25
|
+
get childClassesSorted() {
|
|
26
|
+
return this.childClasses.sort((a, b) => a.name.localeCompare(b.name));
|
|
27
|
+
}
|
|
28
|
+
get childClassMap() {
|
|
29
|
+
return this._childClassMap;
|
|
30
|
+
}
|
|
31
|
+
get enums() {
|
|
32
|
+
return this._enums;
|
|
33
|
+
}
|
|
34
|
+
get enumsSorted() {
|
|
35
|
+
const sorted = [...this._enums];
|
|
36
|
+
sorted.sort((a, b) => a.name.localeCompare(b.name));
|
|
37
|
+
return sorted;
|
|
38
|
+
}
|
|
39
|
+
get groupName() {
|
|
40
|
+
let group;
|
|
41
|
+
if (this._cModelParent) {
|
|
42
|
+
group = this._cModelParent.groupName;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
group = this._groupName;
|
|
46
|
+
}
|
|
47
|
+
return group;
|
|
48
|
+
}
|
|
49
|
+
get tags() {
|
|
50
|
+
const tagarr = this._tags.split(' ');
|
|
51
|
+
let category = 'General';
|
|
52
|
+
if (tagarr.length > 1) {
|
|
53
|
+
category = tagarr[1];
|
|
54
|
+
}
|
|
55
|
+
const tags = { name: tagarr[0], description: this.description, category: category };
|
|
56
|
+
return tags;
|
|
57
|
+
}
|
|
58
|
+
get isInterface() {
|
|
59
|
+
return this._isInterface;
|
|
60
|
+
}
|
|
61
|
+
get isDTO() {
|
|
62
|
+
return (!this._isInterface &&
|
|
63
|
+
(this._nameLine.includes('DTO') || this._nameLine.includes('AbstractDTO')) &&
|
|
64
|
+
this._properties &&
|
|
65
|
+
this._properties.length > 0);
|
|
66
|
+
}
|
|
67
|
+
get methods() {
|
|
68
|
+
// interface methods do not have access modifiers.
|
|
69
|
+
// ensure that they take the scope of their defining
|
|
70
|
+
// type and are not treated as private which is the
|
|
71
|
+
// default for methods w/o access mods
|
|
72
|
+
if (this._isInterface) {
|
|
73
|
+
for (const method of this._methods) {
|
|
74
|
+
method.scope = this._scope;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return this._methods;
|
|
78
|
+
}
|
|
79
|
+
get restDefinition() {
|
|
80
|
+
const definitions = [];
|
|
81
|
+
if (this.restUrl) {
|
|
82
|
+
for (const method of this._methods) {
|
|
83
|
+
if (method.apimethod && method.apipath) {
|
|
84
|
+
const pathparams = method.params.filter(v => v.pathParam);
|
|
85
|
+
const requestBody = method.params.filter(v => !v.pathParam);
|
|
86
|
+
pathparams.forEach(function (v) {
|
|
87
|
+
delete v.pathParam;
|
|
88
|
+
});
|
|
89
|
+
requestBody.forEach(function (v) {
|
|
90
|
+
delete v.pathParam;
|
|
91
|
+
});
|
|
92
|
+
if (requestBody && requestBody.length > 0 && method.example) {
|
|
93
|
+
requestBody[0].example = method.example;
|
|
94
|
+
}
|
|
95
|
+
const definition = {
|
|
96
|
+
path: this.restUrl + method.apipath,
|
|
97
|
+
operationId: method.name,
|
|
98
|
+
description: method.description,
|
|
99
|
+
method: method.apimethod,
|
|
100
|
+
exceptions: method.exception,
|
|
101
|
+
params: pathparams,
|
|
102
|
+
requestBody: requestBody,
|
|
103
|
+
queryparams: method.queryparams,
|
|
104
|
+
requestheaders: method.requestheaders,
|
|
105
|
+
responseheaders: method.responseheaders,
|
|
106
|
+
responses: method.returns,
|
|
107
|
+
tags: this.tags
|
|
108
|
+
};
|
|
109
|
+
definitions.push(definition);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return definitions;
|
|
114
|
+
}
|
|
115
|
+
get dtoDefinition() {
|
|
116
|
+
const definition = {};
|
|
117
|
+
if (this._properties) {
|
|
118
|
+
definition.description = this.description;
|
|
119
|
+
definition.type = 'object';
|
|
120
|
+
const props = {};
|
|
121
|
+
for (const property of this._properties) {
|
|
122
|
+
if (property.type.includes('transient')) {
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const prop = { description: property.description, type: property.type };
|
|
126
|
+
props[property.name] = prop;
|
|
127
|
+
}
|
|
128
|
+
definition.properties = props;
|
|
129
|
+
}
|
|
130
|
+
return definition;
|
|
131
|
+
}
|
|
132
|
+
get methodsSorted() {
|
|
133
|
+
const sorted = [...this._methods];
|
|
134
|
+
sorted.sort((a, b) => {
|
|
135
|
+
const nameA = a.name;
|
|
136
|
+
const nameB = b.name;
|
|
137
|
+
const className = this.name;
|
|
138
|
+
if (nameA && nameA === className) {
|
|
139
|
+
return -1;
|
|
140
|
+
}
|
|
141
|
+
else if (nameB && nameB === className) {
|
|
142
|
+
return 1;
|
|
143
|
+
}
|
|
144
|
+
return nameA.localeCompare(nameB);
|
|
145
|
+
});
|
|
146
|
+
// replace overloaded methods with their 'logical' order methods
|
|
147
|
+
// to ensure overload selectors work as expected. e.g. overloaded
|
|
148
|
+
// methods, once sorted, will appear in the order they appear in
|
|
149
|
+
// in the class's source file.
|
|
150
|
+
const methodsCopy = [...this._methods];
|
|
151
|
+
sorted.forEach((method, i, arr) => {
|
|
152
|
+
const matchingMethodIdx = methodsCopy.findIndex(m => m.name === method.name);
|
|
153
|
+
arr[i] = methodsCopy[matchingMethodIdx];
|
|
154
|
+
methodsCopy.splice(matchingMethodIdx, 1);
|
|
155
|
+
});
|
|
156
|
+
return sorted;
|
|
157
|
+
}
|
|
158
|
+
get name() {
|
|
159
|
+
let nameLine = this.nameLine;
|
|
160
|
+
const parent = !this._cModelParent ? '' : this._cModelParent.name + '.';
|
|
161
|
+
if (nameLine) {
|
|
162
|
+
nameLine = nameLine.trim();
|
|
163
|
+
}
|
|
164
|
+
if (nameLine && nameLine.length > 0) {
|
|
165
|
+
let keywordAt = nameLine.toLowerCase().indexOf(settings_1.default.CLASS + ' ');
|
|
166
|
+
let offset = 6;
|
|
167
|
+
if (keywordAt === -1) {
|
|
168
|
+
keywordAt = nameLine.toLowerCase().indexOf(settings_1.default.INTERFACE + ' ');
|
|
169
|
+
offset = 10;
|
|
170
|
+
}
|
|
171
|
+
if (keywordAt > -1) {
|
|
172
|
+
nameLine = nameLine.substring(keywordAt + offset).trim();
|
|
173
|
+
}
|
|
174
|
+
const spaceAt = nameLine.indexOf(' ');
|
|
175
|
+
if (spaceAt === -1) {
|
|
176
|
+
return parent + nameLine;
|
|
177
|
+
}
|
|
178
|
+
try {
|
|
179
|
+
const name = nameLine.substring(0, spaceAt);
|
|
180
|
+
return (parent + name).trim();
|
|
181
|
+
}
|
|
182
|
+
catch (ex) {
|
|
183
|
+
return (parent + nameLine.substring(nameLine.lastIndexOf(' ') + 1)).trim();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return '';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
get properties() {
|
|
191
|
+
return this._properties;
|
|
192
|
+
}
|
|
193
|
+
get propertiesSorted() {
|
|
194
|
+
const sorted = [...this._properties];
|
|
195
|
+
sorted.sort((a, b) => a.name.localeCompare(b.name));
|
|
196
|
+
return sorted;
|
|
197
|
+
}
|
|
198
|
+
get topMostClassName() {
|
|
199
|
+
if (this._cModelParent) {
|
|
200
|
+
return this._cModelParent.name;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return this.name;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
setIsInterface(nameLine) {
|
|
207
|
+
if (/\s?\binterface\s/i.test(nameLine.toLowerCase())) {
|
|
208
|
+
this._isInterface = true;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
get isInnerClass() {
|
|
212
|
+
return !!this._cModelParent;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.ClassModel = ClassModel;
|
|
216
|
+
//# sourceMappingURL=class-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-model.js","sourceRoot":"","sources":["../../../../src/apexdoc/common/models/class-model.ts"],"names":[],"mappings":";;;;AAKA,uDAA6D;AAG7D,mEAAmC;AAEnC,MAAM,UAAW,SAAQ,+BAAa;IAQpC,YAAmB,YAAgC,EAAE,QAAkB,EAAE,QAAgB,EAAE,OAAe,EAAE,SAAyB;QACnI,KAAK,CAAC,QAAQ,EAAE,2BAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QALtC,iBAAY,GAAG,KAAK,CAAC;QAM3B,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAErC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAAsB,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAEM,aAAa,CAAC,KAAiB;QACpC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,IAAW,kBAAkB;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AS,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aAC5E;SACF;aAAM;YACL,OAAO,EAAE,CAAC;SACX;IACH,CAAC;IAED,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,IAAW,gBAAgB;QACzB,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAW,gBAAgB;QACzB,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;SAChC;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;IACH,CAAC;IAEO,cAAc,CAAC,QAAgB;QACrC,IAAI,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE;YACpD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1B;IACH,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACF;AAEQ,gCAAU"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) NCR Terafina
|
|
3
|
+
**/
|
|
4
|
+
import { IEngineConfig } from '../..';
|
|
5
|
+
declare class EngineConfig implements IEngineConfig {
|
|
6
|
+
source: any[];
|
|
7
|
+
targetDirectory: string;
|
|
8
|
+
includes: any[];
|
|
9
|
+
excludes: any[];
|
|
10
|
+
homePagePath: string;
|
|
11
|
+
scope: string[];
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
showTOCSnippets: boolean;
|
|
15
|
+
sortOrder: string;
|
|
16
|
+
cleanDir: boolean;
|
|
17
|
+
assets: any[];
|
|
18
|
+
pages: any[];
|
|
19
|
+
port: number;
|
|
20
|
+
}
|
|
21
|
+
export default EngineConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class EngineConfig {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.source = [];
|
|
6
|
+
this.targetDirectory = '';
|
|
7
|
+
this.includes = [];
|
|
8
|
+
this.excludes = [];
|
|
9
|
+
this.homePagePath = '';
|
|
10
|
+
this.scope = [
|
|
11
|
+
'global',
|
|
12
|
+
'public',
|
|
13
|
+
'protected',
|
|
14
|
+
'private',
|
|
15
|
+
'testMethod',
|
|
16
|
+
'webService'
|
|
17
|
+
];
|
|
18
|
+
this.title = 'Apex Documentation';
|
|
19
|
+
this.subtitle = `Generated by Terafina`;
|
|
20
|
+
this.showTOCSnippets = true;
|
|
21
|
+
this.sortOrder = 'alpha';
|
|
22
|
+
this.cleanDir = false;
|
|
23
|
+
this.assets = [];
|
|
24
|
+
this.pages = [];
|
|
25
|
+
this.port = 8080;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = EngineConfig;
|
|
29
|
+
//# sourceMappingURL=engine-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-config.js","sourceRoot":"","sources":["../../../../src/apexdoc/common/models/engine-config.ts"],"names":[],"mappings":";;AAMA,MAAM,YAAY;IAAlB;QACW,WAAM,GAAG,EAAE,CAAC;QACf,oBAAe,GAAG,EAAE,CAAC;QACrB,aAAQ,GAAG,EAAE,CAAC;QACd,aAAQ,GAAG,EAAE,CAAC;QACd,iBAAY,GAAG,EAAE,CAAC;QAClB,UAAK,GAAG;YACR,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,SAAS;YACT,YAAY;YACZ,YAAY;SACf,CAAC;QACE,UAAK,GAAG,oBAAoB,CAAC;QAC7B,aAAQ,GAAG,uBAAuB,CAAC;QACnC,oBAAe,GAAG,IAAI,CAAC;QACvB,cAAS,GAAG,OAAO,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QACjB,WAAM,GAAG,EAAE,CAAC;QACZ,UAAK,GAAG,EAAE,CAAC;QACX,SAAI,GAAG,IAAI,CAAC;IACvB,CAAC;CAAA;AAED,kBAAe,YAAY,CAAC"}
|