@speclynx/apidom-reference 4.2.0 → 4.4.0
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 +17 -0
- package/README.md +327 -0
- package/dist/apidom-reference.browser.js +2322 -359
- package/dist/apidom-reference.browser.min.js +1 -1
- package/package.json +56 -28
- package/src/configuration/saturated.cjs +47 -36
- package/src/configuration/saturated.mjs +13 -2
- package/src/dereference/strategies/arazzo-1/index.cjs +7 -2
- package/src/dereference/strategies/arazzo-1/index.mjs +8 -3
- package/src/dereference/strategies/overlay-1/extends.cjs +93 -0
- package/src/dereference/strategies/overlay-1/extends.mjs +87 -0
- package/src/dereference/strategies/overlay-1/index.cjs +93 -0
- package/src/dereference/strategies/overlay-1/index.mjs +87 -0
- package/src/parse/parsers/overlay-json-1/extends.cjs +66 -0
- package/src/parse/parsers/overlay-json-1/extends.mjs +60 -0
- package/src/parse/parsers/overlay-json-1/index.cjs +69 -0
- package/src/parse/parsers/overlay-json-1/index.mjs +63 -0
- package/src/parse/parsers/overlay-yaml-1/extends.cjs +6 -0
- package/src/parse/parsers/overlay-yaml-1/extends.mjs +2 -0
- package/src/parse/parsers/overlay-yaml-1/index.cjs +69 -0
- package/src/parse/parsers/overlay-yaml-1/index.mjs +63 -0
- package/src/resolve/strategies/arazzo-1/index.cjs +49 -0
- package/src/resolve/strategies/arazzo-1/index.mjs +43 -0
- package/src/resolve/strategies/overlay-1/index.cjs +49 -0
- package/src/resolve/strategies/overlay-1/index.mjs +43 -0
- package/types/dereference/strategies/overlay-1/extends.d.ts +21 -0
- package/types/dereference/strategies/overlay-1/index.d.ts +28 -0
- package/types/parse/parsers/overlay-json-1/extends.d.ts +16 -0
- package/types/parse/parsers/overlay-json-1/index.d.ts +23 -0
- package/types/parse/parsers/overlay-yaml-1/extends.d.ts +1 -0
- package/types/parse/parsers/overlay-yaml-1/index.d.ts +23 -0
- package/types/resolve/strategies/arazzo-1/index.d.ts +27 -0
- package/types/resolve/strategies/overlay-1/index.d.ts +27 -0
|
@@ -917,24 +917,26 @@ class ApiDOMDereferenceVisitor {
|
|
|
917
917
|
"use strict";
|
|
918
918
|
__webpack_require__.r(__webpack_exports__);
|
|
919
919
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
920
|
-
/* harmony export */ Arazzo1DereferenceVisitor: () => (/* reexport safe */
|
|
920
|
+
/* harmony export */ Arazzo1DereferenceVisitor: () => (/* reexport safe */ _visitor_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
921
921
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
922
|
-
/* harmony export */ dereferenceSourceDescriptions: () => (/* reexport safe */
|
|
923
|
-
/* harmony export */ maybeRefractToJSONSchemaElement: () => (/* reexport safe */
|
|
924
|
-
/* harmony export */ resolveSchema$idField: () => (/* reexport safe */
|
|
925
|
-
/* harmony export */ resolveSchema$refField: () => (/* reexport safe */
|
|
922
|
+
/* harmony export */ dereferenceSourceDescriptions: () => (/* reexport safe */ _source_descriptions_ts__WEBPACK_IMPORTED_MODULE_10__.dereferenceSourceDescriptions),
|
|
923
|
+
/* harmony export */ maybeRefractToJSONSchemaElement: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_11__.maybeRefractToJSONSchemaElement),
|
|
924
|
+
/* harmony export */ resolveSchema$idField: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_12__.resolveSchema$idField),
|
|
925
|
+
/* harmony export */ resolveSchema$refField: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_12__.resolveSchema$refField)
|
|
926
926
|
/* harmony export */ });
|
|
927
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
928
|
-
/* harmony import */ var
|
|
929
|
-
/* harmony import */ var
|
|
930
|
-
/* harmony import */ var
|
|
931
|
-
/* harmony import */ var
|
|
932
|
-
/* harmony import */ var
|
|
933
|
-
/* harmony import */ var
|
|
934
|
-
/* harmony import */ var
|
|
935
|
-
/* harmony import */ var
|
|
936
|
-
/* harmony import */ var
|
|
937
|
-
/* harmony import */ var
|
|
927
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96911);
|
|
928
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12111);
|
|
929
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18252);
|
|
930
|
+
/* harmony import */ var _speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80796);
|
|
931
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53787);
|
|
932
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28839);
|
|
933
|
+
/* harmony import */ var _DereferenceStrategy_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(40978);
|
|
934
|
+
/* harmony import */ var _Reference_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98979);
|
|
935
|
+
/* harmony import */ var _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24131);
|
|
936
|
+
/* harmony import */ var _visitor_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31843);
|
|
937
|
+
/* harmony import */ var _source_descriptions_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(12586);
|
|
938
|
+
/* harmony import */ var _util_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91005);
|
|
939
|
+
/* harmony import */ var _util_ts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(60888);
|
|
938
940
|
|
|
939
941
|
|
|
940
942
|
|
|
@@ -951,7 +953,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
951
953
|
/**
|
|
952
954
|
* @public
|
|
953
955
|
*/
|
|
954
|
-
class Arazzo1DereferenceStrategy extends
|
|
956
|
+
class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORTED_MODULE_6__["default"] {
|
|
955
957
|
constructor(options) {
|
|
956
958
|
super({
|
|
957
959
|
...(options ?? {}),
|
|
@@ -961,19 +963,19 @@ class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORT
|
|
|
961
963
|
canDereference(file) {
|
|
962
964
|
// assert by media type
|
|
963
965
|
if (file.mediaType !== 'text/plain') {
|
|
964
|
-
return
|
|
966
|
+
return _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__["default"].includes(file.mediaType);
|
|
965
967
|
}
|
|
966
968
|
|
|
967
969
|
// assert by inspecting ApiDOM
|
|
968
|
-
return (0,
|
|
970
|
+
return (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__.isArazzoSpecification1Element)(file.parseResult?.result);
|
|
969
971
|
}
|
|
970
972
|
async dereference(file, options) {
|
|
971
|
-
const immutableRefSet = options.dereference.refSet ?? new
|
|
972
|
-
const mutableRefSet = new
|
|
973
|
+
const immutableRefSet = options.dereference.refSet ?? new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
974
|
+
const mutableRefSet = new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
973
975
|
let refSet = immutableRefSet;
|
|
974
976
|
let reference;
|
|
975
977
|
if (!immutableRefSet.has(file.uri)) {
|
|
976
|
-
reference = new
|
|
978
|
+
reference = new _Reference_ts__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
977
979
|
uri: file.uri,
|
|
978
980
|
value: file.parseResult
|
|
979
981
|
});
|
|
@@ -988,18 +990,18 @@ class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORT
|
|
|
988
990
|
* We don't want to mutate the original refSet and the references.
|
|
989
991
|
*/
|
|
990
992
|
if (options.dereference.immutable) {
|
|
991
|
-
immutableRefSet.refs.map(ref => new
|
|
993
|
+
immutableRefSet.refs.map(ref => new _Reference_ts__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
992
994
|
...ref,
|
|
993
|
-
value: (0,
|
|
995
|
+
value: (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(ref.value)
|
|
994
996
|
})).forEach(ref => mutableRefSet.add(ref));
|
|
995
997
|
reference = mutableRefSet.find(ref => ref.uri === file.uri);
|
|
996
998
|
refSet = mutableRefSet;
|
|
997
999
|
}
|
|
998
|
-
const visitor = new
|
|
1000
|
+
const visitor = new _visitor_ts__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
999
1001
|
reference,
|
|
1000
1002
|
options
|
|
1001
1003
|
});
|
|
1002
|
-
const dereferencedElement = await (0,
|
|
1004
|
+
const dereferencedElement = await (0,_speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_3__.traverseAsync)(refSet.rootRef.value, visitor, {
|
|
1003
1005
|
mutable: true
|
|
1004
1006
|
});
|
|
1005
1007
|
|
|
@@ -1008,15 +1010,20 @@ class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORT
|
|
|
1008
1010
|
*/
|
|
1009
1011
|
const shouldDereferenceSourceDescriptions = options?.dereference?.strategyOpts?.[this.name]?.sourceDescriptions ?? options?.dereference?.strategyOpts?.sourceDescriptions;
|
|
1010
1012
|
if (shouldDereferenceSourceDescriptions) {
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
+
const parseResult = dereferencedElement;
|
|
1014
|
+
|
|
1015
|
+
// drop any existing parse-phase source description results before pushing
|
|
1016
|
+
const cleaned = parseResult.reject(item => (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isParseResultElement)(item) && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.includesClasses)(item, ['source-description']));
|
|
1017
|
+
parseResult.content = cleaned.content;
|
|
1018
|
+
const sourceDescriptions = await (0,_source_descriptions_ts__WEBPACK_IMPORTED_MODULE_10__.dereferenceSourceDescriptions)(parseResult, reference.uri, options, this.name);
|
|
1019
|
+
parseResult.push(...sourceDescriptions);
|
|
1013
1020
|
}
|
|
1014
1021
|
|
|
1015
1022
|
/**
|
|
1016
1023
|
* If immutable option is set, replay refs from the refSet.
|
|
1017
1024
|
*/
|
|
1018
1025
|
if (options.dereference.immutable) {
|
|
1019
|
-
mutableRefSet.refs.filter(ref => ref.uri.startsWith('immutable://')).map(ref => new
|
|
1026
|
+
mutableRefSet.refs.filter(ref => ref.uri.startsWith('immutable://')).map(ref => new _Reference_ts__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
1020
1027
|
...ref,
|
|
1021
1028
|
uri: ref.uri.replace(/^immutable:\/\//, '')
|
|
1022
1029
|
})).forEach(ref => immutableRefSet.add(ref));
|
|
@@ -5315,6 +5322,224 @@ class OpenAPI3_1DereferenceVisitor {
|
|
|
5315
5322
|
|
|
5316
5323
|
/***/ },
|
|
5317
5324
|
|
|
5325
|
+
/***/ 66571
|
|
5326
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5327
|
+
|
|
5328
|
+
"use strict";
|
|
5329
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5330
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5331
|
+
/* harmony export */ dereferenceExtends: () => (/* binding */ dereferenceExtends)
|
|
5332
|
+
/* harmony export */ });
|
|
5333
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
5334
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96911);
|
|
5335
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18252);
|
|
5336
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84660);
|
|
5337
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4823);
|
|
5338
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26432);
|
|
5339
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(44673);
|
|
5340
|
+
/* harmony import */ var _File_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10682);
|
|
5341
|
+
/* harmony import */ var _util_url_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30658);
|
|
5342
|
+
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(86547);
|
|
5343
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(42037);
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
|
|
5347
|
+
|
|
5348
|
+
|
|
5349
|
+
|
|
5350
|
+
|
|
5351
|
+
|
|
5352
|
+
/**
|
|
5353
|
+
* Dereferences the `extends` target document from an Overlay document's ParseResult.
|
|
5354
|
+
*
|
|
5355
|
+
* If the extends element already has a parsed result attached (from the parse phase),
|
|
5356
|
+
* it will be dereferenced in place. Otherwise, the target document will be fetched,
|
|
5357
|
+
* parsed, and dereferenced.
|
|
5358
|
+
*
|
|
5359
|
+
* The dereferenced result is pushed into the overlay's ParseResult
|
|
5360
|
+
* and always attached to the extends element's meta as 'parseResult',
|
|
5361
|
+
* overriding any existing parse result from the parse phase.
|
|
5362
|
+
* On failure, the result contains error annotations.
|
|
5363
|
+
*
|
|
5364
|
+
* @param parseResult - ParseResult containing an Overlay specification
|
|
5365
|
+
* @param parseResultRetrievalURI - URI from which the parseResult was retrieved
|
|
5366
|
+
* @param options - Full ReferenceOptions
|
|
5367
|
+
*
|
|
5368
|
+
* @public
|
|
5369
|
+
*/
|
|
5370
|
+
async function dereferenceExtends(parseResult, parseResultRetrievalURI, options) {
|
|
5371
|
+
const {
|
|
5372
|
+
api
|
|
5373
|
+
} = parseResult;
|
|
5374
|
+
const file = new _File_ts__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
5375
|
+
uri: _util_url_ts__WEBPACK_IMPORTED_MODULE_8__.sanitize(_util_url_ts__WEBPACK_IMPORTED_MODULE_8__.stripHash(parseResultRetrievalURI))
|
|
5376
|
+
});
|
|
5377
|
+
if (!(0,_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__.isOverlay1Element)(api)) {
|
|
5378
|
+
return;
|
|
5379
|
+
}
|
|
5380
|
+
const extendsElement = api.get('extends');
|
|
5381
|
+
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(extendsElement)) {
|
|
5382
|
+
return;
|
|
5383
|
+
}
|
|
5384
|
+
const extendsURI = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_6__["default"])(extendsElement);
|
|
5385
|
+
const retrievalURI = _util_url_ts__WEBPACK_IMPORTED_MODULE_8__.sanitize(_util_url_ts__WEBPACK_IMPORTED_MODULE_8__.stripHash(_util_url_ts__WEBPACK_IMPORTED_MODULE_8__.resolve(file.uri, extendsURI)));
|
|
5386
|
+
const extendsDereferenceResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
5387
|
+
extendsDereferenceResult.classes.push('extends');
|
|
5388
|
+
extendsDereferenceResult.setMetaProperty('retrievalURI', retrievalURI);
|
|
5389
|
+
try {
|
|
5390
|
+
let extendsDereferenced;
|
|
5391
|
+
|
|
5392
|
+
// check if extends was already parsed (e.g., during parse phase with extends: true)
|
|
5393
|
+
const existingParseResult = extendsElement.meta.get('parseResult');
|
|
5394
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isParseResultElement)(existingParseResult)) {
|
|
5395
|
+
// use existing parsed result - just dereference it (no re-fetch/re-parse)
|
|
5396
|
+
extendsDereferenced = await (0,_index_ts__WEBPACK_IMPORTED_MODULE_10__.dereferenceApiDOM)(existingParseResult, (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_9__.merge)(options, {
|
|
5397
|
+
parse: {
|
|
5398
|
+
mediaType: 'text/plain' // allow dereference strategy detection via ApiDOM inspection
|
|
5399
|
+
},
|
|
5400
|
+
resolve: {
|
|
5401
|
+
baseURI: retrievalURI
|
|
5402
|
+
}
|
|
5403
|
+
}));
|
|
5404
|
+
} else {
|
|
5405
|
+
// no existing parse result - fetch, parse, and dereference
|
|
5406
|
+
extendsDereferenced = await (0,_index_ts__WEBPACK_IMPORTED_MODULE_10__["default"])(retrievalURI, (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_9__.merge)(options, {
|
|
5407
|
+
parse: {
|
|
5408
|
+
mediaType: 'text/plain' // allow parser plugin detection
|
|
5409
|
+
}
|
|
5410
|
+
}));
|
|
5411
|
+
}
|
|
5412
|
+
|
|
5413
|
+
// merge dereferenced result into our wrapper
|
|
5414
|
+
for (const item of extendsDereferenced) {
|
|
5415
|
+
extendsDereferenceResult.push(item);
|
|
5416
|
+
}
|
|
5417
|
+
} catch (error) {
|
|
5418
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
5419
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"](`Error dereferencing extends target "${retrievalURI}": ${message}`);
|
|
5420
|
+
annotation.classes.push('error');
|
|
5421
|
+
extendsDereferenceResult.push(annotation);
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
// always attach result to extends element meta (even on failure - contains annotations)
|
|
5425
|
+
extendsElement.meta.set('parseResult', extendsDereferenceResult);
|
|
5426
|
+
|
|
5427
|
+
// drop any existing parse-phase extends results before pushing
|
|
5428
|
+
const cleaned = parseResult.reject(item => (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isParseResultElement)(item) && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.includesClasses)(item, ['extends']));
|
|
5429
|
+
parseResult.content = cleaned.content;
|
|
5430
|
+
parseResult.push(extendsDereferenceResult);
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
/***/ },
|
|
5434
|
+
|
|
5435
|
+
/***/ 39782
|
|
5436
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5437
|
+
|
|
5438
|
+
"use strict";
|
|
5439
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5440
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5441
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
5442
|
+
/* harmony export */ dereferenceExtends: () => (/* reexport safe */ _extends_ts__WEBPACK_IMPORTED_MODULE_6__.dereferenceExtends)
|
|
5443
|
+
/* harmony export */ });
|
|
5444
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12111);
|
|
5445
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13786);
|
|
5446
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26432);
|
|
5447
|
+
/* harmony import */ var _DereferenceStrategy_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40978);
|
|
5448
|
+
/* harmony import */ var _Reference_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98979);
|
|
5449
|
+
/* harmony import */ var _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24131);
|
|
5450
|
+
/* harmony import */ var _extends_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66571);
|
|
5451
|
+
|
|
5452
|
+
|
|
5453
|
+
|
|
5454
|
+
|
|
5455
|
+
|
|
5456
|
+
|
|
5457
|
+
|
|
5458
|
+
/**
|
|
5459
|
+
* @public
|
|
5460
|
+
*/
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* @public
|
|
5464
|
+
*/
|
|
5465
|
+
class Overlay1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORTED_MODULE_3__["default"] {
|
|
5466
|
+
constructor(options) {
|
|
5467
|
+
super({
|
|
5468
|
+
...(options ?? {}),
|
|
5469
|
+
name: 'overlay-1'
|
|
5470
|
+
});
|
|
5471
|
+
}
|
|
5472
|
+
canDereference(file) {
|
|
5473
|
+
// assert by media type
|
|
5474
|
+
if (file.mediaType !== 'text/plain') {
|
|
5475
|
+
return _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_1__["default"].includes(file.mediaType);
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
// assert by inspecting ApiDOM
|
|
5479
|
+
return (0,_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_2__.isOverlay1Element)(file.parseResult?.result);
|
|
5480
|
+
}
|
|
5481
|
+
async dereference(file, options) {
|
|
5482
|
+
const immutableRefSet = options.dereference.refSet ?? new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_5__["default"]();
|
|
5483
|
+
const mutableRefSet = new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_5__["default"]();
|
|
5484
|
+
let reference;
|
|
5485
|
+
if (!immutableRefSet.has(file.uri)) {
|
|
5486
|
+
reference = new _Reference_ts__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
5487
|
+
uri: file.uri,
|
|
5488
|
+
value: file.parseResult
|
|
5489
|
+
});
|
|
5490
|
+
immutableRefSet.add(reference);
|
|
5491
|
+
} else {
|
|
5492
|
+
// pre-computed refSet was provided as configuration option
|
|
5493
|
+
reference = immutableRefSet.find(ref => ref.uri === file.uri);
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5496
|
+
/**
|
|
5497
|
+
* Clone refSet due the dereferencing process being mutable.
|
|
5498
|
+
* We don't want to mutate the original refSet and the references.
|
|
5499
|
+
*/
|
|
5500
|
+
if (options.dereference.immutable) {
|
|
5501
|
+
immutableRefSet.refs.map(ref => new _Reference_ts__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
5502
|
+
...ref,
|
|
5503
|
+
value: (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(ref.value)
|
|
5504
|
+
})).forEach(ref => mutableRefSet.add(ref));
|
|
5505
|
+
reference = mutableRefSet.find(ref => ref.uri === file.uri);
|
|
5506
|
+
}
|
|
5507
|
+
const dereferencedElement = reference.value;
|
|
5508
|
+
|
|
5509
|
+
/**
|
|
5510
|
+
* Dereference extends target if option is enabled.
|
|
5511
|
+
*/
|
|
5512
|
+
const shouldDereferenceExtends = options?.dereference?.strategyOpts?.[this.name]?.extends ?? options?.dereference?.strategyOpts?.extends;
|
|
5513
|
+
if (shouldDereferenceExtends) {
|
|
5514
|
+
await (0,_extends_ts__WEBPACK_IMPORTED_MODULE_6__.dereferenceExtends)(dereferencedElement, reference.uri, options);
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
/**
|
|
5518
|
+
* If immutable option is set, replay refs from the refSet.
|
|
5519
|
+
*/
|
|
5520
|
+
if (options.dereference.immutable) {
|
|
5521
|
+
mutableRefSet.refs.filter(ref => ref.uri.startsWith('immutable://')).map(ref => new _Reference_ts__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
5522
|
+
...ref,
|
|
5523
|
+
uri: ref.uri.replace(/^immutable:\/\//, '')
|
|
5524
|
+
})).forEach(ref => immutableRefSet.add(ref));
|
|
5525
|
+
}
|
|
5526
|
+
|
|
5527
|
+
/**
|
|
5528
|
+
* Release all memory if this refSet was not provided as a configuration option.
|
|
5529
|
+
* If provided as configuration option, then provider is responsible for cleanup.
|
|
5530
|
+
*/
|
|
5531
|
+
if (options.dereference.refSet === null) {
|
|
5532
|
+
immutableRefSet.clean();
|
|
5533
|
+
}
|
|
5534
|
+
mutableRefSet.clean();
|
|
5535
|
+
return dereferencedElement;
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overlay1DereferenceStrategy);
|
|
5540
|
+
|
|
5541
|
+
/***/ },
|
|
5542
|
+
|
|
5318
5543
|
/***/ 53429
|
|
5319
5544
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5320
5545
|
|
|
@@ -7522,6 +7747,253 @@ class OpenAPIYAML3_1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["defa
|
|
|
7522
7747
|
|
|
7523
7748
|
/***/ },
|
|
7524
7749
|
|
|
7750
|
+
/***/ 54716
|
|
7751
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7752
|
+
|
|
7753
|
+
"use strict";
|
|
7754
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7755
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7756
|
+
/* harmony export */ parseExtends: () => (/* binding */ parseExtends)
|
|
7757
|
+
/* harmony export */ });
|
|
7758
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
7759
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84660);
|
|
7760
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4823);
|
|
7761
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26432);
|
|
7762
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44673);
|
|
7763
|
+
/* harmony import */ var _File_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10682);
|
|
7764
|
+
/* harmony import */ var _util_url_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(30658);
|
|
7765
|
+
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86547);
|
|
7766
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(35014);
|
|
7767
|
+
|
|
7768
|
+
|
|
7769
|
+
|
|
7770
|
+
|
|
7771
|
+
|
|
7772
|
+
|
|
7773
|
+
|
|
7774
|
+
|
|
7775
|
+
/**
|
|
7776
|
+
* Parses the `extends` target document from an Overlay document's ParseResult.
|
|
7777
|
+
*
|
|
7778
|
+
* The parsed extends document is pushed directly into the overlay's ParseResult
|
|
7779
|
+
* and always attached to the extends element's meta as 'parseResult',
|
|
7780
|
+
* regardless of success or failure.
|
|
7781
|
+
*
|
|
7782
|
+
* @param parseResult - ParseResult containing an Overlay specification
|
|
7783
|
+
* @param parseResultRetrievalURI - URI from which the parseResult was retrieved
|
|
7784
|
+
* @param options - Full ReferenceOptions
|
|
7785
|
+
*
|
|
7786
|
+
* @public
|
|
7787
|
+
*/
|
|
7788
|
+
async function parseExtends(parseResult, parseResultRetrievalURI, options) {
|
|
7789
|
+
const {
|
|
7790
|
+
api
|
|
7791
|
+
} = parseResult;
|
|
7792
|
+
const file = new _File_ts__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
7793
|
+
uri: _util_url_ts__WEBPACK_IMPORTED_MODULE_6__.sanitize(_util_url_ts__WEBPACK_IMPORTED_MODULE_6__.stripHash(parseResultRetrievalURI))
|
|
7794
|
+
});
|
|
7795
|
+
if (!(0,_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_3__.isOverlay1Element)(api)) {
|
|
7796
|
+
return;
|
|
7797
|
+
}
|
|
7798
|
+
const extendsElement = api.get('extends');
|
|
7799
|
+
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(extendsElement)) {
|
|
7800
|
+
return;
|
|
7801
|
+
}
|
|
7802
|
+
const extendsURI = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(extendsElement);
|
|
7803
|
+
const retrievalURI = _util_url_ts__WEBPACK_IMPORTED_MODULE_6__.sanitize(_util_url_ts__WEBPACK_IMPORTED_MODULE_6__.stripHash(_util_url_ts__WEBPACK_IMPORTED_MODULE_6__.resolve(file.uri, extendsURI)));
|
|
7804
|
+
const extendsParseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]();
|
|
7805
|
+
extendsParseResult.classes.push('extends');
|
|
7806
|
+
extendsParseResult.setMetaProperty('retrievalURI', retrievalURI);
|
|
7807
|
+
try {
|
|
7808
|
+
const targetParseResult = await (0,_index_ts__WEBPACK_IMPORTED_MODULE_8__["default"])(retrievalURI, (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_7__.merge)(options, {
|
|
7809
|
+
parse: {
|
|
7810
|
+
mediaType: 'text/plain' // force auto-detection
|
|
7811
|
+
}
|
|
7812
|
+
}));
|
|
7813
|
+
// merge parsed result into our wrapper
|
|
7814
|
+
for (const item of targetParseResult) {
|
|
7815
|
+
extendsParseResult.push(item);
|
|
7816
|
+
}
|
|
7817
|
+
} catch (error) {
|
|
7818
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
7819
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"](`Error parsing extends target "${retrievalURI}": ${message}`);
|
|
7820
|
+
annotation.classes.push('error');
|
|
7821
|
+
extendsParseResult.push(annotation);
|
|
7822
|
+
}
|
|
7823
|
+
|
|
7824
|
+
// always attach result to extends element meta (even on failure - contains annotations)
|
|
7825
|
+
extendsElement.meta.set('parseResult', extendsParseResult);
|
|
7826
|
+
parseResult.push(extendsParseResult);
|
|
7827
|
+
}
|
|
7828
|
+
|
|
7829
|
+
/***/ },
|
|
7830
|
+
|
|
7831
|
+
/***/ 92889
|
|
7832
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7833
|
+
|
|
7834
|
+
"use strict";
|
|
7835
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7836
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7837
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
7838
|
+
/* harmony export */ parseExtends: () => (/* reexport safe */ _extends_ts__WEBPACK_IMPORTED_MODULE_5__.parseExtends)
|
|
7839
|
+
/* harmony export */ });
|
|
7840
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14494);
|
|
7841
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_overlay_json_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85086);
|
|
7842
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_overlay_json_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54827);
|
|
7843
|
+
/* harmony import */ var _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89371);
|
|
7844
|
+
/* harmony import */ var _Parser_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13166);
|
|
7845
|
+
/* harmony import */ var _extends_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54716);
|
|
7846
|
+
|
|
7847
|
+
|
|
7848
|
+
|
|
7849
|
+
|
|
7850
|
+
|
|
7851
|
+
|
|
7852
|
+
/**
|
|
7853
|
+
* @public
|
|
7854
|
+
*/
|
|
7855
|
+
|
|
7856
|
+
/**
|
|
7857
|
+
* @public
|
|
7858
|
+
*/
|
|
7859
|
+
class OverlayJSON1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default"] {
|
|
7860
|
+
refractorOpts;
|
|
7861
|
+
extends;
|
|
7862
|
+
constructor(options) {
|
|
7863
|
+
const {
|
|
7864
|
+
fileExtensions = [],
|
|
7865
|
+
mediaTypes = _speclynx_apidom_parser_adapter_overlay_json_1__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
7866
|
+
...rest
|
|
7867
|
+
} = options ?? {};
|
|
7868
|
+
super({
|
|
7869
|
+
...rest,
|
|
7870
|
+
name: 'overlay-json-1',
|
|
7871
|
+
fileExtensions,
|
|
7872
|
+
mediaTypes
|
|
7873
|
+
});
|
|
7874
|
+
this.refractorOpts = {};
|
|
7875
|
+
this.extends = false;
|
|
7876
|
+
}
|
|
7877
|
+
async canParse(file) {
|
|
7878
|
+
const hasSupportedFileExtension = this.fileExtensions.length === 0 ? true : this.fileExtensions.includes(file.extension);
|
|
7879
|
+
const hasSupportedMediaType = this.mediaTypes.includes(file.mediaType);
|
|
7880
|
+
if (!hasSupportedFileExtension) return false;
|
|
7881
|
+
if (hasSupportedMediaType) return true;
|
|
7882
|
+
if (!hasSupportedMediaType) {
|
|
7883
|
+
return (0,_speclynx_apidom_parser_adapter_overlay_json_1__WEBPACK_IMPORTED_MODULE_1__.detect)(file.toString());
|
|
7884
|
+
}
|
|
7885
|
+
return false;
|
|
7886
|
+
}
|
|
7887
|
+
async parse(file, options) {
|
|
7888
|
+
const source = file.toString();
|
|
7889
|
+
try {
|
|
7890
|
+
const parserOptsNames = ['sourceMap', 'style', 'strict', 'refractorOpts', 'extends'];
|
|
7891
|
+
const parserOptsGlobal = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(parserOptsNames, this);
|
|
7892
|
+
const parserOptsLocal = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(parserOptsNames, this[this.name] ?? {});
|
|
7893
|
+
const parserOpts = {
|
|
7894
|
+
...parserOptsGlobal,
|
|
7895
|
+
...parserOptsLocal
|
|
7896
|
+
};
|
|
7897
|
+
const parseResult = await (0,_speclynx_apidom_parser_adapter_overlay_json_1__WEBPACK_IMPORTED_MODULE_1__.parse)(source, parserOpts);
|
|
7898
|
+
if (parserOpts.extends) {
|
|
7899
|
+
await (0,_extends_ts__WEBPACK_IMPORTED_MODULE_5__.parseExtends)(parseResult, file.uri, options);
|
|
7900
|
+
}
|
|
7901
|
+
return parseResult;
|
|
7902
|
+
} catch (error) {
|
|
7903
|
+
throw new _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`Error parsing "${file.uri}"`, {
|
|
7904
|
+
cause: error
|
|
7905
|
+
});
|
|
7906
|
+
}
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
|
|
7910
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayJSON1Parser);
|
|
7911
|
+
|
|
7912
|
+
/***/ },
|
|
7913
|
+
|
|
7914
|
+
/***/ 4860
|
|
7915
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7916
|
+
|
|
7917
|
+
"use strict";
|
|
7918
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7919
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7920
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
7921
|
+
/* harmony export */ parseExtends: () => (/* reexport safe */ _extends_ts__WEBPACK_IMPORTED_MODULE_5__.parseExtends)
|
|
7922
|
+
/* harmony export */ });
|
|
7923
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14494);
|
|
7924
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_overlay_yaml_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98585);
|
|
7925
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_overlay_yaml_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83004);
|
|
7926
|
+
/* harmony import */ var _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89371);
|
|
7927
|
+
/* harmony import */ var _Parser_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13166);
|
|
7928
|
+
/* harmony import */ var _extends_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54716);
|
|
7929
|
+
|
|
7930
|
+
|
|
7931
|
+
|
|
7932
|
+
|
|
7933
|
+
|
|
7934
|
+
|
|
7935
|
+
/**
|
|
7936
|
+
* @public
|
|
7937
|
+
*/
|
|
7938
|
+
|
|
7939
|
+
/**
|
|
7940
|
+
* @public
|
|
7941
|
+
*/
|
|
7942
|
+
class OverlayYAML1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default"] {
|
|
7943
|
+
refractorOpts;
|
|
7944
|
+
extends;
|
|
7945
|
+
constructor(options) {
|
|
7946
|
+
const {
|
|
7947
|
+
fileExtensions = [],
|
|
7948
|
+
mediaTypes = _speclynx_apidom_parser_adapter_overlay_yaml_1__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
7949
|
+
...rest
|
|
7950
|
+
} = options ?? {};
|
|
7951
|
+
super({
|
|
7952
|
+
...rest,
|
|
7953
|
+
name: 'overlay-yaml-1',
|
|
7954
|
+
fileExtensions,
|
|
7955
|
+
mediaTypes
|
|
7956
|
+
});
|
|
7957
|
+
this.refractorOpts = {};
|
|
7958
|
+
this.extends = false;
|
|
7959
|
+
}
|
|
7960
|
+
async canParse(file) {
|
|
7961
|
+
const hasSupportedFileExtension = this.fileExtensions.length === 0 ? true : this.fileExtensions.includes(file.extension);
|
|
7962
|
+
const hasSupportedMediaType = this.mediaTypes.includes(file.mediaType);
|
|
7963
|
+
if (!hasSupportedFileExtension) return false;
|
|
7964
|
+
if (hasSupportedMediaType) return true;
|
|
7965
|
+
if (!hasSupportedMediaType) {
|
|
7966
|
+
return (0,_speclynx_apidom_parser_adapter_overlay_yaml_1__WEBPACK_IMPORTED_MODULE_1__.detect)(file.toString());
|
|
7967
|
+
}
|
|
7968
|
+
return false;
|
|
7969
|
+
}
|
|
7970
|
+
async parse(file, options) {
|
|
7971
|
+
const source = file.toString();
|
|
7972
|
+
try {
|
|
7973
|
+
const parserOptsNames = ['sourceMap', 'style', 'strict', 'refractorOpts', 'extends'];
|
|
7974
|
+
const parserOptsGlobal = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(parserOptsNames, this);
|
|
7975
|
+
const parserOptsLocal = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(parserOptsNames, this[this.name] ?? {});
|
|
7976
|
+
const parserOpts = {
|
|
7977
|
+
...parserOptsGlobal,
|
|
7978
|
+
...parserOptsLocal
|
|
7979
|
+
};
|
|
7980
|
+
const parseResult = await (0,_speclynx_apidom_parser_adapter_overlay_yaml_1__WEBPACK_IMPORTED_MODULE_1__.parse)(source, parserOpts);
|
|
7981
|
+
if (parserOpts.extends) {
|
|
7982
|
+
await (0,_extends_ts__WEBPACK_IMPORTED_MODULE_5__.parseExtends)(parseResult, file.uri, options);
|
|
7983
|
+
}
|
|
7984
|
+
return parseResult;
|
|
7985
|
+
} catch (error) {
|
|
7986
|
+
throw new _errors_ParserError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`Error parsing "${file.uri}"`, {
|
|
7987
|
+
cause: error
|
|
7988
|
+
});
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayYAML1Parser);
|
|
7994
|
+
|
|
7995
|
+
/***/ },
|
|
7996
|
+
|
|
7525
7997
|
/***/ 94320
|
|
7526
7998
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7527
7999
|
|
|
@@ -8046,6 +8518,66 @@ class ApiDOMResolveStrategy extends _ResolveStrategy_ts__WEBPACK_IMPORTED_MODULE
|
|
|
8046
8518
|
|
|
8047
8519
|
/***/ },
|
|
8048
8520
|
|
|
8521
|
+
/***/ 24305
|
|
8522
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8523
|
+
|
|
8524
|
+
"use strict";
|
|
8525
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8526
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8527
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8528
|
+
/* harmony export */ });
|
|
8529
|
+
/* harmony import */ var _ResolveStrategy_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97758);
|
|
8530
|
+
/* harmony import */ var _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24131);
|
|
8531
|
+
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86547);
|
|
8532
|
+
/* harmony import */ var _errors_UnmatchedDereferenceStrategyError_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7204);
|
|
8533
|
+
|
|
8534
|
+
|
|
8535
|
+
|
|
8536
|
+
|
|
8537
|
+
|
|
8538
|
+
/**
|
|
8539
|
+
* @public
|
|
8540
|
+
*/
|
|
8541
|
+
|
|
8542
|
+
/**
|
|
8543
|
+
* @public
|
|
8544
|
+
*/
|
|
8545
|
+
class Arazzo1ResolveStrategy extends _ResolveStrategy_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
8546
|
+
constructor(options) {
|
|
8547
|
+
super({
|
|
8548
|
+
...(options ?? {}),
|
|
8549
|
+
name: 'arazzo-1'
|
|
8550
|
+
});
|
|
8551
|
+
}
|
|
8552
|
+
canResolve(file, options) {
|
|
8553
|
+
const dereferenceStrategy = options.dereference.strategies.find(strategy => strategy.name === 'arazzo-1');
|
|
8554
|
+
if (dereferenceStrategy === undefined) {
|
|
8555
|
+
return false;
|
|
8556
|
+
}
|
|
8557
|
+
return dereferenceStrategy.canDereference(file, options);
|
|
8558
|
+
}
|
|
8559
|
+
async resolve(file, options) {
|
|
8560
|
+
const dereferenceStrategy = options.dereference.strategies.find(strategy => strategy.name === 'arazzo-1');
|
|
8561
|
+
if (dereferenceStrategy === undefined) {
|
|
8562
|
+
throw new _errors_UnmatchedDereferenceStrategyError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`"arazzo-1" resolve strategy requires "arazzo-1" dereference strategy to be configured for file "${file.uri}"`);
|
|
8563
|
+
}
|
|
8564
|
+
const refSet = new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
8565
|
+
const mergedOptions = (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_2__.merge)(options, {
|
|
8566
|
+
resolve: {
|
|
8567
|
+
internal: false
|
|
8568
|
+
},
|
|
8569
|
+
dereference: {
|
|
8570
|
+
refSet
|
|
8571
|
+
}
|
|
8572
|
+
});
|
|
8573
|
+
await dereferenceStrategy.dereference(file, mergedOptions);
|
|
8574
|
+
return refSet;
|
|
8575
|
+
}
|
|
8576
|
+
}
|
|
8577
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Arazzo1ResolveStrategy);
|
|
8578
|
+
|
|
8579
|
+
/***/ },
|
|
8580
|
+
|
|
8049
8581
|
/***/ 98095
|
|
8050
8582
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8051
8583
|
|
|
@@ -8286,6 +8818,66 @@ class OpenAPI3_1ResolveStrategy extends _ResolveStrategy_ts__WEBPACK_IMPORTED_MO
|
|
|
8286
8818
|
|
|
8287
8819
|
/***/ },
|
|
8288
8820
|
|
|
8821
|
+
/***/ 59882
|
|
8822
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8823
|
+
|
|
8824
|
+
"use strict";
|
|
8825
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8826
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8827
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8828
|
+
/* harmony export */ });
|
|
8829
|
+
/* harmony import */ var _ResolveStrategy_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97758);
|
|
8830
|
+
/* harmony import */ var _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24131);
|
|
8831
|
+
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86547);
|
|
8832
|
+
/* harmony import */ var _errors_UnmatchedDereferenceStrategyError_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7204);
|
|
8833
|
+
|
|
8834
|
+
|
|
8835
|
+
|
|
8836
|
+
|
|
8837
|
+
|
|
8838
|
+
/**
|
|
8839
|
+
* @public
|
|
8840
|
+
*/
|
|
8841
|
+
|
|
8842
|
+
/**
|
|
8843
|
+
* @public
|
|
8844
|
+
*/
|
|
8845
|
+
class Overlay1ResolveStrategy extends _ResolveStrategy_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
8846
|
+
constructor(options) {
|
|
8847
|
+
super({
|
|
8848
|
+
...(options ?? {}),
|
|
8849
|
+
name: 'overlay-1'
|
|
8850
|
+
});
|
|
8851
|
+
}
|
|
8852
|
+
canResolve(file, options) {
|
|
8853
|
+
const dereferenceStrategy = options.dereference.strategies.find(strategy => strategy.name === 'overlay-1');
|
|
8854
|
+
if (dereferenceStrategy === undefined) {
|
|
8855
|
+
return false;
|
|
8856
|
+
}
|
|
8857
|
+
return dereferenceStrategy.canDereference(file, options);
|
|
8858
|
+
}
|
|
8859
|
+
async resolve(file, options) {
|
|
8860
|
+
const dereferenceStrategy = options.dereference.strategies.find(strategy => strategy.name === 'overlay-1');
|
|
8861
|
+
if (dereferenceStrategy === undefined) {
|
|
8862
|
+
throw new _errors_UnmatchedDereferenceStrategyError_ts__WEBPACK_IMPORTED_MODULE_3__["default"](`"overlay-1" resolve strategy requires "overlay-1" dereference strategy to be configured for file "${file.uri}"`);
|
|
8863
|
+
}
|
|
8864
|
+
const refSet = new _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
8865
|
+
const mergedOptions = (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_2__.merge)(options, {
|
|
8866
|
+
resolve: {
|
|
8867
|
+
internal: false
|
|
8868
|
+
},
|
|
8869
|
+
dereference: {
|
|
8870
|
+
refSet
|
|
8871
|
+
}
|
|
8872
|
+
});
|
|
8873
|
+
await dereferenceStrategy.dereference(file, mergedOptions);
|
|
8874
|
+
return refSet;
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8877
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overlay1ResolveStrategy);
|
|
8878
|
+
|
|
8879
|
+
/***/ },
|
|
8880
|
+
|
|
8289
8881
|
/***/ 95497
|
|
8290
8882
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8291
8883
|
|
|
@@ -21010,8 +21602,10 @@ const factory = (env) => {
|
|
|
21010
21602
|
test(() => {
|
|
21011
21603
|
let duplexAccessed = false;
|
|
21012
21604
|
|
|
21605
|
+
const body = new ReadableStream();
|
|
21606
|
+
|
|
21013
21607
|
const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
|
|
21014
|
-
body
|
|
21608
|
+
body,
|
|
21015
21609
|
method: 'POST',
|
|
21016
21610
|
get duplex() {
|
|
21017
21611
|
duplexAccessed = true;
|
|
@@ -21019,6 +21613,8 @@ const factory = (env) => {
|
|
|
21019
21613
|
},
|
|
21020
21614
|
}).headers.has('Content-Type');
|
|
21021
21615
|
|
|
21616
|
+
body.cancel();
|
|
21617
|
+
|
|
21022
21618
|
return duplexAccessed && !hasContentType;
|
|
21023
21619
|
});
|
|
21024
21620
|
|
|
@@ -21907,13 +22503,29 @@ class Axios {
|
|
|
21907
22503
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
21908
22504
|
|
|
21909
22505
|
// slice off the Error: ... line
|
|
21910
|
-
const stack =
|
|
22506
|
+
const stack = (() => {
|
|
22507
|
+
if (!dummy.stack) {
|
|
22508
|
+
return '';
|
|
22509
|
+
}
|
|
22510
|
+
|
|
22511
|
+
const firstNewlineIndex = dummy.stack.indexOf('\n');
|
|
22512
|
+
|
|
22513
|
+
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
22514
|
+
})();
|
|
21911
22515
|
try {
|
|
21912
22516
|
if (!err.stack) {
|
|
21913
22517
|
err.stack = stack;
|
|
21914
22518
|
// match without the 2 top stack lines
|
|
21915
|
-
} else if (stack
|
|
21916
|
-
|
|
22519
|
+
} else if (stack) {
|
|
22520
|
+
const firstNewlineIndex = stack.indexOf('\n');
|
|
22521
|
+
const secondNewlineIndex =
|
|
22522
|
+
firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
|
|
22523
|
+
const stackWithoutTwoTopLines =
|
|
22524
|
+
secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
|
|
22525
|
+
|
|
22526
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
22527
|
+
err.stack += '\n' + stack;
|
|
22528
|
+
}
|
|
21917
22529
|
}
|
|
21918
22530
|
} catch (e) {
|
|
21919
22531
|
// ignore the case where "stack" is an un-writable property
|
|
@@ -22097,8 +22709,6 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'hea
|
|
|
22097
22709
|
});
|
|
22098
22710
|
|
|
22099
22711
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
22100
|
-
/*eslint func-names:0*/
|
|
22101
|
-
|
|
22102
22712
|
function generateHTTPMethod(isForm) {
|
|
22103
22713
|
return function httpMethod(url, data, config) {
|
|
22104
22714
|
return this.request(
|
|
@@ -22246,16 +22856,49 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22246
22856
|
|
|
22247
22857
|
const $internals = Symbol('internals');
|
|
22248
22858
|
|
|
22859
|
+
const isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
22860
|
+
|
|
22861
|
+
function assertValidHeaderValue(value, header) {
|
|
22862
|
+
if (value === false || value == null) {
|
|
22863
|
+
return;
|
|
22864
|
+
}
|
|
22865
|
+
|
|
22866
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)) {
|
|
22867
|
+
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
22868
|
+
return;
|
|
22869
|
+
}
|
|
22870
|
+
|
|
22871
|
+
if (!isValidHeaderValue(String(value))) {
|
|
22872
|
+
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
22873
|
+
}
|
|
22874
|
+
}
|
|
22875
|
+
|
|
22249
22876
|
function normalizeHeader(header) {
|
|
22250
22877
|
return header && String(header).trim().toLowerCase();
|
|
22251
22878
|
}
|
|
22252
22879
|
|
|
22880
|
+
function stripTrailingCRLF(str) {
|
|
22881
|
+
let end = str.length;
|
|
22882
|
+
|
|
22883
|
+
while (end > 0) {
|
|
22884
|
+
const charCode = str.charCodeAt(end - 1);
|
|
22885
|
+
|
|
22886
|
+
if (charCode !== 10 && charCode !== 13) {
|
|
22887
|
+
break;
|
|
22888
|
+
}
|
|
22889
|
+
|
|
22890
|
+
end -= 1;
|
|
22891
|
+
}
|
|
22892
|
+
|
|
22893
|
+
return end === str.length ? str : str.slice(0, end);
|
|
22894
|
+
}
|
|
22895
|
+
|
|
22253
22896
|
function normalizeValue(value) {
|
|
22254
22897
|
if (value === false || value == null) {
|
|
22255
22898
|
return value;
|
|
22256
22899
|
}
|
|
22257
22900
|
|
|
22258
|
-
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value);
|
|
22901
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
22259
22902
|
}
|
|
22260
22903
|
|
|
22261
22904
|
function parseTokens(str) {
|
|
@@ -22337,6 +22980,7 @@ class AxiosHeaders {
|
|
|
22337
22980
|
_rewrite === true ||
|
|
22338
22981
|
(_rewrite === undefined && self[key] !== false)
|
|
22339
22982
|
) {
|
|
22983
|
+
assertValidHeaderValue(_value, _header);
|
|
22340
22984
|
self[key || _header] = normalizeValue(_value);
|
|
22341
22985
|
}
|
|
22342
22986
|
}
|
|
@@ -23230,7 +23874,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23230
23874
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23231
23875
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
23232
23876
|
/* harmony export */ });
|
|
23233
|
-
const VERSION = "1.
|
|
23877
|
+
const VERSION = "1.15.0";
|
|
23234
23878
|
|
|
23235
23879
|
/***/ },
|
|
23236
23880
|
|
|
@@ -23440,8 +24084,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23440
24084
|
|
|
23441
24085
|
|
|
23442
24086
|
/**
|
|
23443
|
-
* It replaces
|
|
23444
|
-
*
|
|
24087
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
24088
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
23445
24089
|
*
|
|
23446
24090
|
* @param {string} val The value to be encoded.
|
|
23447
24091
|
*
|
|
@@ -23951,6 +24595,7 @@ const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toOb
|
|
|
23951
24595
|
|
|
23952
24596
|
return parsed;
|
|
23953
24597
|
});
|
|
24598
|
+
(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, "name") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, "name", { value: "default", configurable: true });
|
|
23954
24599
|
|
|
23955
24600
|
|
|
23956
24601
|
/***/ },
|
|
@@ -24127,6 +24772,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24127
24772
|
|
|
24128
24773
|
return newConfig;
|
|
24129
24774
|
});
|
|
24775
|
+
(Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, "name") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, "name", { value: "default", configurable: true });
|
|
24130
24776
|
|
|
24131
24777
|
|
|
24132
24778
|
/***/ },
|
|
@@ -38642,19 +39288,26 @@ function composeNode(ctx, token, props, onError) {
|
|
|
38642
39288
|
case 'block-map':
|
|
38643
39289
|
case 'block-seq':
|
|
38644
39290
|
case 'flow-collection':
|
|
38645
|
-
|
|
38646
|
-
|
|
38647
|
-
|
|
39291
|
+
try {
|
|
39292
|
+
node = (0,_compose_collection_js__WEBPACK_IMPORTED_MODULE_2__.composeCollection)(CN, ctx, token, props, onError);
|
|
39293
|
+
if (anchor)
|
|
39294
|
+
node.anchor = anchor.source.substring(1);
|
|
39295
|
+
}
|
|
39296
|
+
catch (error) {
|
|
39297
|
+
// Almost certainly here due to a stack overflow
|
|
39298
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
39299
|
+
onError(token, 'RESOURCE_EXHAUSTION', message);
|
|
39300
|
+
}
|
|
38648
39301
|
break;
|
|
38649
39302
|
default: {
|
|
38650
39303
|
const message = token.type === 'error'
|
|
38651
39304
|
? token.message
|
|
38652
39305
|
: `Unsupported token (type: ${token.type})`;
|
|
38653
39306
|
onError(token, 'UNEXPECTED_TOKEN', message);
|
|
38654
|
-
node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError);
|
|
38655
39307
|
isSrcToken = false;
|
|
38656
39308
|
}
|
|
38657
39309
|
}
|
|
39310
|
+
node ?? (node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError));
|
|
38658
39311
|
if (anchor && node.anchor === '')
|
|
38659
39312
|
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
|
38660
39313
|
if (atKey &&
|
|
@@ -46173,6 +46826,7 @@ function createStringifyContext(doc, options) {
|
|
|
46173
46826
|
nullStr: 'null',
|
|
46174
46827
|
simpleKeys: false,
|
|
46175
46828
|
singleQuote: null,
|
|
46829
|
+
trailingComma: false,
|
|
46176
46830
|
trueStr: 'true',
|
|
46177
46831
|
verifyAliasOrder: true
|
|
46178
46832
|
}, doc.schema.toStringOptions, options);
|
|
@@ -46398,12 +47052,22 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
|
46398
47052
|
if (comment)
|
|
46399
47053
|
reqNewline = true;
|
|
46400
47054
|
let str = (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.stringify)(item, itemCtx, () => (comment = null));
|
|
46401
|
-
|
|
47055
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes('\n'));
|
|
47056
|
+
if (i < items.length - 1) {
|
|
46402
47057
|
str += ',';
|
|
47058
|
+
}
|
|
47059
|
+
else if (ctx.options.trailingComma) {
|
|
47060
|
+
if (ctx.options.lineWidth > 0) {
|
|
47061
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) +
|
|
47062
|
+
(str.length + 2) >
|
|
47063
|
+
ctx.options.lineWidth);
|
|
47064
|
+
}
|
|
47065
|
+
if (reqNewline) {
|
|
47066
|
+
str += ',';
|
|
47067
|
+
}
|
|
47068
|
+
}
|
|
46403
47069
|
if (comment)
|
|
46404
47070
|
str += (0,_stringifyComment_js__WEBPACK_IMPORTED_MODULE_2__.lineComment)(str, itemIndent, commentString(comment));
|
|
46405
|
-
if (!reqNewline && (lines.length > linesAtValue || str.includes('\n')))
|
|
46406
|
-
reqNewline = true;
|
|
46407
47071
|
lines.push(str);
|
|
46408
47072
|
linesAtValue = lines.length;
|
|
46409
47073
|
}
|
|
@@ -92226,75 +92890,62 @@ class XmlVisitor extends BaseXMLVisitor {
|
|
|
92226
92890
|
|
|
92227
92891
|
/***/ },
|
|
92228
92892
|
|
|
92229
|
-
/***/
|
|
92893
|
+
/***/ 19642
|
|
92230
92894
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92231
92895
|
|
|
92232
92896
|
"use strict";
|
|
92233
92897
|
__webpack_require__.r(__webpack_exports__);
|
|
92234
92898
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92235
|
-
/* harmony export */
|
|
92236
|
-
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
92237
|
-
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
92238
|
-
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
92239
|
-
/* harmony export */ parse: () => (/* binding */ parse)
|
|
92899
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92240
92900
|
/* harmony export */ });
|
|
92241
|
-
/* harmony import */ var
|
|
92242
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
92243
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
92244
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
92245
|
-
/* harmony import */ var _speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28165);
|
|
92246
|
-
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74042);
|
|
92247
|
-
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7392);
|
|
92248
|
-
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29028);
|
|
92249
|
-
|
|
92250
|
-
|
|
92251
|
-
|
|
92252
|
-
|
|
92253
|
-
|
|
92254
|
-
|
|
92255
|
-
/**
|
|
92256
|
-
* @public
|
|
92257
|
-
*/
|
|
92258
|
-
const detectionRegExp = /"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/;
|
|
92259
|
-
|
|
92260
|
-
/**
|
|
92261
|
-
* @public
|
|
92262
|
-
*/
|
|
92263
|
-
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
92901
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97071);
|
|
92264
92902
|
|
|
92265
|
-
/**
|
|
92266
|
-
* @public
|
|
92267
|
-
*/
|
|
92268
92903
|
|
|
92269
92904
|
/**
|
|
92270
92905
|
* @public
|
|
92271
92906
|
*/
|
|
92272
|
-
|
|
92273
|
-
|
|
92274
|
-
|
|
92275
|
-
|
|
92276
|
-
|
|
92277
|
-
result
|
|
92278
|
-
} = parseResultElement;
|
|
92279
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
92280
|
-
const arazzoSpecificationElement = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__.refractArazzoSpecification1)(result, {
|
|
92281
|
-
consume: true,
|
|
92282
|
-
...refractorOpts
|
|
92283
|
-
});
|
|
92284
|
-
arazzoSpecificationElement.classes.push('result');
|
|
92285
|
-
parseResultElement.replaceResult(arazzoSpecificationElement);
|
|
92907
|
+
class Action extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
92908
|
+
constructor(content, meta, attributes) {
|
|
92909
|
+
super(content, meta, attributes);
|
|
92910
|
+
this.element = 'action';
|
|
92911
|
+
this.classes.push('action');
|
|
92286
92912
|
}
|
|
92287
|
-
|
|
92288
|
-
|
|
92289
|
-
|
|
92290
|
-
|
|
92291
|
-
|
|
92292
|
-
|
|
92293
|
-
|
|
92913
|
+
get target() {
|
|
92914
|
+
return this.get('target');
|
|
92915
|
+
}
|
|
92916
|
+
set target(target) {
|
|
92917
|
+
this.set('target', target);
|
|
92918
|
+
}
|
|
92919
|
+
get description() {
|
|
92920
|
+
return this.get('description');
|
|
92921
|
+
}
|
|
92922
|
+
set description(description) {
|
|
92923
|
+
this.set('description', description);
|
|
92924
|
+
}
|
|
92925
|
+
get update() {
|
|
92926
|
+
return this.get('update');
|
|
92927
|
+
}
|
|
92928
|
+
set update(update) {
|
|
92929
|
+
this.set('update', update);
|
|
92930
|
+
}
|
|
92931
|
+
get copy() {
|
|
92932
|
+
return this.get('copy');
|
|
92933
|
+
}
|
|
92934
|
+
set copy(copy) {
|
|
92935
|
+
this.set('copy', copy);
|
|
92936
|
+
}
|
|
92937
|
+
get removeField() {
|
|
92938
|
+
return this.get('remove');
|
|
92939
|
+
}
|
|
92940
|
+
set removeField(remove) {
|
|
92941
|
+
this.set('remove', remove);
|
|
92942
|
+
}
|
|
92943
|
+
}
|
|
92944
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Action);
|
|
92294
92945
|
|
|
92295
92946
|
/***/ },
|
|
92296
92947
|
|
|
92297
|
-
/***/
|
|
92948
|
+
/***/ 41012
|
|
92298
92949
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92299
92950
|
|
|
92300
92951
|
"use strict";
|
|
@@ -92302,86 +92953,116 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92302
92953
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92303
92954
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92304
92955
|
/* harmony export */ });
|
|
92305
|
-
/* harmony import */ var
|
|
92956
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97071);
|
|
92306
92957
|
|
|
92307
92958
|
|
|
92308
92959
|
/**
|
|
92309
92960
|
* @public
|
|
92310
92961
|
*/
|
|
92311
|
-
|
|
92312
|
-
|
|
92962
|
+
class Info extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
92963
|
+
constructor(content, meta, attributes) {
|
|
92964
|
+
super(content, meta, attributes);
|
|
92965
|
+
this.element = 'info';
|
|
92966
|
+
this.classes.push('info');
|
|
92967
|
+
}
|
|
92968
|
+
get title() {
|
|
92969
|
+
return this.get('title');
|
|
92970
|
+
}
|
|
92971
|
+
set title(title) {
|
|
92972
|
+
this.set('title', title);
|
|
92973
|
+
}
|
|
92974
|
+
get description() {
|
|
92975
|
+
return this.get('description');
|
|
92976
|
+
}
|
|
92977
|
+
set description(description) {
|
|
92978
|
+
this.set('description', description);
|
|
92979
|
+
}
|
|
92980
|
+
get version() {
|
|
92981
|
+
return this.get('version');
|
|
92982
|
+
}
|
|
92983
|
+
set version(version) {
|
|
92984
|
+
this.set('version', version);
|
|
92985
|
+
}
|
|
92986
|
+
}
|
|
92987
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Info);
|
|
92313
92988
|
|
|
92314
92989
|
/***/ },
|
|
92315
92990
|
|
|
92316
|
-
/***/
|
|
92991
|
+
/***/ 79100
|
|
92317
92992
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92318
92993
|
|
|
92319
92994
|
"use strict";
|
|
92320
92995
|
__webpack_require__.r(__webpack_exports__);
|
|
92321
92996
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92322
|
-
/* harmony export */
|
|
92323
|
-
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
92324
|
-
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
92325
|
-
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
92326
|
-
/* harmony export */ parse: () => (/* binding */ parse)
|
|
92997
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92327
92998
|
/* harmony export */ });
|
|
92328
|
-
/* harmony import */ var
|
|
92329
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
92330
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
92331
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
92332
|
-
/* harmony import */ var _speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91333);
|
|
92333
|
-
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74042);
|
|
92334
|
-
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7392);
|
|
92335
|
-
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43195);
|
|
92336
|
-
|
|
92337
|
-
|
|
92338
|
-
|
|
92339
|
-
|
|
92999
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28121);
|
|
92340
93000
|
|
|
92341
93001
|
|
|
92342
93002
|
/**
|
|
92343
93003
|
* @public
|
|
92344
93004
|
*/
|
|
92345
|
-
|
|
93005
|
+
class Overlay extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
93006
|
+
constructor(content, meta, attributes) {
|
|
93007
|
+
super(content, meta, attributes);
|
|
93008
|
+
this.element = 'overlay';
|
|
93009
|
+
this.classes.push('spec-version');
|
|
93010
|
+
this.classes.push('version');
|
|
93011
|
+
}
|
|
93012
|
+
}
|
|
93013
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overlay);
|
|
92346
93014
|
|
|
92347
|
-
|
|
92348
|
-
* @public
|
|
92349
|
-
*/
|
|
92350
|
-
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
93015
|
+
/***/ },
|
|
92351
93016
|
|
|
92352
|
-
|
|
92353
|
-
|
|
92354
|
-
*/
|
|
93017
|
+
/***/ 68913
|
|
93018
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92355
93019
|
|
|
92356
|
-
|
|
92357
|
-
|
|
92358
|
-
*/
|
|
92359
|
-
|
|
92360
|
-
|
|
92361
|
-
|
|
92362
|
-
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
92363
|
-
const {
|
|
92364
|
-
result
|
|
92365
|
-
} = parseResultElement;
|
|
92366
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
92367
|
-
const arazzoSpecificationElement = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__.refractArazzoSpecification1)(result, {
|
|
92368
|
-
consume: true,
|
|
92369
|
-
...refractorOpts
|
|
92370
|
-
});
|
|
92371
|
-
arazzoSpecificationElement.classes.push('result');
|
|
92372
|
-
parseResultElement.replaceResult(arazzoSpecificationElement);
|
|
92373
|
-
}
|
|
92374
|
-
return parseResultElement;
|
|
92375
|
-
};
|
|
93020
|
+
"use strict";
|
|
93021
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93022
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93023
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93024
|
+
/* harmony export */ });
|
|
93025
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97071);
|
|
92376
93026
|
|
|
92377
93027
|
/**
|
|
92378
93028
|
* @public
|
|
92379
93029
|
*/
|
|
92380
|
-
|
|
93030
|
+
class Overlay1 extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
93031
|
+
constructor(content, meta, attributes) {
|
|
93032
|
+
super(content, meta, attributes);
|
|
93033
|
+
this.element = 'overlay1';
|
|
93034
|
+
this.classes.push('api');
|
|
93035
|
+
}
|
|
93036
|
+
get overlay() {
|
|
93037
|
+
return this.get('overlay');
|
|
93038
|
+
}
|
|
93039
|
+
set overlay(overlay) {
|
|
93040
|
+
this.set('overlay', overlay);
|
|
93041
|
+
}
|
|
93042
|
+
get info() {
|
|
93043
|
+
return this.get('info');
|
|
93044
|
+
}
|
|
93045
|
+
set info(info) {
|
|
93046
|
+
this.set('info', info);
|
|
93047
|
+
}
|
|
93048
|
+
get extends() {
|
|
93049
|
+
return this.get('extends');
|
|
93050
|
+
}
|
|
93051
|
+
set extends(extendsVal) {
|
|
93052
|
+
this.set('extends', extendsVal);
|
|
93053
|
+
}
|
|
93054
|
+
get actions() {
|
|
93055
|
+
return this.get('actions');
|
|
93056
|
+
}
|
|
93057
|
+
set actions(actions) {
|
|
93058
|
+
this.set('actions', actions);
|
|
93059
|
+
}
|
|
93060
|
+
}
|
|
93061
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Overlay1);
|
|
92381
93062
|
|
|
92382
93063
|
/***/ },
|
|
92383
93064
|
|
|
92384
|
-
/***/
|
|
93065
|
+
/***/ 39505
|
|
92385
93066
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92386
93067
|
|
|
92387
93068
|
"use strict";
|
|
@@ -92389,52 +93070,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92389
93070
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92390
93071
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92391
93072
|
/* harmony export */ });
|
|
92392
|
-
/* harmony import */ var
|
|
93073
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97601);
|
|
92393
93074
|
|
|
92394
93075
|
|
|
92395
93076
|
/**
|
|
92396
93077
|
* @public
|
|
92397
93078
|
*/
|
|
92398
|
-
|
|
92399
|
-
|
|
93079
|
+
class Actions extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
93080
|
+
static primaryClass = 'actions';
|
|
93081
|
+
constructor(content, meta, attributes) {
|
|
93082
|
+
super(content, meta, attributes);
|
|
93083
|
+
this.classes.push(Actions.primaryClass);
|
|
93084
|
+
}
|
|
93085
|
+
}
|
|
93086
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Actions);
|
|
92400
93087
|
|
|
92401
93088
|
/***/ },
|
|
92402
93089
|
|
|
92403
|
-
/***/
|
|
93090
|
+
/***/ 13786
|
|
92404
93091
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92405
93092
|
|
|
92406
93093
|
"use strict";
|
|
92407
93094
|
__webpack_require__.r(__webpack_exports__);
|
|
92408
93095
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92409
|
-
/* harmony export */
|
|
92410
|
-
/* harmony export */
|
|
92411
|
-
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
92412
|
-
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
92413
|
-
/* harmony export */ parse: () => (/* binding */ parse)
|
|
93096
|
+
/* harmony export */ OverlayMediaTypes: () => (/* binding */ OverlayMediaTypes),
|
|
93097
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92414
93098
|
/* harmony export */ });
|
|
92415
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
92416
|
-
/* harmony import */ var
|
|
92417
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
92418
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
92419
|
-
/* harmony import */ var _speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28165);
|
|
92420
|
-
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70264);
|
|
92421
|
-
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25146);
|
|
92422
|
-
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1532);
|
|
92423
|
-
|
|
92424
|
-
|
|
92425
|
-
|
|
92426
|
-
|
|
92427
|
-
|
|
93099
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49451);
|
|
93100
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12275);
|
|
92428
93101
|
|
|
92429
|
-
/**
|
|
92430
|
-
* @public
|
|
92431
|
-
*/
|
|
92432
|
-
const detectionRegExp = /"asyncapi"\s*:\s*"(?<version_json>2\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/;
|
|
92433
93102
|
|
|
92434
|
-
/**
|
|
92435
|
-
* @public
|
|
92436
|
-
*/
|
|
92437
|
-
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
92438
93103
|
|
|
92439
93104
|
/**
|
|
92440
93105
|
* @public
|
|
@@ -92443,32 +93108,30 @@ const detect = async (source, options = {}) => detectionRegExp.test(source) && (
|
|
|
92443
93108
|
/**
|
|
92444
93109
|
* @public
|
|
92445
93110
|
*/
|
|
92446
|
-
|
|
92447
|
-
|
|
92448
|
-
|
|
92449
|
-
|
|
92450
|
-
const {
|
|
92451
|
-
result
|
|
92452
|
-
} = parseResultElement;
|
|
92453
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
92454
|
-
const asyncApiElement = (0,_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__.refractAsyncApi2)(result, {
|
|
92455
|
-
consume: true,
|
|
92456
|
-
...refractorOpts
|
|
92457
|
-
});
|
|
92458
|
-
asyncApiElement.classes.push('result');
|
|
92459
|
-
parseResultElement.replaceResult(asyncApiElement);
|
|
93111
|
+
class OverlayMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
93112
|
+
filterByFormat(format = 'generic') {
|
|
93113
|
+
const effectiveFormat = format === 'generic' ? 'overlay;version' : format;
|
|
93114
|
+
return this.filter(mediaType => mediaType.includes(effectiveFormat));
|
|
92460
93115
|
}
|
|
92461
|
-
|
|
92462
|
-
};
|
|
93116
|
+
findBy(version = '1.1.0', format = 'generic') {
|
|
93117
|
+
const search = format === 'generic' ? `vnd.oai.overlay;version=${version}` : `vnd.oai.overlay+${format};version=${version}`;
|
|
93118
|
+
const found = this.find(mediaType => mediaType.includes(search));
|
|
93119
|
+
return found || this.unknownMediaType;
|
|
93120
|
+
}
|
|
93121
|
+
latest(format = 'generic') {
|
|
93122
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(this.filterByFormat(format));
|
|
93123
|
+
}
|
|
93124
|
+
}
|
|
92463
93125
|
|
|
92464
93126
|
/**
|
|
92465
93127
|
* @public
|
|
92466
93128
|
*/
|
|
92467
|
-
const
|
|
93129
|
+
const mediaTypes = new OverlayMediaTypes('application/vnd.oai.overlay;version=1.0.0', 'application/vnd.oai.overlay+json;version=1.0.0', 'application/vnd.oai.overlay+yaml;version=1.0.0', 'application/vnd.oai.overlay;version=1.1.0', 'application/vnd.oai.overlay+json;version=1.1.0', 'application/vnd.oai.overlay+yaml;version=1.1.0');
|
|
93130
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
|
|
92468
93131
|
|
|
92469
93132
|
/***/ },
|
|
92470
93133
|
|
|
92471
|
-
/***/
|
|
93134
|
+
/***/ 75847
|
|
92472
93135
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92473
93136
|
|
|
92474
93137
|
"use strict";
|
|
@@ -92476,125 +93139,103 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92476
93139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92477
93140
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
92478
93141
|
/* harmony export */ });
|
|
92479
|
-
/* harmony import */ var
|
|
93142
|
+
/* harmony import */ var _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79100);
|
|
93143
|
+
/* harmony import */ var _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68913);
|
|
93144
|
+
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41012);
|
|
93145
|
+
/* harmony import */ var _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19642);
|
|
93146
|
+
|
|
93147
|
+
|
|
92480
93148
|
|
|
92481
93149
|
|
|
92482
93150
|
/**
|
|
92483
93151
|
* @public
|
|
92484
93152
|
*/
|
|
92485
|
-
const
|
|
92486
|
-
|
|
93153
|
+
const overlay1 = {
|
|
93154
|
+
namespace: options => {
|
|
93155
|
+
const {
|
|
93156
|
+
base
|
|
93157
|
+
} = options;
|
|
93158
|
+
base.register('overlay', _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
93159
|
+
base.register('overlay1', _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
93160
|
+
base.register('info', _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
93161
|
+
base.register('action', _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
93162
|
+
return base;
|
|
93163
|
+
}
|
|
93164
|
+
};
|
|
93165
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overlay1);
|
|
92487
93166
|
|
|
92488
93167
|
/***/ },
|
|
92489
93168
|
|
|
92490
|
-
/***/
|
|
93169
|
+
/***/ 26432
|
|
92491
93170
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92492
93171
|
|
|
92493
93172
|
"use strict";
|
|
92494
93173
|
__webpack_require__.r(__webpack_exports__);
|
|
92495
93174
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92496
|
-
/* harmony export */
|
|
92497
|
-
/* harmony export */
|
|
92498
|
-
/* harmony export */
|
|
92499
|
-
/* harmony export */
|
|
92500
|
-
/* harmony export */
|
|
93175
|
+
/* harmony export */ isActionElement: () => (/* binding */ isActionElement),
|
|
93176
|
+
/* harmony export */ isActionsElement: () => (/* binding */ isActionsElement),
|
|
93177
|
+
/* harmony export */ isInfoElement: () => (/* binding */ isInfoElement),
|
|
93178
|
+
/* harmony export */ isOverlay1Element: () => (/* binding */ isOverlay1Element),
|
|
93179
|
+
/* harmony export */ isOverlayElement: () => (/* binding */ isOverlayElement)
|
|
92501
93180
|
/* harmony export */ });
|
|
92502
|
-
/* harmony import */ var
|
|
92503
|
-
/* harmony import */ var
|
|
92504
|
-
/* harmony import */ var
|
|
92505
|
-
/* harmony import */ var
|
|
92506
|
-
/* harmony import */ var
|
|
92507
|
-
|
|
92508
|
-
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25146);
|
|
92509
|
-
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89707);
|
|
92510
|
-
|
|
92511
|
-
|
|
93181
|
+
/* harmony import */ var _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79100);
|
|
93182
|
+
/* harmony import */ var _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68913);
|
|
93183
|
+
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41012);
|
|
93184
|
+
/* harmony import */ var _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19642);
|
|
93185
|
+
/* harmony import */ var _elements_nces_Actions_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39505);
|
|
93186
|
+
// Overlay 1.1.0 elements
|
|
92512
93187
|
|
|
92513
93188
|
|
|
92514
93189
|
|
|
93190
|
+
// NCE types
|
|
92515
93191
|
|
|
92516
93192
|
/**
|
|
92517
93193
|
* @public
|
|
92518
93194
|
*/
|
|
92519
|
-
const
|
|
93195
|
+
const isOverlayElement = element => element instanceof _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
92520
93196
|
|
|
92521
93197
|
/**
|
|
92522
93198
|
* @public
|
|
92523
93199
|
*/
|
|
92524
|
-
const
|
|
93200
|
+
const isOverlay1Element = element => element instanceof _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
92525
93201
|
|
|
92526
93202
|
/**
|
|
92527
93203
|
* @public
|
|
92528
93204
|
*/
|
|
93205
|
+
const isInfoElement = element => element instanceof _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
92529
93206
|
|
|
92530
93207
|
/**
|
|
92531
93208
|
* @public
|
|
92532
93209
|
*/
|
|
92533
|
-
const
|
|
92534
|
-
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
92535
|
-
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
92536
|
-
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
92537
|
-
const {
|
|
92538
|
-
result
|
|
92539
|
-
} = parseResultElement;
|
|
92540
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
92541
|
-
const asyncApiElement = (0,_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__.refractAsyncApi2)(result, {
|
|
92542
|
-
consume: true,
|
|
92543
|
-
...refractorOpts
|
|
92544
|
-
});
|
|
92545
|
-
asyncApiElement.classes.push('result');
|
|
92546
|
-
parseResultElement.replaceResult(asyncApiElement);
|
|
92547
|
-
}
|
|
92548
|
-
return parseResultElement;
|
|
92549
|
-
};
|
|
93210
|
+
const isActionElement = element => element instanceof _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_3__["default"];
|
|
92550
93211
|
|
|
92551
93212
|
/**
|
|
92552
93213
|
* @public
|
|
92553
93214
|
*/
|
|
92554
|
-
const
|
|
93215
|
+
const isActionsElement = element => element instanceof _elements_nces_Actions_mjs__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
92555
93216
|
|
|
92556
93217
|
/***/ },
|
|
92557
93218
|
|
|
92558
|
-
/***/
|
|
93219
|
+
/***/ 35957
|
|
92559
93220
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
92560
93221
|
|
|
92561
93222
|
"use strict";
|
|
92562
93223
|
__webpack_require__.r(__webpack_exports__);
|
|
92563
93224
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92564
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93225
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
93226
|
+
/* harmony export */ refractAction: () => (/* binding */ refractAction),
|
|
93227
|
+
/* harmony export */ refractInfo: () => (/* binding */ refractInfo),
|
|
93228
|
+
/* harmony export */ refractOverlay: () => (/* binding */ refractOverlay),
|
|
93229
|
+
/* harmony export */ refractOverlay1: () => (/* binding */ refractOverlay1)
|
|
92565
93230
|
/* harmony export */ });
|
|
92566
|
-
/* harmony import */ var
|
|
92567
|
-
|
|
92568
|
-
|
|
92569
|
-
|
|
92570
|
-
|
|
92571
|
-
*/
|
|
92572
|
-
|
|
92573
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (yamlMediaTypes);
|
|
92574
|
-
|
|
92575
|
-
/***/ },
|
|
92576
|
-
|
|
92577
|
-
/***/ 28165
|
|
92578
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93231
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40241);
|
|
93232
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60572);
|
|
93233
|
+
/* harmony import */ var _speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80796);
|
|
93234
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10404);
|
|
93235
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14864);
|
|
93236
|
+
/* harmony import */ var _specification_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18730);
|
|
93237
|
+
/* harmony import */ var _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86560);
|
|
92579
93238
|
|
|
92580
|
-
"use strict";
|
|
92581
|
-
__webpack_require__.r(__webpack_exports__);
|
|
92582
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92583
|
-
/* harmony export */ detect: () => (/* binding */ detect),
|
|
92584
|
-
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
92585
|
-
/* harmony export */ lexicalAnalysis: () => (/* reexport safe */ _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
92586
|
-
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
92587
|
-
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
92588
|
-
/* harmony export */ parse: () => (/* binding */ parse),
|
|
92589
|
-
/* harmony export */ syntacticAnalysis: () => (/* reexport safe */ _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_5__["default"])
|
|
92590
|
-
/* harmony export */ });
|
|
92591
|
-
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
|
|
92592
|
-
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20746);
|
|
92593
|
-
/* harmony import */ var _native_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38600);
|
|
92594
|
-
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34885);
|
|
92595
|
-
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19305);
|
|
92596
|
-
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13615);
|
|
92597
|
-
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49968);
|
|
92598
93239
|
|
|
92599
93240
|
|
|
92600
93241
|
|
|
@@ -92603,16 +93244,1148 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
92603
93244
|
/**
|
|
92604
93245
|
* @public
|
|
92605
93246
|
*/
|
|
92606
|
-
|
|
92607
93247
|
/**
|
|
92608
93248
|
* @public
|
|
92609
93249
|
*/
|
|
92610
|
-
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"]();
|
|
92611
|
-
|
|
92612
93250
|
/**
|
|
92613
93251
|
* @public
|
|
92614
93252
|
*/
|
|
92615
|
-
const
|
|
93253
|
+
const refract = (value, {
|
|
93254
|
+
element = 'overlay1',
|
|
93255
|
+
plugins = [],
|
|
93256
|
+
specificationObj = _specification_mjs__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
93257
|
+
consume = false
|
|
93258
|
+
} = {}) => {
|
|
93259
|
+
const genericElement = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__.refract)(value);
|
|
93260
|
+
const resolvedSpec = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1__.resolveSpecification)(specificationObj);
|
|
93261
|
+
const elementMap = resolvedSpec.elementMap;
|
|
93262
|
+
const specPath = elementMap[element];
|
|
93263
|
+
if (!specPath) {
|
|
93264
|
+
throw new Error(`Unknown element type: "${element}"`);
|
|
93265
|
+
}
|
|
93266
|
+
|
|
93267
|
+
/**
|
|
93268
|
+
* This is where generic ApiDOM becomes semantic (namespace applied).
|
|
93269
|
+
* We don't allow consumers to hook into this translation.
|
|
93270
|
+
* Though we allow consumers to define their own plugins on already transformed ApiDOM.
|
|
93271
|
+
*/
|
|
93272
|
+
const RootVisitorClass = (0,ramda__WEBPACK_IMPORTED_MODULE_4__["default"])(specPath, resolvedSpec);
|
|
93273
|
+
const rootVisitor = new RootVisitorClass({
|
|
93274
|
+
specObj: resolvedSpec,
|
|
93275
|
+
consume
|
|
93276
|
+
});
|
|
93277
|
+
(0,_speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_2__.traverse)(genericElement, rootVisitor);
|
|
93278
|
+
|
|
93279
|
+
/**
|
|
93280
|
+
* Running plugins visitors means extra single traversal === performance hit.
|
|
93281
|
+
*/
|
|
93282
|
+
return (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__.dispatchPluginsSync)(rootVisitor.element, plugins, {
|
|
93283
|
+
toolboxCreator: _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]
|
|
93284
|
+
});
|
|
93285
|
+
};
|
|
93286
|
+
|
|
93287
|
+
/**
|
|
93288
|
+
* @public
|
|
93289
|
+
*/
|
|
93290
|
+
const refractOverlay = (value, options = {}) => refract(value, {
|
|
93291
|
+
...options,
|
|
93292
|
+
element: 'overlay'
|
|
93293
|
+
});
|
|
93294
|
+
|
|
93295
|
+
/**
|
|
93296
|
+
* @public
|
|
93297
|
+
*/
|
|
93298
|
+
const refractOverlay1 = (value, options = {}) => refract(value, {
|
|
93299
|
+
...options,
|
|
93300
|
+
element: 'overlay1'
|
|
93301
|
+
});
|
|
93302
|
+
|
|
93303
|
+
/**
|
|
93304
|
+
* @public
|
|
93305
|
+
*/
|
|
93306
|
+
const refractInfo = (value, options = {}) => refract(value, {
|
|
93307
|
+
...options,
|
|
93308
|
+
element: 'info'
|
|
93309
|
+
});
|
|
93310
|
+
|
|
93311
|
+
/**
|
|
93312
|
+
* @public
|
|
93313
|
+
*/
|
|
93314
|
+
const refractAction = (value, options = {}) => refract(value, {
|
|
93315
|
+
...options,
|
|
93316
|
+
element: 'action'
|
|
93317
|
+
});
|
|
93318
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refract);
|
|
93319
|
+
|
|
93320
|
+
/***/ },
|
|
93321
|
+
|
|
93322
|
+
/***/ 21461
|
|
93323
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93324
|
+
|
|
93325
|
+
"use strict";
|
|
93326
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93327
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93328
|
+
/* harmony export */ isOverlaySpecificationExtension: () => (/* binding */ isOverlaySpecificationExtension)
|
|
93329
|
+
/* harmony export */ });
|
|
93330
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2278);
|
|
93331
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25162);
|
|
93332
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44673);
|
|
93333
|
+
|
|
93334
|
+
|
|
93335
|
+
|
|
93336
|
+
|
|
93337
|
+
/**
|
|
93338
|
+
* @public
|
|
93339
|
+
*/
|
|
93340
|
+
const isOverlaySpecificationExtension = element => {
|
|
93341
|
+
return (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(element.key) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])('x-', (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(element.key));
|
|
93342
|
+
};
|
|
93343
|
+
|
|
93344
|
+
/***/ },
|
|
93345
|
+
|
|
93346
|
+
/***/ 18730
|
|
93347
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93348
|
+
|
|
93349
|
+
"use strict";
|
|
93350
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93351
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93352
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93353
|
+
/* harmony export */ });
|
|
93354
|
+
/* harmony import */ var _visitors_overlay_1_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30820);
|
|
93355
|
+
/* harmony import */ var _visitors_overlay_1_OverlayVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67814);
|
|
93356
|
+
/* harmony import */ var _visitors_overlay_1_ActionsVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25049);
|
|
93357
|
+
/* harmony import */ var _visitors_overlay_1_info_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29529);
|
|
93358
|
+
/* harmony import */ var _visitors_overlay_1_info_VersionVisitor_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1025);
|
|
93359
|
+
/* harmony import */ var _visitors_overlay_1_action_index_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39999);
|
|
93360
|
+
/* harmony import */ var _visitors_SpecificationExtensionVisitor_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8023);
|
|
93361
|
+
/* harmony import */ var _visitors_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89439);
|
|
93362
|
+
|
|
93363
|
+
|
|
93364
|
+
|
|
93365
|
+
|
|
93366
|
+
|
|
93367
|
+
|
|
93368
|
+
|
|
93369
|
+
|
|
93370
|
+
/**
|
|
93371
|
+
* Specification object allows us to have complete control over visitors
|
|
93372
|
+
* when traversing the ApiDOM.
|
|
93373
|
+
* Specification also allows us to create amended refractors from
|
|
93374
|
+
* existing ones by manipulating it.
|
|
93375
|
+
*
|
|
93376
|
+
* Note: Specification object allows to use absolute internal JSON pointers.
|
|
93377
|
+
*/
|
|
93378
|
+
/**
|
|
93379
|
+
* @public
|
|
93380
|
+
*/
|
|
93381
|
+
const specification = {
|
|
93382
|
+
visitors: {
|
|
93383
|
+
value: _visitors_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
93384
|
+
document: {
|
|
93385
|
+
objects: {
|
|
93386
|
+
Overlay: {
|
|
93387
|
+
element: 'overlay1',
|
|
93388
|
+
$visitor: _visitors_overlay_1_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
93389
|
+
fixedFields: {
|
|
93390
|
+
overlay: {
|
|
93391
|
+
element: 'overlay',
|
|
93392
|
+
$visitor: _visitors_overlay_1_OverlayVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
93393
|
+
},
|
|
93394
|
+
info: {
|
|
93395
|
+
$ref: '#/visitors/document/objects/Info'
|
|
93396
|
+
},
|
|
93397
|
+
extends: {
|
|
93398
|
+
$ref: '#/visitors/value'
|
|
93399
|
+
},
|
|
93400
|
+
actions: _visitors_overlay_1_ActionsVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]
|
|
93401
|
+
}
|
|
93402
|
+
},
|
|
93403
|
+
Info: {
|
|
93404
|
+
element: 'info',
|
|
93405
|
+
$visitor: _visitors_overlay_1_info_index_mjs__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
93406
|
+
fixedFields: {
|
|
93407
|
+
title: {
|
|
93408
|
+
$ref: '#/visitors/value'
|
|
93409
|
+
},
|
|
93410
|
+
description: {
|
|
93411
|
+
$ref: '#/visitors/value'
|
|
93412
|
+
},
|
|
93413
|
+
version: _visitors_overlay_1_info_VersionVisitor_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]
|
|
93414
|
+
}
|
|
93415
|
+
},
|
|
93416
|
+
Action: {
|
|
93417
|
+
element: 'action',
|
|
93418
|
+
$visitor: _visitors_overlay_1_action_index_mjs__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
93419
|
+
fixedFields: {
|
|
93420
|
+
target: {
|
|
93421
|
+
$ref: '#/visitors/value'
|
|
93422
|
+
},
|
|
93423
|
+
description: {
|
|
93424
|
+
$ref: '#/visitors/value'
|
|
93425
|
+
},
|
|
93426
|
+
update: {
|
|
93427
|
+
$ref: '#/visitors/value'
|
|
93428
|
+
},
|
|
93429
|
+
copy: {
|
|
93430
|
+
$ref: '#/visitors/value'
|
|
93431
|
+
},
|
|
93432
|
+
remove: {
|
|
93433
|
+
$ref: '#/visitors/value',
|
|
93434
|
+
alias: 'removeField'
|
|
93435
|
+
}
|
|
93436
|
+
}
|
|
93437
|
+
}
|
|
93438
|
+
},
|
|
93439
|
+
extension: {
|
|
93440
|
+
$visitor: _visitors_SpecificationExtensionVisitor_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]
|
|
93441
|
+
}
|
|
93442
|
+
}
|
|
93443
|
+
}
|
|
93444
|
+
};
|
|
93445
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (specification);
|
|
93446
|
+
|
|
93447
|
+
/***/ },
|
|
93448
|
+
|
|
93449
|
+
/***/ 86560
|
|
93450
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93451
|
+
|
|
93452
|
+
"use strict";
|
|
93453
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93454
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93455
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93456
|
+
/* harmony export */ });
|
|
93457
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
|
|
93458
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25162);
|
|
93459
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26432);
|
|
93460
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21461);
|
|
93461
|
+
/* harmony import */ var _namespace_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75847);
|
|
93462
|
+
|
|
93463
|
+
|
|
93464
|
+
|
|
93465
|
+
|
|
93466
|
+
/**
|
|
93467
|
+
* @public
|
|
93468
|
+
*/
|
|
93469
|
+
const createToolbox = () => {
|
|
93470
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"]();
|
|
93471
|
+
const predicates = {
|
|
93472
|
+
..._predicates_mjs__WEBPACK_IMPORTED_MODULE_3__,
|
|
93473
|
+
..._predicates_mjs__WEBPACK_IMPORTED_MODULE_2__,
|
|
93474
|
+
isStringElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement
|
|
93475
|
+
};
|
|
93476
|
+
namespace.use(_namespace_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
93477
|
+
return {
|
|
93478
|
+
predicates,
|
|
93479
|
+
namespace
|
|
93480
|
+
};
|
|
93481
|
+
};
|
|
93482
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createToolbox);
|
|
93483
|
+
|
|
93484
|
+
/***/ },
|
|
93485
|
+
|
|
93486
|
+
/***/ 89439
|
|
93487
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93488
|
+
|
|
93489
|
+
"use strict";
|
|
93490
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93491
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93492
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93493
|
+
/* harmony export */ });
|
|
93494
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12111);
|
|
93495
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22757);
|
|
93496
|
+
|
|
93497
|
+
|
|
93498
|
+
/**
|
|
93499
|
+
* This visitor is responsible for falling back to current traversed element.
|
|
93500
|
+
* Given OverlayVisitor expects ObjectElement to be traversed. If
|
|
93501
|
+
* different Element is provided FallbackVisitor is responsible for assigning
|
|
93502
|
+
* this Element as current element.
|
|
93503
|
+
*/
|
|
93504
|
+
/**
|
|
93505
|
+
* @public
|
|
93506
|
+
*/
|
|
93507
|
+
class FallbackVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
93508
|
+
enter(path) {
|
|
93509
|
+
this.element = this.consume ? path.node : (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(path.node);
|
|
93510
|
+
path.stop();
|
|
93511
|
+
}
|
|
93512
|
+
}
|
|
93513
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FallbackVisitor);
|
|
93514
|
+
|
|
93515
|
+
/***/ },
|
|
93516
|
+
|
|
93517
|
+
/***/ 8023
|
|
93518
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93519
|
+
|
|
93520
|
+
"use strict";
|
|
93521
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93522
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93523
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93524
|
+
/* harmony export */ });
|
|
93525
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12111);
|
|
93526
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75998);
|
|
93527
|
+
|
|
93528
|
+
|
|
93529
|
+
/**
|
|
93530
|
+
* @public
|
|
93531
|
+
*/
|
|
93532
|
+
class SpecificationExtensionVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
93533
|
+
MemberElement(path) {
|
|
93534
|
+
const memberElement = path.node;
|
|
93535
|
+
this.element = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(memberElement);
|
|
93536
|
+
this.element.classes.push('specification-extension');
|
|
93537
|
+
path.stop();
|
|
93538
|
+
}
|
|
93539
|
+
}
|
|
93540
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationExtensionVisitor);
|
|
93541
|
+
|
|
93542
|
+
/***/ },
|
|
93543
|
+
|
|
93544
|
+
/***/ 75998
|
|
93545
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93546
|
+
|
|
93547
|
+
"use strict";
|
|
93548
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93549
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93550
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93551
|
+
/* harmony export */ });
|
|
93552
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14864);
|
|
93553
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44787);
|
|
93554
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14494);
|
|
93555
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16867);
|
|
93556
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12111);
|
|
93557
|
+
/* harmony import */ var _speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80796);
|
|
93558
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22757);
|
|
93559
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89439);
|
|
93560
|
+
|
|
93561
|
+
|
|
93562
|
+
|
|
93563
|
+
|
|
93564
|
+
|
|
93565
|
+
|
|
93566
|
+
/**
|
|
93567
|
+
* This is a base Type for every visitor that does
|
|
93568
|
+
* internal look-ups to retrieve other child visitors.
|
|
93569
|
+
* @public
|
|
93570
|
+
*/
|
|
93571
|
+
/**
|
|
93572
|
+
* @public
|
|
93573
|
+
*/
|
|
93574
|
+
class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_6__["default"] {
|
|
93575
|
+
specObj;
|
|
93576
|
+
passingOptionsNames = ['specObj', 'consume'];
|
|
93577
|
+
constructor({
|
|
93578
|
+
specObj,
|
|
93579
|
+
...rest
|
|
93580
|
+
}) {
|
|
93581
|
+
super({
|
|
93582
|
+
...rest
|
|
93583
|
+
});
|
|
93584
|
+
this.specObj = specObj;
|
|
93585
|
+
}
|
|
93586
|
+
retrievePassingOptions() {
|
|
93587
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.passingOptionsNames, this);
|
|
93588
|
+
}
|
|
93589
|
+
retrieveFixedFields(specPath) {
|
|
93590
|
+
const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
|
|
93591
|
+
if (typeof fixedFields === 'object' && fixedFields !== null) {
|
|
93592
|
+
return Object.keys(fixedFields);
|
|
93593
|
+
}
|
|
93594
|
+
return [];
|
|
93595
|
+
}
|
|
93596
|
+
retrieveVisitor(specPath) {
|
|
93597
|
+
if ((0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"], ['visitors', ...specPath], this.specObj)) {
|
|
93598
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', ...specPath], this.specObj);
|
|
93599
|
+
}
|
|
93600
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
93601
|
+
}
|
|
93602
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
93603
|
+
const passingOpts = this.retrievePassingOptions();
|
|
93604
|
+
const VisitorClz = this.retrieveVisitor(specPath);
|
|
93605
|
+
const visitorOpts = {
|
|
93606
|
+
...passingOpts,
|
|
93607
|
+
...options
|
|
93608
|
+
};
|
|
93609
|
+
return new VisitorClz(visitorOpts);
|
|
93610
|
+
}
|
|
93611
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
93612
|
+
/**
|
|
93613
|
+
* This is `Visitor shortcut`: a mechanism for short-circuiting the traversal and replacing
|
|
93614
|
+
* it by basic node cloning.
|
|
93615
|
+
*
|
|
93616
|
+
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
93617
|
+
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
93618
|
+
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
93619
|
+
*/
|
|
93620
|
+
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
93621
|
+
if (visitor instanceof _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_7__["default"] && visitor?.constructor === _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]) {
|
|
93622
|
+
return this.consume ? element : (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(element);
|
|
93623
|
+
}
|
|
93624
|
+
(0,_speclynx_apidom_traverse__WEBPACK_IMPORTED_MODULE_5__.traverse)(element, visitor, options);
|
|
93625
|
+
return visitor.element;
|
|
93626
|
+
}
|
|
93627
|
+
}
|
|
93628
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor);
|
|
93629
|
+
|
|
93630
|
+
/***/ },
|
|
93631
|
+
|
|
93632
|
+
/***/ 22757
|
|
93633
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93634
|
+
|
|
93635
|
+
"use strict";
|
|
93636
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93637
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93638
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93639
|
+
/* harmony export */ });
|
|
93640
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
93641
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12111);
|
|
93642
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25810);
|
|
93643
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49686);
|
|
93644
|
+
|
|
93645
|
+
|
|
93646
|
+
|
|
93647
|
+
/**
|
|
93648
|
+
* @public
|
|
93649
|
+
*/
|
|
93650
|
+
|
|
93651
|
+
/**
|
|
93652
|
+
* @public
|
|
93653
|
+
*/
|
|
93654
|
+
class Visitor {
|
|
93655
|
+
element;
|
|
93656
|
+
consume = false;
|
|
93657
|
+
consumeSafe = false;
|
|
93658
|
+
constructor(options = {}) {
|
|
93659
|
+
Object.assign(this, options);
|
|
93660
|
+
}
|
|
93661
|
+
copyMetaAndAttributes(from, to) {
|
|
93662
|
+
if (!from.isMetaEmpty && !to.isMetaEmpty) {
|
|
93663
|
+
to.meta = to.meta.merge(from.meta);
|
|
93664
|
+
} else if (!from.isMetaEmpty) {
|
|
93665
|
+
to.meta = from.meta.cloneDeep();
|
|
93666
|
+
}
|
|
93667
|
+
if (!from.isAttributesEmpty && !to.isAttributesEmpty) {
|
|
93668
|
+
to.attributes = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes);
|
|
93669
|
+
} else if (!from.isAttributesEmpty) {
|
|
93670
|
+
to.attributes = (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(from.attributes);
|
|
93671
|
+
}
|
|
93672
|
+
_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"].transfer(from, to);
|
|
93673
|
+
_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"].transfer(from, to);
|
|
93674
|
+
}
|
|
93675
|
+
}
|
|
93676
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
93677
|
+
|
|
93678
|
+
/***/ },
|
|
93679
|
+
|
|
93680
|
+
/***/ 1783
|
|
93681
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93682
|
+
|
|
93683
|
+
"use strict";
|
|
93684
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93685
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93686
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93687
|
+
/* harmony export */ });
|
|
93688
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
93689
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12111);
|
|
93690
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31770);
|
|
93691
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44673);
|
|
93692
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75998);
|
|
93693
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21461);
|
|
93694
|
+
|
|
93695
|
+
|
|
93696
|
+
|
|
93697
|
+
|
|
93698
|
+
/**
|
|
93699
|
+
* @public
|
|
93700
|
+
*/
|
|
93701
|
+
/**
|
|
93702
|
+
* @public
|
|
93703
|
+
*/
|
|
93704
|
+
/**
|
|
93705
|
+
* @public
|
|
93706
|
+
*/
|
|
93707
|
+
class FixedFieldsVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_4__["default"] {
|
|
93708
|
+
specPath;
|
|
93709
|
+
ignoredFields;
|
|
93710
|
+
canSupportSpecificationExtensions = true;
|
|
93711
|
+
specificationExtensionPredicate = _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__.isOverlaySpecificationExtension;
|
|
93712
|
+
constructor({
|
|
93713
|
+
specPath,
|
|
93714
|
+
ignoredFields,
|
|
93715
|
+
canSupportSpecificationExtensions,
|
|
93716
|
+
specificationExtensionPredicate,
|
|
93717
|
+
...rest
|
|
93718
|
+
}) {
|
|
93719
|
+
super({
|
|
93720
|
+
...rest
|
|
93721
|
+
});
|
|
93722
|
+
this.specPath = specPath;
|
|
93723
|
+
this.ignoredFields = ignoredFields || [];
|
|
93724
|
+
if (typeof canSupportSpecificationExtensions === 'boolean') {
|
|
93725
|
+
this.canSupportSpecificationExtensions = canSupportSpecificationExtensions;
|
|
93726
|
+
}
|
|
93727
|
+
if (typeof specificationExtensionPredicate === 'function') {
|
|
93728
|
+
this.specificationExtensionPredicate = specificationExtensionPredicate;
|
|
93729
|
+
}
|
|
93730
|
+
}
|
|
93731
|
+
ObjectElement(path) {
|
|
93732
|
+
const objectElement = path.node;
|
|
93733
|
+
const specPath = this.specPath(objectElement);
|
|
93734
|
+
const fields = this.retrieveFixedFields(specPath);
|
|
93735
|
+
|
|
93736
|
+
// @ts-ignore
|
|
93737
|
+
objectElement.forEach((value, key, memberElement) => {
|
|
93738
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(key) && fields.includes((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_3__["default"])(key)) && !this.ignoredFields.includes((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_3__["default"])(key))) {
|
|
93739
|
+
const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_3__["default"])(key)], value);
|
|
93740
|
+
const newMemberElement = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](this.consume ? key : (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(key), fixedFieldElement);
|
|
93741
|
+
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
93742
|
+
this.element.push(newMemberElement);
|
|
93743
|
+
// consume: release processed generic subtree
|
|
93744
|
+
if (this.consume && this.consumeSafe && !memberElement.isFrozen) memberElement.value = undefined;
|
|
93745
|
+
} else if (this.canSupportSpecificationExtensions && this.specificationExtensionPredicate(memberElement)) {
|
|
93746
|
+
const extensionElement = this.toRefractedElement(['document', 'extension'], memberElement);
|
|
93747
|
+
this.element.push(extensionElement);
|
|
93748
|
+
// consume: release processed generic subtree
|
|
93749
|
+
if (this.consume && this.consumeSafe && !memberElement.isFrozen) memberElement.value = undefined;
|
|
93750
|
+
} else if (!this.ignoredFields.includes((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_3__["default"])(key))) {
|
|
93751
|
+
this.element.push(this.consume ? memberElement : (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(memberElement));
|
|
93752
|
+
}
|
|
93753
|
+
});
|
|
93754
|
+
this.copyMetaAndAttributes(objectElement, this.element);
|
|
93755
|
+
path.stop();
|
|
93756
|
+
}
|
|
93757
|
+
}
|
|
93758
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FixedFieldsVisitor);
|
|
93759
|
+
|
|
93760
|
+
/***/ },
|
|
93761
|
+
|
|
93762
|
+
/***/ 25049
|
|
93763
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93764
|
+
|
|
93765
|
+
"use strict";
|
|
93766
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93767
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93768
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93769
|
+
/* harmony export */ });
|
|
93770
|
+
/* harmony import */ var _elements_nces_Actions_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39505);
|
|
93771
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77554);
|
|
93772
|
+
|
|
93773
|
+
|
|
93774
|
+
/**
|
|
93775
|
+
* @public
|
|
93776
|
+
*/
|
|
93777
|
+
/**
|
|
93778
|
+
* @public
|
|
93779
|
+
*/
|
|
93780
|
+
class ActionsVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_1__.BaseSpecificationFallbackVisitor {
|
|
93781
|
+
element;
|
|
93782
|
+
constructor(options) {
|
|
93783
|
+
super(options);
|
|
93784
|
+
this.element = new _elements_nces_Actions_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]();
|
|
93785
|
+
}
|
|
93786
|
+
ArrayElement(path) {
|
|
93787
|
+
const arrayElement = path.node;
|
|
93788
|
+
arrayElement.forEach(item => {
|
|
93789
|
+
const specPath = ['document', 'objects', 'Action'];
|
|
93790
|
+
const element = this.toRefractedElement(specPath, item);
|
|
93791
|
+
this.element.push(element);
|
|
93792
|
+
});
|
|
93793
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
93794
|
+
path.stop();
|
|
93795
|
+
}
|
|
93796
|
+
}
|
|
93797
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActionsVisitor);
|
|
93798
|
+
|
|
93799
|
+
/***/ },
|
|
93800
|
+
|
|
93801
|
+
/***/ 67814
|
|
93802
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93803
|
+
|
|
93804
|
+
"use strict";
|
|
93805
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93806
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93807
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93808
|
+
/* harmony export */ });
|
|
93809
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44673);
|
|
93810
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77554);
|
|
93811
|
+
/* harmony import */ var _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79100);
|
|
93812
|
+
|
|
93813
|
+
|
|
93814
|
+
|
|
93815
|
+
/**
|
|
93816
|
+
* @public
|
|
93817
|
+
*/
|
|
93818
|
+
/**
|
|
93819
|
+
* @public
|
|
93820
|
+
*/
|
|
93821
|
+
class OverlayVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_1__.BaseSpecificationFallbackVisitor {
|
|
93822
|
+
StringElement(path) {
|
|
93823
|
+
const stringElement = path.node;
|
|
93824
|
+
const overlayElement = new _elements_Overlay_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(stringElement));
|
|
93825
|
+
this.copyMetaAndAttributes(stringElement, overlayElement);
|
|
93826
|
+
this.element = overlayElement;
|
|
93827
|
+
path.stop();
|
|
93828
|
+
}
|
|
93829
|
+
}
|
|
93830
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayVisitor);
|
|
93831
|
+
|
|
93832
|
+
/***/ },
|
|
93833
|
+
|
|
93834
|
+
/***/ 39999
|
|
93835
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93836
|
+
|
|
93837
|
+
"use strict";
|
|
93838
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93839
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93840
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93841
|
+
/* harmony export */ });
|
|
93842
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29498);
|
|
93843
|
+
/* harmony import */ var _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19642);
|
|
93844
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77554);
|
|
93845
|
+
|
|
93846
|
+
|
|
93847
|
+
|
|
93848
|
+
/**
|
|
93849
|
+
* @public
|
|
93850
|
+
*/
|
|
93851
|
+
/**
|
|
93852
|
+
* @public
|
|
93853
|
+
*/
|
|
93854
|
+
class ActionVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_2__.BaseFixedFieldsFallbackVisitor {
|
|
93855
|
+
constructor(options) {
|
|
93856
|
+
super(options);
|
|
93857
|
+
this.element = new _elements_Action_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
93858
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['document', 'objects', 'Action']);
|
|
93859
|
+
this.canSupportSpecificationExtensions = true;
|
|
93860
|
+
}
|
|
93861
|
+
}
|
|
93862
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActionVisitor);
|
|
93863
|
+
|
|
93864
|
+
/***/ },
|
|
93865
|
+
|
|
93866
|
+
/***/ 77554
|
|
93867
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93868
|
+
|
|
93869
|
+
"use strict";
|
|
93870
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93871
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93872
|
+
/* harmony export */ BaseFixedFieldsFallbackVisitor: () => (/* binding */ BaseFixedFieldsFallbackVisitor),
|
|
93873
|
+
/* harmony export */ BaseSpecificationFallbackVisitor: () => (/* binding */ BaseSpecificationFallbackVisitor)
|
|
93874
|
+
/* harmony export */ });
|
|
93875
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17028);
|
|
93876
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75998);
|
|
93877
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89439);
|
|
93878
|
+
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1783);
|
|
93879
|
+
|
|
93880
|
+
|
|
93881
|
+
|
|
93882
|
+
|
|
93883
|
+
/**
|
|
93884
|
+
* Base class for visitors using Mixin(SpecificationVisitor, FallbackVisitor).
|
|
93885
|
+
* @public
|
|
93886
|
+
*/
|
|
93887
|
+
const BaseSpecificationFallbackVisitor = (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
93888
|
+
|
|
93889
|
+
/**
|
|
93890
|
+
* @public
|
|
93891
|
+
*/
|
|
93892
|
+
|
|
93893
|
+
/**
|
|
93894
|
+
* Base class for visitors using Mixin(FixedFieldsVisitor, FallbackVisitor).
|
|
93895
|
+
* @public
|
|
93896
|
+
*/
|
|
93897
|
+
const BaseFixedFieldsFallbackVisitor = (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_3__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
93898
|
+
|
|
93899
|
+
/**
|
|
93900
|
+
* @public
|
|
93901
|
+
*/
|
|
93902
|
+
|
|
93903
|
+
/***/ },
|
|
93904
|
+
|
|
93905
|
+
/***/ 30820
|
|
93906
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93907
|
+
|
|
93908
|
+
"use strict";
|
|
93909
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93910
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93911
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93912
|
+
/* harmony export */ });
|
|
93913
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29498);
|
|
93914
|
+
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1783);
|
|
93915
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77554);
|
|
93916
|
+
/* harmony import */ var _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68913);
|
|
93917
|
+
|
|
93918
|
+
|
|
93919
|
+
|
|
93920
|
+
|
|
93921
|
+
/**
|
|
93922
|
+
* @public
|
|
93923
|
+
*/
|
|
93924
|
+
/**
|
|
93925
|
+
* @public
|
|
93926
|
+
*/
|
|
93927
|
+
class OverlayVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_2__.BaseFixedFieldsFallbackVisitor {
|
|
93928
|
+
element;
|
|
93929
|
+
specPath;
|
|
93930
|
+
canSupportSpecificationExtensions;
|
|
93931
|
+
constructor(options) {
|
|
93932
|
+
super(options);
|
|
93933
|
+
this.element = new _elements_Overlay1_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
93934
|
+
this.consumeSafe = true;
|
|
93935
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['document', 'objects', 'Overlay']);
|
|
93936
|
+
this.canSupportSpecificationExtensions = true;
|
|
93937
|
+
}
|
|
93938
|
+
ObjectElement(path) {
|
|
93939
|
+
return _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.ObjectElement.call(this, path);
|
|
93940
|
+
}
|
|
93941
|
+
}
|
|
93942
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayVisitor);
|
|
93943
|
+
|
|
93944
|
+
/***/ },
|
|
93945
|
+
|
|
93946
|
+
/***/ 1025
|
|
93947
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93948
|
+
|
|
93949
|
+
"use strict";
|
|
93950
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93951
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93952
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93953
|
+
/* harmony export */ });
|
|
93954
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89439);
|
|
93955
|
+
|
|
93956
|
+
/**
|
|
93957
|
+
* @public
|
|
93958
|
+
*/
|
|
93959
|
+
class VersionVisitor extends _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
93960
|
+
StringElement(path) {
|
|
93961
|
+
super.enter(path);
|
|
93962
|
+
this.element.classes.push('overlay-version');
|
|
93963
|
+
this.element.classes.push('version');
|
|
93964
|
+
}
|
|
93965
|
+
}
|
|
93966
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VersionVisitor);
|
|
93967
|
+
|
|
93968
|
+
/***/ },
|
|
93969
|
+
|
|
93970
|
+
/***/ 29529
|
|
93971
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93972
|
+
|
|
93973
|
+
"use strict";
|
|
93974
|
+
__webpack_require__.r(__webpack_exports__);
|
|
93975
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
93976
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
93977
|
+
/* harmony export */ });
|
|
93978
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29498);
|
|
93979
|
+
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41012);
|
|
93980
|
+
/* harmony import */ var _bases_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77554);
|
|
93981
|
+
|
|
93982
|
+
|
|
93983
|
+
|
|
93984
|
+
/**
|
|
93985
|
+
* @public
|
|
93986
|
+
*/
|
|
93987
|
+
/**
|
|
93988
|
+
* @public
|
|
93989
|
+
*/
|
|
93990
|
+
class InfoVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_2__.BaseFixedFieldsFallbackVisitor {
|
|
93991
|
+
constructor(options) {
|
|
93992
|
+
super(options);
|
|
93993
|
+
this.element = new _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
93994
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['document', 'objects', 'Info']);
|
|
93995
|
+
this.canSupportSpecificationExtensions = true;
|
|
93996
|
+
}
|
|
93997
|
+
}
|
|
93998
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoVisitor);
|
|
93999
|
+
|
|
94000
|
+
/***/ },
|
|
94001
|
+
|
|
94002
|
+
/***/ 6017
|
|
94003
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94004
|
+
|
|
94005
|
+
"use strict";
|
|
94006
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94007
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94008
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
94009
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
94010
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
94011
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
94012
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
94013
|
+
/* harmony export */ });
|
|
94014
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
94015
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
94016
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
94017
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
94018
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28165);
|
|
94019
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74042);
|
|
94020
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7392);
|
|
94021
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29028);
|
|
94022
|
+
|
|
94023
|
+
|
|
94024
|
+
|
|
94025
|
+
|
|
94026
|
+
|
|
94027
|
+
|
|
94028
|
+
/**
|
|
94029
|
+
* @public
|
|
94030
|
+
*/
|
|
94031
|
+
const detectionRegExp = /"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/;
|
|
94032
|
+
|
|
94033
|
+
/**
|
|
94034
|
+
* @public
|
|
94035
|
+
*/
|
|
94036
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
94037
|
+
|
|
94038
|
+
/**
|
|
94039
|
+
* @public
|
|
94040
|
+
*/
|
|
94041
|
+
|
|
94042
|
+
/**
|
|
94043
|
+
* @public
|
|
94044
|
+
*/
|
|
94045
|
+
const parse = async (source, options = {}) => {
|
|
94046
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
94047
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
94048
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
94049
|
+
const {
|
|
94050
|
+
result
|
|
94051
|
+
} = parseResultElement;
|
|
94052
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
94053
|
+
const arazzoSpecificationElement = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__.refractArazzoSpecification1)(result, {
|
|
94054
|
+
consume: true,
|
|
94055
|
+
...refractorOpts
|
|
94056
|
+
});
|
|
94057
|
+
arazzoSpecificationElement.classes.push('result');
|
|
94058
|
+
parseResultElement.replaceResult(arazzoSpecificationElement);
|
|
94059
|
+
}
|
|
94060
|
+
return parseResultElement;
|
|
94061
|
+
};
|
|
94062
|
+
|
|
94063
|
+
/**
|
|
94064
|
+
* @public
|
|
94065
|
+
*/
|
|
94066
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
94067
|
+
|
|
94068
|
+
/***/ },
|
|
94069
|
+
|
|
94070
|
+
/***/ 29028
|
|
94071
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94072
|
+
|
|
94073
|
+
"use strict";
|
|
94074
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94075
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94076
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
94077
|
+
/* harmony export */ });
|
|
94078
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53787);
|
|
94079
|
+
|
|
94080
|
+
|
|
94081
|
+
/**
|
|
94082
|
+
* @public
|
|
94083
|
+
*/
|
|
94084
|
+
const jsonMediaTypes = new _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__.ArazzoMediaTypes(..._speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('json'));
|
|
94085
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (jsonMediaTypes);
|
|
94086
|
+
|
|
94087
|
+
/***/ },
|
|
94088
|
+
|
|
94089
|
+
/***/ 16206
|
|
94090
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94091
|
+
|
|
94092
|
+
"use strict";
|
|
94093
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94094
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94095
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
94096
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
94097
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
94098
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
94099
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
94100
|
+
/* harmony export */ });
|
|
94101
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
94102
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
94103
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
94104
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
94105
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91333);
|
|
94106
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74042);
|
|
94107
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7392);
|
|
94108
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43195);
|
|
94109
|
+
|
|
94110
|
+
|
|
94111
|
+
|
|
94112
|
+
|
|
94113
|
+
|
|
94114
|
+
|
|
94115
|
+
/**
|
|
94116
|
+
* @public
|
|
94117
|
+
*/
|
|
94118
|
+
const detectionRegExp = /(?<YAML>^(["']?)arazzo\2\s*:\s*(["']?)(?<version_yaml>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))")/m;
|
|
94119
|
+
|
|
94120
|
+
/**
|
|
94121
|
+
* @public
|
|
94122
|
+
*/
|
|
94123
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
94124
|
+
|
|
94125
|
+
/**
|
|
94126
|
+
* @public
|
|
94127
|
+
*/
|
|
94128
|
+
|
|
94129
|
+
/**
|
|
94130
|
+
* @public
|
|
94131
|
+
*/
|
|
94132
|
+
const parse = async (source, options = {}) => {
|
|
94133
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
94134
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
94135
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
94136
|
+
const {
|
|
94137
|
+
result
|
|
94138
|
+
} = parseResultElement;
|
|
94139
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
94140
|
+
const arazzoSpecificationElement = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_6__.refractArazzoSpecification1)(result, {
|
|
94141
|
+
consume: true,
|
|
94142
|
+
...refractorOpts
|
|
94143
|
+
});
|
|
94144
|
+
arazzoSpecificationElement.classes.push('result');
|
|
94145
|
+
parseResultElement.replaceResult(arazzoSpecificationElement);
|
|
94146
|
+
}
|
|
94147
|
+
return parseResultElement;
|
|
94148
|
+
};
|
|
94149
|
+
|
|
94150
|
+
/**
|
|
94151
|
+
* @public
|
|
94152
|
+
*/
|
|
94153
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
94154
|
+
|
|
94155
|
+
/***/ },
|
|
94156
|
+
|
|
94157
|
+
/***/ 43195
|
|
94158
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94159
|
+
|
|
94160
|
+
"use strict";
|
|
94161
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94162
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94163
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
94164
|
+
/* harmony export */ });
|
|
94165
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53787);
|
|
94166
|
+
|
|
94167
|
+
|
|
94168
|
+
/**
|
|
94169
|
+
* @public
|
|
94170
|
+
*/
|
|
94171
|
+
const yamlMediaTypes = new _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__.ArazzoMediaTypes(..._speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('yaml'));
|
|
94172
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (yamlMediaTypes);
|
|
94173
|
+
|
|
94174
|
+
/***/ },
|
|
94175
|
+
|
|
94176
|
+
/***/ 74841
|
|
94177
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94178
|
+
|
|
94179
|
+
"use strict";
|
|
94180
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94181
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94182
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
94183
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
94184
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
94185
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
94186
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
94187
|
+
/* harmony export */ });
|
|
94188
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
94189
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
94190
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
94191
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
94192
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28165);
|
|
94193
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70264);
|
|
94194
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25146);
|
|
94195
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1532);
|
|
94196
|
+
|
|
94197
|
+
|
|
94198
|
+
|
|
94199
|
+
|
|
94200
|
+
|
|
94201
|
+
|
|
94202
|
+
/**
|
|
94203
|
+
* @public
|
|
94204
|
+
*/
|
|
94205
|
+
const detectionRegExp = /"asyncapi"\s*:\s*"(?<version_json>2\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/;
|
|
94206
|
+
|
|
94207
|
+
/**
|
|
94208
|
+
* @public
|
|
94209
|
+
*/
|
|
94210
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
94211
|
+
|
|
94212
|
+
/**
|
|
94213
|
+
* @public
|
|
94214
|
+
*/
|
|
94215
|
+
|
|
94216
|
+
/**
|
|
94217
|
+
* @public
|
|
94218
|
+
*/
|
|
94219
|
+
const parse = async (source, options = {}) => {
|
|
94220
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
94221
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
94222
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
94223
|
+
const {
|
|
94224
|
+
result
|
|
94225
|
+
} = parseResultElement;
|
|
94226
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
94227
|
+
const asyncApiElement = (0,_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__.refractAsyncApi2)(result, {
|
|
94228
|
+
consume: true,
|
|
94229
|
+
...refractorOpts
|
|
94230
|
+
});
|
|
94231
|
+
asyncApiElement.classes.push('result');
|
|
94232
|
+
parseResultElement.replaceResult(asyncApiElement);
|
|
94233
|
+
}
|
|
94234
|
+
return parseResultElement;
|
|
94235
|
+
};
|
|
94236
|
+
|
|
94237
|
+
/**
|
|
94238
|
+
* @public
|
|
94239
|
+
*/
|
|
94240
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
94241
|
+
|
|
94242
|
+
/***/ },
|
|
94243
|
+
|
|
94244
|
+
/***/ 1532
|
|
94245
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94246
|
+
|
|
94247
|
+
"use strict";
|
|
94248
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94249
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94250
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
94251
|
+
/* harmony export */ });
|
|
94252
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46417);
|
|
94253
|
+
|
|
94254
|
+
|
|
94255
|
+
/**
|
|
94256
|
+
* @public
|
|
94257
|
+
*/
|
|
94258
|
+
const jsonMediaTypes = new _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__.AsyncAPIMediaTypes(..._speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('json'));
|
|
94259
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (jsonMediaTypes);
|
|
94260
|
+
|
|
94261
|
+
/***/ },
|
|
94262
|
+
|
|
94263
|
+
/***/ 32958
|
|
94264
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94265
|
+
|
|
94266
|
+
"use strict";
|
|
94267
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94268
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94269
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
94270
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
94271
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
94272
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
94273
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
94274
|
+
/* harmony export */ });
|
|
94275
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
94276
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
94277
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
94278
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
94279
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91333);
|
|
94280
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70264);
|
|
94281
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25146);
|
|
94282
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89707);
|
|
94283
|
+
|
|
94284
|
+
|
|
94285
|
+
|
|
94286
|
+
|
|
94287
|
+
|
|
94288
|
+
|
|
94289
|
+
/**
|
|
94290
|
+
* @public
|
|
94291
|
+
*/
|
|
94292
|
+
const detectionRegExp = /(?<YAML>^(["']?)asyncapi\2\s*:\s*(["']?)(?<version_yaml>2\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"asyncapi"\s*:\s*"(?<version_json>2\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))")/m;
|
|
94293
|
+
|
|
94294
|
+
/**
|
|
94295
|
+
* @public
|
|
94296
|
+
*/
|
|
94297
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
94298
|
+
|
|
94299
|
+
/**
|
|
94300
|
+
* @public
|
|
94301
|
+
*/
|
|
94302
|
+
|
|
94303
|
+
/**
|
|
94304
|
+
* @public
|
|
94305
|
+
*/
|
|
94306
|
+
const parse = async (source, options = {}) => {
|
|
94307
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
94308
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
94309
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
94310
|
+
const {
|
|
94311
|
+
result
|
|
94312
|
+
} = parseResultElement;
|
|
94313
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
94314
|
+
const asyncApiElement = (0,_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_6__.refractAsyncApi2)(result, {
|
|
94315
|
+
consume: true,
|
|
94316
|
+
...refractorOpts
|
|
94317
|
+
});
|
|
94318
|
+
asyncApiElement.classes.push('result');
|
|
94319
|
+
parseResultElement.replaceResult(asyncApiElement);
|
|
94320
|
+
}
|
|
94321
|
+
return parseResultElement;
|
|
94322
|
+
};
|
|
94323
|
+
|
|
94324
|
+
/**
|
|
94325
|
+
* @public
|
|
94326
|
+
*/
|
|
94327
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
94328
|
+
|
|
94329
|
+
/***/ },
|
|
94330
|
+
|
|
94331
|
+
/***/ 89707
|
|
94332
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94333
|
+
|
|
94334
|
+
"use strict";
|
|
94335
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94336
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94337
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
94338
|
+
/* harmony export */ });
|
|
94339
|
+
/* harmony import */ var _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46417);
|
|
94340
|
+
|
|
94341
|
+
|
|
94342
|
+
/**
|
|
94343
|
+
* @public
|
|
94344
|
+
*/
|
|
94345
|
+
const yamlMediaTypes = new _speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__.AsyncAPIMediaTypes(..._speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_asyncapi_2__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('yaml'));
|
|
94346
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (yamlMediaTypes);
|
|
94347
|
+
|
|
94348
|
+
/***/ },
|
|
94349
|
+
|
|
94350
|
+
/***/ 28165
|
|
94351
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94352
|
+
|
|
94353
|
+
"use strict";
|
|
94354
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94355
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94356
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
94357
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
94358
|
+
/* harmony export */ lexicalAnalysis: () => (/* reexport safe */ _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
94359
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
94360
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
94361
|
+
/* harmony export */ parse: () => (/* binding */ parse),
|
|
94362
|
+
/* harmony export */ syntacticAnalysis: () => (/* reexport safe */ _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_5__["default"])
|
|
94363
|
+
/* harmony export */ });
|
|
94364
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
|
|
94365
|
+
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20746);
|
|
94366
|
+
/* harmony import */ var _native_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38600);
|
|
94367
|
+
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34885);
|
|
94368
|
+
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19305);
|
|
94369
|
+
/* harmony import */ var _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13615);
|
|
94370
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49968);
|
|
94371
|
+
|
|
94372
|
+
|
|
94373
|
+
|
|
94374
|
+
|
|
94375
|
+
|
|
94376
|
+
/**
|
|
94377
|
+
* @public
|
|
94378
|
+
*/
|
|
94379
|
+
|
|
94380
|
+
/**
|
|
94381
|
+
* @public
|
|
94382
|
+
*/
|
|
94383
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"]();
|
|
94384
|
+
|
|
94385
|
+
/**
|
|
94386
|
+
* @public
|
|
94387
|
+
*/
|
|
94388
|
+
const detectionRegExp = _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_3__.detectionRegExp;
|
|
92616
94389
|
|
|
92617
94390
|
/**
|
|
92618
94391
|
* @public
|
|
@@ -93672,6 +95445,180 @@ const yamlMediaTypes = new _speclynx_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MOD
|
|
|
93672
95445
|
|
|
93673
95446
|
/***/ },
|
|
93674
95447
|
|
|
95448
|
+
/***/ 85086
|
|
95449
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95450
|
+
|
|
95451
|
+
"use strict";
|
|
95452
|
+
__webpack_require__.r(__webpack_exports__);
|
|
95453
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95454
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
95455
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
95456
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
95457
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
95458
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
95459
|
+
/* harmony export */ });
|
|
95460
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
95461
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
95462
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
95463
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
95464
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28165);
|
|
95465
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75847);
|
|
95466
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35957);
|
|
95467
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54827);
|
|
95468
|
+
|
|
95469
|
+
|
|
95470
|
+
|
|
95471
|
+
|
|
95472
|
+
|
|
95473
|
+
|
|
95474
|
+
/**
|
|
95475
|
+
* @public
|
|
95476
|
+
*/
|
|
95477
|
+
const detectionRegExp = /"overlay"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/;
|
|
95478
|
+
|
|
95479
|
+
/**
|
|
95480
|
+
* @public
|
|
95481
|
+
*/
|
|
95482
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
95483
|
+
|
|
95484
|
+
/**
|
|
95485
|
+
* @public
|
|
95486
|
+
*/
|
|
95487
|
+
|
|
95488
|
+
/**
|
|
95489
|
+
* @public
|
|
95490
|
+
*/
|
|
95491
|
+
const parse = async (source, options = {}) => {
|
|
95492
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
95493
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
95494
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_json__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
95495
|
+
const {
|
|
95496
|
+
result
|
|
95497
|
+
} = parseResultElement;
|
|
95498
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
95499
|
+
const overlay1Element = (0,_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_6__.refractOverlay1)(result, {
|
|
95500
|
+
consume: true,
|
|
95501
|
+
...refractorOpts
|
|
95502
|
+
});
|
|
95503
|
+
overlay1Element.classes.push('result');
|
|
95504
|
+
parseResultElement.replaceResult(overlay1Element);
|
|
95505
|
+
}
|
|
95506
|
+
return parseResultElement;
|
|
95507
|
+
};
|
|
95508
|
+
|
|
95509
|
+
/**
|
|
95510
|
+
* @public
|
|
95511
|
+
*/
|
|
95512
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
95513
|
+
|
|
95514
|
+
/***/ },
|
|
95515
|
+
|
|
95516
|
+
/***/ 54827
|
|
95517
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95518
|
+
|
|
95519
|
+
"use strict";
|
|
95520
|
+
__webpack_require__.r(__webpack_exports__);
|
|
95521
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95522
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
95523
|
+
/* harmony export */ });
|
|
95524
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13786);
|
|
95525
|
+
|
|
95526
|
+
|
|
95527
|
+
/**
|
|
95528
|
+
* @public
|
|
95529
|
+
*/
|
|
95530
|
+
const jsonMediaTypes = new _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__.OverlayMediaTypes(..._speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('json'));
|
|
95531
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (jsonMediaTypes);
|
|
95532
|
+
|
|
95533
|
+
/***/ },
|
|
95534
|
+
|
|
95535
|
+
/***/ 98585
|
|
95536
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95537
|
+
|
|
95538
|
+
"use strict";
|
|
95539
|
+
__webpack_require__.r(__webpack_exports__);
|
|
95540
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95541
|
+
/* harmony export */ detect: () => (/* binding */ detect),
|
|
95542
|
+
/* harmony export */ detectionRegExp: () => (/* binding */ detectionRegExp),
|
|
95543
|
+
/* harmony export */ mediaTypes: () => (/* reexport safe */ _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
95544
|
+
/* harmony export */ namespace: () => (/* binding */ namespace),
|
|
95545
|
+
/* harmony export */ parse: () => (/* binding */ parse)
|
|
95546
|
+
/* harmony export */ });
|
|
95547
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38506);
|
|
95548
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85379);
|
|
95549
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4560);
|
|
95550
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55156);
|
|
95551
|
+
/* harmony import */ var _speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91333);
|
|
95552
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75847);
|
|
95553
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35957);
|
|
95554
|
+
/* harmony import */ var _media_types_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(83004);
|
|
95555
|
+
|
|
95556
|
+
|
|
95557
|
+
|
|
95558
|
+
|
|
95559
|
+
|
|
95560
|
+
|
|
95561
|
+
/**
|
|
95562
|
+
* @public
|
|
95563
|
+
*/
|
|
95564
|
+
const detectionRegExp = /(?<YAML>^(["']?)overlay\2\s*:\s*(["']?)(?<version_yaml>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"overlay"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))")/m;
|
|
95565
|
+
|
|
95566
|
+
/**
|
|
95567
|
+
* @public
|
|
95568
|
+
*/
|
|
95569
|
+
const detect = async (source, options = {}) => detectionRegExp.test(source) && (await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.detect)(source, options));
|
|
95570
|
+
|
|
95571
|
+
/**
|
|
95572
|
+
* @public
|
|
95573
|
+
*/
|
|
95574
|
+
|
|
95575
|
+
/**
|
|
95576
|
+
* @public
|
|
95577
|
+
*/
|
|
95578
|
+
const parse = async (source, options = {}) => {
|
|
95579
|
+
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({}, 'refractorOpts', options);
|
|
95580
|
+
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(['refractorOpts'], options);
|
|
95581
|
+
const parseResultElement = await (0,_speclynx_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_4__.parse)(source, parserOpts);
|
|
95582
|
+
const {
|
|
95583
|
+
result
|
|
95584
|
+
} = parseResultElement;
|
|
95585
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(result)) {
|
|
95586
|
+
const overlay1Element = (0,_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_6__.refractOverlay1)(result, {
|
|
95587
|
+
consume: true,
|
|
95588
|
+
...refractorOpts
|
|
95589
|
+
});
|
|
95590
|
+
overlay1Element.classes.push('result');
|
|
95591
|
+
parseResultElement.replaceResult(overlay1Element);
|
|
95592
|
+
}
|
|
95593
|
+
return parseResultElement;
|
|
95594
|
+
};
|
|
95595
|
+
|
|
95596
|
+
/**
|
|
95597
|
+
* @public
|
|
95598
|
+
*/
|
|
95599
|
+
const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]().use(_speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
95600
|
+
|
|
95601
|
+
/***/ },
|
|
95602
|
+
|
|
95603
|
+
/***/ 83004
|
|
95604
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95605
|
+
|
|
95606
|
+
"use strict";
|
|
95607
|
+
__webpack_require__.r(__webpack_exports__);
|
|
95608
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95609
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
95610
|
+
/* harmony export */ });
|
|
95611
|
+
/* harmony import */ var _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13786);
|
|
95612
|
+
|
|
95613
|
+
|
|
95614
|
+
/**
|
|
95615
|
+
* @public
|
|
95616
|
+
*/
|
|
95617
|
+
const yamlMediaTypes = new _speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__.OverlayMediaTypes(..._speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('generic'), ..._speclynx_apidom_ns_overlay_1__WEBPACK_IMPORTED_MODULE_0__["default"].filterByFormat('yaml'));
|
|
95618
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (yamlMediaTypes);
|
|
95619
|
+
|
|
95620
|
+
/***/ },
|
|
95621
|
+
|
|
93675
95622
|
/***/ 91333
|
|
93676
95623
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
93677
95624
|
|
|
@@ -98154,48 +100101,48 @@ var __webpack_exports__ = {};
|
|
|
98154
100101
|
"use strict";
|
|
98155
100102
|
__webpack_require__.r(__webpack_exports__);
|
|
98156
100103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98157
|
-
/* harmony export */ BundleError: () => (/* reexport safe */
|
|
98158
|
-
/* harmony export */ BundleStrategy: () => (/* reexport safe */
|
|
98159
|
-
/* harmony export */ DereferenceAncestorLineage: () => (/* reexport safe */
|
|
98160
|
-
/* harmony export */ DereferenceError: () => (/* reexport safe */
|
|
98161
|
-
/* harmony export */ DereferenceStrategy: () => (/* reexport safe */
|
|
98162
|
-
/* harmony export */ EvaluationElementIdError: () => (/* reexport safe */
|
|
98163
|
-
/* harmony export */ EvaluationJsonSchema$anchorError: () => (/* reexport safe */
|
|
98164
|
-
/* harmony export */ EvaluationJsonSchemaUriError: () => (/* reexport safe */
|
|
98165
|
-
/* harmony export */ File: () => (/* reexport safe */
|
|
98166
|
-
/* harmony export */ HTTPResolver: () => (/* reexport safe */
|
|
98167
|
-
/* harmony export */ InvalidJsonSchema$anchorError: () => (/* reexport safe */
|
|
98168
|
-
/* harmony export */ JsonSchema$anchorError: () => (/* reexport safe */
|
|
98169
|
-
/* harmony export */ JsonSchemaURIError: () => (/* reexport safe */
|
|
98170
|
-
/* harmony export */ MaximumBundleDepthError: () => (/* reexport safe */
|
|
98171
|
-
/* harmony export */ MaximumDereferenceDepthError: () => (/* reexport safe */
|
|
98172
|
-
/* harmony export */ MaximumResolveDepthError: () => (/* reexport safe */
|
|
98173
|
-
/* harmony export */ ParseError: () => (/* reexport safe */
|
|
98174
|
-
/* harmony export */ Parser: () => (/* reexport safe */
|
|
98175
|
-
/* harmony export */ ParserError: () => (/* reexport safe */
|
|
98176
|
-
/* harmony export */ PluginError: () => (/* reexport safe */
|
|
98177
|
-
/* harmony export */ Reference: () => (/* reexport safe */
|
|
98178
|
-
/* harmony export */ ReferenceSet: () => (/* reexport safe */
|
|
98179
|
-
/* harmony export */ ResolveError: () => (/* reexport safe */
|
|
98180
|
-
/* harmony export */ ResolveStrategy: () => (/* reexport safe */
|
|
98181
|
-
/* harmony export */ Resolver: () => (/* reexport safe */
|
|
98182
|
-
/* harmony export */ ResolverError: () => (/* reexport safe */
|
|
98183
|
-
/* harmony export */ UnmatchedBundleStrategyError: () => (/* reexport safe */
|
|
98184
|
-
/* harmony export */ UnmatchedDereferenceStrategyError: () => (/* reexport safe */
|
|
98185
|
-
/* harmony export */ UnmatchedParserError: () => (/* reexport safe */
|
|
98186
|
-
/* harmony export */ UnmatchedResolveStrategyError: () => (/* reexport safe */
|
|
98187
|
-
/* harmony export */ UnmatchedResolverError: () => (/* reexport safe */
|
|
98188
|
-
/* harmony export */ UnresolvableReferenceError: () => (/* reexport safe */
|
|
98189
|
-
/* harmony export */ bundle: () => (/* reexport safe */
|
|
98190
|
-
/* harmony export */ dereference: () => (/* reexport safe */
|
|
98191
|
-
/* harmony export */ dereferenceApiDOM: () => (/* reexport safe */
|
|
98192
|
-
/* harmony export */ mergeOptions: () => (/* reexport safe */
|
|
98193
|
-
/* harmony export */ options: () => (/* reexport safe */
|
|
98194
|
-
/* harmony export */ parse: () => (/* reexport safe */
|
|
98195
|
-
/* harmony export */ readFile: () => (/* reexport safe */
|
|
98196
|
-
/* harmony export */ resolve: () => (/* reexport safe */
|
|
98197
|
-
/* harmony export */ resolveApiDOM: () => (/* reexport safe */
|
|
98198
|
-
/* harmony export */ url: () => (/* reexport safe */
|
|
100104
|
+
/* harmony export */ BundleError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.BundleError),
|
|
100105
|
+
/* harmony export */ BundleStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.BundleStrategy),
|
|
100106
|
+
/* harmony export */ DereferenceAncestorLineage: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.DereferenceAncestorLineage),
|
|
100107
|
+
/* harmony export */ DereferenceError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.DereferenceError),
|
|
100108
|
+
/* harmony export */ DereferenceStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.DereferenceStrategy),
|
|
100109
|
+
/* harmony export */ EvaluationElementIdError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.EvaluationElementIdError),
|
|
100110
|
+
/* harmony export */ EvaluationJsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.EvaluationJsonSchema$anchorError),
|
|
100111
|
+
/* harmony export */ EvaluationJsonSchemaUriError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.EvaluationJsonSchemaUriError),
|
|
100112
|
+
/* harmony export */ File: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.File),
|
|
100113
|
+
/* harmony export */ HTTPResolver: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.HTTPResolver),
|
|
100114
|
+
/* harmony export */ InvalidJsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.InvalidJsonSchema$anchorError),
|
|
100115
|
+
/* harmony export */ JsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.JsonSchema$anchorError),
|
|
100116
|
+
/* harmony export */ JsonSchemaURIError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.JsonSchemaURIError),
|
|
100117
|
+
/* harmony export */ MaximumBundleDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.MaximumBundleDepthError),
|
|
100118
|
+
/* harmony export */ MaximumDereferenceDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.MaximumDereferenceDepthError),
|
|
100119
|
+
/* harmony export */ MaximumResolveDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.MaximumResolveDepthError),
|
|
100120
|
+
/* harmony export */ ParseError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ParseError),
|
|
100121
|
+
/* harmony export */ Parser: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.Parser),
|
|
100122
|
+
/* harmony export */ ParserError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ParserError),
|
|
100123
|
+
/* harmony export */ PluginError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.PluginError),
|
|
100124
|
+
/* harmony export */ Reference: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.Reference),
|
|
100125
|
+
/* harmony export */ ReferenceSet: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ReferenceSet),
|
|
100126
|
+
/* harmony export */ ResolveError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ResolveError),
|
|
100127
|
+
/* harmony export */ ResolveStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ResolveStrategy),
|
|
100128
|
+
/* harmony export */ Resolver: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.Resolver),
|
|
100129
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.ResolverError),
|
|
100130
|
+
/* harmony export */ UnmatchedBundleStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnmatchedBundleStrategyError),
|
|
100131
|
+
/* harmony export */ UnmatchedDereferenceStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnmatchedDereferenceStrategyError),
|
|
100132
|
+
/* harmony export */ UnmatchedParserError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnmatchedParserError),
|
|
100133
|
+
/* harmony export */ UnmatchedResolveStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnmatchedResolveStrategyError),
|
|
100134
|
+
/* harmony export */ UnmatchedResolverError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnmatchedResolverError),
|
|
100135
|
+
/* harmony export */ UnresolvableReferenceError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.UnresolvableReferenceError),
|
|
100136
|
+
/* harmony export */ bundle: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.bundle),
|
|
100137
|
+
/* harmony export */ dereference: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.dereference),
|
|
100138
|
+
/* harmony export */ dereferenceApiDOM: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.dereferenceApiDOM),
|
|
100139
|
+
/* harmony export */ mergeOptions: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.mergeOptions),
|
|
100140
|
+
/* harmony export */ options: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.options),
|
|
100141
|
+
/* harmony export */ parse: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.parse),
|
|
100142
|
+
/* harmony export */ readFile: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.readFile),
|
|
100143
|
+
/* harmony export */ resolve: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.resolve),
|
|
100144
|
+
/* harmony export */ resolveApiDOM: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.resolveApiDOM),
|
|
100145
|
+
/* harmony export */ url: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_34__.url)
|
|
98199
100146
|
/* harmony export */ });
|
|
98200
100147
|
/* harmony import */ var _resolve_resolvers_file_index_node_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50365);
|
|
98201
100148
|
/* harmony import */ var _resolve_resolvers_http_axios_index_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16341);
|
|
@@ -98203,30 +100150,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98203
100150
|
/* harmony import */ var _resolve_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62469);
|
|
98204
100151
|
/* harmony import */ var _resolve_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(70270);
|
|
98205
100152
|
/* harmony import */ var _resolve_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(98095);
|
|
98206
|
-
/* harmony import */ var
|
|
98207
|
-
/* harmony import */ var
|
|
98208
|
-
/* harmony import */ var
|
|
98209
|
-
/* harmony import */ var
|
|
98210
|
-
/* harmony import */ var
|
|
98211
|
-
/* harmony import */ var
|
|
98212
|
-
/* harmony import */ var
|
|
98213
|
-
/* harmony import */ var
|
|
98214
|
-
/* harmony import */ var
|
|
98215
|
-
/* harmony import */ var
|
|
98216
|
-
/* harmony import */ var
|
|
98217
|
-
/* harmony import */ var
|
|
98218
|
-
/* harmony import */ var
|
|
98219
|
-
/* harmony import */ var
|
|
98220
|
-
/* harmony import */ var
|
|
98221
|
-
/* harmony import */ var
|
|
98222
|
-
/* harmony import */ var
|
|
98223
|
-
/* harmony import */ var
|
|
98224
|
-
/* harmony import */ var
|
|
98225
|
-
/* harmony import */ var
|
|
98226
|
-
/* harmony import */ var
|
|
98227
|
-
/* harmony import */ var
|
|
98228
|
-
/* harmony import */ var
|
|
98229
|
-
/* harmony import */ var
|
|
100153
|
+
/* harmony import */ var _resolve_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24305);
|
|
100154
|
+
/* harmony import */ var _resolve_strategies_overlay_1_index_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59882);
|
|
100155
|
+
/* harmony import */ var _resolve_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58680);
|
|
100156
|
+
/* harmony import */ var _parse_parsers_openapi_json_2_index_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70536);
|
|
100157
|
+
/* harmony import */ var _parse_parsers_openapi_yaml_2_index_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(47261);
|
|
100158
|
+
/* harmony import */ var _parse_parsers_openapi_json_3_0_index_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96958);
|
|
100159
|
+
/* harmony import */ var _parse_parsers_openapi_yaml_3_0_index_ts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27375);
|
|
100160
|
+
/* harmony import */ var _parse_parsers_openapi_json_3_1_index_ts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(83269);
|
|
100161
|
+
/* harmony import */ var _parse_parsers_openapi_yaml_3_1_index_ts__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(32040);
|
|
100162
|
+
/* harmony import */ var _parse_parsers_asyncapi_json_2_index_ts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(35844);
|
|
100163
|
+
/* harmony import */ var _parse_parsers_asyncapi_yaml_2_index_ts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(43113);
|
|
100164
|
+
/* harmony import */ var _parse_parsers_arazzo_json_1_index_ts__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(13860);
|
|
100165
|
+
/* harmony import */ var _parse_parsers_arazzo_yaml_1_index_ts__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(65481);
|
|
100166
|
+
/* harmony import */ var _parse_parsers_overlay_json_1_index_ts__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(92889);
|
|
100167
|
+
/* harmony import */ var _parse_parsers_overlay_yaml_1_index_ts__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4860);
|
|
100168
|
+
/* harmony import */ var _parse_parsers_apidom_json_index_ts__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(46807);
|
|
100169
|
+
/* harmony import */ var _parse_parsers_json_index_ts__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(58724);
|
|
100170
|
+
/* harmony import */ var _parse_parsers_yaml_1_2_index_ts__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(94320);
|
|
100171
|
+
/* harmony import */ var _parse_parsers_binary_index_node_ts__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(2062);
|
|
100172
|
+
/* harmony import */ var _dereference_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(82300);
|
|
100173
|
+
/* harmony import */ var _dereference_strategies_openapi_2_index_ts__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(80415);
|
|
100174
|
+
/* harmony import */ var _dereference_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(45409);
|
|
100175
|
+
/* harmony import */ var _dereference_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(47770);
|
|
100176
|
+
/* harmony import */ var _dereference_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(12683);
|
|
100177
|
+
/* harmony import */ var _dereference_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(82941);
|
|
100178
|
+
/* harmony import */ var _dereference_strategies_overlay_1_index_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(39782);
|
|
100179
|
+
/* harmony import */ var _bundle_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(16432);
|
|
100180
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98363);
|
|
100181
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(33906);
|
|
100182
|
+
|
|
98230
100183
|
|
|
98231
100184
|
|
|
98232
100185
|
|
|
@@ -98256,56 +100209,66 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98256
100209
|
|
|
98257
100210
|
|
|
98258
100211
|
|
|
98259
|
-
|
|
100212
|
+
|
|
100213
|
+
|
|
100214
|
+
|
|
100215
|
+
|
|
100216
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_33__["default"].parse.parsers = [new _parse_parsers_openapi_json_2_index_ts__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
100217
|
+
allowEmpty: true,
|
|
100218
|
+
sourceMap: false
|
|
100219
|
+
}), new _parse_parsers_openapi_yaml_2_index_ts__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
100220
|
+
allowEmpty: true,
|
|
100221
|
+
sourceMap: false
|
|
100222
|
+
}), new _parse_parsers_openapi_json_3_0_index_ts__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
98260
100223
|
allowEmpty: true,
|
|
98261
100224
|
sourceMap: false
|
|
98262
|
-
}), new
|
|
100225
|
+
}), new _parse_parsers_openapi_yaml_3_0_index_ts__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
98263
100226
|
allowEmpty: true,
|
|
98264
100227
|
sourceMap: false
|
|
98265
|
-
}), new
|
|
100228
|
+
}), new _parse_parsers_openapi_json_3_1_index_ts__WEBPACK_IMPORTED_MODULE_13__["default"]({
|
|
98266
100229
|
allowEmpty: true,
|
|
98267
100230
|
sourceMap: false
|
|
98268
|
-
}), new
|
|
100231
|
+
}), new _parse_parsers_openapi_yaml_3_1_index_ts__WEBPACK_IMPORTED_MODULE_14__["default"]({
|
|
98269
100232
|
allowEmpty: true,
|
|
98270
100233
|
sourceMap: false
|
|
98271
|
-
}), new
|
|
100234
|
+
}), new _parse_parsers_asyncapi_json_2_index_ts__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
98272
100235
|
allowEmpty: true,
|
|
98273
100236
|
sourceMap: false
|
|
98274
|
-
}), new
|
|
100237
|
+
}), new _parse_parsers_asyncapi_yaml_2_index_ts__WEBPACK_IMPORTED_MODULE_16__["default"]({
|
|
98275
100238
|
allowEmpty: true,
|
|
98276
100239
|
sourceMap: false
|
|
98277
|
-
}), new
|
|
100240
|
+
}), new _parse_parsers_arazzo_json_1_index_ts__WEBPACK_IMPORTED_MODULE_17__["default"]({
|
|
98278
100241
|
allowEmpty: true,
|
|
98279
100242
|
sourceMap: false
|
|
98280
|
-
}), new
|
|
100243
|
+
}), new _parse_parsers_arazzo_yaml_1_index_ts__WEBPACK_IMPORTED_MODULE_18__["default"]({
|
|
98281
100244
|
allowEmpty: true,
|
|
98282
100245
|
sourceMap: false
|
|
98283
|
-
}), new
|
|
100246
|
+
}), new _parse_parsers_overlay_json_1_index_ts__WEBPACK_IMPORTED_MODULE_19__["default"]({
|
|
98284
100247
|
allowEmpty: true,
|
|
98285
100248
|
sourceMap: false
|
|
98286
|
-
}), new
|
|
100249
|
+
}), new _parse_parsers_overlay_yaml_1_index_ts__WEBPACK_IMPORTED_MODULE_20__["default"]({
|
|
98287
100250
|
allowEmpty: true,
|
|
98288
100251
|
sourceMap: false
|
|
98289
|
-
}), new
|
|
100252
|
+
}), new _parse_parsers_apidom_json_index_ts__WEBPACK_IMPORTED_MODULE_21__["default"]({
|
|
98290
100253
|
allowEmpty: true,
|
|
98291
100254
|
sourceMap: false
|
|
98292
|
-
}), new
|
|
100255
|
+
}), new _parse_parsers_json_index_ts__WEBPACK_IMPORTED_MODULE_22__["default"]({
|
|
98293
100256
|
allowEmpty: true,
|
|
98294
100257
|
sourceMap: false
|
|
98295
|
-
}), new
|
|
100258
|
+
}), new _parse_parsers_yaml_1_2_index_ts__WEBPACK_IMPORTED_MODULE_23__["default"]({
|
|
98296
100259
|
allowEmpty: true,
|
|
98297
100260
|
sourceMap: false
|
|
98298
|
-
}), new
|
|
100261
|
+
}), new _parse_parsers_binary_index_node_ts__WEBPACK_IMPORTED_MODULE_24__["default"]({
|
|
98299
100262
|
allowEmpty: true
|
|
98300
100263
|
})];
|
|
98301
|
-
|
|
100264
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_33__["default"].resolve.resolvers = [new _resolve_resolvers_file_index_node_ts__WEBPACK_IMPORTED_MODULE_0__["default"](), new _resolve_resolvers_http_axios_index_ts__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
98302
100265
|
timeout: 5000,
|
|
98303
100266
|
redirects: 5,
|
|
98304
100267
|
withCredentials: false
|
|
98305
100268
|
})];
|
|
98306
|
-
|
|
98307
|
-
|
|
98308
|
-
|
|
100269
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_33__["default"].resolve.strategies = [new _resolve_strategies_openapi_2_index_ts__WEBPACK_IMPORTED_MODULE_2__["default"](), new _resolve_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_3__["default"](), new _resolve_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_4__["default"](), new _resolve_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_5__["default"](), new _resolve_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_6__["default"](), new _resolve_strategies_overlay_1_index_ts__WEBPACK_IMPORTED_MODULE_7__["default"](), new _resolve_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_8__["default"]()];
|
|
100270
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_33__["default"].dereference.strategies = [new _dereference_strategies_openapi_2_index_ts__WEBPACK_IMPORTED_MODULE_26__["default"](), new _dereference_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_27__["default"](), new _dereference_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"](), new _dereference_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_29__["default"](), new _dereference_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_30__["default"](), new _dereference_strategies_overlay_1_index_ts__WEBPACK_IMPORTED_MODULE_31__["default"](), new _dereference_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_25__["default"]()];
|
|
100271
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_33__["default"].bundle.strategies = [new _bundle_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_32__["default"]()];
|
|
98309
100272
|
|
|
98310
100273
|
})();
|
|
98311
100274
|
|