@swagger-api/apidom-parser-adapter-api-design-systems-json 0.92.0 → 0.93.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.
|
@@ -6381,38 +6381,6 @@ var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUnde
|
|
|
6381
6381
|
|
|
6382
6382
|
/***/ }),
|
|
6383
6383
|
|
|
6384
|
-
/***/ 1329:
|
|
6385
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6386
|
-
|
|
6387
|
-
"use strict";
|
|
6388
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6389
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6390
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6391
|
-
/* harmony export */ });
|
|
6392
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6360);
|
|
6393
|
-
/* harmony import */ var _stubUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2031);
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
/**
|
|
6398
|
-
* A function that performs no operations.
|
|
6399
|
-
*
|
|
6400
|
-
* @func noop
|
|
6401
|
-
* @memberOf RA
|
|
6402
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
6403
|
-
* @category Function
|
|
6404
|
-
* @sig ... -> undefined
|
|
6405
|
-
* @return {undefined}
|
|
6406
|
-
* @example
|
|
6407
|
-
*
|
|
6408
|
-
* RA.noop(); //=> undefined
|
|
6409
|
-
* RA.noop(1, 2, 3); //=> undefined
|
|
6410
|
-
*/
|
|
6411
|
-
var noop = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
6412
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (noop);
|
|
6413
|
-
|
|
6414
|
-
/***/ }),
|
|
6415
|
-
|
|
6416
6384
|
/***/ 2031:
|
|
6417
6385
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6418
6386
|
|
|
@@ -6484,10 +6452,383 @@ var trimCharsStart = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(function
|
|
|
6484
6452
|
|
|
6485
6453
|
/***/ }),
|
|
6486
6454
|
|
|
6487
|
-
/***/
|
|
6488
|
-
/***/ ((
|
|
6455
|
+
/***/ 6252:
|
|
6456
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6457
|
+
|
|
6458
|
+
"use strict";
|
|
6459
|
+
__webpack_require__.r(__webpack_exports__);
|
|
6460
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6461
|
+
/* harmony export */ Mixin: () => (/* binding */ Mixin),
|
|
6462
|
+
/* harmony export */ decorate: () => (/* binding */ decorate),
|
|
6463
|
+
/* harmony export */ hasMixin: () => (/* binding */ hasMixin),
|
|
6464
|
+
/* harmony export */ mix: () => (/* binding */ mix),
|
|
6465
|
+
/* harmony export */ settings: () => (/* binding */ settings)
|
|
6466
|
+
/* harmony export */ });
|
|
6467
|
+
/**
|
|
6468
|
+
* Utility function that works like `Object.apply`, but copies getters and setters properly as well. Additionally gives
|
|
6469
|
+
* the option to exclude properties by name.
|
|
6470
|
+
*/
|
|
6471
|
+
const copyProps = (dest, src, exclude = []) => {
|
|
6472
|
+
const props = Object.getOwnPropertyDescriptors(src);
|
|
6473
|
+
for (let prop of exclude)
|
|
6474
|
+
delete props[prop];
|
|
6475
|
+
Object.defineProperties(dest, props);
|
|
6476
|
+
};
|
|
6477
|
+
/**
|
|
6478
|
+
* Returns the full chain of prototypes up until Object.prototype given a starting object. The order of prototypes will
|
|
6479
|
+
* be closest to farthest in the chain.
|
|
6480
|
+
*/
|
|
6481
|
+
const protoChain = (obj, currentChain = [obj]) => {
|
|
6482
|
+
const proto = Object.getPrototypeOf(obj);
|
|
6483
|
+
if (proto === null)
|
|
6484
|
+
return currentChain;
|
|
6485
|
+
return protoChain(proto, [...currentChain, proto]);
|
|
6486
|
+
};
|
|
6487
|
+
/**
|
|
6488
|
+
* Identifies the nearest ancestor common to all the given objects in their prototype chains. For most unrelated
|
|
6489
|
+
* objects, this function should return Object.prototype.
|
|
6490
|
+
*/
|
|
6491
|
+
const nearestCommonProto = (...objs) => {
|
|
6492
|
+
if (objs.length === 0)
|
|
6493
|
+
return undefined;
|
|
6494
|
+
let commonProto = undefined;
|
|
6495
|
+
const protoChains = objs.map(obj => protoChain(obj));
|
|
6496
|
+
while (protoChains.every(protoChain => protoChain.length > 0)) {
|
|
6497
|
+
const protos = protoChains.map(protoChain => protoChain.pop());
|
|
6498
|
+
const potentialCommonProto = protos[0];
|
|
6499
|
+
if (protos.every(proto => proto === potentialCommonProto))
|
|
6500
|
+
commonProto = potentialCommonProto;
|
|
6501
|
+
else
|
|
6502
|
+
break;
|
|
6503
|
+
}
|
|
6504
|
+
return commonProto;
|
|
6505
|
+
};
|
|
6506
|
+
/**
|
|
6507
|
+
* Creates a new prototype object that is a mixture of the given prototypes. The mixing is achieved by first
|
|
6508
|
+
* identifying the nearest common ancestor and using it as the prototype for a new object. Then all properties/methods
|
|
6509
|
+
* downstream of this prototype (ONLY downstream) are copied into the new object.
|
|
6510
|
+
*
|
|
6511
|
+
* The resulting prototype is more performant than softMixProtos(...), as well as ES5 compatible. However, it's not as
|
|
6512
|
+
* flexible as updates to the source prototypes aren't captured by the mixed result. See softMixProtos for why you may
|
|
6513
|
+
* want to use that instead.
|
|
6514
|
+
*/
|
|
6515
|
+
const hardMixProtos = (ingredients, constructor, exclude = []) => {
|
|
6516
|
+
var _a;
|
|
6517
|
+
const base = (_a = nearestCommonProto(...ingredients)) !== null && _a !== void 0 ? _a : Object.prototype;
|
|
6518
|
+
const mixedProto = Object.create(base);
|
|
6519
|
+
// Keeps track of prototypes we've already visited to avoid copying the same properties multiple times. We init the
|
|
6520
|
+
// list with the proto chain below the nearest common ancestor because we don't want any of those methods mixed in
|
|
6521
|
+
// when they will already be accessible via prototype access.
|
|
6522
|
+
const visitedProtos = protoChain(base);
|
|
6523
|
+
for (let prototype of ingredients) {
|
|
6524
|
+
let protos = protoChain(prototype);
|
|
6525
|
+
// Apply the prototype chain in reverse order so that old methods don't override newer ones.
|
|
6526
|
+
for (let i = protos.length - 1; i >= 0; i--) {
|
|
6527
|
+
let newProto = protos[i];
|
|
6528
|
+
if (visitedProtos.indexOf(newProto) === -1) {
|
|
6529
|
+
copyProps(mixedProto, newProto, ['constructor', ...exclude]);
|
|
6530
|
+
visitedProtos.push(newProto);
|
|
6531
|
+
}
|
|
6532
|
+
}
|
|
6533
|
+
}
|
|
6534
|
+
mixedProto.constructor = constructor;
|
|
6535
|
+
return mixedProto;
|
|
6536
|
+
};
|
|
6537
|
+
const unique = (arr) => arr.filter((e, i) => arr.indexOf(e) == i);
|
|
6538
|
+
|
|
6539
|
+
/**
|
|
6540
|
+
* Finds the ingredient with the given prop, searching in reverse order and breadth-first if searching ingredient
|
|
6541
|
+
* prototypes is required.
|
|
6542
|
+
*/
|
|
6543
|
+
const getIngredientWithProp = (prop, ingredients) => {
|
|
6544
|
+
const protoChains = ingredients.map(ingredient => protoChain(ingredient));
|
|
6545
|
+
// since we search breadth-first, we need to keep track of our depth in the prototype chains
|
|
6546
|
+
let protoDepth = 0;
|
|
6547
|
+
// not all prototype chains are the same depth, so this remains true as long as at least one of the ingredients'
|
|
6548
|
+
// prototype chains has an object at this depth
|
|
6549
|
+
let protosAreLeftToSearch = true;
|
|
6550
|
+
while (protosAreLeftToSearch) {
|
|
6551
|
+
// with the start of each horizontal slice, we assume this is the one that's deeper than any of the proto chains
|
|
6552
|
+
protosAreLeftToSearch = false;
|
|
6553
|
+
// scan through the ingredients right to left
|
|
6554
|
+
for (let i = ingredients.length - 1; i >= 0; i--) {
|
|
6555
|
+
const searchTarget = protoChains[i][protoDepth];
|
|
6556
|
+
if (searchTarget !== undefined && searchTarget !== null) {
|
|
6557
|
+
// if we find something, this is proof that this horizontal slice potentially more objects to search
|
|
6558
|
+
protosAreLeftToSearch = true;
|
|
6559
|
+
// eureka, we found it
|
|
6560
|
+
if (Object.getOwnPropertyDescriptor(searchTarget, prop) != undefined) {
|
|
6561
|
+
return protoChains[i][0];
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
}
|
|
6565
|
+
protoDepth++;
|
|
6566
|
+
}
|
|
6567
|
+
return undefined;
|
|
6568
|
+
};
|
|
6569
|
+
/**
|
|
6570
|
+
* "Mixes" ingredients by wrapping them in a Proxy. The optional prototype argument allows the mixed object to sit
|
|
6571
|
+
* downstream of an existing prototype chain. Note that "properties" cannot be added, deleted, or modified.
|
|
6572
|
+
*/
|
|
6573
|
+
const proxyMix = (ingredients, prototype = Object.prototype) => new Proxy({}, {
|
|
6574
|
+
getPrototypeOf() {
|
|
6575
|
+
return prototype;
|
|
6576
|
+
},
|
|
6577
|
+
setPrototypeOf() {
|
|
6578
|
+
throw Error('Cannot set prototype of Proxies created by ts-mixer');
|
|
6579
|
+
},
|
|
6580
|
+
getOwnPropertyDescriptor(_, prop) {
|
|
6581
|
+
return Object.getOwnPropertyDescriptor(getIngredientWithProp(prop, ingredients) || {}, prop);
|
|
6582
|
+
},
|
|
6583
|
+
defineProperty() {
|
|
6584
|
+
throw new Error('Cannot define new properties on Proxies created by ts-mixer');
|
|
6585
|
+
},
|
|
6586
|
+
has(_, prop) {
|
|
6587
|
+
return getIngredientWithProp(prop, ingredients) !== undefined || prototype[prop] !== undefined;
|
|
6588
|
+
},
|
|
6589
|
+
get(_, prop) {
|
|
6590
|
+
return (getIngredientWithProp(prop, ingredients) || prototype)[prop];
|
|
6591
|
+
},
|
|
6592
|
+
set(_, prop, val) {
|
|
6593
|
+
const ingredientWithProp = getIngredientWithProp(prop, ingredients);
|
|
6594
|
+
if (ingredientWithProp === undefined)
|
|
6595
|
+
throw new Error('Cannot set new properties on Proxies created by ts-mixer');
|
|
6596
|
+
ingredientWithProp[prop] = val;
|
|
6597
|
+
return true;
|
|
6598
|
+
},
|
|
6599
|
+
deleteProperty() {
|
|
6600
|
+
throw new Error('Cannot delete properties on Proxies created by ts-mixer');
|
|
6601
|
+
},
|
|
6602
|
+
ownKeys() {
|
|
6603
|
+
return ingredients
|
|
6604
|
+
.map(Object.getOwnPropertyNames)
|
|
6605
|
+
.reduce((prev, curr) => curr.concat(prev.filter(key => curr.indexOf(key) < 0)));
|
|
6606
|
+
},
|
|
6607
|
+
});
|
|
6608
|
+
/**
|
|
6609
|
+
* Creates a new proxy-prototype object that is a "soft" mixture of the given prototypes. The mixing is achieved by
|
|
6610
|
+
* proxying all property access to the ingredients. This is not ES5 compatible and less performant. However, any
|
|
6611
|
+
* changes made to the source prototypes will be reflected in the proxy-prototype, which may be desirable.
|
|
6612
|
+
*/
|
|
6613
|
+
const softMixProtos = (ingredients, constructor) => proxyMix([...ingredients, { constructor }]);
|
|
6614
|
+
|
|
6615
|
+
const settings = {
|
|
6616
|
+
initFunction: null,
|
|
6617
|
+
staticsStrategy: 'copy',
|
|
6618
|
+
prototypeStrategy: 'copy',
|
|
6619
|
+
decoratorInheritance: 'deep',
|
|
6620
|
+
};
|
|
6621
|
+
|
|
6622
|
+
// Keeps track of constituent classes for every mixin class created by ts-mixer.
|
|
6623
|
+
const mixins = new Map();
|
|
6624
|
+
const getMixinsForClass = (clazz) => mixins.get(clazz);
|
|
6625
|
+
const registerMixins = (mixedClass, constituents) => mixins.set(mixedClass, constituents);
|
|
6626
|
+
const hasMixin = (instance, mixin) => {
|
|
6627
|
+
if (instance instanceof mixin)
|
|
6628
|
+
return true;
|
|
6629
|
+
const constructor = instance.constructor;
|
|
6630
|
+
const visited = new Set();
|
|
6631
|
+
let frontier = new Set();
|
|
6632
|
+
frontier.add(constructor);
|
|
6633
|
+
while (frontier.size > 0) {
|
|
6634
|
+
// check if the frontier has the mixin we're looking for. if not, we can say we visited every item in the frontier
|
|
6635
|
+
if (frontier.has(mixin))
|
|
6636
|
+
return true;
|
|
6637
|
+
frontier.forEach(item => visited.add(item));
|
|
6638
|
+
// build a new frontier based on the associated mixin classes and prototype chains of each frontier item
|
|
6639
|
+
const newFrontier = new Set();
|
|
6640
|
+
frontier.forEach(item => {
|
|
6641
|
+
var _a;
|
|
6642
|
+
const itemConstituents = (_a = mixins.get(item)) !== null && _a !== void 0 ? _a : protoChain(item.prototype).map(proto => proto.constructor).filter(item => item !== null);
|
|
6643
|
+
if (itemConstituents)
|
|
6644
|
+
itemConstituents.forEach(constituent => {
|
|
6645
|
+
if (!visited.has(constituent) && !frontier.has(constituent))
|
|
6646
|
+
newFrontier.add(constituent);
|
|
6647
|
+
});
|
|
6648
|
+
});
|
|
6649
|
+
// we have a new frontier, now search again
|
|
6650
|
+
frontier = newFrontier;
|
|
6651
|
+
}
|
|
6652
|
+
// if we get here, we couldn't find the mixin anywhere in the prototype chain or associated mixin classes
|
|
6653
|
+
return false;
|
|
6654
|
+
};
|
|
6655
|
+
|
|
6656
|
+
const mergeObjectsOfDecorators = (o1, o2) => {
|
|
6657
|
+
var _a, _b;
|
|
6658
|
+
const allKeys = unique([...Object.getOwnPropertyNames(o1), ...Object.getOwnPropertyNames(o2)]);
|
|
6659
|
+
const mergedObject = {};
|
|
6660
|
+
for (let key of allKeys)
|
|
6661
|
+
mergedObject[key] = unique([...((_a = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a !== void 0 ? _a : []), ...((_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : [])]);
|
|
6662
|
+
return mergedObject;
|
|
6663
|
+
};
|
|
6664
|
+
const mergePropertyAndMethodDecorators = (d1, d2) => {
|
|
6665
|
+
var _a, _b, _c, _d;
|
|
6666
|
+
return ({
|
|
6667
|
+
property: mergeObjectsOfDecorators((_a = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a !== void 0 ? _a : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
|
|
6668
|
+
method: mergeObjectsOfDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {}),
|
|
6669
|
+
});
|
|
6670
|
+
};
|
|
6671
|
+
const mergeDecorators = (d1, d2) => {
|
|
6672
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6673
|
+
return ({
|
|
6674
|
+
class: unique([...(_a = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a !== void 0 ? _a : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
|
|
6675
|
+
static: mergePropertyAndMethodDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
|
|
6676
|
+
instance: mergePropertyAndMethodDecorators((_e = d1 === null || d1 === void 0 ? void 0 : d1.instance) !== null && _e !== void 0 ? _e : {}, (_f = d2 === null || d2 === void 0 ? void 0 : d2.instance) !== null && _f !== void 0 ? _f : {}),
|
|
6677
|
+
});
|
|
6678
|
+
};
|
|
6679
|
+
const decorators = new Map();
|
|
6680
|
+
const findAllConstituentClasses = (...classes) => {
|
|
6681
|
+
var _a;
|
|
6682
|
+
const allClasses = new Set();
|
|
6683
|
+
const frontier = new Set([...classes]);
|
|
6684
|
+
while (frontier.size > 0) {
|
|
6685
|
+
for (let clazz of frontier) {
|
|
6686
|
+
const protoChainClasses = protoChain(clazz.prototype).map(proto => proto.constructor);
|
|
6687
|
+
const mixinClasses = (_a = getMixinsForClass(clazz)) !== null && _a !== void 0 ? _a : [];
|
|
6688
|
+
const potentiallyNewClasses = [...protoChainClasses, ...mixinClasses];
|
|
6689
|
+
const newClasses = potentiallyNewClasses.filter(c => !allClasses.has(c));
|
|
6690
|
+
for (let newClass of newClasses)
|
|
6691
|
+
frontier.add(newClass);
|
|
6692
|
+
allClasses.add(clazz);
|
|
6693
|
+
frontier.delete(clazz);
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
return [...allClasses];
|
|
6697
|
+
};
|
|
6698
|
+
const deepDecoratorSearch = (...classes) => {
|
|
6699
|
+
const decoratorsForClassChain = findAllConstituentClasses(...classes)
|
|
6700
|
+
.map(clazz => decorators.get(clazz))
|
|
6701
|
+
.filter(decorators => !!decorators);
|
|
6702
|
+
if (decoratorsForClassChain.length == 0)
|
|
6703
|
+
return {};
|
|
6704
|
+
if (decoratorsForClassChain.length == 1)
|
|
6705
|
+
return decoratorsForClassChain[0];
|
|
6706
|
+
return decoratorsForClassChain.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
6707
|
+
};
|
|
6708
|
+
const directDecoratorSearch = (...classes) => {
|
|
6709
|
+
const classDecorators = classes.map(clazz => getDecoratorsForClass(clazz));
|
|
6710
|
+
if (classDecorators.length === 0)
|
|
6711
|
+
return {};
|
|
6712
|
+
if (classDecorators.length === 1)
|
|
6713
|
+
return classDecorators[0];
|
|
6714
|
+
return classDecorators.reduce((d1, d2) => mergeDecorators(d1, d2));
|
|
6715
|
+
};
|
|
6716
|
+
const getDecoratorsForClass = (clazz) => {
|
|
6717
|
+
let decoratorsForClass = decorators.get(clazz);
|
|
6718
|
+
if (!decoratorsForClass) {
|
|
6719
|
+
decoratorsForClass = {};
|
|
6720
|
+
decorators.set(clazz, decoratorsForClass);
|
|
6721
|
+
}
|
|
6722
|
+
return decoratorsForClass;
|
|
6723
|
+
};
|
|
6724
|
+
const decorateClass = (decorator) => ((clazz) => {
|
|
6725
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
6726
|
+
let classDecorators = decoratorsForClass.class;
|
|
6727
|
+
if (!classDecorators) {
|
|
6728
|
+
classDecorators = [];
|
|
6729
|
+
decoratorsForClass.class = classDecorators;
|
|
6730
|
+
}
|
|
6731
|
+
classDecorators.push(decorator);
|
|
6732
|
+
return decorator(clazz);
|
|
6733
|
+
});
|
|
6734
|
+
const decorateMember = (decorator) => ((object, key, ...otherArgs) => {
|
|
6735
|
+
var _a, _b, _c;
|
|
6736
|
+
const decoratorTargetType = typeof object === 'function' ? 'static' : 'instance';
|
|
6737
|
+
const decoratorType = typeof object[key] === 'function' ? 'method' : 'property';
|
|
6738
|
+
const clazz = decoratorTargetType === 'static' ? object : object.constructor;
|
|
6739
|
+
const decoratorsForClass = getDecoratorsForClass(clazz);
|
|
6740
|
+
const decoratorsForTargetType = (_a = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a !== void 0 ? _a : {};
|
|
6741
|
+
decoratorsForClass[decoratorTargetType] = decoratorsForTargetType;
|
|
6742
|
+
let decoratorsForType = (_b = decoratorsForTargetType === null || decoratorsForTargetType === void 0 ? void 0 : decoratorsForTargetType[decoratorType]) !== null && _b !== void 0 ? _b : {};
|
|
6743
|
+
decoratorsForTargetType[decoratorType] = decoratorsForType;
|
|
6744
|
+
let decoratorsForKey = (_c = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c !== void 0 ? _c : [];
|
|
6745
|
+
decoratorsForType[key] = decoratorsForKey;
|
|
6746
|
+
// @ts-ignore: array is type `A[] | B[]` and item is type `A | B`, so technically a type error, but it's fine
|
|
6747
|
+
decoratorsForKey.push(decorator);
|
|
6748
|
+
// @ts-ignore
|
|
6749
|
+
return decorator(object, key, ...otherArgs);
|
|
6750
|
+
});
|
|
6751
|
+
const decorate = (decorator) => ((...args) => {
|
|
6752
|
+
if (args.length === 1)
|
|
6753
|
+
return decorateClass(decorator)(args[0]);
|
|
6754
|
+
return decorateMember(decorator)(...args);
|
|
6755
|
+
});
|
|
6756
|
+
|
|
6757
|
+
function Mixin(...constructors) {
|
|
6758
|
+
var _a, _b, _c;
|
|
6759
|
+
const prototypes = constructors.map(constructor => constructor.prototype);
|
|
6760
|
+
// Here we gather up the init functions of the ingredient prototypes, combine them into one init function, and
|
|
6761
|
+
// attach it to the mixed class prototype. The reason we do this is because we want the init functions to mix
|
|
6762
|
+
// similarly to constructors -- not methods, which simply override each other.
|
|
6763
|
+
const initFunctionName = settings.initFunction;
|
|
6764
|
+
if (initFunctionName !== null) {
|
|
6765
|
+
const initFunctions = prototypes
|
|
6766
|
+
.map(proto => proto[initFunctionName])
|
|
6767
|
+
.filter(func => typeof func === 'function');
|
|
6768
|
+
const combinedInitFunction = function (...args) {
|
|
6769
|
+
for (let initFunction of initFunctions)
|
|
6770
|
+
initFunction.apply(this, args);
|
|
6771
|
+
};
|
|
6772
|
+
const extraProto = { [initFunctionName]: combinedInitFunction };
|
|
6773
|
+
prototypes.push(extraProto);
|
|
6774
|
+
}
|
|
6775
|
+
function MixedClass(...args) {
|
|
6776
|
+
for (const constructor of constructors)
|
|
6777
|
+
// @ts-ignore: potentially abstract class
|
|
6778
|
+
copyProps(this, new constructor(...args));
|
|
6779
|
+
if (initFunctionName !== null && typeof this[initFunctionName] === 'function')
|
|
6780
|
+
this[initFunctionName].apply(this, args);
|
|
6781
|
+
}
|
|
6782
|
+
MixedClass.prototype = settings.prototypeStrategy === 'copy'
|
|
6783
|
+
? hardMixProtos(prototypes, MixedClass)
|
|
6784
|
+
: softMixProtos(prototypes, MixedClass);
|
|
6785
|
+
Object.setPrototypeOf(MixedClass, settings.staticsStrategy === 'copy'
|
|
6786
|
+
? hardMixProtos(constructors, null, ['prototype'])
|
|
6787
|
+
: proxyMix(constructors, Function.prototype));
|
|
6788
|
+
let DecoratedMixedClass = MixedClass;
|
|
6789
|
+
if (settings.decoratorInheritance !== 'none') {
|
|
6790
|
+
const classDecorators = settings.decoratorInheritance === 'deep'
|
|
6791
|
+
? deepDecoratorSearch(...constructors)
|
|
6792
|
+
: directDecoratorSearch(...constructors);
|
|
6793
|
+
for (let decorator of (_a = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a !== void 0 ? _a : []) {
|
|
6794
|
+
const result = decorator(DecoratedMixedClass);
|
|
6795
|
+
if (result) {
|
|
6796
|
+
DecoratedMixedClass = result;
|
|
6797
|
+
}
|
|
6798
|
+
}
|
|
6799
|
+
applyPropAndMethodDecorators((_b = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.static) !== null && _b !== void 0 ? _b : {}, DecoratedMixedClass);
|
|
6800
|
+
applyPropAndMethodDecorators((_c = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c !== void 0 ? _c : {}, DecoratedMixedClass.prototype);
|
|
6801
|
+
}
|
|
6802
|
+
registerMixins(DecoratedMixedClass, constructors);
|
|
6803
|
+
return DecoratedMixedClass;
|
|
6804
|
+
}
|
|
6805
|
+
const applyPropAndMethodDecorators = (propAndMethodDecorators, target) => {
|
|
6806
|
+
const propDecorators = propAndMethodDecorators.property;
|
|
6807
|
+
const methodDecorators = propAndMethodDecorators.method;
|
|
6808
|
+
if (propDecorators)
|
|
6809
|
+
for (let key in propDecorators)
|
|
6810
|
+
for (let decorator of propDecorators[key])
|
|
6811
|
+
decorator(target, key);
|
|
6812
|
+
if (methodDecorators)
|
|
6813
|
+
for (let key in methodDecorators)
|
|
6814
|
+
for (let decorator of methodDecorators[key])
|
|
6815
|
+
decorator(target, key, Object.getOwnPropertyDescriptor(target, key));
|
|
6816
|
+
};
|
|
6817
|
+
/**
|
|
6818
|
+
* A decorator version of the `Mixin` function. You'll want to use this instead of `Mixin` for mixing generic classes.
|
|
6819
|
+
*/
|
|
6820
|
+
const mix = (...ingredients) => decoratedClass => {
|
|
6821
|
+
// @ts-ignore
|
|
6822
|
+
const mixedClass = Mixin(...ingredients.concat([decoratedClass]));
|
|
6823
|
+
Object.defineProperty(mixedClass, 'name', {
|
|
6824
|
+
value: decoratedClass.name,
|
|
6825
|
+
writable: false,
|
|
6826
|
+
});
|
|
6827
|
+
return mixedClass;
|
|
6828
|
+
};
|
|
6829
|
+
|
|
6830
|
+
|
|
6489
6831
|
|
|
6490
|
-
!function(){"use strict";var u,c,a,s,f,y="properties",l="deepProperties",b="propertyDescriptors",d="staticProperties",O="staticDeepProperties",h="staticPropertyDescriptors",g="configuration",m="deepConfiguration",P="deepProps",A="deepStatics",j="deepConf",v="initializers",_="methods",w="composers",D="compose";function S(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[])}function r(r,t){return Array.prototype.slice.call(arguments,2).reduce(r,t)}var x=r.bind(0,function r(t,e){if(e)for(var n=S(e),o=0;o<n.length;o+=1)Object.defineProperty(t,n[o],Object.getOwnPropertyDescriptor(e,n[o]));return t});function C(r){return"function"==typeof r}function N(r){return r&&"object"==typeof r||C(r)}function z(r){return r&&"object"==typeof r&&r.__proto__==Object.prototype}var E=r.bind(0,function r(t,e){if(e===u)return t;if(Array.isArray(e))return(Array.isArray(t)?t:[]).concat(e);if(!z(e))return e;for(var n,o,i=S(e),p=0;p<i.length;)n=i[p++],(o=Object.getOwnPropertyDescriptor(e,n)).hasOwnProperty("value")?o.value!==u&&(t[n]=r(z(t[n])||Array.isArray(e[n])?t[n]:{},e[n])):Object.defineProperty(t,n,o);return t});function I(){return(c=Array.prototype.concat.apply([],arguments).filter(function(r,t,e){return C(r)&&e.indexOf(r)===t})).length?c:u}function t(r){return c=function r(){return function r(t){var e,n,o=r[D]||{},i={__proto__:o[_]},p=o[v],c=Array.prototype.slice.apply(arguments),a=o[l];if(a&&E(i,a),(a=o[y])&&x(i,a),(a=o[b])&&Object.defineProperties(i,a),!p||!p.length)return i;for(t===u&&(t={}),o=0;o<p.length;)C(e=p[o++])&&(i=(n=e.call(i,t,{instance:i,stamp:r,args:c}))===u?i:n);return i}}(),(a=r[O])&&E(c,a),(a=r[d])&&x(c,a),(a=r[h])&&Object.defineProperties(c,a),a=C(c[D])?c[D]:R,x(c[D]=function(){return a.apply(this,arguments)},r),c}function e(e,n){function r(r,t){N(n[r])&&(N(e[r])||(e[r]={}),(t||x)(e[r],n[r]))}function t(r){(c=I(e[r],n[r]))&&(e[r]=c)}return n&&N(n=n[D]||n)&&(r(_),r(y),r(l,E),r(b),r(d),r(O,E),r(h),r(g),r(m,E),t(v),t(w)),e}function R(){return t(Array.prototype.concat.apply([this],arguments).reduce(e,{}))}function V(r){return C(r)&&C(r[D])}var n={};function o(r,t){return function(){return(s={})[r]=t.apply(u,Array.prototype.concat.apply([{}],arguments)),((c=this)&&c[D]||a).call(c,s)}}n[_]=o(_,x),n[y]=n.props=o(y,x),n[v]=n.init=o(v,I),n[w]=o(w,I),n[l]=n[P]=o(l,E),n[d]=n.statics=o(d,x),n[O]=n[A]=o(O,E),n[g]=n.conf=o(g,x),n[m]=n[j]=o(m,E),n[b]=o(b,x),n[h]=o(h,x),a=n[D]=x(function r(){for(var t,e,n=0,o=[],i=arguments,p=this;n<i.length;)N(t=i[n++])&&o.push(V(t)?t:((s={})[_]=(e=t)[_]||u,a=e.props,s[y]=N((c=e[y])||a)?x({},a,c):u,s[v]=I(e.init,e[v]),s[w]=I(e[w]),a=e[P],s[l]=N((c=e[l])||a)?E({},a,c):u,s[b]=e[b],a=e.statics,s[d]=N((c=e[d])||a)?x({},a,c):u,a=e[A],s[O]=N((c=e[O])||a)?E({},a,c):u,c=e[h],s[h]=N((a=e.name&&{name:{value:e.name}})||c)?x({},c,a):u,a=e.conf,s[g]=N((c=e[g])||a)?x({},a,c):u,a=e[j],s[m]=N((c=e[m])||a)?E({},a,c):u,s));if(t=R.apply(p||f,o),p&&o.unshift(p),Array.isArray(i=t[D][w]))for(n=0;n<i.length;)t=V(p=i[n++]({stamp:t,composables:o}))?p:t;return t},n),n.create=function(){return this.apply(u,arguments)},(s={})[d]=n,f=R(s),a[D]=a.bind(),a.version="4.3.2",typeof u!="object"?module.exports=a:self.stampit=a}();
|
|
6491
6832
|
|
|
6492
6833
|
/***/ }),
|
|
6493
6834
|
|
|
@@ -14256,26 +14597,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14256
14597
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14257
14598
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14258
14599
|
/* harmony export */ });
|
|
14259
|
-
/* harmony import */ var
|
|
14260
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14261
|
-
|
|
14600
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14262
14601
|
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
isUnexpected: false
|
|
14270
|
-
},
|
|
14271
|
-
init({
|
|
14272
|
-
value = null,
|
|
14273
|
-
isUnexpected = false
|
|
14602
|
+
class Error extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14603
|
+
static type = 'error';
|
|
14604
|
+
constructor({
|
|
14605
|
+
value,
|
|
14606
|
+
isUnexpected = false,
|
|
14607
|
+
...rest
|
|
14274
14608
|
} = {}) {
|
|
14609
|
+
super({
|
|
14610
|
+
...rest
|
|
14611
|
+
});
|
|
14275
14612
|
this.value = value;
|
|
14276
14613
|
this.isUnexpected = isUnexpected;
|
|
14277
14614
|
}
|
|
14278
|
-
}
|
|
14615
|
+
}
|
|
14279
14616
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Error);
|
|
14280
14617
|
|
|
14281
14618
|
/***/ }),
|
|
@@ -14288,23 +14625,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14288
14625
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14289
14626
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14290
14627
|
/* harmony export */ });
|
|
14291
|
-
/* harmony import */ var
|
|
14292
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14293
|
-
|
|
14628
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14294
14629
|
|
|
14295
|
-
|
|
14296
|
-
|
|
14297
|
-
|
|
14298
|
-
|
|
14299
|
-
|
|
14300
|
-
value: null
|
|
14301
|
-
},
|
|
14302
|
-
init({
|
|
14303
|
-
value = null
|
|
14630
|
+
class Literal extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14631
|
+
static type = 'literal';
|
|
14632
|
+
constructor({
|
|
14633
|
+
value,
|
|
14634
|
+
...rest
|
|
14304
14635
|
} = {}) {
|
|
14636
|
+
super({
|
|
14637
|
+
...rest
|
|
14638
|
+
});
|
|
14305
14639
|
this.value = value;
|
|
14306
14640
|
}
|
|
14307
|
-
}
|
|
14641
|
+
}
|
|
14308
14642
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Literal);
|
|
14309
14643
|
|
|
14310
14644
|
/***/ }),
|
|
@@ -14317,45 +14651,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14317
14651
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14318
14652
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14319
14653
|
/* harmony export */ });
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
type: null,
|
|
14325
|
-
position: null,
|
|
14326
|
-
children: []
|
|
14327
|
-
},
|
|
14328
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
14329
|
-
init({
|
|
14654
|
+
class Node {
|
|
14655
|
+
static type = 'node';
|
|
14656
|
+
type = 'node';
|
|
14657
|
+
constructor({
|
|
14330
14658
|
children = [],
|
|
14331
|
-
position
|
|
14659
|
+
position,
|
|
14332
14660
|
isMissing = false
|
|
14333
|
-
} = {}
|
|
14334
|
-
|
|
14335
|
-
}) {
|
|
14336
|
-
this.type = stamp.type;
|
|
14661
|
+
} = {}) {
|
|
14662
|
+
this.type = this.constructor.type;
|
|
14337
14663
|
this.isMissing = isMissing;
|
|
14338
14664
|
this.children = children;
|
|
14339
14665
|
this.position = position;
|
|
14340
|
-
},
|
|
14341
|
-
methods: {
|
|
14342
|
-
// creates shallow clone of node
|
|
14343
|
-
clone() {
|
|
14344
|
-
// 1. copy has same prototype as orig
|
|
14345
|
-
const copy = Object.create(Object.getPrototypeOf(this));
|
|
14346
|
-
|
|
14347
|
-
// 2. copy has all of orig’s properties
|
|
14348
|
-
Object.getOwnPropertyNames(this) // (1)
|
|
14349
|
-
.forEach(propKey => {
|
|
14350
|
-
// (2)
|
|
14351
|
-
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
14352
|
-
// @ts-ignore
|
|
14353
|
-
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
14354
|
-
});
|
|
14355
|
-
return copy;
|
|
14356
|
-
}
|
|
14357
14666
|
}
|
|
14358
|
-
|
|
14667
|
+
|
|
14668
|
+
// creates shallow clone of node
|
|
14669
|
+
clone() {
|
|
14670
|
+
// 1. copy has same prototype as orig
|
|
14671
|
+
const copy = Object.create(Object.getPrototypeOf(this));
|
|
14672
|
+
|
|
14673
|
+
// 2. copy has all of orig’s properties
|
|
14674
|
+
Object.getOwnPropertyNames(this) // (1)
|
|
14675
|
+
.forEach(propKey => {
|
|
14676
|
+
// (2)
|
|
14677
|
+
const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
|
|
14678
|
+
// @ts-ignore
|
|
14679
|
+
Object.defineProperty(copy, propKey, descriptor); // (4)
|
|
14680
|
+
});
|
|
14681
|
+
return copy;
|
|
14682
|
+
}
|
|
14683
|
+
}
|
|
14359
14684
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Node);
|
|
14360
14685
|
|
|
14361
14686
|
/***/ }),
|
|
@@ -14368,24 +14693,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14368
14693
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14369
14694
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14370
14695
|
/* harmony export */ });
|
|
14371
|
-
/* harmony import */ var
|
|
14372
|
-
/* harmony import */ var
|
|
14373
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14374
|
-
|
|
14696
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7018);
|
|
14697
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14375
14698
|
|
|
14376
14699
|
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
methods: {
|
|
14382
|
-
// @ts-ignore
|
|
14383
|
-
get rootNode() {
|
|
14384
|
-
// @ts-ignore
|
|
14385
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
|
|
14386
|
-
}
|
|
14700
|
+
class ParseResult extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14701
|
+
static type = 'parseResult';
|
|
14702
|
+
get rootNode() {
|
|
14703
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
|
|
14387
14704
|
}
|
|
14388
|
-
}
|
|
14705
|
+
}
|
|
14389
14706
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParseResult);
|
|
14390
14707
|
|
|
14391
14708
|
/***/ }),
|
|
@@ -14399,45 +14716,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14399
14716
|
/* harmony export */ Point: () => (/* binding */ Point),
|
|
14400
14717
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14401
14718
|
/* harmony export */ });
|
|
14402
|
-
/*
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
char: null
|
|
14413
|
-
},
|
|
14414
|
-
init({
|
|
14415
|
-
row = null,
|
|
14416
|
-
column = null,
|
|
14417
|
-
char = null
|
|
14418
|
-
} = {}) {
|
|
14719
|
+
/* eslint-disable max-classes-per-file */
|
|
14720
|
+
|
|
14721
|
+
class Point {
|
|
14722
|
+
static type = 'point';
|
|
14723
|
+
type = Point.type;
|
|
14724
|
+
constructor({
|
|
14725
|
+
row,
|
|
14726
|
+
column,
|
|
14727
|
+
char
|
|
14728
|
+
}) {
|
|
14419
14729
|
this.row = row;
|
|
14420
14730
|
this.column = column;
|
|
14421
14731
|
this.char = char;
|
|
14422
14732
|
}
|
|
14423
|
-
}
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
end: null
|
|
14432
|
-
},
|
|
14433
|
-
init({
|
|
14434
|
-
start = null,
|
|
14435
|
-
end = null
|
|
14436
|
-
} = {}) {
|
|
14733
|
+
}
|
|
14734
|
+
class Position {
|
|
14735
|
+
static type = 'position';
|
|
14736
|
+
type = Position.type;
|
|
14737
|
+
constructor({
|
|
14738
|
+
start,
|
|
14739
|
+
end
|
|
14740
|
+
}) {
|
|
14437
14741
|
this.start = start;
|
|
14438
14742
|
this.end = end;
|
|
14439
14743
|
}
|
|
14440
|
-
}
|
|
14744
|
+
}
|
|
14441
14745
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
14442
14746
|
|
|
14443
14747
|
/***/ }),
|
|
@@ -14450,23 +14754,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14450
14754
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14451
14755
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14452
14756
|
/* harmony export */ });
|
|
14453
|
-
/* harmony import */ var
|
|
14454
|
-
/* harmony import */ var
|
|
14455
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14757
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14758
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14456
14759
|
|
|
14457
14760
|
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
},
|
|
14463
|
-
methods: {
|
|
14464
|
-
get items() {
|
|
14465
|
-
// @ts-ignore
|
|
14466
|
-
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isArray)(node) || _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isObject);
|
|
14467
|
-
}
|
|
14761
|
+
class JsonArray extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14762
|
+
static type = 'array';
|
|
14763
|
+
get items() {
|
|
14764
|
+
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isArray)(node) || _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isObject);
|
|
14468
14765
|
}
|
|
14469
|
-
}
|
|
14766
|
+
}
|
|
14470
14767
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonArray);
|
|
14471
14768
|
|
|
14472
14769
|
/***/ }),
|
|
@@ -14479,24 +14776,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14479
14776
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14480
14777
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14481
14778
|
/* harmony export */ });
|
|
14482
|
-
/* harmony import */ var
|
|
14483
|
-
/* harmony import */ var
|
|
14484
|
-
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9426);
|
|
14779
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7018);
|
|
14780
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14485
14781
|
|
|
14486
14782
|
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
},
|
|
14492
|
-
methods: {
|
|
14493
|
-
// @ts-ignore
|
|
14494
|
-
get child() {
|
|
14495
|
-
// @ts-ignore
|
|
14496
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
|
|
14497
|
-
}
|
|
14783
|
+
class JsonDocument extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14784
|
+
static type = 'document';
|
|
14785
|
+
get child() {
|
|
14786
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
|
|
14498
14787
|
}
|
|
14499
|
-
}
|
|
14788
|
+
}
|
|
14500
14789
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonDocument);
|
|
14501
14790
|
|
|
14502
14791
|
/***/ }),
|
|
@@ -14509,15 +14798,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14509
14798
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14510
14799
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14511
14800
|
/* harmony export */ });
|
|
14512
|
-
/* harmony import */ var
|
|
14513
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14514
|
-
|
|
14801
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14515
14802
|
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
}
|
|
14520
|
-
});
|
|
14803
|
+
class JsonFalse extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14804
|
+
static type = 'false';
|
|
14805
|
+
}
|
|
14521
14806
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonFalse);
|
|
14522
14807
|
|
|
14523
14808
|
/***/ }),
|
|
@@ -14530,15 +14815,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14530
14815
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14531
14816
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14532
14817
|
/* harmony export */ });
|
|
14533
|
-
/* harmony import */ var
|
|
14534
|
-
/* harmony import */ var _JsonString_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9443);
|
|
14535
|
-
|
|
14818
|
+
/* harmony import */ var _JsonString_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9443);
|
|
14536
14819
|
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
}
|
|
14541
|
-
});
|
|
14820
|
+
class JsonKey extends _JsonString_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14821
|
+
static type = 'key';
|
|
14822
|
+
}
|
|
14542
14823
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonKey);
|
|
14543
14824
|
|
|
14544
14825
|
/***/ }),
|
|
@@ -14551,11 +14832,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14551
14832
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14552
14833
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14553
14834
|
/* harmony export */ });
|
|
14554
|
-
/* harmony import */ var
|
|
14555
|
-
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
|
|
14556
|
-
|
|
14835
|
+
/* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
|
14557
14836
|
|
|
14558
|
-
|
|
14837
|
+
class JsonNode extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
14559
14838
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNode);
|
|
14560
14839
|
|
|
14561
14840
|
/***/ }),
|
|
@@ -14568,15 +14847,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14568
14847
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14569
14848
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14570
14849
|
/* harmony export */ });
|
|
14571
|
-
/* harmony import */ var
|
|
14572
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14850
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14573
14851
|
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
type: 'null'
|
|
14578
|
-
}
|
|
14579
|
-
});
|
|
14852
|
+
class JsonNull extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14853
|
+
static type = 'null';
|
|
14854
|
+
}
|
|
14580
14855
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNull);
|
|
14581
14856
|
|
|
14582
14857
|
/***/ }),
|
|
@@ -14589,15 +14864,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14589
14864
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14590
14865
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14591
14866
|
/* harmony export */ });
|
|
14592
|
-
/* harmony import */ var
|
|
14593
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14594
|
-
|
|
14867
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14595
14868
|
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
}
|
|
14600
|
-
});
|
|
14869
|
+
class JsonNumber extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14870
|
+
static type = 'number';
|
|
14871
|
+
}
|
|
14601
14872
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonNumber);
|
|
14602
14873
|
|
|
14603
14874
|
/***/ }),
|
|
@@ -14610,23 +14881,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14610
14881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14611
14882
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14612
14883
|
/* harmony export */ });
|
|
14613
|
-
/* harmony import */ var
|
|
14614
|
-
/* harmony import */ var
|
|
14615
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14616
|
-
|
|
14884
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14885
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14617
14886
|
|
|
14618
14887
|
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
methods: {
|
|
14624
|
-
get properties() {
|
|
14625
|
-
// @ts-ignore
|
|
14626
|
-
return this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isProperty);
|
|
14627
|
-
}
|
|
14888
|
+
class JsonObject extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14889
|
+
static type = 'object';
|
|
14890
|
+
get properties() {
|
|
14891
|
+
return this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isProperty);
|
|
14628
14892
|
}
|
|
14629
|
-
}
|
|
14893
|
+
}
|
|
14630
14894
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonObject);
|
|
14631
14895
|
|
|
14632
14896
|
/***/ }),
|
|
@@ -14639,29 +14903,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14639
14903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14640
14904
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14641
14905
|
/* harmony export */ });
|
|
14642
|
-
/* harmony import */ var
|
|
14643
|
-
/* harmony import */ var
|
|
14644
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14645
|
-
|
|
14906
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14907
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14646
14908
|
|
|
14647
14909
|
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
methods: {
|
|
14653
|
-
// @ts-ignore
|
|
14654
|
-
get key() {
|
|
14655
|
-
// @ts-ignore
|
|
14656
|
-
return this.children.find(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isKey);
|
|
14657
|
-
},
|
|
14658
|
-
// @ts-ignore
|
|
14659
|
-
get value() {
|
|
14660
|
-
// @ts-ignore
|
|
14661
|
-
return this.children.find(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isArray)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isObject)(node));
|
|
14662
|
-
}
|
|
14910
|
+
class JsonProperty extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14911
|
+
static type = 'property';
|
|
14912
|
+
get key() {
|
|
14913
|
+
return this.children.find(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isKey);
|
|
14663
14914
|
}
|
|
14664
|
-
|
|
14915
|
+
get value() {
|
|
14916
|
+
return this.children.find(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isFalse)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isTrue)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNull)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isArray)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isObject)(node));
|
|
14917
|
+
}
|
|
14918
|
+
}
|
|
14665
14919
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonProperty);
|
|
14666
14920
|
|
|
14667
14921
|
/***/ }),
|
|
@@ -14674,29 +14928,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14674
14928
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14675
14929
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14676
14930
|
/* harmony export */ });
|
|
14677
|
-
/* harmony import */ var
|
|
14678
|
-
/* harmony import */ var
|
|
14679
|
-
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1918);
|
|
14680
|
-
|
|
14931
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14932
|
+
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1918);
|
|
14681
14933
|
|
|
14682
14934
|
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
// @ts-ignore
|
|
14690
|
-
if (this.children.length === 1) {
|
|
14691
|
-
// @ts-ignore
|
|
14692
|
-
return this.children[0].value;
|
|
14693
|
-
}
|
|
14694
|
-
return this.children
|
|
14695
|
-
// @ts-ignore
|
|
14696
|
-
.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringContent)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isEscapeSequence)(node)).reduce((acc, cur) => acc + cur.value, '');
|
|
14935
|
+
class JsonString extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14936
|
+
static type = 'string';
|
|
14937
|
+
get value() {
|
|
14938
|
+
if (this.children.length === 1) {
|
|
14939
|
+
const onlyChild = this.children[0];
|
|
14940
|
+
return onlyChild.value;
|
|
14697
14941
|
}
|
|
14942
|
+
return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringContent)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isEscapeSequence)(node)).reduce((acc, cur) => acc + cur.value, '');
|
|
14698
14943
|
}
|
|
14699
|
-
}
|
|
14944
|
+
}
|
|
14700
14945
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonString);
|
|
14701
14946
|
|
|
14702
14947
|
/***/ }),
|
|
@@ -14709,15 +14954,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14709
14954
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14710
14955
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14711
14956
|
/* harmony export */ });
|
|
14712
|
-
/* harmony import */ var
|
|
14713
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14957
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14714
14958
|
|
|
14715
|
-
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
type: 'stringContent'
|
|
14719
|
-
}
|
|
14720
|
-
});
|
|
14959
|
+
class JsonStringContent extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14960
|
+
static type = 'stringContent';
|
|
14961
|
+
}
|
|
14721
14962
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonStringContent);
|
|
14722
14963
|
|
|
14723
14964
|
/***/ }),
|
|
@@ -14730,15 +14971,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14730
14971
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14731
14972
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14732
14973
|
/* harmony export */ });
|
|
14733
|
-
/* harmony import */ var
|
|
14734
|
-
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6204);
|
|
14735
|
-
|
|
14974
|
+
/* harmony import */ var _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6204);
|
|
14736
14975
|
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
}
|
|
14741
|
-
});
|
|
14976
|
+
class JsonTrue extends _JsonValue_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14977
|
+
static type = 'true';
|
|
14978
|
+
}
|
|
14742
14979
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonTrue);
|
|
14743
14980
|
|
|
14744
14981
|
/***/ }),
|
|
@@ -14751,23 +14988,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14751
14988
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14752
14989
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14753
14990
|
/* harmony export */ });
|
|
14754
|
-
/* harmony import */ var
|
|
14755
|
-
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9426);
|
|
14991
|
+
/* harmony import */ var _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9426);
|
|
14756
14992
|
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
value = null
|
|
14767
|
-
} = {}) {
|
|
14993
|
+
class JsonValue extends _JsonNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14994
|
+
static type = 'value';
|
|
14995
|
+
constructor({
|
|
14996
|
+
value,
|
|
14997
|
+
...rest
|
|
14998
|
+
}) {
|
|
14999
|
+
super({
|
|
15000
|
+
...rest
|
|
15001
|
+
});
|
|
14768
15002
|
this.value = value;
|
|
14769
15003
|
}
|
|
14770
|
-
}
|
|
15004
|
+
}
|
|
14771
15005
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonValue);
|
|
14772
15006
|
|
|
14773
15007
|
/***/ }),
|
|
@@ -14793,18 +15027,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14793
15027
|
/* harmony export */ });
|
|
14794
15028
|
/* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2771);
|
|
14795
15029
|
|
|
14796
|
-
const isDocument = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14797
|
-
const isString = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14798
|
-
const isFalse = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14799
|
-
const isTrue = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14800
|
-
const isNull = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14801
|
-
const isNumber = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14802
|
-
const isArray = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14803
|
-
const isObject = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14804
|
-
const isStringContent = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14805
|
-
const isEscapeSequence = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14806
|
-
const isProperty = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
14807
|
-
const isKey = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType
|
|
15030
|
+
const isDocument = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('document', node);
|
|
15031
|
+
const isString = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('string', node);
|
|
15032
|
+
const isFalse = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('false', node);
|
|
15033
|
+
const isTrue = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('true', node);
|
|
15034
|
+
const isNull = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('null', node);
|
|
15035
|
+
const isNumber = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('number', node);
|
|
15036
|
+
const isArray = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('array', node);
|
|
15037
|
+
const isObject = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('object', node);
|
|
15038
|
+
const isStringContent = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('stringContent', node);
|
|
15039
|
+
const isEscapeSequence = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('escapeSequence', node);
|
|
15040
|
+
const isProperty = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('property', node);
|
|
15041
|
+
const isKey = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('key', node);
|
|
14808
15042
|
|
|
14809
15043
|
/***/ }),
|
|
14810
15044
|
|
|
@@ -14820,11 +15054,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14820
15054
|
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
14821
15055
|
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
14822
15056
|
/* harmony export */ });
|
|
14823
|
-
const isNodeType = (type, node) =>
|
|
14824
|
-
const isLiteral = isNodeType
|
|
14825
|
-
const isPosition = isNodeType
|
|
14826
|
-
const isPoint = isNodeType
|
|
14827
|
-
const isParseResult = isNodeType
|
|
15057
|
+
const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
|
|
15058
|
+
const isLiteral = node => isNodeType('literal', node);
|
|
15059
|
+
const isPosition = node => isNodeType('position', node);
|
|
15060
|
+
const isPoint = node => isNodeType('point', node);
|
|
15061
|
+
const isParseResult = node => isNodeType('parseResult', node);
|
|
14828
15062
|
|
|
14829
15063
|
/***/ }),
|
|
14830
15064
|
|
|
@@ -15684,7 +15918,7 @@ class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
|
15684
15918
|
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
15685
15919
|
}
|
|
15686
15920
|
set position(position) {
|
|
15687
|
-
if (position ===
|
|
15921
|
+
if (typeof position === 'undefined') {
|
|
15688
15922
|
return;
|
|
15689
15923
|
}
|
|
15690
15924
|
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
@@ -16199,77 +16433,73 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16199
16433
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16200
16434
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16201
16435
|
/* harmony export */ });
|
|
16202
|
-
/* harmony import */ var
|
|
16203
|
-
/* harmony import */ var
|
|
16204
|
-
/* harmony import */ var
|
|
16205
|
-
/* harmony import */ var
|
|
16206
|
-
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6903);
|
|
16207
|
-
|
|
16436
|
+
/* harmony import */ var _visitor_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2056);
|
|
16437
|
+
/* harmony import */ var _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6353);
|
|
16438
|
+
/* harmony import */ var _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4575);
|
|
16439
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6903);
|
|
16208
16440
|
|
|
16209
16441
|
|
|
16210
16442
|
|
|
16211
16443
|
|
|
16212
|
-
/* eslint-disable
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
this.NumberElement = function _NumberElement(element) {
|
|
16219
|
-
return element.toValue();
|
|
16220
|
-
};
|
|
16221
|
-
this.StringElement = function _StringElement(element) {
|
|
16222
|
-
return element.toValue();
|
|
16223
|
-
};
|
|
16224
|
-
this.NullElement = function _NullElement() {
|
|
16225
|
-
return null;
|
|
16226
|
-
};
|
|
16227
|
-
this.ObjectElement = {
|
|
16228
|
-
enter(element) {
|
|
16229
|
-
if (references.has(element)) {
|
|
16230
|
-
return references.get(element).toReference();
|
|
16444
|
+
/* eslint-disable class-methods-use-this */
|
|
16445
|
+
class Visitor {
|
|
16446
|
+
ObjectElement = {
|
|
16447
|
+
enter: element => {
|
|
16448
|
+
if (this.references.has(element)) {
|
|
16449
|
+
return this.references.get(element).toReference();
|
|
16231
16450
|
}
|
|
16232
|
-
const ephemeral = new
|
|
16233
|
-
references.set(element, ephemeral);
|
|
16451
|
+
const ephemeral = new _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](element.content);
|
|
16452
|
+
this.references.set(element, ephemeral);
|
|
16234
16453
|
return ephemeral;
|
|
16235
16454
|
}
|
|
16236
16455
|
};
|
|
16237
|
-
|
|
16238
|
-
leave
|
|
16456
|
+
EphemeralObject = {
|
|
16457
|
+
leave: ephemeral => {
|
|
16239
16458
|
return ephemeral.toObject();
|
|
16240
16459
|
}
|
|
16241
16460
|
};
|
|
16242
|
-
|
|
16243
|
-
enter
|
|
16461
|
+
MemberElement = {
|
|
16462
|
+
enter: element => {
|
|
16244
16463
|
return [element.key, element.value];
|
|
16245
16464
|
}
|
|
16246
16465
|
};
|
|
16247
|
-
|
|
16248
|
-
enter
|
|
16249
|
-
if (references.has(element)) {
|
|
16250
|
-
return references.get(element).toReference();
|
|
16466
|
+
ArrayElement = {
|
|
16467
|
+
enter: element => {
|
|
16468
|
+
if (this.references.has(element)) {
|
|
16469
|
+
return this.references.get(element).toReference();
|
|
16251
16470
|
}
|
|
16252
|
-
const ephemeral = new
|
|
16253
|
-
references.set(element, ephemeral);
|
|
16471
|
+
const ephemeral = new _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](element.content);
|
|
16472
|
+
this.references.set(element, ephemeral);
|
|
16254
16473
|
return ephemeral;
|
|
16255
16474
|
}
|
|
16256
16475
|
};
|
|
16257
|
-
|
|
16258
|
-
leave
|
|
16476
|
+
EphemeralArray = {
|
|
16477
|
+
leave: ephemeral => {
|
|
16259
16478
|
return ephemeral.toArray();
|
|
16260
16479
|
}
|
|
16261
16480
|
};
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
16481
|
+
references = new WeakMap();
|
|
16482
|
+
BooleanElement(element) {
|
|
16483
|
+
return element.toValue();
|
|
16484
|
+
}
|
|
16485
|
+
NumberElement(element) {
|
|
16486
|
+
return element.toValue();
|
|
16487
|
+
}
|
|
16488
|
+
StringElement(element) {
|
|
16489
|
+
return element.toValue();
|
|
16490
|
+
}
|
|
16491
|
+
NullElement() {
|
|
16492
|
+
return null;
|
|
16493
|
+
}
|
|
16494
|
+
}
|
|
16265
16495
|
const serializer = element => {
|
|
16266
|
-
if (!(0,
|
|
16496
|
+
if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(element)) return element;
|
|
16267
16497
|
|
|
16268
16498
|
// shortcut optimization for certain element types
|
|
16269
|
-
if ((0,
|
|
16499
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNullElement)(element)) {
|
|
16270
16500
|
return element.toValue();
|
|
16271
16501
|
}
|
|
16272
|
-
return (0,
|
|
16502
|
+
return (0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_3__.visit)(element, new Visitor());
|
|
16273
16503
|
};
|
|
16274
16504
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializer);
|
|
16275
16505
|
|
|
@@ -16343,23 +16573,21 @@ visit[Symbol.for('nodejs.util.promisify.custom')] = async (root, {
|
|
|
16343
16573
|
"use strict";
|
|
16344
16574
|
__webpack_require__.r(__webpack_exports__);
|
|
16345
16575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16346
|
-
/* harmony export */ BREAK: () => (/* reexport safe */
|
|
16576
|
+
/* harmony export */ BREAK: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.BREAK),
|
|
16347
16577
|
/* harmony export */ PredicateVisitor: () => (/* binding */ PredicateVisitor),
|
|
16348
16578
|
/* harmony export */ cloneNode: () => (/* binding */ cloneNode),
|
|
16349
16579
|
/* harmony export */ getNodeType: () => (/* binding */ getNodeType),
|
|
16350
16580
|
/* harmony export */ isNode: () => (/* binding */ isNode),
|
|
16351
16581
|
/* harmony export */ keyMapDefault: () => (/* binding */ keyMapDefault),
|
|
16352
|
-
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */
|
|
16582
|
+
/* harmony export */ mergeAllVisitors: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.mergeAll),
|
|
16353
16583
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
16354
16584
|
/* harmony export */ });
|
|
16355
|
-
/* harmony import */ var
|
|
16356
|
-
/* harmony import */ var
|
|
16357
|
-
/* harmony import */ var
|
|
16358
|
-
/* harmony import */ var
|
|
16359
|
-
/* harmony import */ var
|
|
16360
|
-
/* harmony import */ var
|
|
16361
|
-
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2434);
|
|
16362
|
-
|
|
16585
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4205);
|
|
16586
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5561);
|
|
16587
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5992);
|
|
16588
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1394);
|
|
16589
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
16590
|
+
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2434);
|
|
16363
16591
|
|
|
16364
16592
|
|
|
16365
16593
|
|
|
@@ -16376,19 +16604,19 @@ const getNodeType = element => {
|
|
|
16376
16604
|
*
|
|
16377
16605
|
* There is a problem with naming visitor methods described here: https://github.com/babel/babel/discussions/12874
|
|
16378
16606
|
*/
|
|
16379
|
-
return (0,
|
|
16607
|
+
return (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isObjectElement)(element) ? 'ObjectElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(element) ? 'ArrayElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isMemberElement)(element) ? 'MemberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(element) ? 'StringElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isBooleanElement)(element) ? 'BooleanElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumberElement)(element) ? 'NumberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNullElement)(element) ? 'NullElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isLinkElement)(element) ? 'LinkElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isRefElement)(element) ? 'RefElement' : undefined;
|
|
16380
16608
|
};
|
|
16381
16609
|
|
|
16382
16610
|
// cloneNode :: a -> a
|
|
16383
16611
|
const cloneNode = node => {
|
|
16384
|
-
if ((0,
|
|
16385
|
-
return (0,
|
|
16612
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(node)) {
|
|
16613
|
+
return (0,_clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__.cloneShallow)(node);
|
|
16386
16614
|
}
|
|
16387
|
-
return (0,
|
|
16615
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.cloneNode)(node);
|
|
16388
16616
|
};
|
|
16389
16617
|
|
|
16390
16618
|
// isNode :: Node -> Boolean
|
|
16391
|
-
const isNode = (0,
|
|
16619
|
+
const isNode = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(getNodeType, ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
16392
16620
|
const keyMapDefault = {
|
|
16393
16621
|
ObjectElement: ['content'],
|
|
16394
16622
|
ArrayElement: ['content'],
|
|
@@ -16404,38 +16632,25 @@ const keyMapDefault = {
|
|
|
16404
16632
|
ParseResultElement: ['content'],
|
|
16405
16633
|
SourceMap: ['content']
|
|
16406
16634
|
};
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
returnOnFalse: undefined
|
|
16413
|
-
},
|
|
16414
|
-
init({
|
|
16415
|
-
// @ts-ignore
|
|
16416
|
-
predicate = this.predicate,
|
|
16417
|
-
// @ts-ignore
|
|
16418
|
-
returnOnTrue = this.returnOnTrue,
|
|
16419
|
-
// @ts-ignore
|
|
16420
|
-
returnOnFalse = this.returnOnFalse
|
|
16635
|
+
class PredicateVisitor {
|
|
16636
|
+
constructor({
|
|
16637
|
+
predicate = ramda__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
16638
|
+
returnOnTrue,
|
|
16639
|
+
returnOnFalse
|
|
16421
16640
|
} = {}) {
|
|
16422
16641
|
this.result = [];
|
|
16423
16642
|
this.predicate = predicate;
|
|
16424
16643
|
this.returnOnTrue = returnOnTrue;
|
|
16425
16644
|
this.returnOnFalse = returnOnFalse;
|
|
16426
|
-
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
return this.returnOnTrue;
|
|
16432
|
-
}
|
|
16433
|
-
return this.returnOnFalse;
|
|
16645
|
+
}
|
|
16646
|
+
enter(element) {
|
|
16647
|
+
if (this.predicate(element)) {
|
|
16648
|
+
this.result.push(element);
|
|
16649
|
+
return this.returnOnTrue;
|
|
16434
16650
|
}
|
|
16651
|
+
return this.returnOnFalse;
|
|
16435
16652
|
}
|
|
16436
|
-
}
|
|
16437
|
-
|
|
16438
|
-
// @ts-ignore
|
|
16653
|
+
}
|
|
16439
16654
|
const visit = (root,
|
|
16440
16655
|
// @ts-ignore
|
|
16441
16656
|
visitor, {
|
|
@@ -16443,7 +16658,7 @@ visitor, {
|
|
|
16443
16658
|
...rest
|
|
16444
16659
|
} = {}) => {
|
|
16445
16660
|
// @ts-ignore
|
|
16446
|
-
return (0,
|
|
16661
|
+
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit)(root, visitor, {
|
|
16447
16662
|
// @ts-ignore
|
|
16448
16663
|
keyMap,
|
|
16449
16664
|
// @ts-ignore
|
|
@@ -16462,7 +16677,7 @@ visitor, {
|
|
|
16462
16677
|
...rest
|
|
16463
16678
|
} = {}) => {
|
|
16464
16679
|
// @ts-ignore
|
|
16465
|
-
return
|
|
16680
|
+
return _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit[Symbol.for('nodejs.util.promisify.custom')](root, visitor, {
|
|
16466
16681
|
// @ts-ignore
|
|
16467
16682
|
keyMap,
|
|
16468
16683
|
// @ts-ignore
|
|
@@ -17142,7 +17357,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17142
17357
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5416);
|
|
17143
17358
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(821);
|
|
17144
17359
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7541);
|
|
17145
|
-
/* harmony import */ var
|
|
17360
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9154);
|
|
17146
17361
|
/* harmony import */ var _specification_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4899);
|
|
17147
17362
|
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2364);
|
|
17148
17363
|
/* harmony import */ var _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3628);
|
|
@@ -17163,7 +17378,9 @@ const refract = (value, {
|
|
|
17163
17378
|
* We don't allow consumers to hook into this translation.
|
|
17164
17379
|
* Though we allow consumers to define their onw plugins on already transformed ApiDOM.
|
|
17165
17380
|
*/
|
|
17166
|
-
const
|
|
17381
|
+
const RootVisitorClass = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(specPath, resolvedSpec);
|
|
17382
|
+
const rootVisitor = new RootVisitorClass();
|
|
17383
|
+
|
|
17167
17384
|
// @ts-ignore
|
|
17168
17385
|
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.visit)(element, rootVisitor, {
|
|
17169
17386
|
state: {
|
|
@@ -17235,7 +17452,7 @@ _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_in
|
|
|
17235
17452
|
_elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Requirement', '$visitor']);
|
|
17236
17453
|
_elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'RequirementLevel', '$visitor']);
|
|
17237
17454
|
_elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Scenario', '$visitor']);
|
|
17238
|
-
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', '
|
|
17455
|
+
_elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Standard', '$visitor']);
|
|
17239
17456
|
_elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'StandardIdentifier', '$visitor']);
|
|
17240
17457
|
|
|
17241
17458
|
|
|
@@ -17382,8 +17599,12 @@ const specification = {
|
|
|
17382
17599
|
follows: _visitors_api_design_systems_requirement_FollowsVisitor_mjs__WEBPACK_IMPORTED_MODULE_22__["default"]
|
|
17383
17600
|
}
|
|
17384
17601
|
},
|
|
17385
|
-
StandardIdentifier:
|
|
17386
|
-
|
|
17602
|
+
StandardIdentifier: {
|
|
17603
|
+
$visitor: _visitors_api_design_systems_standard_identifier_index_mjs__WEBPACK_IMPORTED_MODULE_23__["default"]
|
|
17604
|
+
},
|
|
17605
|
+
RequirementLevel: {
|
|
17606
|
+
$visitor: _visitors_api_design_systems_requirement_level_index_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]
|
|
17607
|
+
}
|
|
17387
17608
|
}
|
|
17388
17609
|
}
|
|
17389
17610
|
}
|
|
@@ -17430,11 +17651,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17430
17651
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17431
17652
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17432
17653
|
/* harmony export */ });
|
|
17433
|
-
/* harmony import */ var
|
|
17434
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17435
|
-
/* harmony import */ var
|
|
17436
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(592);
|
|
17437
|
-
|
|
17654
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2434);
|
|
17655
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1394);
|
|
17656
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(592);
|
|
17438
17657
|
|
|
17439
17658
|
|
|
17440
17659
|
/**
|
|
@@ -17443,14 +17662,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17443
17662
|
* different Element is provided FallBackVisitor is responsible to assigning
|
|
17444
17663
|
* this Element as current element.
|
|
17445
17664
|
*/
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.BREAK;
|
|
17451
|
-
}
|
|
17665
|
+
class FallbackVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17666
|
+
enter(element) {
|
|
17667
|
+
this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(element);
|
|
17668
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BREAK;
|
|
17452
17669
|
}
|
|
17453
|
-
}
|
|
17670
|
+
}
|
|
17454
17671
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FallbackVisitor);
|
|
17455
17672
|
|
|
17456
17673
|
/***/ }),
|
|
@@ -17463,16 +17680,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17463
17680
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17464
17681
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17465
17682
|
/* harmony export */ });
|
|
17466
|
-
/* harmony import */ var
|
|
17467
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17468
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
17469
|
-
/* harmony import */ var
|
|
17470
|
-
/* harmony import */ var
|
|
17471
|
-
/* harmony import */ var
|
|
17472
|
-
/* harmony import */ var
|
|
17473
|
-
/* harmony import */ var
|
|
17474
|
-
/* harmony import */ var
|
|
17475
|
-
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(592);
|
|
17683
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3060);
|
|
17684
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9154);
|
|
17685
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4465);
|
|
17686
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9028);
|
|
17687
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2434);
|
|
17688
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(821);
|
|
17689
|
+
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2364);
|
|
17690
|
+
/* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(592);
|
|
17691
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7447);
|
|
17476
17692
|
|
|
17477
17693
|
|
|
17478
17694
|
|
|
@@ -17480,72 +17696,65 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17480
17696
|
|
|
17481
17697
|
|
|
17482
17698
|
/**
|
|
17483
|
-
* This is a base
|
|
17699
|
+
* This is a base class for every visitor that does
|
|
17484
17700
|
* internal look-ups to retrieve other child visitors.
|
|
17485
17701
|
*/
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
}
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
const passingOpts = this.retrievePassingOptions();
|
|
17516
|
-
return this.retrieveVisitor(specPath)({
|
|
17517
|
-
...passingOpts,
|
|
17518
|
-
...options
|
|
17519
|
-
});
|
|
17520
|
-
},
|
|
17521
|
-
toRefractedElement(specPath, element, options = {}) {
|
|
17522
|
-
/**
|
|
17523
|
-
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
17524
|
-
* it by basic node cloning.
|
|
17525
|
-
*
|
|
17526
|
-
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
17527
|
-
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
17528
|
-
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
17529
|
-
*/
|
|
17530
|
-
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
17531
|
-
const visitorPrototype = Object.getPrototypeOf(visitor);
|
|
17532
|
-
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(this.fallbackVisitorPrototype)) {
|
|
17533
|
-
this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']));
|
|
17534
|
-
}
|
|
17535
|
-
if (this.fallbackVisitorPrototype === visitorPrototype) {
|
|
17536
|
-
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.cloneDeep)(element);
|
|
17537
|
-
}
|
|
17702
|
+
class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
17703
|
+
passingOptionsNames = ['specObj'];
|
|
17704
|
+
constructor(options = {}) {
|
|
17705
|
+
super();
|
|
17706
|
+
Object.assign(this, options);
|
|
17707
|
+
}
|
|
17708
|
+
retrievePassingOptions() {
|
|
17709
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.passingOptionsNames, this);
|
|
17710
|
+
}
|
|
17711
|
+
retrieveFixedFields(specPath) {
|
|
17712
|
+
const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
|
|
17713
|
+
if (typeof fixedFields === 'object' && fixedFields !== null) {
|
|
17714
|
+
return Object.keys(fixedFields);
|
|
17715
|
+
}
|
|
17716
|
+
return [];
|
|
17717
|
+
}
|
|
17718
|
+
retrieveVisitor(specPath) {
|
|
17719
|
+
if ((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], ['visitors', ...specPath], this.specObj)) {
|
|
17720
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath], this.specObj);
|
|
17721
|
+
}
|
|
17722
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
17723
|
+
}
|
|
17724
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
17725
|
+
const passingOpts = this.retrievePassingOptions();
|
|
17726
|
+
const VisitorClz = this.retrieveVisitor(specPath);
|
|
17727
|
+
const visitorOpts = {
|
|
17728
|
+
...passingOpts,
|
|
17729
|
+
...options
|
|
17730
|
+
};
|
|
17538
17731
|
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17732
|
+
// @ts-ignore
|
|
17733
|
+
return new VisitorClz(visitorOpts);
|
|
17734
|
+
}
|
|
17735
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
17736
|
+
/**
|
|
17737
|
+
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
17738
|
+
* it by basic node cloning.
|
|
17739
|
+
*
|
|
17740
|
+
* Visiting the element is equivalent to cloning it if the prototype of a visitor
|
|
17741
|
+
* is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
|
|
17742
|
+
* bootstrapping the traversal cycle for fields that don't require any special visiting.
|
|
17743
|
+
*/
|
|
17744
|
+
const visitor = this.retrieveVisitorInstance(specPath, options);
|
|
17745
|
+
if (visitor instanceof _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] && (visitor === null || visitor === void 0 ? void 0 : visitor.constructor) === _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]) {
|
|
17746
|
+
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(element);
|
|
17546
17747
|
}
|
|
17748
|
+
|
|
17749
|
+
// @ts-ignore
|
|
17750
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.visit)(element, visitor, {
|
|
17751
|
+
keyMap: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.keyMap,
|
|
17752
|
+
...options,
|
|
17753
|
+
nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.getNodeType
|
|
17754
|
+
});
|
|
17755
|
+
return visitor.element;
|
|
17547
17756
|
}
|
|
17548
|
-
}
|
|
17757
|
+
}
|
|
17549
17758
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor);
|
|
17550
17759
|
|
|
17551
17760
|
/***/ }),
|
|
@@ -17558,23 +17767,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17558
17767
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17559
17768
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17560
17769
|
/* harmony export */ });
|
|
17561
|
-
/* harmony import */ var
|
|
17562
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
17563
|
-
|
|
17770
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6903);
|
|
17564
17771
|
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
// copy sourcemaps
|
|
17572
|
-
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
17573
|
-
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
17574
|
-
}
|
|
17772
|
+
class Visitor {
|
|
17773
|
+
// eslint-disable-next-line class-methods-use-this
|
|
17774
|
+
copyMetaAndAttributes(from, to) {
|
|
17775
|
+
// copy sourcemaps
|
|
17776
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.hasElementSourceMap)(from)) {
|
|
17777
|
+
to.meta.set('sourceMap', from.meta.get('sourceMap'));
|
|
17575
17778
|
}
|
|
17576
17779
|
}
|
|
17577
|
-
}
|
|
17780
|
+
}
|
|
17578
17781
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
17579
17782
|
|
|
17580
17783
|
/***/ }),
|
|
@@ -17617,8 +17820,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17617
17820
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17618
17821
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17619
17822
|
/* harmony export */ });
|
|
17620
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17621
17823
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
17824
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17622
17825
|
/* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2189);
|
|
17623
17826
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17624
17827
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17627,14 +17830,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17627
17830
|
|
|
17628
17831
|
|
|
17629
17832
|
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
init() {
|
|
17833
|
+
class InfoVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17834
|
+
constructor(options = {}) {
|
|
17835
|
+
super(options);
|
|
17836
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Info']);
|
|
17635
17837
|
this.element = new _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17636
17838
|
}
|
|
17637
|
-
}
|
|
17839
|
+
}
|
|
17638
17840
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoVisitor);
|
|
17639
17841
|
|
|
17640
17842
|
/***/ }),
|
|
@@ -17647,7 +17849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17647
17849
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17648
17850
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17649
17851
|
/* harmony export */ });
|
|
17650
|
-
/* harmony import */ var
|
|
17852
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17651
17853
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17652
17854
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17653
17855
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17656,23 +17858,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17656
17858
|
|
|
17657
17859
|
|
|
17658
17860
|
|
|
17659
|
-
|
|
17660
|
-
|
|
17861
|
+
class PrinciplesVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17862
|
+
constructor(options = {}) {
|
|
17863
|
+
super(options);
|
|
17661
17864
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17662
17865
|
this.element.classes.push('main-principles');
|
|
17663
|
-
},
|
|
17664
|
-
methods: {
|
|
17665
|
-
ArrayElement(arrayElement) {
|
|
17666
|
-
arrayElement.forEach(item => {
|
|
17667
|
-
const specPath = ['document', 'objects', 'Principle'];
|
|
17668
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17669
|
-
this.element.push(element);
|
|
17670
|
-
});
|
|
17671
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17672
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17673
|
-
}
|
|
17674
17866
|
}
|
|
17675
|
-
|
|
17867
|
+
ArrayElement(arrayElement) {
|
|
17868
|
+
arrayElement.forEach(item => {
|
|
17869
|
+
const specPath = ['document', 'objects', 'Principle'];
|
|
17870
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17871
|
+
this.element.push(element);
|
|
17872
|
+
});
|
|
17873
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17874
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17875
|
+
}
|
|
17876
|
+
}
|
|
17676
17877
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrinciplesVisitor);
|
|
17677
17878
|
|
|
17678
17879
|
/***/ }),
|
|
@@ -17685,7 +17886,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17685
17886
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17686
17887
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17687
17888
|
/* harmony export */ });
|
|
17688
|
-
/* harmony import */ var
|
|
17889
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17689
17890
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17690
17891
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17691
17892
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17694,23 +17895,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17694
17895
|
|
|
17695
17896
|
|
|
17696
17897
|
|
|
17697
|
-
|
|
17698
|
-
|
|
17898
|
+
class ScenariosVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17899
|
+
constructor(options = {}) {
|
|
17900
|
+
super(options);
|
|
17699
17901
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17700
17902
|
this.element.classes.push('main-scenarios');
|
|
17701
|
-
},
|
|
17702
|
-
methods: {
|
|
17703
|
-
ArrayElement(arrayElement) {
|
|
17704
|
-
arrayElement.forEach(item => {
|
|
17705
|
-
const specPath = ['document', 'objects', 'Scenario'];
|
|
17706
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17707
|
-
this.element.push(element);
|
|
17708
|
-
});
|
|
17709
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17710
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17711
|
-
}
|
|
17712
17903
|
}
|
|
17713
|
-
|
|
17904
|
+
ArrayElement(arrayElement) {
|
|
17905
|
+
arrayElement.forEach(item => {
|
|
17906
|
+
const specPath = ['document', 'objects', 'Scenario'];
|
|
17907
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17908
|
+
this.element.push(element);
|
|
17909
|
+
});
|
|
17910
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17911
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17912
|
+
}
|
|
17913
|
+
}
|
|
17714
17914
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenariosVisitor);
|
|
17715
17915
|
|
|
17716
17916
|
/***/ }),
|
|
@@ -17723,32 +17923,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17723
17923
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17724
17924
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17725
17925
|
/* harmony export */ });
|
|
17726
|
-
/* harmony import */ var
|
|
17926
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17727
17927
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17728
17928
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17729
|
-
/* harmony import */ var
|
|
17730
|
-
/* harmony import */ var
|
|
17929
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7447);
|
|
17930
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9894);
|
|
17731
17931
|
|
|
17732
17932
|
|
|
17733
17933
|
|
|
17734
17934
|
|
|
17735
|
-
|
|
17736
|
-
|
|
17935
|
+
class StandardsVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17936
|
+
constructor(options = {}) {
|
|
17937
|
+
super(options);
|
|
17737
17938
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
17738
17939
|
this.element.classes.push('main-standards');
|
|
17739
|
-
},
|
|
17740
|
-
methods: {
|
|
17741
|
-
ArrayElement(arrayElement) {
|
|
17742
|
-
arrayElement.forEach(item => {
|
|
17743
|
-
const specPath = ['document', 'objects', 'Standard'];
|
|
17744
|
-
const element = this.toRefractedElement(specPath, item);
|
|
17745
|
-
this.element.push(element);
|
|
17746
|
-
});
|
|
17747
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17748
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17749
|
-
}
|
|
17750
17940
|
}
|
|
17751
|
-
|
|
17941
|
+
ArrayElement(arrayElement) {
|
|
17942
|
+
arrayElement.forEach(item => {
|
|
17943
|
+
const specPath = ['document', 'objects', 'Standard'];
|
|
17944
|
+
const element = this.toRefractedElement(specPath, item);
|
|
17945
|
+
this.element.push(element);
|
|
17946
|
+
});
|
|
17947
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
17948
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
17949
|
+
}
|
|
17950
|
+
}
|
|
17752
17951
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardsVisitor);
|
|
17753
17952
|
|
|
17754
17953
|
/***/ }),
|
|
@@ -17776,7 +17975,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17776
17975
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17777
17976
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17778
17977
|
/* harmony export */ });
|
|
17779
|
-
/* harmony import */ var
|
|
17978
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17780
17979
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
17781
17980
|
/* harmony import */ var _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7116);
|
|
17782
17981
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17786,14 +17985,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17786
17985
|
|
|
17787
17986
|
|
|
17788
17987
|
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
init() {
|
|
17988
|
+
class MainVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
17989
|
+
constructor(options = {}) {
|
|
17990
|
+
super(options);
|
|
17991
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Main']);
|
|
17794
17992
|
this.element = new _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17795
17993
|
}
|
|
17796
|
-
}
|
|
17994
|
+
}
|
|
17797
17995
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MainVisitor);
|
|
17798
17996
|
|
|
17799
17997
|
/***/ }),
|
|
@@ -17851,8 +18049,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17851
18049
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17852
18050
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17853
18051
|
/* harmony export */ });
|
|
17854
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17855
18052
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18053
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17856
18054
|
/* harmony import */ var _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4028);
|
|
17857
18055
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17858
18056
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17861,14 +18059,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17861
18059
|
|
|
17862
18060
|
|
|
17863
18061
|
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
init() {
|
|
18062
|
+
class PrincipleVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18063
|
+
constructor(options = {}) {
|
|
18064
|
+
super(options);
|
|
18065
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Principle']);
|
|
17869
18066
|
this.element = new _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17870
18067
|
}
|
|
17871
|
-
}
|
|
18068
|
+
}
|
|
17872
18069
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrincipleVisitor);
|
|
17873
18070
|
|
|
17874
18071
|
/***/ }),
|
|
@@ -17881,7 +18078,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17881
18078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17882
18079
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17883
18080
|
/* harmony export */ });
|
|
17884
|
-
/* harmony import */ var
|
|
18081
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17885
18082
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3130);
|
|
17886
18083
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1394);
|
|
17887
18084
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17892,16 +18089,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17892
18089
|
|
|
17893
18090
|
|
|
17894
18091
|
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
17902
|
-
}
|
|
18092
|
+
class RequirementLevelVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18093
|
+
StringElement(stringElement) {
|
|
18094
|
+
const requirementLevelElement = new _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(stringElement));
|
|
18095
|
+
this.copyMetaAndAttributes(stringElement, requirementLevelElement);
|
|
18096
|
+
this.element = requirementLevelElement;
|
|
18097
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
17903
18098
|
}
|
|
17904
|
-
}
|
|
18099
|
+
}
|
|
17905
18100
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementLevelVisitor);
|
|
17906
18101
|
|
|
17907
18102
|
/***/ }),
|
|
@@ -17944,8 +18139,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17944
18139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17945
18140
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17946
18141
|
/* harmony export */ });
|
|
17947
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
17948
18142
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18143
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17949
18144
|
/* harmony import */ var _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9618);
|
|
17950
18145
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
17951
18146
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -17954,14 +18149,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17954
18149
|
|
|
17955
18150
|
|
|
17956
18151
|
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
init() {
|
|
18152
|
+
class RequirementVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18153
|
+
constructor(options = {}) {
|
|
18154
|
+
super(options);
|
|
18155
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Requirement']);
|
|
17962
18156
|
this.element = new _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
17963
18157
|
}
|
|
17964
|
-
}
|
|
18158
|
+
}
|
|
17965
18159
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementVisitor);
|
|
17966
18160
|
|
|
17967
18161
|
/***/ }),
|
|
@@ -17989,7 +18183,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17989
18183
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17990
18184
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17991
18185
|
/* harmony export */ });
|
|
17992
|
-
/* harmony import */ var
|
|
18186
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
17993
18187
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8355);
|
|
17994
18188
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
17995
18189
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
@@ -17998,23 +18192,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17998
18192
|
|
|
17999
18193
|
|
|
18000
18194
|
|
|
18001
|
-
|
|
18002
|
-
|
|
18195
|
+
class ThenVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18196
|
+
constructor(options = {}) {
|
|
18197
|
+
super(options);
|
|
18003
18198
|
this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
|
|
18004
18199
|
this.element.classes.push('scenario-then');
|
|
18005
|
-
},
|
|
18006
|
-
methods: {
|
|
18007
|
-
ArrayElement(arrayElement) {
|
|
18008
|
-
arrayElement.forEach(item => {
|
|
18009
|
-
const specPath = ['document', 'objects', 'Requirement'];
|
|
18010
|
-
const element = this.toRefractedElement(specPath, item);
|
|
18011
|
-
this.element.push(element);
|
|
18012
|
-
});
|
|
18013
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18014
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18015
|
-
}
|
|
18016
18200
|
}
|
|
18017
|
-
|
|
18201
|
+
ArrayElement(arrayElement) {
|
|
18202
|
+
arrayElement.forEach(item => {
|
|
18203
|
+
const specPath = ['document', 'objects', 'Requirement'];
|
|
18204
|
+
const element = this.toRefractedElement(specPath, item);
|
|
18205
|
+
this.element.push(element);
|
|
18206
|
+
});
|
|
18207
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18208
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18209
|
+
}
|
|
18210
|
+
}
|
|
18018
18211
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThenVisitor);
|
|
18019
18212
|
|
|
18020
18213
|
/***/ }),
|
|
@@ -18027,8 +18220,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18027
18220
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18028
18221
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18029
18222
|
/* harmony export */ });
|
|
18030
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
18031
18223
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18224
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18032
18225
|
/* harmony import */ var _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75);
|
|
18033
18226
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18034
18227
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -18037,14 +18230,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18037
18230
|
|
|
18038
18231
|
|
|
18039
18232
|
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
init() {
|
|
18233
|
+
class ScenarioVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18234
|
+
constructor(options = {}) {
|
|
18235
|
+
super(options);
|
|
18236
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Scenario']);
|
|
18045
18237
|
this.element = new _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
18046
18238
|
}
|
|
18047
|
-
}
|
|
18239
|
+
}
|
|
18048
18240
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenarioVisitor);
|
|
18049
18241
|
|
|
18050
18242
|
/***/ }),
|
|
@@ -18057,7 +18249,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18057
18249
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18058
18250
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18059
18251
|
/* harmony export */ });
|
|
18060
|
-
/* harmony import */ var
|
|
18252
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18061
18253
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1394);
|
|
18062
18254
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18063
18255
|
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9894);
|
|
@@ -18067,22 +18259,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18067
18259
|
|
|
18068
18260
|
|
|
18069
18261
|
|
|
18070
|
-
|
|
18071
|
-
|
|
18262
|
+
class StandardIdentifierVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18263
|
+
constructor(options = {}) {
|
|
18264
|
+
super(options);
|
|
18072
18265
|
this.element = new _elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
18073
|
-
},
|
|
18074
|
-
methods: {
|
|
18075
|
-
ArrayElement(arrayElement) {
|
|
18076
|
-
arrayElement.forEach(item => {
|
|
18077
|
-
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
18078
|
-
const element = this.toRefractedElement(specPath, item);
|
|
18079
|
-
this.element.push(element);
|
|
18080
|
-
});
|
|
18081
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18082
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18083
|
-
}
|
|
18084
18266
|
}
|
|
18085
|
-
|
|
18267
|
+
ArrayElement(arrayElement) {
|
|
18268
|
+
arrayElement.forEach(item => {
|
|
18269
|
+
const specPath = ['document', 'objects', 'StandardIdentifier'];
|
|
18270
|
+
const element = this.toRefractedElement(specPath, item);
|
|
18271
|
+
this.element.push(element);
|
|
18272
|
+
});
|
|
18273
|
+
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
18274
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
|
|
18275
|
+
}
|
|
18276
|
+
}
|
|
18086
18277
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardIdentifierVisitor);
|
|
18087
18278
|
|
|
18088
18279
|
/***/ }),
|
|
@@ -18140,8 +18331,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18140
18331
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18141
18332
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18142
18333
|
/* harmony export */ });
|
|
18143
|
-
/* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6591);
|
|
18144
18334
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6360);
|
|
18335
|
+
/* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6252);
|
|
18145
18336
|
/* harmony import */ var _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(734);
|
|
18146
18337
|
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
|
|
18147
18338
|
/* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4627);
|
|
@@ -18150,14 +18341,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18150
18341
|
|
|
18151
18342
|
|
|
18152
18343
|
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
init() {
|
|
18344
|
+
class StandardVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
18345
|
+
constructor(options = {}) {
|
|
18346
|
+
super(options);
|
|
18347
|
+
this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Standard']);
|
|
18158
18348
|
this.element = new _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
|
|
18159
18349
|
}
|
|
18160
|
-
}
|
|
18350
|
+
}
|
|
18161
18351
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardVisitor);
|
|
18162
18352
|
|
|
18163
18353
|
/***/ }),
|
|
@@ -18170,52 +18360,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18170
18360
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18171
18361
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18172
18362
|
/* harmony export */ });
|
|
18173
|
-
/* harmony import */ var
|
|
18174
|
-
/* harmony import */ var
|
|
18175
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
18176
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
18177
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
18178
|
-
/* harmony import */ var
|
|
18179
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1394);
|
|
18180
|
-
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9894);
|
|
18181
|
-
|
|
18363
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
18364
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3130);
|
|
18365
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7952);
|
|
18366
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2434);
|
|
18367
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1394);
|
|
18368
|
+
/* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9894);
|
|
18182
18369
|
|
|
18183
18370
|
|
|
18371
|
+
class FixedFieldsVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
18372
|
+
ignoredFields = [];
|
|
18373
|
+
ObjectElement(objectElement) {
|
|
18374
|
+
const specPath = this.specPath(objectElement);
|
|
18375
|
+
const fields = this.retrieveFixedFields(specPath);
|
|
18184
18376
|
|
|
18185
|
-
const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
18186
|
-
props: {
|
|
18187
|
-
specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
18188
|
-
ignoredFields: []
|
|
18189
|
-
},
|
|
18190
|
-
init({
|
|
18191
|
-
// @ts-ignore
|
|
18192
|
-
specPath = this.specPath,
|
|
18193
18377
|
// @ts-ignore
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18198
|
-
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
newMemberElement.classes.push('fixed-field');
|
|
18208
|
-
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
18209
|
-
this.element.content.push(newMemberElement);
|
|
18210
|
-
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key))) {
|
|
18211
|
-
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(memberElement));
|
|
18212
|
-
}
|
|
18213
|
-
});
|
|
18214
|
-
this.copyMetaAndAttributes(objectElement, this.element);
|
|
18215
|
-
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.BREAK;
|
|
18216
|
-
}
|
|
18378
|
+
objectElement.forEach((value, key, memberElement) => {
|
|
18379
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(key) && fields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)) && !this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
18380
|
+
const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)], value);
|
|
18381
|
+
const newMemberElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.MemberElement((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(key), fixedFieldElement);
|
|
18382
|
+
newMemberElement.classes.push('fixed-field');
|
|
18383
|
+
this.copyMetaAndAttributes(memberElement, newMemberElement);
|
|
18384
|
+
this.element.content.push(newMemberElement);
|
|
18385
|
+
} else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
|
|
18386
|
+
this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(memberElement));
|
|
18387
|
+
}
|
|
18388
|
+
});
|
|
18389
|
+
this.copyMetaAndAttributes(objectElement, this.element);
|
|
18390
|
+
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
18217
18391
|
}
|
|
18218
|
-
}
|
|
18392
|
+
}
|
|
18219
18393
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FixedFieldsVisitor);
|
|
18220
18394
|
|
|
18221
18395
|
/***/ }),
|
|
@@ -18909,17 +19083,17 @@ const keyMap = {
|
|
|
18909
19083
|
|
|
18910
19084
|
class CstVisitor {
|
|
18911
19085
|
static toPosition(node) {
|
|
18912
|
-
const start =
|
|
19086
|
+
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
18913
19087
|
row: node.startPosition.row,
|
|
18914
19088
|
column: node.startPosition.column,
|
|
18915
19089
|
char: node.startIndex
|
|
18916
19090
|
});
|
|
18917
|
-
const end =
|
|
19091
|
+
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.Point({
|
|
18918
19092
|
row: node.endPosition.row,
|
|
18919
19093
|
column: node.endPosition.column,
|
|
18920
19094
|
char: node.endIndex
|
|
18921
19095
|
});
|
|
18922
|
-
return
|
|
19096
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
18923
19097
|
start,
|
|
18924
19098
|
end
|
|
18925
19099
|
});
|
|
@@ -18927,14 +19101,14 @@ class CstVisitor {
|
|
|
18927
19101
|
document = {
|
|
18928
19102
|
enter: node => {
|
|
18929
19103
|
const position = CstVisitor.toPosition(node);
|
|
18930
|
-
return
|
|
19104
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
18931
19105
|
children: node.children,
|
|
18932
19106
|
position,
|
|
18933
19107
|
isMissing: node.isMissing
|
|
18934
19108
|
});
|
|
18935
19109
|
},
|
|
18936
19110
|
leave: document => {
|
|
18937
|
-
return
|
|
19111
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
18938
19112
|
children: [document]
|
|
18939
19113
|
});
|
|
18940
19114
|
}
|
|
@@ -18947,7 +19121,7 @@ class CstVisitor {
|
|
|
18947
19121
|
const {
|
|
18948
19122
|
isMissing
|
|
18949
19123
|
} = node;
|
|
18950
|
-
return
|
|
19124
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
18951
19125
|
value,
|
|
18952
19126
|
position,
|
|
18953
19127
|
isMissing
|
|
@@ -18957,7 +19131,7 @@ class CstVisitor {
|
|
|
18957
19131
|
}
|
|
18958
19132
|
object(node) {
|
|
18959
19133
|
const position = CstVisitor.toPosition(node);
|
|
18960
|
-
return
|
|
19134
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
18961
19135
|
children: node.children,
|
|
18962
19136
|
position,
|
|
18963
19137
|
isMissing: node.isMissing
|
|
@@ -18969,12 +19143,12 @@ class CstVisitor {
|
|
|
18969
19143
|
const {
|
|
18970
19144
|
keyNode
|
|
18971
19145
|
} = node;
|
|
18972
|
-
const key =
|
|
19146
|
+
const key = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
18973
19147
|
children: (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [],
|
|
18974
|
-
position: keyNode != null ? CstVisitor.toPosition(keyNode) :
|
|
19148
|
+
position: keyNode != null ? CstVisitor.toPosition(keyNode) : undefined,
|
|
18975
19149
|
isMissing: keyNode != null ? keyNode.isMissing : false
|
|
18976
19150
|
});
|
|
18977
|
-
return
|
|
19151
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
18978
19152
|
children: [key, ...children],
|
|
18979
19153
|
position,
|
|
18980
19154
|
isMissing: node.isMissing
|
|
@@ -18982,7 +19156,7 @@ class CstVisitor {
|
|
|
18982
19156
|
}
|
|
18983
19157
|
array(node) {
|
|
18984
19158
|
const position = CstVisitor.toPosition(node);
|
|
18985
|
-
return
|
|
19159
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
18986
19160
|
children: node.children,
|
|
18987
19161
|
position,
|
|
18988
19162
|
isMissing: node.isMissing
|
|
@@ -18990,10 +19164,10 @@ class CstVisitor {
|
|
|
18990
19164
|
}
|
|
18991
19165
|
string(node) {
|
|
18992
19166
|
const position = CstVisitor.toPosition(node);
|
|
18993
|
-
const content =
|
|
19167
|
+
const content = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
|
|
18994
19168
|
value: JSON.parse(node.text)
|
|
18995
19169
|
});
|
|
18996
|
-
return
|
|
19170
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
18997
19171
|
children: [content],
|
|
18998
19172
|
position,
|
|
18999
19173
|
isMissing: node.isMissing
|
|
@@ -19002,7 +19176,7 @@ class CstVisitor {
|
|
|
19002
19176
|
number(node) {
|
|
19003
19177
|
const position = CstVisitor.toPosition(node);
|
|
19004
19178
|
const value = node.text;
|
|
19005
|
-
return
|
|
19179
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
19006
19180
|
value,
|
|
19007
19181
|
position,
|
|
19008
19182
|
isMissing: node.isMissing
|
|
@@ -19013,7 +19187,7 @@ class CstVisitor {
|
|
|
19013
19187
|
null(node) {
|
|
19014
19188
|
const position = CstVisitor.toPosition(node);
|
|
19015
19189
|
const value = node.text;
|
|
19016
|
-
return
|
|
19190
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
19017
19191
|
value,
|
|
19018
19192
|
position,
|
|
19019
19193
|
isMissing: node.isMissing
|
|
@@ -19024,7 +19198,7 @@ class CstVisitor {
|
|
|
19024
19198
|
true(node) {
|
|
19025
19199
|
const position = CstVisitor.toPosition(node);
|
|
19026
19200
|
const value = node.text;
|
|
19027
|
-
return
|
|
19201
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
|
|
19028
19202
|
value,
|
|
19029
19203
|
position,
|
|
19030
19204
|
isMissing: node.isMissing
|
|
@@ -19035,7 +19209,7 @@ class CstVisitor {
|
|
|
19035
19209
|
false(node) {
|
|
19036
19210
|
const position = CstVisitor.toPosition(node);
|
|
19037
19211
|
const value = node.text;
|
|
19038
|
-
return
|
|
19212
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"]({
|
|
19039
19213
|
value,
|
|
19040
19214
|
position,
|
|
19041
19215
|
isMissing: node.isMissing
|
|
@@ -19043,7 +19217,7 @@ class CstVisitor {
|
|
|
19043
19217
|
}
|
|
19044
19218
|
ERROR(node, key, parent, path) {
|
|
19045
19219
|
const position = CstVisitor.toPosition(node);
|
|
19046
|
-
const errorNode =
|
|
19220
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
19047
19221
|
children: node.children,
|
|
19048
19222
|
position,
|
|
19049
19223
|
isUnexpected: !node.hasError,
|
|
@@ -19051,7 +19225,7 @@ class CstVisitor {
|
|
|
19051
19225
|
value: node.text
|
|
19052
19226
|
});
|
|
19053
19227
|
if (path.length === 0) {
|
|
19054
|
-
return
|
|
19228
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
|
|
19055
19229
|
children: [errorNode]
|
|
19056
19230
|
});
|
|
19057
19231
|
}
|