@rxap/schematics-open-api 16.0.0-dev.6 → 16.0.0-dev.7
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/CHANGELOG.md +11 -0
- package/LICENSE.md +621 -0
- package/README.md +1 -1
- package/package.json +6 -5
- package/src/index.d.ts +26 -2
- package/src/index.js +26 -2
- package/src/index.js.map +1 -1
- package/src/lib/clear-operation.js +2 -6
- package/src/lib/clear-operation.js.map +1 -1
- package/src/lib/generate-components.d.ts +1 -1
- package/src/lib/generate-components.js +12 -17
- package/src/lib/generate-components.js.map +1 -1
- package/src/lib/generate-operation.d.ts +1 -1
- package/src/lib/generate-operation.js +16 -21
- package/src/lib/generate-operation.js.map +1 -1
- package/src/lib/generate-parameters.d.ts +1 -1
- package/src/lib/generate-parameters.js +52 -55
- package/src/lib/generate-parameters.js.map +1 -1
- package/src/lib/generate-request-body.d.ts +1 -1
- package/src/lib/generate-request-body.js +15 -18
- package/src/lib/generate-request-body.js.map +1 -1
- package/src/lib/generate-response.d.ts +1 -1
- package/src/lib/generate-response.js +15 -18
- package/src/lib/generate-response.js.map +1 -1
- package/src/lib/types.d.ts +1 -1
- package/src/lib/utilities/get-response.js +0 -1
- package/src/lib/utilities/get-response.js.map +1 -1
- package/src/schematics/generate/const.d.ts +1 -0
- package/src/schematics/generate/const.js +2 -1
- package/src/schematics/generate/const.js.map +1 -1
- package/src/schematics/generate/create-directive.js +6 -5
- package/src/schematics/generate/create-directive.js.map +1 -1
- package/src/schematics/generate/generate-operation-command.d.ts +3 -0
- package/src/schematics/generate/generate-operation-command.js +119 -0
- package/src/schematics/generate/generate-operation-command.js.map +1 -0
- package/src/schematics/generate/generate-remote-method.d.ts +2 -2
- package/src/schematics/generate/generate-remote-method.js +141 -144
- package/src/schematics/generate/generate-remote-method.js.map +1 -1
- package/src/schematics/generate/index.js +49 -40
- package/src/schematics/generate/index.js.map +1 -1
- package/src/schematics/generate/schema.d.ts +1 -0
- package/src/schematics/generate/schema.json +8 -0
- package/src/lib/coerce-open-api-project.d.ts +0 -2
- package/src/lib/coerce-open-api-project.js +0 -48
- package/src/lib/coerce-open-api-project.js.map +0 -1
- package/src/lib/index.d.ts +0 -11
- package/src/lib/index.js +0 -15
- package/src/lib/index.js.map +0 -1
- package/src/lib/utilities/index.d.ts +0 -16
- package/src/lib/utilities/index.js +0 -20
- package/src/lib/utilities/index.js.map +0 -1
|
@@ -8,39 +8,36 @@ const path_1 = require("path");
|
|
|
8
8
|
const ts_morph_1 = require("ts-morph");
|
|
9
9
|
const clear_operation_1 = require("../../lib/clear-operation");
|
|
10
10
|
const config_1 = require("../../lib/config");
|
|
11
|
-
const generate_index_exports_1 = require("../../lib/generate-index-exports");
|
|
12
11
|
const generate_operation_1 = require("../../lib/generate-operation");
|
|
13
12
|
const load_open_api_config_1 = require("../../lib/load-open-api-config");
|
|
14
|
-
const types_1 = require("../../lib/types");
|
|
15
|
-
const utilities_1 = require("../../lib/utilities");
|
|
16
13
|
const const_1 = require("./const");
|
|
17
|
-
const
|
|
14
|
+
const generate_operation_command_1 = require("./generate-operation-command");
|
|
18
15
|
const generate_remote_method_1 = require("./generate-remote-method");
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
else {
|
|
30
|
-
if ((0, types_1.HasOperationId)(operation)) {
|
|
31
|
-
operationIdList.push(operation.operationId);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
16
|
+
function resolveRef(openApiSpec, node, parent, key) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (typeof node !== 'object' || node === null) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (node['$ref']) {
|
|
22
|
+
if (node.$ref.startsWith('#/components/schemas')) {
|
|
23
|
+
const name = node.$ref.replace('#/components/schemas/', '');
|
|
24
|
+
if (parent && key && ((_a = openApiSpec.components) === null || _a === void 0 ? void 0 : _a.schemas)) {
|
|
25
|
+
parent[key] = openApiSpec.components.schemas[name];
|
|
35
26
|
}
|
|
36
27
|
}
|
|
37
28
|
}
|
|
38
|
-
|
|
29
|
+
else {
|
|
30
|
+
for (const [k, v] of Object.entries(node)) {
|
|
31
|
+
resolveRef(openApiSpec, v, node, k);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
39
34
|
}
|
|
40
35
|
function default_1(options) {
|
|
41
36
|
return (host) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
|
|
37
|
+
console.log('loading openapi config');
|
|
43
38
|
const openapi = yield (0, load_open_api_config_1.LoadOpenApiConfig)(host, options);
|
|
39
|
+
console.log('resolve all schema refs');
|
|
40
|
+
resolveRef(openapi, openapi.paths);
|
|
44
41
|
const project = new ts_morph_1.Project({
|
|
45
42
|
manipulationSettings: {
|
|
46
43
|
indentationText: ts_morph_1.IndentationText.TwoSpaces,
|
|
@@ -58,19 +55,28 @@ function default_1(options) {
|
|
|
58
55
|
const projectName = options.project;
|
|
59
56
|
const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, projectName);
|
|
60
57
|
const basePath = (0, path_1.join)(projectSourceRoot, 'lib');
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
58
|
+
// if (!options.debug) {
|
|
59
|
+
// // TODO : reset the hack after the schematic execution is finished
|
|
60
|
+
// // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
61
|
+
// console.debug = function () {};
|
|
62
|
+
// }
|
|
67
63
|
const generatorFunctionList = [];
|
|
68
64
|
const clearPathList = [];
|
|
69
65
|
if (!options.skipRemoteMethod) {
|
|
70
66
|
generatorFunctionList.push(generate_remote_method_1.GenerateRemoteMethod);
|
|
71
67
|
clearPathList.push(const_1.REMOTE_METHOD_BASE_PATH);
|
|
72
68
|
}
|
|
69
|
+
if (!options.skipCommand) {
|
|
70
|
+
generatorFunctionList.push(generate_operation_command_1.GenerateOperationCommand);
|
|
71
|
+
clearPathList.push(const_1.COMMAND_BASE_PATH);
|
|
72
|
+
}
|
|
73
|
+
let start = Date.now();
|
|
73
74
|
return (0, schematics_1.chain)([
|
|
75
|
+
() => {
|
|
76
|
+
console.log(`+${Date.now() - start}ms`);
|
|
77
|
+
console.log(`remove old files`);
|
|
78
|
+
start = Date.now();
|
|
79
|
+
},
|
|
74
80
|
(0, clear_operation_1.ClearOperation)([
|
|
75
81
|
config_1.COMPONENTS_BASE_PATH,
|
|
76
82
|
config_1.PARAMETER_BASE_PATH,
|
|
@@ -78,18 +84,21 @@ function default_1(options) {
|
|
|
78
84
|
config_1.REQUEST_BODY_BASE_PATH,
|
|
79
85
|
...clearPathList,
|
|
80
86
|
], basePath),
|
|
81
|
-
() =>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
() => {
|
|
88
|
+
console.log(`+${Date.now() - start}ms`);
|
|
89
|
+
console.log(`generate code for operations`);
|
|
90
|
+
start = Date.now();
|
|
91
|
+
},
|
|
92
|
+
() => (0, generate_operation_1.GenerateOperation)(openapi, project, options, generatorFunctionList),
|
|
93
|
+
() => {
|
|
94
|
+
console.log(`+${Date.now() - start}ms`);
|
|
95
|
+
console.log('apply changed to tree');
|
|
96
|
+
start = Date.now();
|
|
97
|
+
},
|
|
98
|
+
(0, schematics_ts_morph_1.ApplyTsMorphProjectRule)(project, basePath, true, true),
|
|
99
|
+
() => {
|
|
100
|
+
console.log(`+${Date.now() - start}ms`);
|
|
101
|
+
console.log('DONE');
|
|
93
102
|
},
|
|
94
103
|
]);
|
|
95
104
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/open-api/src/schematics/generate/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/open-api/src/schematics/generate/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAAoE;AACpE,qEAGoC;AAEpC,+BAA4B;AAC5B,uCAIkB;AAClB,+DAA2D;AAC3D,6CAK0B;AAC1B,qEAAiE;AACjE,yEAAmE;AAEnE,mCAGiB;AACjB,6EAAwE;AACxE,qEAAgE;AAGhE,SAAS,UAAU,CAAC,WAA+B,EAAE,IAAS,EAAE,MAAY,EAAE,GAAY;;IACxF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO;KACR;IACD,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE;QAChB,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,EAAE;YAChD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;YAC5D,IAAI,MAAM,IAAI,GAAG,KAAI,MAAA,WAAW,CAAC,UAAU,0CAAE,OAAO,CAAA,EAAE;gBACpD,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aACpD;SACF;KACF;SAAM;QACL,KAAK,MAAM,CAAE,CAAC,EAAE,CAAC,CAAE,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC3C,UAAU,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;SACrC;KACF;AACH,CAAC;AAED,mBAAyB,OAAsB;IAC7C,OAAO,CAAO,IAAU,EAAE,EAAE;QAC1B,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,MAAM,OAAO,GAAG,MAAM,IAAA,wCAAiB,EAAC,IAAI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G,EAAE,GAAG,KAAM,IAAI,CAAC,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACtB,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;AACJ,CAAC;AAjFD,4BAiFC"}
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"type": "boolean",
|
|
52
52
|
"default": false
|
|
53
53
|
},
|
|
54
|
+
"skipCommand": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
},
|
|
54
58
|
"serverId": {
|
|
55
59
|
"type": "string"
|
|
56
60
|
}
|
|
@@ -88,6 +92,10 @@
|
|
|
88
92
|
"description": "If true the index.ts of the select project will replaced with export statement for each generate file",
|
|
89
93
|
"default": false
|
|
90
94
|
},
|
|
95
|
+
"skipCommand": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"default": false
|
|
98
|
+
},
|
|
91
99
|
"inline": {
|
|
92
100
|
"type": "boolean",
|
|
93
101
|
"default": false
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CoerceOpenApiProject = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
-
function CoerceOpenApiProject(project, prefix, directory) {
|
|
7
|
-
return (host) => {
|
|
8
|
-
const angularJson = (0, schematics_utilities_1.GetAngularJson)(host);
|
|
9
|
-
const projectName = `${directory ? directory.split('/').join('-') + '-' : ''}${project}`;
|
|
10
|
-
if (!angularJson.projects[projectName]) {
|
|
11
|
-
const defaultProject = angularJson.projects[angularJson.defaultProject];
|
|
12
|
-
const defaultProjectPrefix = prefix !== null && prefix !== void 0 ? prefix : defaultProject.prefix;
|
|
13
|
-
return (0, schematics_1.chain)([
|
|
14
|
-
(0, schematics_1.externalSchematic)('@nrwl/angular', 'library', {
|
|
15
|
-
name: project,
|
|
16
|
-
importPath: `@${defaultProjectPrefix}/${projectName}`,
|
|
17
|
-
prefix,
|
|
18
|
-
directory,
|
|
19
|
-
}),
|
|
20
|
-
(tree) => {
|
|
21
|
-
var _a, _b, _c, _d;
|
|
22
|
-
const baseTsconfig = JSON.parse((_b = (_a = tree.read('/tsconfig.base.json')) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '{}');
|
|
23
|
-
const paths = (_d = (_c = baseTsconfig === null || baseTsconfig === void 0 ? void 0 : baseTsconfig.compilerOptions) === null || _c === void 0 ? void 0 : _c.paths) !== null && _d !== void 0 ? _d : {};
|
|
24
|
-
if (Object.keys(paths).length) {
|
|
25
|
-
for (const key of Object.keys(paths)) {
|
|
26
|
-
if (directory) {
|
|
27
|
-
if (key.match(new RegExp(`/${directory.split('/').join('-')}-${project}$`))) {
|
|
28
|
-
delete paths[key];
|
|
29
|
-
paths[key + '/*'] = [`libs/${directory}/${project}/src/lib/*`];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
if (key.match(new RegExp(`/${project}$`))) {
|
|
34
|
-
delete paths[key];
|
|
35
|
-
paths[key + '/*'] = [`libs/${project}/src/lib/*`];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
tree.overwrite('/tsconfig.base.json', JSON.stringify(baseTsconfig, undefined, 2));
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
]);
|
|
43
|
-
}
|
|
44
|
-
return (0, schematics_1.noop)();
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.CoerceOpenApiProject = CoerceOpenApiProject;
|
|
48
|
-
//# sourceMappingURL=coerce-open-api-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-open-api-project.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/coerce-open-api-project.ts"],"names":[],"mappings":";;;AAAA,2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IAAI,SAAS,EAAE;gCACb,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAK,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAE,IAAK,OAAQ,GAAG,CAAC,CAAC,EAAE;oCAC/E,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAE,QAAS,SAAU,IAAK,OAAQ,YAAY,CAAE,CAAC;iCACtE;6BACF;iCAAM;gCACL,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAK,OAAQ,GAAG,CAAC,CAAC,EAAE;oCAC3C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAE,QAAS,OAAQ,YAAY,CAAE,CAAC;iCACvD;6BACF;yBACF;wBAED,IAAI,CAAC,SAAS,CACZ,qBAAqB,EACrB,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAC3C,CAAC;qBACH;gBACH,CAAC;aACF,CAAC,CAAC;SACJ;QAED,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAjDD,oDAiDC"}
|
package/src/lib/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './clear-operation';
|
|
2
|
-
export * from './coerce-open-api-project';
|
|
3
|
-
export * from './config';
|
|
4
|
-
export * from './generate-components';
|
|
5
|
-
export * from './generate-index-exports';
|
|
6
|
-
export * from './generate-operation';
|
|
7
|
-
export * from './generate-parameters';
|
|
8
|
-
export * from './generate-request-body';
|
|
9
|
-
export * from './generate-response';
|
|
10
|
-
export * from './load-open-api-config';
|
|
11
|
-
export * from './types';
|
package/src/lib/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./clear-operation"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./coerce-open-api-project"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./config"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./generate-components"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./generate-index-exports"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./generate-operation"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./generate-parameters"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./generate-request-body"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./generate-response"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./load-open-api-config"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/src/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,oEAA0C;AAC1C,mDAAyB;AACzB,gEAAsC;AACtC,mEAAyC;AACzC,+DAAqC;AACrC,gEAAsC;AACtC,kEAAwC;AACxC,8DAAoC;AACpC,iEAAuC;AACvC,kDAAwB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './any-schema-object';
|
|
2
|
-
export * from './get-parameter-type';
|
|
3
|
-
export * from './get-reqeust-body';
|
|
4
|
-
export * from './get-request-body-type';
|
|
5
|
-
export * from './get-response-type';
|
|
6
|
-
export * from './get-response';
|
|
7
|
-
export * from './has-operation-paramters';
|
|
8
|
-
export * from './has-operation-request-body';
|
|
9
|
-
export * from './http-request';
|
|
10
|
-
export * from './ignore-operation';
|
|
11
|
-
export * from './is-collection-response';
|
|
12
|
-
export * from './is-http-method';
|
|
13
|
-
export * from './is-open-api-schema-from-path';
|
|
14
|
-
export * from './is-operation-object';
|
|
15
|
-
export * from './is-reference-object';
|
|
16
|
-
export * from './is-without-parameters';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./any-schema-object"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./get-parameter-type"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./get-reqeust-body"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./get-request-body-type"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./get-response-type"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./get-response"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./has-operation-paramters"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./has-operation-request-body"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./http-request"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./ignore-operation"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./is-collection-response"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./is-http-method"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./is-open-api-schema-from-path"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./is-operation-object"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./is-reference-object"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./is-without-parameters"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/open-api/src/lib/utilities/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,+DAAqC;AACrC,6DAAmC;AACnC,kEAAwC;AACxC,8DAAoC;AACpC,yDAA+B;AAC/B,oEAA0C;AAC1C,uEAA6C;AAC7C,yDAA+B;AAC/B,6DAAmC;AACnC,mEAAyC;AACzC,2DAAiC;AACjC,yEAA+C;AAC/C,gEAAsC;AACtC,gEAAsC;AACtC,kEAAwC"}
|