swagger-client 3.16.0 → 3.16.1
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.
|
@@ -109,7 +109,7 @@ module.exports = __webpack_require__(3059);
|
|
|
109
109
|
|
|
110
110
|
/***/ }),
|
|
111
111
|
|
|
112
|
-
/***/
|
|
112
|
+
/***/ 875:
|
|
113
113
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
114
114
|
|
|
115
115
|
module.exports = __webpack_require__(7460);
|
|
@@ -277,7 +277,7 @@ var _mapInstanceProperty = __webpack_require__(2991);
|
|
|
277
277
|
|
|
278
278
|
var _entriesInstanceProperty = __webpack_require__(2119);
|
|
279
279
|
|
|
280
|
-
var _Promise = __webpack_require__(
|
|
280
|
+
var _Promise = __webpack_require__(875);
|
|
281
281
|
|
|
282
282
|
var _sliceInstanceProperty = __webpack_require__(3649);
|
|
283
283
|
|
|
@@ -926,7 +926,7 @@ var arrayOrEmpty = function arrayOrEmpty(ar) {
|
|
|
926
926
|
return Array.isArray(ar) ? ar : [];
|
|
927
927
|
};
|
|
928
928
|
|
|
929
|
-
var OperationNotFoundError = (0,_specmap_lib_create_error__WEBPACK_IMPORTED_MODULE_21__
|
|
929
|
+
var OperationNotFoundError = (0,_specmap_lib_create_error__WEBPACK_IMPORTED_MODULE_21__["default"])('OperationNotFoundError', function cb(message, extra, oriError) {
|
|
930
930
|
this.originalError = oriError;
|
|
931
931
|
|
|
932
932
|
_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_3___default()(this, extra || {});
|
|
@@ -974,16 +974,16 @@ function execute(_ref) {
|
|
|
974
974
|
method = _ref.method,
|
|
975
975
|
parameters = _ref.parameters,
|
|
976
976
|
securities = _ref.securities,
|
|
977
|
-
extras = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__
|
|
977
|
+
extras = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, _excluded);
|
|
978
978
|
|
|
979
979
|
// Provide default fetch implementation
|
|
980
|
-
var http = userHttp || fetch || _http__WEBPACK_IMPORTED_MODULE_15__
|
|
980
|
+
var http = userHttp || fetch || _http__WEBPACK_IMPORTED_MODULE_15__["default"]; // Default to _our_ http
|
|
981
981
|
|
|
982
982
|
if (pathName && method && !operationId) {
|
|
983
983
|
operationId = (0,_helpers__WEBPACK_IMPORTED_MODULE_20__.legacyIdFromPathMethod)(pathName, method);
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
var request = self.buildRequest((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__
|
|
986
|
+
var request = self.buildRequest((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
987
987
|
spec: spec,
|
|
988
988
|
operationId: operationId,
|
|
989
989
|
parameters: parameters,
|
|
@@ -1022,7 +1022,7 @@ function buildRequest(options) {
|
|
|
1022
1022
|
if (specIsOAS3) {
|
|
1023
1023
|
parameterBuilders = _oas3_parameter_builders__WEBPACK_IMPORTED_MODULE_17__;
|
|
1024
1024
|
} else {
|
|
1025
|
-
parameterBuilders = _swagger2_parameter_builders__WEBPACK_IMPORTED_MODULE_16__
|
|
1025
|
+
parameterBuilders = _swagger2_parameter_builders__WEBPACK_IMPORTED_MODULE_16__["default"];
|
|
1026
1026
|
}
|
|
1027
1027
|
} // Set credentials with 'http.withCredentials' value
|
|
1028
1028
|
|
|
@@ -1148,15 +1148,15 @@ function buildRequest(options) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
}); // Do version-specific tasks, then return those results.
|
|
1150
1150
|
|
|
1151
|
-
var versionSpecificOptions = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__
|
|
1151
|
+
var versionSpecificOptions = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, options), {}, {
|
|
1152
1152
|
operation: operation
|
|
1153
1153
|
});
|
|
1154
1154
|
|
|
1155
1155
|
if (specIsOAS3) {
|
|
1156
|
-
req = (0,_oas3_build_request__WEBPACK_IMPORTED_MODULE_18__
|
|
1156
|
+
req = (0,_oas3_build_request__WEBPACK_IMPORTED_MODULE_18__["default"])(versionSpecificOptions, req);
|
|
1157
1157
|
} else {
|
|
1158
1158
|
// If not OAS3, then treat as Swagger2.
|
|
1159
|
-
req = (0,_swagger2_build_request__WEBPACK_IMPORTED_MODULE_19__
|
|
1159
|
+
req = (0,_swagger2_build_request__WEBPACK_IMPORTED_MODULE_19__["default"])(versionSpecificOptions, req);
|
|
1160
1160
|
} // If the cookie convenience object exists in our request,
|
|
1161
1161
|
// serialize its content and then delete the cookie object.
|
|
1162
1162
|
|
|
@@ -1222,7 +1222,7 @@ function oas3BaseUrl(_ref2) {
|
|
|
1222
1222
|
// default to the first server if we don't have one by now
|
|
1223
1223
|
selectedServerUrl = servers[0].url; // eslint-disable-line semi
|
|
1224
1224
|
|
|
1225
|
-
var _servers = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__
|
|
1225
|
+
var _servers = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(servers, 1);
|
|
1226
1226
|
|
|
1227
1227
|
selectedServerObj = _servers[0];
|
|
1228
1228
|
}
|
|
@@ -1385,14 +1385,14 @@ function buildRequest(options, req) {
|
|
|
1385
1385
|
var _context;
|
|
1386
1386
|
|
|
1387
1387
|
var mediaTypes = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(_context = _babel_runtime_corejs3_core_js_stable_object_entries__WEBPACK_IMPORTED_MODULE_4___default()(operation.responses)).call(_context, function (_ref) {
|
|
1388
|
-
var _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__
|
|
1388
|
+
var _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, 2),
|
|
1389
1389
|
key = _ref2[0],
|
|
1390
1390
|
value = _ref2[1];
|
|
1391
1391
|
|
|
1392
1392
|
var code = parseInt(key, 10);
|
|
1393
1393
|
return code >= 200 && code < 300 && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_8___default()(value.content);
|
|
1394
1394
|
}).reduce(function (acc, _ref3) {
|
|
1395
|
-
var _ref4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__
|
|
1395
|
+
var _ref4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref3, 2),
|
|
1396
1396
|
value = _ref4[1];
|
|
1397
1397
|
|
|
1398
1398
|
return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(acc).call(acc, _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(value.content));
|
|
@@ -1410,7 +1410,7 @@ function buildRequest(options, req) {
|
|
|
1410
1410
|
// only attach body if the requestBody has a definition for the
|
|
1411
1411
|
// contentType that has been explicitly set
|
|
1412
1412
|
if (requestContentType === 'application/x-www-form-urlencoded' || requestContentType === 'multipart/form-data') {
|
|
1413
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
1413
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(requestBody) === 'object') {
|
|
1414
1414
|
var encoding = (requestBodyDef.content[requestContentType] || {}).encoding || {};
|
|
1415
1415
|
req.form = {};
|
|
1416
1416
|
|
|
@@ -1588,13 +1588,13 @@ function path(_ref) {
|
|
|
1588
1588
|
if (content) {
|
|
1589
1589
|
var effectiveMediaType = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(content)[0];
|
|
1590
1590
|
|
|
1591
|
-
req.url = req.url.split("{".concat(name, "}")).join((0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__.encodeDisallowedCharacters)((0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__
|
|
1591
|
+
req.url = req.url.split("{".concat(name, "}")).join((0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__.encodeDisallowedCharacters)((0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__["default"])(value, effectiveMediaType), {
|
|
1592
1592
|
escape: true
|
|
1593
1593
|
}));
|
|
1594
1594
|
return;
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
|
-
var styledValue = (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__
|
|
1597
|
+
var styledValue = (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__["default"])({
|
|
1598
1598
|
key: parameter.name,
|
|
1599
1599
|
value: value,
|
|
1600
1600
|
style: style || 'simple',
|
|
@@ -1612,7 +1612,7 @@ function query(_ref2) {
|
|
|
1612
1612
|
if (parameter.content) {
|
|
1613
1613
|
var effectiveMediaType = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(parameter.content)[0];
|
|
1614
1614
|
|
|
1615
|
-
req.query[parameter.name] = (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__
|
|
1615
|
+
req.query[parameter.name] = (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__["default"])(value, effectiveMediaType);
|
|
1616
1616
|
return;
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
@@ -1649,12 +1649,12 @@ function header(_ref3) {
|
|
|
1649
1649
|
if (parameter.content) {
|
|
1650
1650
|
var effectiveMediaType = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(parameter.content)[0];
|
|
1651
1651
|
|
|
1652
|
-
req.headers[parameter.name] = (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__
|
|
1652
|
+
req.headers[parameter.name] = (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__["default"])(value, effectiveMediaType);
|
|
1653
1653
|
return;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
1656
|
if (typeof value !== 'undefined') {
|
|
1657
|
-
req.headers[parameter.name] = (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__
|
|
1657
|
+
req.headers[parameter.name] = (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__["default"])({
|
|
1658
1658
|
key: parameter.name,
|
|
1659
1659
|
value: value,
|
|
1660
1660
|
style: parameter.style || 'simple',
|
|
@@ -1669,20 +1669,20 @@ function cookie(_ref4) {
|
|
|
1669
1669
|
value = _ref4.value;
|
|
1670
1670
|
req.headers = req.headers || {};
|
|
1671
1671
|
|
|
1672
|
-
var type = (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
1672
|
+
var type = (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value);
|
|
1673
1673
|
|
|
1674
1674
|
if (parameter.content) {
|
|
1675
1675
|
var _context;
|
|
1676
1676
|
|
|
1677
1677
|
var effectiveMediaType = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(parameter.content)[0];
|
|
1678
1678
|
|
|
1679
|
-
req.headers.Cookie = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = "".concat(parameter.name, "=")).call(_context, (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__
|
|
1679
|
+
req.headers.Cookie = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = "".concat(parameter.name, "=")).call(_context, (0,_content_serializer__WEBPACK_IMPORTED_MODULE_5__["default"])(value, effectiveMediaType));
|
|
1680
1680
|
return;
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
1683
1683
|
if (type !== 'undefined') {
|
|
1684
1684
|
var prefix = type === 'object' && !Array.isArray(value) && parameter.explode ? '' : "".concat(parameter.name, "=");
|
|
1685
|
-
req.headers.Cookie = prefix + (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__
|
|
1685
|
+
req.headers.Cookie = prefix + (0,_style_serializer__WEBPACK_IMPORTED_MODULE_4__["default"])({
|
|
1686
1686
|
key: parameter.name,
|
|
1687
1687
|
value: value,
|
|
1688
1688
|
escape: false,
|
|
@@ -1759,7 +1759,7 @@ function encodeDisallowedCharacters(str) {
|
|
|
1759
1759
|
// code points rather than UCS-2/UTF-16 code units.
|
|
1760
1760
|
|
|
1761
1761
|
|
|
1762
|
-
return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default()(_context = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__
|
|
1762
|
+
return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default()(_context = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(str)).call(_context, function (char) {
|
|
1763
1763
|
var _context2, _context3;
|
|
1764
1764
|
|
|
1765
1765
|
if (isRrc3986Unreserved(char)) {
|
|
@@ -1788,7 +1788,7 @@ function stylize(config) {
|
|
|
1788
1788
|
return encodeArray(config);
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
1791
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value) === 'object') {
|
|
1792
1792
|
return encodeObject(config);
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
@@ -2023,11 +2023,11 @@ function buildRequest(options, req) {
|
|
|
2023
2023
|
if (requestContentType) {
|
|
2024
2024
|
req.headers['Content-Type'] = requestContentType;
|
|
2025
2025
|
} else if (Array.isArray(operation.consumes)) {
|
|
2026
|
-
var _operation$consumes = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__
|
|
2026
|
+
var _operation$consumes = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(operation.consumes, 1);
|
|
2027
2027
|
|
|
2028
2028
|
req.headers['Content-Type'] = _operation$consumes[0];
|
|
2029
2029
|
} else if (Array.isArray(spec.consumes)) {
|
|
2030
|
-
var _spec$consumes = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__
|
|
2030
|
+
var _spec$consumes = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(spec.consumes, 1);
|
|
2031
2031
|
|
|
2032
2032
|
req.headers['Content-Type'] = _spec$consumes[0];
|
|
2033
2033
|
} else if (operation.parameters && _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(_context = operation.parameters).call(_context, function (p) {
|
|
@@ -2282,7 +2282,7 @@ function opId(operation, pathName) {
|
|
|
2282
2282
|
var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
|
|
2283
2283
|
v2OperationIdCompatibilityMode = _ref.v2OperationIdCompatibilityMode;
|
|
2284
2284
|
|
|
2285
|
-
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2285
|
+
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(operation) !== 'object') {
|
|
2286
2286
|
return null;
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
@@ -2330,7 +2330,7 @@ function getOperationRaw(spec, id) {
|
|
|
2330
2330
|
method = _ref3.method,
|
|
2331
2331
|
operation = _ref3.operation;
|
|
2332
2332
|
|
|
2333
|
-
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2333
|
+
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(operation) !== 'object') {
|
|
2334
2334
|
return false;
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
@@ -2351,7 +2351,7 @@ function findOperation(spec, predicate) {
|
|
|
2351
2351
|
// `find=true` will stop iterating, when the cb returns truthy
|
|
2352
2352
|
|
|
2353
2353
|
function eachOperation(spec, cb, find) {
|
|
2354
|
-
if (!spec || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2354
|
+
if (!spec || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(spec) !== 'object' || !spec.paths || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(spec.paths) !== 'object') {
|
|
2355
2355
|
return null;
|
|
2356
2356
|
}
|
|
2357
2357
|
|
|
@@ -2367,7 +2367,7 @@ function eachOperation(spec, cb, find) {
|
|
|
2367
2367
|
|
|
2368
2368
|
var operation = paths[pathName][method];
|
|
2369
2369
|
|
|
2370
|
-
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2370
|
+
if (!operation || (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(operation) !== 'object') {
|
|
2371
2371
|
continue; // eslint-disable-line no-continue
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
@@ -2466,7 +2466,7 @@ function normalizeSwagger(parsedSpec) {
|
|
|
2466
2466
|
|
|
2467
2467
|
if (inheritsList.length) {
|
|
2468
2468
|
// eslint-disable-next-line no-restricted-syntax
|
|
2469
|
-
var _iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__
|
|
2469
|
+
var _iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["default"])(inheritsList),
|
|
2470
2470
|
_step;
|
|
2471
2471
|
|
|
2472
2472
|
try {
|
|
@@ -2479,7 +2479,7 @@ function normalizeSwagger(parsedSpec) {
|
|
|
2479
2479
|
operation[inheritName] = inherits[inheritName];
|
|
2480
2480
|
} else if (inheritName === 'parameters') {
|
|
2481
2481
|
// eslint-disable-next-line no-restricted-syntax
|
|
2482
|
-
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__
|
|
2482
|
+
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["default"])(inherits[inheritName]),
|
|
2483
2483
|
_step2;
|
|
2484
2484
|
|
|
2485
2485
|
try {
|
|
@@ -2633,7 +2633,7 @@ function http(_x) {
|
|
|
2633
2633
|
} // exported for testing
|
|
2634
2634
|
|
|
2635
2635
|
function _http() {
|
|
2636
|
-
_http = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__
|
|
2636
|
+
_http = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__["default"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee(url) {
|
|
2637
2637
|
var request,
|
|
2638
2638
|
contentType,
|
|
2639
2639
|
res,
|
|
@@ -2647,7 +2647,7 @@ function _http() {
|
|
|
2647
2647
|
case 0:
|
|
2648
2648
|
request = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
2649
2649
|
|
|
2650
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2650
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(url) === 'object') {
|
|
2651
2651
|
request = url;
|
|
2652
2652
|
url = request.url;
|
|
2653
2653
|
}
|
|
@@ -2795,7 +2795,7 @@ function parseBody(body, contentType) {
|
|
|
2795
2795
|
return JSON.parse(body);
|
|
2796
2796
|
}
|
|
2797
2797
|
|
|
2798
|
-
return js_yaml__WEBPACK_IMPORTED_MODULE_16__
|
|
2798
|
+
return js_yaml__WEBPACK_IMPORTED_MODULE_16__["default"].load(body);
|
|
2799
2799
|
} // Serialize the response, returns a promise with headers and the body part of the hash
|
|
2800
2800
|
|
|
2801
2801
|
|
|
@@ -2847,7 +2847,7 @@ function serializeHeaders() {
|
|
|
2847
2847
|
var headers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2848
2848
|
if (!lodash_isFunction__WEBPACK_IMPORTED_MODULE_18___default()(_babel_runtime_corejs3_core_js_stable_instance_entries__WEBPACK_IMPORTED_MODULE_6___default()(headers))) return {};
|
|
2849
2849
|
return _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_corejs3_core_js_stable_instance_entries__WEBPACK_IMPORTED_MODULE_6___default()(headers).call(headers)).reduce(function (acc, _ref2) {
|
|
2850
|
-
var _ref3 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__
|
|
2850
|
+
var _ref3 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref2, 2),
|
|
2851
2851
|
header = _ref3[0],
|
|
2852
2852
|
value = _ref3[1];
|
|
2853
2853
|
|
|
@@ -2862,7 +2862,7 @@ function isFile(obj, navigatorObj) {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
2864
|
if (navigatorObj && navigatorObj.product === 'ReactNative') {
|
|
2865
|
-
if (obj && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2865
|
+
if (obj && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(obj) === 'object' && typeof obj.uri === 'string') {
|
|
2866
2866
|
return true;
|
|
2867
2867
|
}
|
|
2868
2868
|
|
|
@@ -2881,7 +2881,7 @@ function isFile(obj, navigatorObj) {
|
|
|
2881
2881
|
return true;
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
return obj !== null && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2884
|
+
return obj !== null && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(obj) === 'object' && typeof obj.pipe === 'function';
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
function isArrayOfFile(obj, navigatorObj) {
|
|
@@ -2916,7 +2916,7 @@ function formatKeyValue(key, input) {
|
|
|
2916
2916
|
serializationOption = input.serializationOption,
|
|
2917
2917
|
encoding = input.encoding; // `input` can be string
|
|
2918
2918
|
|
|
2919
|
-
var value = (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2919
|
+
var value = (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(input) === 'object' && !Array.isArray(input) ? input.value : input;
|
|
2920
2920
|
var encodeFn = skipEncoding ? function (k) {
|
|
2921
2921
|
return k.toString();
|
|
2922
2922
|
} : function (k) {
|
|
@@ -2940,7 +2940,7 @@ function formatKeyValue(key, input) {
|
|
|
2940
2940
|
|
|
2941
2941
|
|
|
2942
2942
|
if (encoding) {
|
|
2943
|
-
if ([(0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2943
|
+
if ([(0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(encoding.style), (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(encoding.explode), (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(encoding.allowReserved)].some(function (type) {
|
|
2944
2944
|
return type !== 'undefined';
|
|
2945
2945
|
})) {
|
|
2946
2946
|
return formatKeyValueBySerializationOption(key, value, skipEncoding, lodash_pick__WEBPACK_IMPORTED_MODULE_17___default()(encoding, ['style', 'explode', 'allowReserved']));
|
|
@@ -2957,13 +2957,13 @@ function formatKeyValue(key, input) {
|
|
|
2957
2957
|
} // Primitive
|
|
2958
2958
|
|
|
2959
2959
|
|
|
2960
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2960
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(value) !== 'object') {
|
|
2961
2961
|
return [[encodedKey, encodeFn(value)]];
|
|
2962
2962
|
} // Array of primitives
|
|
2963
2963
|
|
|
2964
2964
|
|
|
2965
2965
|
if (Array.isArray(value) && value.every(function (v) {
|
|
2966
|
-
return (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2966
|
+
return (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(v) !== 'object';
|
|
2967
2967
|
})) {
|
|
2968
2968
|
return [[encodedKey, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, encodeFn).join(',')]];
|
|
2969
2969
|
} // Array or object
|
|
@@ -2974,7 +2974,7 @@ function formatKeyValue(key, input) {
|
|
|
2974
2974
|
// Primitive
|
|
2975
2975
|
|
|
2976
2976
|
|
|
2977
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
2977
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(value) !== 'object') {
|
|
2978
2978
|
return [[encodedKey, encodeFn(value)]];
|
|
2979
2979
|
} // Array
|
|
2980
2980
|
|
|
@@ -3015,7 +3015,7 @@ function formatKeyValueBySerializationOption(key, value, skipEncoding, serializa
|
|
|
3015
3015
|
});
|
|
3016
3016
|
}; // Primitive
|
|
3017
3017
|
|
|
3018
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
3018
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(value) !== 'object') {
|
|
3019
3019
|
return [[encodeKeyFn(key), encodeFn(value)]];
|
|
3020
3020
|
} // Array
|
|
3021
3021
|
|
|
@@ -3070,23 +3070,23 @@ function buildFormData(reqForm) {
|
|
|
3070
3070
|
* @return {FormData} - new FormData instance
|
|
3071
3071
|
*/
|
|
3072
3072
|
return _babel_runtime_corejs3_core_js_stable_object_entries__WEBPACK_IMPORTED_MODULE_12___default()(reqForm).reduce(function (formData, _ref4) {
|
|
3073
|
-
var _ref5 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__
|
|
3073
|
+
var _ref5 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref4, 2),
|
|
3074
3074
|
name = _ref5[0],
|
|
3075
3075
|
input = _ref5[1];
|
|
3076
3076
|
|
|
3077
3077
|
// eslint-disable-next-line no-restricted-syntax
|
|
3078
|
-
var _iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__
|
|
3078
|
+
var _iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["default"])(formatKeyValue(name, input, true)),
|
|
3079
3079
|
_step;
|
|
3080
3080
|
|
|
3081
3081
|
try {
|
|
3082
3082
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3083
|
-
var _step$value = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__
|
|
3083
|
+
var _step$value = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_step.value, 2),
|
|
3084
3084
|
key = _step$value[0],
|
|
3085
3085
|
value = _step$value[1];
|
|
3086
3086
|
|
|
3087
3087
|
if (Array.isArray(value)) {
|
|
3088
3088
|
// eslint-disable-next-line no-restricted-syntax
|
|
3089
|
-
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__
|
|
3089
|
+
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["default"])(value),
|
|
3090
3090
|
_step2;
|
|
3091
3091
|
|
|
3092
3092
|
try {
|
|
@@ -3133,12 +3133,12 @@ function encodeFormOrQuery(data) {
|
|
|
3133
3133
|
*/
|
|
3134
3134
|
var encodedQuery = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_10___default()(data).reduce(function (result, parameterName) {
|
|
3135
3135
|
// eslint-disable-next-line no-restricted-syntax
|
|
3136
|
-
var _iterator3 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__
|
|
3136
|
+
var _iterator3 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["default"])(formatKeyValue(parameterName, data[parameterName])),
|
|
3137
3137
|
_step3;
|
|
3138
3138
|
|
|
3139
3139
|
try {
|
|
3140
3140
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3141
|
-
var _step3$value = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__
|
|
3141
|
+
var _step3$value = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_step3.value, 2),
|
|
3142
3142
|
key = _step3$value[0],
|
|
3143
3143
|
value = _step3$value[1];
|
|
3144
3144
|
|
|
@@ -3190,7 +3190,7 @@ function mergeInQueryOrForm() {
|
|
|
3190
3190
|
|
|
3191
3191
|
if (hasFile || /multipart\/form-data/i.test(contentType)) {
|
|
3192
3192
|
var formdata = buildFormData(req.form);
|
|
3193
|
-
(0,_fold_formdata_to_request_node__WEBPACK_IMPORTED_MODULE_22__
|
|
3193
|
+
(0,_fold_formdata_to_request_node__WEBPACK_IMPORTED_MODULE_22__["default"])(formdata, req);
|
|
3194
3194
|
} else {
|
|
3195
3195
|
req.body = encodeFormOrQuery(form);
|
|
3196
3196
|
}
|
|
@@ -3200,7 +3200,7 @@ function mergeInQueryOrForm() {
|
|
|
3200
3200
|
|
|
3201
3201
|
if (query) {
|
|
3202
3202
|
var _url$split = url.split('?'),
|
|
3203
|
-
_url$split2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__
|
|
3203
|
+
_url$split2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_url$split, 2),
|
|
3204
3204
|
baseUrl = _url$split2[0],
|
|
3205
3205
|
oriSearch = _url$split2[1];
|
|
3206
3206
|
|
|
@@ -3296,7 +3296,7 @@ function makeExecute() {
|
|
|
3296
3296
|
operationId = _ref.operationId;
|
|
3297
3297
|
return function (parameters) {
|
|
3298
3298
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3299
|
-
return swaggerJs.execute((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
3299
|
+
return swaggerJs.execute((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
3300
3300
|
spec: swaggerJs.spec
|
|
3301
3301
|
}, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(swaggerJs, 'requestInterceptor', 'responseInterceptor', 'userFetch')), {}, {
|
|
3302
3302
|
pathName: pathName,
|
|
@@ -3490,7 +3490,7 @@ function resolve(obj) {
|
|
|
3490
3490
|
baseDoc = baseDoc || url; // Provide a default fetch implementation
|
|
3491
3491
|
// TODO fetch should be removed, and http used instead
|
|
3492
3492
|
|
|
3493
|
-
http = fetch || http || _http__WEBPACK_IMPORTED_MODULE_2__
|
|
3493
|
+
http = fetch || http || _http__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
3494
3494
|
|
|
3495
3495
|
if (!spec) {
|
|
3496
3496
|
return makeFetchJSON(http, {
|
|
@@ -3526,7 +3526,7 @@ function resolve(obj) {
|
|
|
3526
3526
|
} // mapSpec is where the hard work happens
|
|
3527
3527
|
|
|
3528
3528
|
|
|
3529
|
-
return (0,_specmap__WEBPACK_IMPORTED_MODULE_3__
|
|
3529
|
+
return (0,_specmap__WEBPACK_IMPORTED_MODULE_3__["default"])({
|
|
3530
3530
|
spec: _spec,
|
|
3531
3531
|
context: {
|
|
3532
3532
|
baseDoc: baseDoc
|
|
@@ -3540,7 +3540,7 @@ function resolve(obj) {
|
|
|
3540
3540
|
modelPropertyMacro: modelPropertyMacro,
|
|
3541
3541
|
useCircularStructures: useCircularStructures
|
|
3542
3542
|
}).then(skipNormalization ? /*#__PURE__*/function () {
|
|
3543
|
-
var _ref = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__
|
|
3543
|
+
var _ref = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__["default"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(a) {
|
|
3544
3544
|
return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {
|
|
3545
3545
|
while (1) {
|
|
3546
3546
|
switch (_context.prev = _context.next) {
|
|
@@ -3626,7 +3626,7 @@ function generateAbsoluteRefPatches(obj, basePath) {
|
|
|
3626
3626
|
getBaseUrlForNodePath = _ref$getBaseUrlForNod === void 0 ? function (path) {
|
|
3627
3627
|
var _context;
|
|
3628
3628
|
|
|
3629
|
-
return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = []).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__
|
|
3629
|
+
return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = []).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(basePath), (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(path))).baseDoc;
|
|
3630
3630
|
} : _ref$getBaseUrlForNod,
|
|
3631
3631
|
_ref$targetKeys = _ref.targetKeys,
|
|
3632
3632
|
targetKeys = _ref$targetKeys === void 0 ? ['$ref', '$$ref'] : _ref$targetKeys;
|
|
@@ -3648,7 +3648,7 @@ function absolutifyPointer(pointer, baseUrl) {
|
|
|
3648
3648
|
var _context2;
|
|
3649
3649
|
|
|
3650
3650
|
var _pointer$split = pointer.split('#'),
|
|
3651
|
-
_pointer$split2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__
|
|
3651
|
+
_pointer$split2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_pointer$split, 2),
|
|
3652
3652
|
urlPart = _pointer$split2[0],
|
|
3653
3653
|
fragmentPart = _pointer$split2[1];
|
|
3654
3654
|
|
|
@@ -3685,7 +3685,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3685
3685
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);
|
|
3686
3686
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6902);
|
|
3687
3687
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__);
|
|
3688
|
-
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
3688
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(875);
|
|
3689
3689
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10__);
|
|
3690
3690
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2762);
|
|
3691
3691
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_11__);
|
|
@@ -3731,7 +3731,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3731
3731
|
_context,
|
|
3732
3732
|
_context2;
|
|
3733
3733
|
|
|
3734
|
-
(0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_21__
|
|
3734
|
+
(0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_21__["default"])(this, SpecMap);
|
|
3735
3735
|
|
|
3736
3736
|
_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_5___default()(this, {
|
|
3737
3737
|
spec: '',
|
|
@@ -3744,12 +3744,12 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3744
3744
|
state: {},
|
|
3745
3745
|
patches: [],
|
|
3746
3746
|
context: {},
|
|
3747
|
-
contextTree: new _lib_context_tree__WEBPACK_IMPORTED_MODULE_20__
|
|
3747
|
+
contextTree: new _lib_context_tree__WEBPACK_IMPORTED_MODULE_20__["default"](),
|
|
3748
3748
|
showDebug: false,
|
|
3749
3749
|
allPatches: [],
|
|
3750
3750
|
// only populated if showDebug is true
|
|
3751
3751
|
pluginProp: 'specMap',
|
|
3752
|
-
libMethods: _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_5___default()(Object.create(this), _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3752
|
+
libMethods: _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_5___default()(Object.create(this), _lib__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
3753
3753
|
getInstance: function getInstance() {
|
|
3754
3754
|
return _this;
|
|
3755
3755
|
}
|
|
@@ -3764,14 +3764,14 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3764
3764
|
|
|
3765
3765
|
this.hasRun = this._hasRun.bind(this); // eslint-disable-line no-underscore-dangle
|
|
3766
3766
|
|
|
3767
|
-
this.wrappedPlugins = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = this.plugins).call(_context2, this.wrapPlugin.bind(this))).call(_context, _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3767
|
+
this.wrappedPlugins = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = this.plugins).call(_context2, this.wrapPlugin.bind(this))).call(_context, _lib__WEBPACK_IMPORTED_MODULE_15__["default"].isFunction); // Initial patch(s)
|
|
3768
3768
|
|
|
3769
|
-
this.patches.push(_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3770
|
-
this.patches.push(_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3769
|
+
this.patches.push(_lib__WEBPACK_IMPORTED_MODULE_15__["default"].add([], this.spec));
|
|
3770
|
+
this.patches.push(_lib__WEBPACK_IMPORTED_MODULE_15__["default"].context([], this.context));
|
|
3771
3771
|
this.updatePatches(this.patches);
|
|
3772
3772
|
}
|
|
3773
3773
|
|
|
3774
|
-
(0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__
|
|
3774
|
+
(0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(SpecMap, [{
|
|
3775
3775
|
key: "debug",
|
|
3776
3776
|
value: function debug(level) {
|
|
3777
3777
|
if (this.debugLevel === level) {
|
|
@@ -3809,15 +3809,15 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3809
3809
|
if (plugin[this.pluginProp]) {
|
|
3810
3810
|
ctx = plugin;
|
|
3811
3811
|
fn = plugin[this.pluginProp];
|
|
3812
|
-
} else if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3812
|
+
} else if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isFunction(plugin)) {
|
|
3813
3813
|
fn = plugin;
|
|
3814
|
-
} else if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3814
|
+
} else if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isObject(plugin)) {
|
|
3815
3815
|
fn = createKeyBasedPlugin(plugin);
|
|
3816
3816
|
}
|
|
3817
3817
|
|
|
3818
3818
|
return _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_5___default()(fn.bind(ctx), {
|
|
3819
3819
|
pluginName: plugin.name || name,
|
|
3820
|
-
isGenerator: _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3820
|
+
isGenerator: _lib__WEBPACK_IMPORTED_MODULE_15__["default"].isGenerator(fn)
|
|
3821
3821
|
}); // Expected plugin interface: {key: string, plugin: fn*}
|
|
3822
3822
|
// This traverses depth-first and immediately applies yielded patches.
|
|
3823
3823
|
// This strategy should work well for most plugins (including the built-ins).
|
|
@@ -3848,7 +3848,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3848
3848
|
while (1) {
|
|
3849
3849
|
switch (_context4.prev = _context4.next) {
|
|
3850
3850
|
case 0:
|
|
3851
|
-
if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3851
|
+
if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isObject(obj)) {
|
|
3852
3852
|
_context4.next = 6;
|
|
3853
3853
|
break;
|
|
3854
3854
|
}
|
|
@@ -3883,7 +3883,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3883
3883
|
key = _Object$keys[_i];
|
|
3884
3884
|
val = obj[key];
|
|
3885
3885
|
updatedPath = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(path).call(path, key);
|
|
3886
|
-
isObj = _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
3886
|
+
isObj = _lib__WEBPACK_IMPORTED_MODULE_15__["default"].isObject(val);
|
|
3887
3887
|
objRef = obj.$$ref;
|
|
3888
3888
|
|
|
3889
3889
|
if (traversed) {
|
|
@@ -3935,7 +3935,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
3935
3935
|
_marked = /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(traverse);
|
|
3936
3936
|
refCache = {}; // eslint-disable-next-line no-restricted-syntax
|
|
3937
3937
|
|
|
3938
|
-
_iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_2__
|
|
3938
|
+
_iterator = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_2__["default"])(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(patches).call(patches, _lib__WEBPACK_IMPORTED_MODULE_15__["default"].isAdditiveMutation));
|
|
3939
3939
|
_context5.prev = 4;
|
|
3940
3940
|
|
|
3941
3941
|
_iterator.s();
|
|
@@ -4040,7 +4040,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4040
4040
|
value: function updatePatches(patches) {
|
|
4041
4041
|
var _this3 = this;
|
|
4042
4042
|
|
|
4043
|
-
_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4043
|
+
_lib__WEBPACK_IMPORTED_MODULE_15__["default"].normalizeArray(patches).forEach(function (patch) {
|
|
4044
4044
|
if (patch instanceof Error) {
|
|
4045
4045
|
_this3.errors.push(patch);
|
|
4046
4046
|
|
|
@@ -4048,7 +4048,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4048
4048
|
}
|
|
4049
4049
|
|
|
4050
4050
|
try {
|
|
4051
|
-
if (!_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4051
|
+
if (!_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isObject(patch)) {
|
|
4052
4052
|
_this3.debug('updatePatches', 'Got a non-object patch', patch);
|
|
4053
4053
|
|
|
4054
4054
|
return;
|
|
@@ -4058,7 +4058,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4058
4058
|
_this3.allPatches.push(patch);
|
|
4059
4059
|
}
|
|
4060
4060
|
|
|
4061
|
-
if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4061
|
+
if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isPromise(patch.value)) {
|
|
4062
4062
|
_this3.promisedPatches.push(patch);
|
|
4063
4063
|
|
|
4064
4064
|
_this3.promisedPatchThen(patch);
|
|
@@ -4066,13 +4066,13 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4066
4066
|
return;
|
|
4067
4067
|
}
|
|
4068
4068
|
|
|
4069
|
-
if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4069
|
+
if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isContextPatch(patch)) {
|
|
4070
4070
|
_this3.setContext(patch.path, patch.value);
|
|
4071
4071
|
|
|
4072
4072
|
return;
|
|
4073
4073
|
}
|
|
4074
4074
|
|
|
4075
|
-
if (_lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4075
|
+
if (_lib__WEBPACK_IMPORTED_MODULE_15__["default"].isMutation(patch)) {
|
|
4076
4076
|
_this3.updateMutations(patch);
|
|
4077
4077
|
|
|
4078
4078
|
return;
|
|
@@ -4087,11 +4087,11 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4087
4087
|
}, {
|
|
4088
4088
|
key: "updateMutations",
|
|
4089
4089
|
value: function updateMutations(patch) {
|
|
4090
|
-
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__
|
|
4091
|
-
patch.value = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
4090
|
+
if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(patch.value) === 'object' && !Array.isArray(patch.value) && this.allowMetaPatches) {
|
|
4091
|
+
patch.value = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, patch.value);
|
|
4092
4092
|
}
|
|
4093
4093
|
|
|
4094
|
-
var result = _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4094
|
+
var result = _lib__WEBPACK_IMPORTED_MODULE_15__["default"].applyPatch(this.state, patch, {
|
|
4095
4095
|
allowMetaPatches: this.allowMetaPatches
|
|
4096
4096
|
});
|
|
4097
4097
|
|
|
@@ -4120,7 +4120,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4120
4120
|
var _this4 = this;
|
|
4121
4121
|
|
|
4122
4122
|
patch.value = patch.value.then(function (val) {
|
|
4123
|
-
var promisedPatch = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
4123
|
+
var promisedPatch = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, patch), {}, {
|
|
4124
4124
|
value: val
|
|
4125
4125
|
});
|
|
4126
4126
|
|
|
@@ -4172,7 +4172,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4172
4172
|
}, {
|
|
4173
4173
|
key: "_get",
|
|
4174
4174
|
value: function _get(path) {
|
|
4175
|
-
return _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4175
|
+
return _lib__WEBPACK_IMPORTED_MODULE_15__["default"].getIn(this.state, path);
|
|
4176
4176
|
} // eslint-disable-next-line no-underscore-dangle
|
|
4177
4177
|
|
|
4178
4178
|
}, {
|
|
@@ -4264,7 +4264,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4264
4264
|
try {
|
|
4265
4265
|
if (plugin.isGenerator) {
|
|
4266
4266
|
// eslint-disable-next-line no-restricted-syntax
|
|
4267
|
-
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_2__
|
|
4267
|
+
var _iterator2 = (0,_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_2__["default"])(plugin(mutations, that.getLib())),
|
|
4268
4268
|
_step2;
|
|
4269
4269
|
|
|
4270
4270
|
try {
|
|
@@ -4298,7 +4298,7 @@ var SpecMap = /*#__PURE__*/function () {
|
|
|
4298
4298
|
|
|
4299
4299
|
function updatePatches(patches) {
|
|
4300
4300
|
if (patches) {
|
|
4301
|
-
patches = _lib__WEBPACK_IMPORTED_MODULE_15__
|
|
4301
|
+
patches = _lib__WEBPACK_IMPORTED_MODULE_15__["default"].fullyNormalizeArray(patches);
|
|
4302
4302
|
that.updatePatches(patches, plugin);
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
@@ -4322,10 +4322,10 @@ function mapSpec(opts) {
|
|
|
4322
4322
|
return new SpecMap(opts).dispatch();
|
|
4323
4323
|
}
|
|
4324
4324
|
var plugins = {
|
|
4325
|
-
refs: _lib_refs__WEBPACK_IMPORTED_MODULE_16__
|
|
4326
|
-
allOf: _lib_all_of__WEBPACK_IMPORTED_MODULE_17__
|
|
4327
|
-
parameters: _lib_parameters__WEBPACK_IMPORTED_MODULE_18__
|
|
4328
|
-
properties: _lib_properties__WEBPACK_IMPORTED_MODULE_19__
|
|
4325
|
+
refs: _lib_refs__WEBPACK_IMPORTED_MODULE_16__["default"],
|
|
4326
|
+
allOf: _lib_all_of__WEBPACK_IMPORTED_MODULE_17__["default"],
|
|
4327
|
+
parameters: _lib_parameters__WEBPACK_IMPORTED_MODULE_18__["default"],
|
|
4328
|
+
properties: _lib_properties__WEBPACK_IMPORTED_MODULE_19__["default"]
|
|
4329
4329
|
};
|
|
4330
4330
|
|
|
4331
4331
|
|
|
@@ -4386,7 +4386,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4386
4386
|
|
|
4387
4387
|
originalDefinitionObj = originalDefinitionObj[part];
|
|
4388
4388
|
});
|
|
4389
|
-
originalDefinitionObj = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__
|
|
4389
|
+
originalDefinitionObj = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, originalDefinitionObj); // when we've lost sight, interrupt prematurely
|
|
4390
4390
|
|
|
4391
4391
|
if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(originalDefinitionObj)) {
|
|
4392
4392
|
return undefined;
|
|
@@ -4421,11 +4421,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4421
4421
|
getBaseUrlForNodePath: function getBaseUrlForNodePath(nodePath) {
|
|
4422
4422
|
var _context;
|
|
4423
4423
|
|
|
4424
|
-
return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context = []).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__
|
|
4424
|
+
return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context = []).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(fullPath), [i], (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(nodePath))).baseDoc;
|
|
4425
4425
|
},
|
|
4426
4426
|
specmap: specmap
|
|
4427
4427
|
});
|
|
4428
|
-
patches.push.apply(patches, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__
|
|
4428
|
+
patches.push.apply(patches, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(absoluteRefPatches));
|
|
4429
4429
|
return undefined;
|
|
4430
4430
|
}); // Merge back the values from the original definition
|
|
4431
4431
|
|
|
@@ -4467,12 +4467,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4467
4467
|
|
|
4468
4468
|
var ContextTree = /*#__PURE__*/function () {
|
|
4469
4469
|
function ContextTree(value) {
|
|
4470
|
-
(0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__
|
|
4470
|
+
(0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__["default"])(this, ContextTree);
|
|
4471
4471
|
|
|
4472
4472
|
this.root = createNode(value || {});
|
|
4473
4473
|
}
|
|
4474
4474
|
|
|
4475
|
-
(0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__
|
|
4475
|
+
(0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(ContextTree, [{
|
|
4476
4476
|
key: "set",
|
|
4477
4477
|
value: function set(path, value) {
|
|
4478
4478
|
var parent = this.getParent(path, true);
|
|
@@ -4562,7 +4562,7 @@ function createNode(value, parent) {
|
|
|
4562
4562
|
|
|
4563
4563
|
function updateNode(node, value, parent) {
|
|
4564
4564
|
node.value = value || {};
|
|
4565
|
-
node.protoValue = parent ? (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
4565
|
+
node.protoValue = parent ? (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, parent.protoValue), node.value) : node.value;
|
|
4566
4566
|
|
|
4567
4567
|
_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(node.children).forEach(function (prop) {
|
|
4568
4568
|
var child = node.children[prop];
|
|
@@ -4677,7 +4677,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4677
4677
|
|
|
4678
4678
|
function applyPatch(obj, patch, opts) {
|
|
4679
4679
|
opts = opts || {};
|
|
4680
|
-
patch = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__
|
|
4680
|
+
patch = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, patch), {}, {
|
|
4681
4681
|
path: patch.path && normalizeJSONPath(patch.path)
|
|
4682
4682
|
});
|
|
4683
4683
|
|
|
@@ -4702,7 +4702,7 @@ function applyPatch(obj, patch, opts) {
|
|
|
4702
4702
|
} else if (isObject(propVal) && !isArray) {
|
|
4703
4703
|
// If it's an object, iterate it's keys and merge
|
|
4704
4704
|
// if there are conflicting keys, merge deep, otherwise shallow merge
|
|
4705
|
-
var currentObj = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__
|
|
4705
|
+
var currentObj = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, currentValue[prop]); // eslint-disable-next-line no-restricted-syntax
|
|
4706
4706
|
|
|
4707
4707
|
|
|
4708
4708
|
for (var key in propVal) {
|
|
@@ -4717,7 +4717,7 @@ function applyPatch(obj, patch, opts) {
|
|
|
4717
4717
|
currentObj = deep_extend__WEBPACK_IMPORTED_MODULE_10___default()(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_11___default()(currentObj), propVal);
|
|
4718
4718
|
break;
|
|
4719
4719
|
} else {
|
|
4720
|
-
_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4___default()(currentObj, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__
|
|
4720
|
+
_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4___default()(currentObj, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, propVal[key]));
|
|
4721
4721
|
}
|
|
4722
4722
|
}
|
|
4723
4723
|
|
|
@@ -4747,7 +4747,7 @@ function applyPatch(obj, patch, opts) {
|
|
|
4747
4747
|
value = _patch.value;
|
|
4748
4748
|
|
|
4749
4749
|
if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {
|
|
4750
|
-
value = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__
|
|
4750
|
+
value = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, value), patch.meta);
|
|
4751
4751
|
}
|
|
4752
4752
|
|
|
4753
4753
|
obj = value;
|
|
@@ -4757,7 +4757,7 @@ function applyPatch(obj, patch, opts) {
|
|
|
4757
4757
|
if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {
|
|
4758
4758
|
var _currentValue = getInByJsonPath(obj, patch.path);
|
|
4759
4759
|
|
|
4760
|
-
var _newValue = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__
|
|
4760
|
+
var _newValue = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, _currentValue), patch.meta);
|
|
4761
4761
|
|
|
4762
4762
|
fast_json_patch__WEBPACK_IMPORTED_MODULE_9__.applyPatch(obj, [replace(patch.path, _newValue)]);
|
|
4763
4763
|
}
|
|
@@ -4968,7 +4968,7 @@ function normalizeArray(arr) {
|
|
|
4968
4968
|
function flatten(arr) {
|
|
4969
4969
|
var _ref;
|
|
4970
4970
|
|
|
4971
|
-
return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(_ref = []).apply(_ref, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__
|
|
4971
|
+
return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(_ref = []).apply(_ref, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(arr).call(arr, function (val) {
|
|
4972
4972
|
return Array.isArray(val) ? flatten(val) : val;
|
|
4973
4973
|
})));
|
|
4974
4974
|
}
|
|
@@ -4983,7 +4983,7 @@ function cleanArray(arr) {
|
|
|
4983
4983
|
|
|
4984
4984
|
|
|
4985
4985
|
function isObject(val) {
|
|
4986
|
-
return val && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
4986
|
+
return val && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(val) === 'object';
|
|
4987
4987
|
}
|
|
4988
4988
|
|
|
4989
4989
|
function isPromise(val) {
|
|
@@ -5024,7 +5024,7 @@ function isContextPatch(patch) {
|
|
|
5024
5024
|
}
|
|
5025
5025
|
|
|
5026
5026
|
function isPatch(patch) {
|
|
5027
|
-
return patch && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
5027
|
+
return patch && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(patch) === 'object';
|
|
5028
5028
|
}
|
|
5029
5029
|
|
|
5030
5030
|
function getInByJsonPath(obj, jsonPath) {
|
|
@@ -5065,7 +5065,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5065
5065
|
|
|
5066
5066
|
var opPath = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default()(fullPath).call(fullPath, 0, -1);
|
|
5067
5067
|
|
|
5068
|
-
var op = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
5068
|
+
var op = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, ___WEBPACK_IMPORTED_MODULE_3__["default"].getIn(specmap.spec, opPath));
|
|
5069
5069
|
|
|
5070
5070
|
parameters.forEach(function (param, i) {
|
|
5071
5071
|
try {
|
|
@@ -5078,10 +5078,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5078
5078
|
|
|
5079
5079
|
return undefined;
|
|
5080
5080
|
});
|
|
5081
|
-
return ___WEBPACK_IMPORTED_MODULE_3__
|
|
5081
|
+
return ___WEBPACK_IMPORTED_MODULE_3__["default"].replace(fullPath, val);
|
|
5082
5082
|
}
|
|
5083
5083
|
|
|
5084
|
-
return ___WEBPACK_IMPORTED_MODULE_3__
|
|
5084
|
+
return ___WEBPACK_IMPORTED_MODULE_3__["default"].replace(fullPath, parameters);
|
|
5085
5085
|
}
|
|
5086
5086
|
});
|
|
5087
5087
|
|
|
@@ -5102,7 +5102,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5102
5102
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
5103
5103
|
key: 'properties',
|
|
5104
5104
|
plugin: function plugin(properties, key, fullPath, specmap) {
|
|
5105
|
-
var val = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
5105
|
+
var val = (0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, properties); // eslint-disable-next-line no-restricted-syntax, guard-for-in
|
|
5106
5106
|
|
|
5107
5107
|
|
|
5108
5108
|
for (var k in properties) {
|
|
@@ -5116,7 +5116,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5116
5116
|
}
|
|
5117
5117
|
}
|
|
5118
5118
|
|
|
5119
|
-
var patch = ___WEBPACK_IMPORTED_MODULE_1__
|
|
5119
|
+
var patch = ___WEBPACK_IMPORTED_MODULE_1__["default"].replace(fullPath, val);
|
|
5120
5120
|
return patch;
|
|
5121
5121
|
}
|
|
5122
5122
|
});
|
|
@@ -5140,7 +5140,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5140
5140
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__);
|
|
5141
5141
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7766);
|
|
5142
5142
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__);
|
|
5143
|
-
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
5143
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(875);
|
|
5144
5144
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_5__);
|
|
5145
5145
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6902);
|
|
5146
5146
|
/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__);
|
|
@@ -5175,7 +5175,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5175
5175
|
|
|
5176
5176
|
|
|
5177
5177
|
var ABSOLUTE_URL_REGEXP = new RegExp('^([a-z]+://|//)', 'i');
|
|
5178
|
-
var JSONRefError = (0,_create_error__WEBPACK_IMPORTED_MODULE_14__
|
|
5178
|
+
var JSONRefError = (0,_create_error__WEBPACK_IMPORTED_MODULE_14__["default"])('JSONRefError', function cb(message, extra, oriError) {
|
|
5179
5179
|
this.originalError = oriError;
|
|
5180
5180
|
|
|
5181
5181
|
_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_1___default()(this, extra || {});
|
|
@@ -5324,7 +5324,7 @@ var plugin = {
|
|
|
5324
5324
|
return null;
|
|
5325
5325
|
}
|
|
5326
5326
|
|
|
5327
|
-
return ___WEBPACK_IMPORTED_MODULE_12__
|
|
5327
|
+
return ___WEBPACK_IMPORTED_MODULE_12__["default"].replace(fullPath, _absolutifiedRef);
|
|
5328
5328
|
}
|
|
5329
5329
|
}
|
|
5330
5330
|
|
|
@@ -5358,16 +5358,16 @@ var plugin = {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
|
|
5360
5360
|
if (promOrVal instanceof Error) {
|
|
5361
|
-
return [___WEBPACK_IMPORTED_MODULE_12__
|
|
5361
|
+
return [___WEBPACK_IMPORTED_MODULE_12__["default"].remove(fullPath), promOrVal];
|
|
5362
5362
|
}
|
|
5363
5363
|
|
|
5364
5364
|
var absolutifiedRef = (0,_helpers__WEBPACK_IMPORTED_MODULE_13__.absolutifyPointer)(ref, basePath);
|
|
5365
|
-
var patch = ___WEBPACK_IMPORTED_MODULE_12__
|
|
5365
|
+
var patch = ___WEBPACK_IMPORTED_MODULE_12__["default"].replace(parent, promOrVal, {
|
|
5366
5366
|
$$ref: absolutifiedRef
|
|
5367
5367
|
});
|
|
5368
5368
|
|
|
5369
5369
|
if (basePath && basePath !== baseDoc) {
|
|
5370
|
-
return [patch, ___WEBPACK_IMPORTED_MODULE_12__
|
|
5370
|
+
return [patch, ___WEBPACK_IMPORTED_MODULE_12__["default"].context(parent, {
|
|
5371
5371
|
baseDoc: basePath
|
|
5372
5372
|
})];
|
|
5373
5373
|
}
|
|
@@ -5474,7 +5474,7 @@ function split(ref) {
|
|
|
5474
5474
|
function extractFromDoc(docPath, pointer) {
|
|
5475
5475
|
var doc = docCache[docPath];
|
|
5476
5476
|
|
|
5477
|
-
if (doc && !___WEBPACK_IMPORTED_MODULE_12__
|
|
5477
|
+
if (doc && !___WEBPACK_IMPORTED_MODULE_12__["default"].isPromise(doc)) {
|
|
5478
5478
|
// If doc is already available, return __value together with the promise.
|
|
5479
5479
|
// __value is for special handling in cycle check:
|
|
5480
5480
|
// pointerAlreadyInPath() won't work if patch.value is a promise,
|
|
@@ -5523,7 +5523,7 @@ function getDoc(docPath) {
|
|
|
5523
5523
|
var val = docCache[docPath];
|
|
5524
5524
|
|
|
5525
5525
|
if (val) {
|
|
5526
|
-
return ___WEBPACK_IMPORTED_MODULE_12__
|
|
5526
|
+
return ___WEBPACK_IMPORTED_MODULE_12__["default"].isPromise(val) ? val : _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_5___default().resolve(val);
|
|
5527
5527
|
} // NOTE: we need to use `mod.fetchJSON` in order to be able to overwrite it.
|
|
5528
5528
|
// Any tips on how to make this cleaner, please ping!
|
|
5529
5529
|
|
|
@@ -5551,7 +5551,7 @@ function fetchJSON(docPath) {
|
|
|
5551
5551
|
}).then(function (res) {
|
|
5552
5552
|
return res.text();
|
|
5553
5553
|
}).then(function (text) {
|
|
5554
|
-
return js_yaml__WEBPACK_IMPORTED_MODULE_9__
|
|
5554
|
+
return js_yaml__WEBPACK_IMPORTED_MODULE_9__["default"].load(text);
|
|
5555
5555
|
});
|
|
5556
5556
|
}
|
|
5557
5557
|
/**
|
|
@@ -5570,7 +5570,7 @@ function extract(pointer, obj) {
|
|
|
5570
5570
|
return obj;
|
|
5571
5571
|
}
|
|
5572
5572
|
|
|
5573
|
-
var val = ___WEBPACK_IMPORTED_MODULE_12__
|
|
5573
|
+
var val = ___WEBPACK_IMPORTED_MODULE_12__["default"].getIn(obj, tokens);
|
|
5574
5574
|
|
|
5575
5575
|
if (typeof val === 'undefined') {
|
|
5576
5576
|
throw new JSONRefError("Could not resolve pointer: ".concat(pointer, " does not exist in document"), {
|
|
@@ -5590,7 +5590,7 @@ function jsonPointerToArray(pointer) {
|
|
|
5590
5590
|
var _context3;
|
|
5591
5591
|
|
|
5592
5592
|
if (typeof pointer !== 'string') {
|
|
5593
|
-
throw new TypeError("Expected a string, got a ".concat((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__
|
|
5593
|
+
throw new TypeError("Expected a string, got a ".concat((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(pointer)));
|
|
5594
5594
|
}
|
|
5595
5595
|
|
|
5596
5596
|
if (pointer[0] === '/') {
|
|
@@ -5733,7 +5733,7 @@ function patchValueAlreadyInPath(root, patch) {
|
|
|
5733
5733
|
return pointToAncestor(patch.value);
|
|
5734
5734
|
|
|
5735
5735
|
function pointToAncestor(obj) {
|
|
5736
|
-
return ___WEBPACK_IMPORTED_MODULE_12__
|
|
5736
|
+
return ___WEBPACK_IMPORTED_MODULE_12__["default"].isObject(obj) && (ancestors.indexOf(obj) >= 0 || _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).some(function (k) {
|
|
5737
5737
|
return pointToAncestor(obj[k]);
|
|
5738
5738
|
}));
|
|
5739
5739
|
}
|
|
@@ -5790,7 +5790,7 @@ function resolveSubtree(_x, _x2) {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
|
|
5792
5792
|
function _resolveSubtree() {
|
|
5793
|
-
_resolveSubtree = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__
|
|
5793
|
+
_resolveSubtree = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_2___default().mark(function _callee(obj, path) {
|
|
5794
5794
|
var opts,
|
|
5795
5795
|
returnEntireTree,
|
|
5796
5796
|
baseDoc,
|
|
@@ -5824,7 +5824,7 @@ function _resolveSubtree() {
|
|
|
5824
5824
|
spec: obj
|
|
5825
5825
|
}), normalized = _normalizeSwagger.spec;
|
|
5826
5826
|
_context.next = 6;
|
|
5827
|
-
return (0,_resolver__WEBPACK_IMPORTED_MODULE_4__
|
|
5827
|
+
return (0,_resolver__WEBPACK_IMPORTED_MODULE_4__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, resolveOptions), {}, {
|
|
5828
5828
|
spec: normalized,
|
|
5829
5829
|
allowMetaPatches: true,
|
|
5830
5830
|
skipNormalization: true
|
|
@@ -9212,6 +9212,7 @@ var callWithSafeIterationClosing = __webpack_require__(5196);
|
|
|
9212
9212
|
var isArrayIteratorMethod = __webpack_require__(6782);
|
|
9213
9213
|
var toLength = __webpack_require__(3057);
|
|
9214
9214
|
var createProperty = __webpack_require__(5449);
|
|
9215
|
+
var getIterator = __webpack_require__(3476);
|
|
9215
9216
|
var getIteratorMethod = __webpack_require__(2902);
|
|
9216
9217
|
|
|
9217
9218
|
// `Array.from` method implementation
|
|
@@ -9228,7 +9229,7 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
|
9228
9229
|
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
|
9229
9230
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
9230
9231
|
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
9231
|
-
iterator =
|
|
9232
|
+
iterator = getIterator(O, iteratorMethod);
|
|
9232
9233
|
next = iterator.next;
|
|
9233
9234
|
result = new C();
|
|
9234
9235
|
for (;!(step = next.call(iterator)).done; index++) {
|
|
@@ -9464,8 +9465,7 @@ module.exports = function (iterator, fn, value, ENTRIES) {
|
|
|
9464
9465
|
try {
|
|
9465
9466
|
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
9466
9467
|
} catch (error) {
|
|
9467
|
-
iteratorClose(iterator);
|
|
9468
|
-
throw error;
|
|
9468
|
+
iteratorClose(iterator, 'throw', error);
|
|
9469
9469
|
}
|
|
9470
9470
|
};
|
|
9471
9471
|
|
|
@@ -10091,7 +10091,7 @@ module.exports = typeof window == 'object';
|
|
|
10091
10091
|
var userAgent = __webpack_require__(2861);
|
|
10092
10092
|
var global = __webpack_require__(1899);
|
|
10093
10093
|
|
|
10094
|
-
module.exports = /iphone|ipod
|
|
10094
|
+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;
|
|
10095
10095
|
|
|
10096
10096
|
|
|
10097
10097
|
/***/ }),
|
|
@@ -10101,7 +10101,7 @@ module.exports = /iphone|ipod|ipad/i.test(userAgent) && global.Pebble !== undefi
|
|
|
10101
10101
|
|
|
10102
10102
|
var userAgent = __webpack_require__(2861);
|
|
10103
10103
|
|
|
10104
|
-
module.exports = /(?:iphone|ipod
|
|
10104
|
+
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
|
|
10105
10105
|
|
|
10106
10106
|
|
|
10107
10107
|
/***/ }),
|
|
@@ -10243,7 +10243,7 @@ module.exports = function (options, source) {
|
|
|
10243
10243
|
|
|
10244
10244
|
var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;
|
|
10245
10245
|
|
|
10246
|
-
var target = GLOBAL ? path : path[TARGET] || (path
|
|
10246
|
+
var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
|
|
10247
10247
|
var targetPrototype = target.prototype;
|
|
10248
10248
|
|
|
10249
10249
|
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
@@ -10280,7 +10280,7 @@ module.exports = function (options, source) {
|
|
|
10280
10280
|
createNonEnumerableProperty(resultProperty, 'sham', true);
|
|
10281
10281
|
}
|
|
10282
10282
|
|
|
10283
|
-
target
|
|
10283
|
+
createNonEnumerableProperty(target, key, resultProperty);
|
|
10284
10284
|
|
|
10285
10285
|
if (PROTO) {
|
|
10286
10286
|
VIRTUAL_PROTOTYPE = TARGET + 'Prototype';
|
|
@@ -10288,7 +10288,7 @@ module.exports = function (options, source) {
|
|
|
10288
10288
|
createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});
|
|
10289
10289
|
}
|
|
10290
10290
|
// export virtual prototype methods
|
|
10291
|
-
path[VIRTUAL_PROTOTYPE]
|
|
10291
|
+
createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);
|
|
10292
10292
|
// export real prototype methods
|
|
10293
10293
|
if (options.real && targetPrototype && !targetPrototype[key]) {
|
|
10294
10294
|
createNonEnumerableProperty(targetPrototype, key, sourceProperty);
|
|
@@ -10394,14 +10394,14 @@ module.exports = function (it) {
|
|
|
10394
10394
|
|
|
10395
10395
|
/***/ }),
|
|
10396
10396
|
|
|
10397
|
-
/***/
|
|
10397
|
+
/***/ 3476:
|
|
10398
10398
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
10399
10399
|
|
|
10400
10400
|
var anObject = __webpack_require__(6059);
|
|
10401
10401
|
var getIteratorMethod = __webpack_require__(2902);
|
|
10402
10402
|
|
|
10403
|
-
module.exports = function (it) {
|
|
10404
|
-
var iteratorMethod = getIteratorMethod(it);
|
|
10403
|
+
module.exports = function (it, usingIterator) {
|
|
10404
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(it) : usingIterator;
|
|
10405
10405
|
if (typeof iteratorMethod != 'function') {
|
|
10406
10406
|
throw TypeError(String(it) + ' is not iterable');
|
|
10407
10407
|
} return anObject(iteratorMethod.call(it));
|
|
@@ -10828,6 +10828,7 @@ var anObject = __webpack_require__(6059);
|
|
|
10828
10828
|
var isArrayIteratorMethod = __webpack_require__(6782);
|
|
10829
10829
|
var toLength = __webpack_require__(3057);
|
|
10830
10830
|
var bind = __webpack_require__(6843);
|
|
10831
|
+
var getIterator = __webpack_require__(3476);
|
|
10831
10832
|
var getIteratorMethod = __webpack_require__(2902);
|
|
10832
10833
|
var iteratorClose = __webpack_require__(7609);
|
|
10833
10834
|
|
|
@@ -10845,7 +10846,7 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
10845
10846
|
var iterator, iterFn, index, length, result, next, step;
|
|
10846
10847
|
|
|
10847
10848
|
var stop = function (condition) {
|
|
10848
|
-
if (iterator) iteratorClose(iterator);
|
|
10849
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
10849
10850
|
return new Result(true, condition);
|
|
10850
10851
|
};
|
|
10851
10852
|
|
|
@@ -10868,7 +10869,7 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
10868
10869
|
if (result && result instanceof Result) return result;
|
|
10869
10870
|
} return new Result(false);
|
|
10870
10871
|
}
|
|
10871
|
-
iterator =
|
|
10872
|
+
iterator = getIterator(iterable, iterFn);
|
|
10872
10873
|
}
|
|
10873
10874
|
|
|
10874
10875
|
next = iterator.next;
|
|
@@ -10876,8 +10877,7 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
10876
10877
|
try {
|
|
10877
10878
|
result = callFn(step.value);
|
|
10878
10879
|
} catch (error) {
|
|
10879
|
-
iteratorClose(iterator);
|
|
10880
|
-
throw error;
|
|
10880
|
+
iteratorClose(iterator, 'throw', error);
|
|
10881
10881
|
}
|
|
10882
10882
|
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
10883
10883
|
} return new Result(false);
|
|
@@ -10891,11 +10891,24 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
10891
10891
|
|
|
10892
10892
|
var anObject = __webpack_require__(6059);
|
|
10893
10893
|
|
|
10894
|
-
module.exports = function (iterator) {
|
|
10895
|
-
var
|
|
10896
|
-
|
|
10897
|
-
|
|
10894
|
+
module.exports = function (iterator, kind, value) {
|
|
10895
|
+
var innerResult, innerError;
|
|
10896
|
+
anObject(iterator);
|
|
10897
|
+
try {
|
|
10898
|
+
innerResult = iterator['return'];
|
|
10899
|
+
if (innerResult === undefined) {
|
|
10900
|
+
if (kind === 'throw') throw value;
|
|
10901
|
+
return value;
|
|
10902
|
+
}
|
|
10903
|
+
innerResult = innerResult.call(iterator);
|
|
10904
|
+
} catch (error) {
|
|
10905
|
+
innerError = true;
|
|
10906
|
+
innerResult = error;
|
|
10898
10907
|
}
|
|
10908
|
+
if (kind === 'throw') throw value;
|
|
10909
|
+
if (innerError) throw innerResult;
|
|
10910
|
+
anObject(innerResult);
|
|
10911
|
+
return value;
|
|
10899
10912
|
};
|
|
10900
10913
|
|
|
10901
10914
|
|
|
@@ -11278,17 +11291,15 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
11278
11291
|
var iframe = documentCreateElement('iframe');
|
|
11279
11292
|
var JS = 'java' + SCRIPT + ':';
|
|
11280
11293
|
var iframeDocument;
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
return iframeDocument.F;
|
|
11291
|
-
}
|
|
11294
|
+
iframe.style.display = 'none';
|
|
11295
|
+
html.appendChild(iframe);
|
|
11296
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
11297
|
+
iframe.src = String(JS);
|
|
11298
|
+
iframeDocument = iframe.contentWindow.document;
|
|
11299
|
+
iframeDocument.open();
|
|
11300
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
11301
|
+
iframeDocument.close();
|
|
11302
|
+
return iframeDocument.F;
|
|
11292
11303
|
};
|
|
11293
11304
|
|
|
11294
11305
|
// Check for document.domain and active x support
|
|
@@ -11301,10 +11312,11 @@ var NullProtoObject = function () {
|
|
|
11301
11312
|
try {
|
|
11302
11313
|
activeXDocument = new ActiveXObject('htmlfile');
|
|
11303
11314
|
} catch (error) { /* ignore */ }
|
|
11304
|
-
NullProtoObject = document
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11315
|
+
NullProtoObject = typeof document != 'undefined'
|
|
11316
|
+
? document.domain && activeXDocument
|
|
11317
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
11318
|
+
: NullProtoObjectViaIFrame()
|
|
11319
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
11308
11320
|
var length = enumBugKeys.length;
|
|
11309
11321
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
11310
11322
|
return NullProtoObject();
|
|
@@ -11869,7 +11881,7 @@ var store = __webpack_require__(3030);
|
|
|
11869
11881
|
(module.exports = function (key, value) {
|
|
11870
11882
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
11871
11883
|
})('versions', []).push({
|
|
11872
|
-
version: '3.
|
|
11884
|
+
version: '3.17.2',
|
|
11873
11885
|
mode: IS_PURE ? 'pure' : 'global',
|
|
11874
11886
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
11875
11887
|
});
|
|
@@ -14394,7 +14406,7 @@ var isObject = __webpack_require__(941);
|
|
|
14394
14406
|
var $toString = __webpack_require__(5803);
|
|
14395
14407
|
var create = __webpack_require__(9290);
|
|
14396
14408
|
var createPropertyDescriptor = __webpack_require__(1887);
|
|
14397
|
-
var getIterator = __webpack_require__(
|
|
14409
|
+
var getIterator = __webpack_require__(3476);
|
|
14398
14410
|
var getIteratorMethod = __webpack_require__(2902);
|
|
14399
14411
|
var wellKnownSymbol = __webpack_require__(9813);
|
|
14400
14412
|
|
|
@@ -14519,7 +14531,7 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
|
14519
14531
|
if (isObject(init)) {
|
|
14520
14532
|
iteratorMethod = getIteratorMethod(init);
|
|
14521
14533
|
if (typeof iteratorMethod === 'function') {
|
|
14522
|
-
iterator =
|
|
14534
|
+
iterator = getIterator(init, iteratorMethod);
|
|
14523
14535
|
next = iterator.next;
|
|
14524
14536
|
while (!(step = next.call(iterator)).done) {
|
|
14525
14537
|
entryIterator = getIterator(anObject(step.value));
|
|
@@ -22102,7 +22114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22102
22114
|
|
|
22103
22115
|
|
|
22104
22116
|
function _arrayWithoutHoles(arr) {
|
|
22105
|
-
if (_babel_runtime_corejs3_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_0__(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_1__
|
|
22117
|
+
if (_babel_runtime_corejs3_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_0__(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr);
|
|
22106
22118
|
}
|
|
22107
22119
|
|
|
22108
22120
|
/***/ }),
|
|
@@ -22222,7 +22234,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
22222
22234
|
var it = typeof _babel_runtime_corejs3_core_js_symbol__WEBPACK_IMPORTED_MODULE_0__ !== "undefined" && _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_1__(o) || o["@@iterator"];
|
|
22223
22235
|
|
|
22224
22236
|
if (!it) {
|
|
22225
|
-
if (_babel_runtime_corejs3_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_2__(o) || (it = (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_3__
|
|
22237
|
+
if (_babel_runtime_corejs3_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_2__(o) || (it = (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_3__["default"])(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
22226
22238
|
if (it) o = it;
|
|
22227
22239
|
var i = 0;
|
|
22228
22240
|
|
|
@@ -22449,7 +22461,7 @@ function _objectSpread2(target) {
|
|
|
22449
22461
|
var _context;
|
|
22450
22462
|
|
|
22451
22463
|
_babel_runtime_corejs3_core_js_instance_for_each__WEBPACK_IMPORTED_MODULE_4__(_context = ownKeys(Object(source), true)).call(_context, function (key) {
|
|
22452
|
-
(0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__
|
|
22464
|
+
(0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__["default"])(target, key, source[key]);
|
|
22453
22465
|
});
|
|
22454
22466
|
} else if (_babel_runtime_corejs3_core_js_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__) {
|
|
22455
22467
|
_babel_runtime_corejs3_core_js_object_define_properties__WEBPACK_IMPORTED_MODULE_6__(target, _babel_runtime_corejs3_core_js_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__(source));
|
|
@@ -22483,7 +22495,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22483
22495
|
|
|
22484
22496
|
function _objectWithoutProperties(source, excluded) {
|
|
22485
22497
|
if (source == null) return {};
|
|
22486
|
-
var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_2__
|
|
22498
|
+
var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_2__["default"])(source, excluded);
|
|
22487
22499
|
var key, i;
|
|
22488
22500
|
|
|
22489
22501
|
if (_babel_runtime_corejs3_core_js_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__) {
|
|
@@ -22550,7 +22562,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22550
22562
|
|
|
22551
22563
|
|
|
22552
22564
|
function _slicedToArray(arr, i) {
|
|
22553
|
-
return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__
|
|
22565
|
+
return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
22554
22566
|
}
|
|
22555
22567
|
|
|
22556
22568
|
/***/ }),
|
|
@@ -22572,7 +22584,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22572
22584
|
|
|
22573
22585
|
|
|
22574
22586
|
function _toConsumableArray(arr) {
|
|
22575
|
-
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__
|
|
22587
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
22576
22588
|
}
|
|
22577
22589
|
|
|
22578
22590
|
/***/ }),
|
|
@@ -22625,13 +22637,13 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
22625
22637
|
var _context;
|
|
22626
22638
|
|
|
22627
22639
|
if (!o) return;
|
|
22628
|
-
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_2__
|
|
22640
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(o, minLen);
|
|
22629
22641
|
|
|
22630
22642
|
var n = _babel_runtime_corejs3_core_js_instance_slice__WEBPACK_IMPORTED_MODULE_0__(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);
|
|
22631
22643
|
|
|
22632
22644
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22633
22645
|
if (n === "Map" || n === "Set") return _babel_runtime_corejs3_core_js_array_from__WEBPACK_IMPORTED_MODULE_1__(o);
|
|
22634
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_2__
|
|
22646
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(o, minLen);
|
|
22635
22647
|
}
|
|
22636
22648
|
|
|
22637
22649
|
/***/ }),
|
|
@@ -27545,10 +27557,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27545
27557
|
|
|
27546
27558
|
|
|
27547
27559
|
|
|
27548
|
-
Swagger.http = _http__WEBPACK_IMPORTED_MODULE_4__
|
|
27560
|
+
Swagger.http = _http__WEBPACK_IMPORTED_MODULE_4__["default"];
|
|
27549
27561
|
Swagger.makeHttp = _http__WEBPACK_IMPORTED_MODULE_4__.makeHttp.bind(null, Swagger.http);
|
|
27550
|
-
Swagger.resolve = _resolver__WEBPACK_IMPORTED_MODULE_5__
|
|
27551
|
-
Swagger.resolveSubtree = _subtree_resolver__WEBPACK_IMPORTED_MODULE_6__
|
|
27562
|
+
Swagger.resolve = _resolver__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
27563
|
+
Swagger.resolveSubtree = _subtree_resolver__WEBPACK_IMPORTED_MODULE_6__["default"];
|
|
27552
27564
|
Swagger.execute = _execute__WEBPACK_IMPORTED_MODULE_8__.execute;
|
|
27553
27565
|
Swagger.serializeRes = _http__WEBPACK_IMPORTED_MODULE_4__.serializeRes;
|
|
27554
27566
|
Swagger.serializeHeaders = _http__WEBPACK_IMPORTED_MODULE_4__.serializeHeaders;
|
|
@@ -27590,10 +27602,10 @@ function Swagger(url) {
|
|
|
27590
27602
|
}
|
|
27591
27603
|
|
|
27592
27604
|
Swagger.prototype = {
|
|
27593
|
-
http: _http__WEBPACK_IMPORTED_MODULE_4__
|
|
27605
|
+
http: _http__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
27594
27606
|
execute: function execute(options) {
|
|
27595
27607
|
this.applyDefaults();
|
|
27596
|
-
return Swagger.execute((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
27608
|
+
return Swagger.execute((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
27597
27609
|
spec: this.spec,
|
|
27598
27610
|
http: this.http,
|
|
27599
27611
|
securities: {
|
|
@@ -27608,7 +27620,7 @@ Swagger.prototype = {
|
|
|
27608
27620
|
var _this2 = this;
|
|
27609
27621
|
|
|
27610
27622
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27611
|
-
return Swagger.resolve((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__
|
|
27623
|
+
return Swagger.resolve((0,_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
27612
27624
|
spec: this.spec,
|
|
27613
27625
|
url: this.url,
|
|
27614
27626
|
http: this.http || this.fetch,
|
|
@@ -27654,7 +27666,7 @@ var helpers = Swagger.helpers;
|
|
|
27654
27666
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Swagger);
|
|
27655
27667
|
})();
|
|
27656
27668
|
|
|
27657
|
-
__webpack_exports__ = __webpack_exports__
|
|
27669
|
+
__webpack_exports__ = __webpack_exports__["default"];
|
|
27658
27670
|
/******/ return __webpack_exports__;
|
|
27659
27671
|
/******/ })()
|
|
27660
27672
|
;
|