@swagger-api/apidom-json-path 0.75.0 → 0.76.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.
- package/CHANGELOG.md +10 -0
- package/cjs/errors/EvaluationJsonPathError.cjs +21 -0
- package/cjs/errors/JsonPathError.cjs +8 -0
- package/cjs/errors/MultiEvaluationJsonPathError.cjs +21 -0
- package/cjs/evaluate-multi.cjs +44 -0
- package/cjs/evaluate.cjs +31 -0
- package/cjs/index.cjs +10 -44
- package/dist/apidom-json-path.browser.js +1562 -293
- package/dist/apidom-json-path.browser.min.js +1 -1
- package/es/errors/EvaluationJsonPathError.js +19 -0
- package/es/errors/JsonPathError.js +3 -0
- package/es/errors/MultiEvaluationJsonPathError.js +19 -0
- package/es/evaluate-multi.js +38 -0
- package/es/evaluate.js +25 -0
- package/es/index.js +4 -41
- package/package.json +5 -4
- package/types/dist.d.ts +32 -5
|
@@ -11,6 +11,192 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
+
/***/ 91137:
|
|
15
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21
|
+
/* harmony export */ });
|
|
22
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28936);
|
|
23
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77134);
|
|
24
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40857);
|
|
25
|
+
/* harmony import */ var _JsonPathError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36618);
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class EvaluationJsonPathError extends _JsonPathError__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
30
|
+
constructor(message, structuredOptions) {
|
|
31
|
+
super(message, structuredOptions);
|
|
32
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "path", void 0);
|
|
33
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "element", void 0);
|
|
34
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "elementSourceMap", void 0);
|
|
35
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
36
|
+
this.path = structuredOptions.path;
|
|
37
|
+
this.element = structuredOptions.element.element;
|
|
38
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.hasElementSourceMap)(structuredOptions.element)) {
|
|
39
|
+
this.elementSourceMap = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.toValue)(structuredOptions.element.getMetaProperty('sourceMap'));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EvaluationJsonPathError);
|
|
45
|
+
|
|
46
|
+
/***/ }),
|
|
47
|
+
|
|
48
|
+
/***/ 36618:
|
|
49
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
50
|
+
|
|
51
|
+
"use strict";
|
|
52
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
55
|
+
/* harmony export */ });
|
|
56
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86923);
|
|
57
|
+
|
|
58
|
+
class JsonPathError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
59
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonPathError);
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ 52421:
|
|
64
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
65
|
+
|
|
66
|
+
"use strict";
|
|
67
|
+
__webpack_require__.r(__webpack_exports__);
|
|
68
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
69
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
70
|
+
/* harmony export */ });
|
|
71
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28936);
|
|
72
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77134);
|
|
73
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40857);
|
|
74
|
+
/* harmony import */ var _JsonPathError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36618);
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class MultiEvaluationJsonPathError extends _JsonPathError__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
79
|
+
constructor(message, structuredOptions) {
|
|
80
|
+
super(message, structuredOptions);
|
|
81
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "paths", void 0);
|
|
82
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "element", void 0);
|
|
83
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "elementSourceMap", void 0);
|
|
84
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
85
|
+
this.paths = structuredOptions.paths;
|
|
86
|
+
this.element = structuredOptions.element.element;
|
|
87
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.hasElementSourceMap)(structuredOptions.element)) {
|
|
88
|
+
this.elementSourceMap = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.toValue)(structuredOptions.element.getMetaProperty('sourceMap'));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MultiEvaluationJsonPathError);
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ 5316:
|
|
98
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
__webpack_require__.r(__webpack_exports__);
|
|
102
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
103
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
104
|
+
/* harmony export */ });
|
|
105
|
+
/* harmony import */ var jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83571);
|
|
106
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40857);
|
|
107
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10211);
|
|
108
|
+
/* harmony import */ var _errors_MultiEvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(52421);
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Evaluates multiple JSONPaths on ApiDOM element.
|
|
115
|
+
*/
|
|
116
|
+
const evaluateMulti = (paths, element) => {
|
|
117
|
+
try {
|
|
118
|
+
const json = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.toValue)(element);
|
|
119
|
+
const results = [];
|
|
120
|
+
for (const path of paths) {
|
|
121
|
+
const pointers = (0,jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath)({
|
|
122
|
+
path,
|
|
123
|
+
json,
|
|
124
|
+
resultType: 'pointer'
|
|
125
|
+
});
|
|
126
|
+
const endPointValues = [];
|
|
127
|
+
for (const pointer of pointers) {
|
|
128
|
+
const endPointValue = (0,_swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__["default"])(pointer, element);
|
|
129
|
+
endPointValues.push(endPointValue);
|
|
130
|
+
}
|
|
131
|
+
if (Array.isArray(path)) {
|
|
132
|
+
results.push([jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath.toPathString(path), endPointValues]);
|
|
133
|
+
} else {
|
|
134
|
+
results.push([path, endPointValues]);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return results;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
throw new _errors_MultiEvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_3__["default"](`JSON Path evaluation failed while multi-evaluating "${String(paths)}".`, {
|
|
140
|
+
paths,
|
|
141
|
+
element,
|
|
142
|
+
cause: error
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluateMulti);
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
|
|
150
|
+
/***/ 87427:
|
|
151
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
152
|
+
|
|
153
|
+
"use strict";
|
|
154
|
+
__webpack_require__.r(__webpack_exports__);
|
|
155
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
156
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
157
|
+
/* harmony export */ });
|
|
158
|
+
/* harmony import */ var jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83571);
|
|
159
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40857);
|
|
160
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10211);
|
|
161
|
+
/* harmony import */ var _errors_EvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91137);
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Evaluates single JSONPath on ApiDOM element.
|
|
168
|
+
*/
|
|
169
|
+
const evaluate = (path, element) => {
|
|
170
|
+
try {
|
|
171
|
+
const json = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.toValue)(element);
|
|
172
|
+
const pointers = (0,jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath)({
|
|
173
|
+
path,
|
|
174
|
+
json,
|
|
175
|
+
resultType: 'pointer'
|
|
176
|
+
});
|
|
177
|
+
return pointers.map(pointer => (0,_swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__["default"])(pointer, element));
|
|
178
|
+
} catch (error) {
|
|
179
|
+
throw new _errors_EvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_3__["default"](`JSON Path evaluation failed while evaluating "${String(path)}".`, {
|
|
180
|
+
path,
|
|
181
|
+
element,
|
|
182
|
+
cause: error
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluate);
|
|
187
|
+
|
|
188
|
+
/***/ }),
|
|
189
|
+
|
|
190
|
+
/***/ 60042:
|
|
191
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
192
|
+
|
|
193
|
+
var parent = __webpack_require__(35846);
|
|
194
|
+
|
|
195
|
+
module.exports = parent;
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/***/ }),
|
|
199
|
+
|
|
14
200
|
/***/ 28385:
|
|
15
201
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
202
|
|
|
@@ -83,6 +269,21 @@ var parent = __webpack_require__(16042);
|
|
|
83
269
|
module.exports = parent;
|
|
84
270
|
|
|
85
271
|
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 56791:
|
|
275
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
276
|
+
|
|
277
|
+
__webpack_require__(4339);
|
|
278
|
+
__webpack_require__(4242);
|
|
279
|
+
__webpack_require__(84016);
|
|
280
|
+
__webpack_require__(98939);
|
|
281
|
+
__webpack_require__(5454);
|
|
282
|
+
var path = __webpack_require__(57545);
|
|
283
|
+
|
|
284
|
+
module.exports = path.AggregateError;
|
|
285
|
+
|
|
286
|
+
|
|
86
287
|
/***/ }),
|
|
87
288
|
|
|
88
289
|
/***/ 92089:
|
|
@@ -205,6 +406,27 @@ var WrappedWellKnownSymbolModule = __webpack_require__(89207);
|
|
|
205
406
|
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');
|
|
206
407
|
|
|
207
408
|
|
|
409
|
+
/***/ }),
|
|
410
|
+
|
|
411
|
+
/***/ 36762:
|
|
412
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
413
|
+
|
|
414
|
+
module.exports = __webpack_require__(73028);
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/***/ }),
|
|
418
|
+
|
|
419
|
+
/***/ 73028:
|
|
420
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
421
|
+
|
|
422
|
+
// TODO: remove from `core-js@4`
|
|
423
|
+
__webpack_require__(12752);
|
|
424
|
+
|
|
425
|
+
var parent = __webpack_require__(60042);
|
|
426
|
+
|
|
427
|
+
module.exports = parent;
|
|
428
|
+
|
|
429
|
+
|
|
208
430
|
/***/ }),
|
|
209
431
|
|
|
210
432
|
/***/ 32747:
|
|
@@ -634,6 +856,29 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
634
856
|
};
|
|
635
857
|
|
|
636
858
|
|
|
859
|
+
/***/ }),
|
|
860
|
+
|
|
861
|
+
/***/ 97987:
|
|
862
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
863
|
+
|
|
864
|
+
var hasOwn = __webpack_require__(64500);
|
|
865
|
+
var ownKeys = __webpack_require__(93011);
|
|
866
|
+
var getOwnPropertyDescriptorModule = __webpack_require__(5141);
|
|
867
|
+
var definePropertyModule = __webpack_require__(42760);
|
|
868
|
+
|
|
869
|
+
module.exports = function (target, source, exceptions) {
|
|
870
|
+
var keys = ownKeys(source);
|
|
871
|
+
var defineProperty = definePropertyModule.f;
|
|
872
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
873
|
+
for (var i = 0; i < keys.length; i++) {
|
|
874
|
+
var key = keys[i];
|
|
875
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
876
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
|
|
637
882
|
/***/ }),
|
|
638
883
|
|
|
639
884
|
/***/ 4635:
|
|
@@ -931,6 +1176,65 @@ module.exports = [
|
|
|
931
1176
|
];
|
|
932
1177
|
|
|
933
1178
|
|
|
1179
|
+
/***/ }),
|
|
1180
|
+
|
|
1181
|
+
/***/ 14503:
|
|
1182
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1183
|
+
|
|
1184
|
+
var uncurryThis = __webpack_require__(84120);
|
|
1185
|
+
|
|
1186
|
+
var $Error = Error;
|
|
1187
|
+
var replace = uncurryThis(''.replace);
|
|
1188
|
+
|
|
1189
|
+
var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');
|
|
1190
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1191
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
1192
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
1193
|
+
|
|
1194
|
+
module.exports = function (stack, dropEntries) {
|
|
1195
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
1196
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
1197
|
+
} return stack;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/***/ }),
|
|
1202
|
+
|
|
1203
|
+
/***/ 58266:
|
|
1204
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1205
|
+
|
|
1206
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
1207
|
+
var clearErrorStack = __webpack_require__(14503);
|
|
1208
|
+
var ERROR_STACK_INSTALLABLE = __webpack_require__(50274);
|
|
1209
|
+
|
|
1210
|
+
// non-standard V8
|
|
1211
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
1212
|
+
|
|
1213
|
+
module.exports = function (error, C, stack, dropEntries) {
|
|
1214
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
1215
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
1216
|
+
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
/***/ }),
|
|
1222
|
+
|
|
1223
|
+
/***/ 50274:
|
|
1224
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1225
|
+
|
|
1226
|
+
var fails = __webpack_require__(76192);
|
|
1227
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
1228
|
+
|
|
1229
|
+
module.exports = !fails(function () {
|
|
1230
|
+
var error = Error('a');
|
|
1231
|
+
if (!('stack' in error)) return true;
|
|
1232
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1233
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
1234
|
+
return error.stack !== 7;
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
|
|
934
1238
|
/***/ }),
|
|
935
1239
|
|
|
936
1240
|
/***/ 93085:
|
|
@@ -1214,6 +1518,46 @@ module.exports = function (namespace, method) {
|
|
|
1214
1518
|
};
|
|
1215
1519
|
|
|
1216
1520
|
|
|
1521
|
+
/***/ }),
|
|
1522
|
+
|
|
1523
|
+
/***/ 78703:
|
|
1524
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1525
|
+
|
|
1526
|
+
var classof = __webpack_require__(4696);
|
|
1527
|
+
var getMethod = __webpack_require__(75037);
|
|
1528
|
+
var isNullOrUndefined = __webpack_require__(75646);
|
|
1529
|
+
var Iterators = __webpack_require__(82621);
|
|
1530
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
1531
|
+
|
|
1532
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1533
|
+
|
|
1534
|
+
module.exports = function (it) {
|
|
1535
|
+
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
1536
|
+
|| getMethod(it, '@@iterator')
|
|
1537
|
+
|| Iterators[classof(it)];
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
/***/ }),
|
|
1542
|
+
|
|
1543
|
+
/***/ 61669:
|
|
1544
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1545
|
+
|
|
1546
|
+
var call = __webpack_require__(18922);
|
|
1547
|
+
var aCallable = __webpack_require__(66235);
|
|
1548
|
+
var anObject = __webpack_require__(31138);
|
|
1549
|
+
var tryToString = __webpack_require__(79288);
|
|
1550
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
1551
|
+
|
|
1552
|
+
var $TypeError = TypeError;
|
|
1553
|
+
|
|
1554
|
+
module.exports = function (argument, usingIterator) {
|
|
1555
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
1556
|
+
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
1557
|
+
throw $TypeError(tryToString(argument) + ' is not iterable');
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
|
|
1217
1561
|
/***/ }),
|
|
1218
1562
|
|
|
1219
1563
|
/***/ 19202:
|
|
@@ -1363,6 +1707,31 @@ module.exports = fails(function () {
|
|
|
1363
1707
|
} : $Object;
|
|
1364
1708
|
|
|
1365
1709
|
|
|
1710
|
+
/***/ }),
|
|
1711
|
+
|
|
1712
|
+
/***/ 62643:
|
|
1713
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1714
|
+
|
|
1715
|
+
var isCallable = __webpack_require__(16447);
|
|
1716
|
+
var isObject = __webpack_require__(35744);
|
|
1717
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
1718
|
+
|
|
1719
|
+
// makes subclassing work correct for wrapped built-ins
|
|
1720
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
1721
|
+
var NewTarget, NewTargetPrototype;
|
|
1722
|
+
if (
|
|
1723
|
+
// it can work only with native `setPrototypeOf`
|
|
1724
|
+
setPrototypeOf &&
|
|
1725
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
1726
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
1727
|
+
NewTarget !== Wrapper &&
|
|
1728
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
1729
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
1730
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
1731
|
+
return $this;
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
|
|
1366
1735
|
/***/ }),
|
|
1367
1736
|
|
|
1368
1737
|
/***/ 19516:
|
|
@@ -1384,6 +1753,23 @@ if (!isCallable(store.inspectSource)) {
|
|
|
1384
1753
|
module.exports = store.inspectSource;
|
|
1385
1754
|
|
|
1386
1755
|
|
|
1756
|
+
/***/ }),
|
|
1757
|
+
|
|
1758
|
+
/***/ 10273:
|
|
1759
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1760
|
+
|
|
1761
|
+
var isObject = __webpack_require__(35744);
|
|
1762
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
1763
|
+
|
|
1764
|
+
// `InstallErrorCause` abstract operation
|
|
1765
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
1766
|
+
module.exports = function (O, options) {
|
|
1767
|
+
if (isObject(options) && 'cause' in options) {
|
|
1768
|
+
createNonEnumerableProperty(O, 'cause', options.cause);
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
|
|
1387
1773
|
/***/ }),
|
|
1388
1774
|
|
|
1389
1775
|
/***/ 73326:
|
|
@@ -1461,6 +1847,23 @@ module.exports = {
|
|
|
1461
1847
|
};
|
|
1462
1848
|
|
|
1463
1849
|
|
|
1850
|
+
/***/ }),
|
|
1851
|
+
|
|
1852
|
+
/***/ 96109:
|
|
1853
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1854
|
+
|
|
1855
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
1856
|
+
var Iterators = __webpack_require__(82621);
|
|
1857
|
+
|
|
1858
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1859
|
+
var ArrayPrototype = Array.prototype;
|
|
1860
|
+
|
|
1861
|
+
// check on default Array iterator
|
|
1862
|
+
module.exports = function (it) {
|
|
1863
|
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
|
|
1464
1867
|
/***/ }),
|
|
1465
1868
|
|
|
1466
1869
|
/***/ 34770:
|
|
@@ -1639,6 +2042,111 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
1639
2042
|
};
|
|
1640
2043
|
|
|
1641
2044
|
|
|
2045
|
+
/***/ }),
|
|
2046
|
+
|
|
2047
|
+
/***/ 33442:
|
|
2048
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2049
|
+
|
|
2050
|
+
var bind = __webpack_require__(8043);
|
|
2051
|
+
var call = __webpack_require__(18922);
|
|
2052
|
+
var anObject = __webpack_require__(31138);
|
|
2053
|
+
var tryToString = __webpack_require__(79288);
|
|
2054
|
+
var isArrayIteratorMethod = __webpack_require__(96109);
|
|
2055
|
+
var lengthOfArrayLike = __webpack_require__(84104);
|
|
2056
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
2057
|
+
var getIterator = __webpack_require__(61669);
|
|
2058
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
2059
|
+
var iteratorClose = __webpack_require__(66639);
|
|
2060
|
+
|
|
2061
|
+
var $TypeError = TypeError;
|
|
2062
|
+
|
|
2063
|
+
var Result = function (stopped, result) {
|
|
2064
|
+
this.stopped = stopped;
|
|
2065
|
+
this.result = result;
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
var ResultPrototype = Result.prototype;
|
|
2069
|
+
|
|
2070
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
2071
|
+
var that = options && options.that;
|
|
2072
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2073
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
2074
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2075
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2076
|
+
var fn = bind(unboundFunction, that);
|
|
2077
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
2078
|
+
|
|
2079
|
+
var stop = function (condition) {
|
|
2080
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
2081
|
+
return new Result(true, condition);
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
var callFn = function (value) {
|
|
2085
|
+
if (AS_ENTRIES) {
|
|
2086
|
+
anObject(value);
|
|
2087
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2088
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2089
|
+
};
|
|
2090
|
+
|
|
2091
|
+
if (IS_RECORD) {
|
|
2092
|
+
iterator = iterable.iterator;
|
|
2093
|
+
} else if (IS_ITERATOR) {
|
|
2094
|
+
iterator = iterable;
|
|
2095
|
+
} else {
|
|
2096
|
+
iterFn = getIteratorMethod(iterable);
|
|
2097
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
2098
|
+
// optimisation for array iterators
|
|
2099
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
2100
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2101
|
+
result = callFn(iterable[index]);
|
|
2102
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2103
|
+
} return new Result(false);
|
|
2104
|
+
}
|
|
2105
|
+
iterator = getIterator(iterable, iterFn);
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2109
|
+
while (!(step = call(next, iterator)).done) {
|
|
2110
|
+
try {
|
|
2111
|
+
result = callFn(step.value);
|
|
2112
|
+
} catch (error) {
|
|
2113
|
+
iteratorClose(iterator, 'throw', error);
|
|
2114
|
+
}
|
|
2115
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2116
|
+
} return new Result(false);
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
/***/ }),
|
|
2121
|
+
|
|
2122
|
+
/***/ 66639:
|
|
2123
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2124
|
+
|
|
2125
|
+
var call = __webpack_require__(18922);
|
|
2126
|
+
var anObject = __webpack_require__(31138);
|
|
2127
|
+
var getMethod = __webpack_require__(75037);
|
|
2128
|
+
|
|
2129
|
+
module.exports = function (iterator, kind, value) {
|
|
2130
|
+
var innerResult, innerError;
|
|
2131
|
+
anObject(iterator);
|
|
2132
|
+
try {
|
|
2133
|
+
innerResult = getMethod(iterator, 'return');
|
|
2134
|
+
if (!innerResult) {
|
|
2135
|
+
if (kind === 'throw') throw value;
|
|
2136
|
+
return value;
|
|
2137
|
+
}
|
|
2138
|
+
innerResult = call(innerResult, iterator);
|
|
2139
|
+
} catch (error) {
|
|
2140
|
+
innerError = true;
|
|
2141
|
+
innerResult = error;
|
|
2142
|
+
}
|
|
2143
|
+
if (kind === 'throw') throw value;
|
|
2144
|
+
if (innerError) throw innerResult;
|
|
2145
|
+
anObject(innerResult);
|
|
2146
|
+
return value;
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2149
|
+
|
|
1642
2150
|
/***/ }),
|
|
1643
2151
|
|
|
1644
2152
|
/***/ 25695:
|
|
@@ -1866,6 +2374,18 @@ module.exports = Math.trunc || function trunc(x) {
|
|
|
1866
2374
|
};
|
|
1867
2375
|
|
|
1868
2376
|
|
|
2377
|
+
/***/ }),
|
|
2378
|
+
|
|
2379
|
+
/***/ 36016:
|
|
2380
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2381
|
+
|
|
2382
|
+
var toString = __webpack_require__(44845);
|
|
2383
|
+
|
|
2384
|
+
module.exports = function (argument, $default) {
|
|
2385
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
|
|
1869
2389
|
/***/ }),
|
|
1870
2390
|
|
|
1871
2391
|
/***/ 52853:
|
|
@@ -2294,6 +2814,27 @@ module.exports = function (input, pref) {
|
|
|
2294
2814
|
};
|
|
2295
2815
|
|
|
2296
2816
|
|
|
2817
|
+
/***/ }),
|
|
2818
|
+
|
|
2819
|
+
/***/ 93011:
|
|
2820
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2821
|
+
|
|
2822
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
2823
|
+
var uncurryThis = __webpack_require__(84120);
|
|
2824
|
+
var getOwnPropertyNamesModule = __webpack_require__(92092);
|
|
2825
|
+
var getOwnPropertySymbolsModule = __webpack_require__(84750);
|
|
2826
|
+
var anObject = __webpack_require__(31138);
|
|
2827
|
+
|
|
2828
|
+
var concat = uncurryThis([].concat);
|
|
2829
|
+
|
|
2830
|
+
// all object keys, includes non-enumerable and symbols
|
|
2831
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2832
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
2833
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2834
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
|
|
2297
2838
|
/***/ }),
|
|
2298
2839
|
|
|
2299
2840
|
/***/ 57545:
|
|
@@ -2302,6 +2843,22 @@ module.exports = function (input, pref) {
|
|
|
2302
2843
|
module.exports = {};
|
|
2303
2844
|
|
|
2304
2845
|
|
|
2846
|
+
/***/ }),
|
|
2847
|
+
|
|
2848
|
+
/***/ 67656:
|
|
2849
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2850
|
+
|
|
2851
|
+
var defineProperty = (__webpack_require__(42760).f);
|
|
2852
|
+
|
|
2853
|
+
module.exports = function (Target, Source, key) {
|
|
2854
|
+
key in Target || defineProperty(Target, key, {
|
|
2855
|
+
configurable: true,
|
|
2856
|
+
get: function () { return Source[key]; },
|
|
2857
|
+
set: function (it) { Source[key] = it; }
|
|
2858
|
+
});
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
|
|
2305
2862
|
/***/ }),
|
|
2306
2863
|
|
|
2307
2864
|
/***/ 13209:
|
|
@@ -2852,6 +3409,176 @@ module.exports = function (name) {
|
|
|
2852
3409
|
};
|
|
2853
3410
|
|
|
2854
3411
|
|
|
3412
|
+
/***/ }),
|
|
3413
|
+
|
|
3414
|
+
/***/ 20426:
|
|
3415
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3416
|
+
|
|
3417
|
+
"use strict";
|
|
3418
|
+
|
|
3419
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
3420
|
+
var hasOwn = __webpack_require__(64500);
|
|
3421
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
3422
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
3423
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
3424
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
3425
|
+
var proxyAccessor = __webpack_require__(67656);
|
|
3426
|
+
var inheritIfRequired = __webpack_require__(62643);
|
|
3427
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
3428
|
+
var installErrorCause = __webpack_require__(10273);
|
|
3429
|
+
var installErrorStack = __webpack_require__(58266);
|
|
3430
|
+
var DESCRIPTORS = __webpack_require__(50069);
|
|
3431
|
+
var IS_PURE = __webpack_require__(85546);
|
|
3432
|
+
|
|
3433
|
+
module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3434
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
3435
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
3436
|
+
var path = FULL_NAME.split('.');
|
|
3437
|
+
var ERROR_NAME = path[path.length - 1];
|
|
3438
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
3439
|
+
|
|
3440
|
+
if (!OriginalError) return;
|
|
3441
|
+
|
|
3442
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
3443
|
+
|
|
3444
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
3445
|
+
if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
3446
|
+
|
|
3447
|
+
if (!FORCED) return OriginalError;
|
|
3448
|
+
|
|
3449
|
+
var BaseError = getBuiltIn('Error');
|
|
3450
|
+
|
|
3451
|
+
var WrappedError = wrapper(function (a, b) {
|
|
3452
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
3453
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
3454
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
3455
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
3456
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
3457
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
3458
|
+
return result;
|
|
3459
|
+
});
|
|
3460
|
+
|
|
3461
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
3462
|
+
|
|
3463
|
+
if (ERROR_NAME !== 'Error') {
|
|
3464
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3465
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
3466
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
3467
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3468
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
3472
|
+
|
|
3473
|
+
if (!IS_PURE) try {
|
|
3474
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
3475
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
3476
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
3477
|
+
}
|
|
3478
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
3479
|
+
} catch (error) { /* empty */ }
|
|
3480
|
+
|
|
3481
|
+
return WrappedError;
|
|
3482
|
+
};
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
/***/ }),
|
|
3486
|
+
|
|
3487
|
+
/***/ 84016:
|
|
3488
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3489
|
+
|
|
3490
|
+
var $ = __webpack_require__(93085);
|
|
3491
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
3492
|
+
var apply = __webpack_require__(86298);
|
|
3493
|
+
var fails = __webpack_require__(76192);
|
|
3494
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
3495
|
+
|
|
3496
|
+
var AGGREGATE_ERROR = 'AggregateError';
|
|
3497
|
+
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
|
|
3498
|
+
|
|
3499
|
+
var FORCED = !fails(function () {
|
|
3500
|
+
return $AggregateError([1]).errors[0] !== 1;
|
|
3501
|
+
}) && fails(function () {
|
|
3502
|
+
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
|
|
3503
|
+
});
|
|
3504
|
+
|
|
3505
|
+
// https://tc39.es/ecma262/#sec-aggregate-error
|
|
3506
|
+
$({ global: true, constructor: true, arity: 2, forced: FORCED }, {
|
|
3507
|
+
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
|
|
3508
|
+
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
|
|
3509
|
+
return function AggregateError(errors, message) { return apply(init, this, arguments); };
|
|
3510
|
+
}, FORCED, true)
|
|
3511
|
+
});
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
/***/ }),
|
|
3515
|
+
|
|
3516
|
+
/***/ 93820:
|
|
3517
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3518
|
+
|
|
3519
|
+
"use strict";
|
|
3520
|
+
|
|
3521
|
+
var $ = __webpack_require__(93085);
|
|
3522
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
3523
|
+
var getPrototypeOf = __webpack_require__(89341);
|
|
3524
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
3525
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
3526
|
+
var create = __webpack_require__(52853);
|
|
3527
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
3528
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
3529
|
+
var installErrorCause = __webpack_require__(10273);
|
|
3530
|
+
var installErrorStack = __webpack_require__(58266);
|
|
3531
|
+
var iterate = __webpack_require__(33442);
|
|
3532
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
3533
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
3534
|
+
|
|
3535
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
3536
|
+
var $Error = Error;
|
|
3537
|
+
var push = [].push;
|
|
3538
|
+
|
|
3539
|
+
var $AggregateError = function AggregateError(errors, message /* , options */) {
|
|
3540
|
+
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
|
|
3541
|
+
var that;
|
|
3542
|
+
if (setPrototypeOf) {
|
|
3543
|
+
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
|
|
3544
|
+
} else {
|
|
3545
|
+
that = isInstance ? this : create(AggregateErrorPrototype);
|
|
3546
|
+
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
3547
|
+
}
|
|
3548
|
+
if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
|
|
3549
|
+
installErrorStack(that, $AggregateError, that.stack, 1);
|
|
3550
|
+
if (arguments.length > 2) installErrorCause(that, arguments[2]);
|
|
3551
|
+
var errorsArray = [];
|
|
3552
|
+
iterate(errors, push, { that: errorsArray });
|
|
3553
|
+
createNonEnumerableProperty(that, 'errors', errorsArray);
|
|
3554
|
+
return that;
|
|
3555
|
+
};
|
|
3556
|
+
|
|
3557
|
+
if (setPrototypeOf) setPrototypeOf($AggregateError, $Error);
|
|
3558
|
+
else copyConstructorProperties($AggregateError, $Error, { name: true });
|
|
3559
|
+
|
|
3560
|
+
var AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {
|
|
3561
|
+
constructor: createPropertyDescriptor(1, $AggregateError),
|
|
3562
|
+
message: createPropertyDescriptor(1, ''),
|
|
3563
|
+
name: createPropertyDescriptor(1, 'AggregateError')
|
|
3564
|
+
});
|
|
3565
|
+
|
|
3566
|
+
// `AggregateError` constructor
|
|
3567
|
+
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
|
|
3568
|
+
$({ global: true, constructor: true, arity: 2 }, {
|
|
3569
|
+
AggregateError: $AggregateError
|
|
3570
|
+
});
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
/***/ }),
|
|
3574
|
+
|
|
3575
|
+
/***/ 4242:
|
|
3576
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3577
|
+
|
|
3578
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
3579
|
+
__webpack_require__(93820);
|
|
3580
|
+
|
|
3581
|
+
|
|
2855
3582
|
/***/ }),
|
|
2856
3583
|
|
|
2857
3584
|
/***/ 59106:
|
|
@@ -3027,6 +3754,69 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
|
3027
3754
|
// empty
|
|
3028
3755
|
|
|
3029
3756
|
|
|
3757
|
+
/***/ }),
|
|
3758
|
+
|
|
3759
|
+
/***/ 4339:
|
|
3760
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3761
|
+
|
|
3762
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3763
|
+
var $ = __webpack_require__(93085);
|
|
3764
|
+
var global = __webpack_require__(98576);
|
|
3765
|
+
var apply = __webpack_require__(86298);
|
|
3766
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
3767
|
+
|
|
3768
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
3769
|
+
var WebAssembly = global[WEB_ASSEMBLY];
|
|
3770
|
+
|
|
3771
|
+
var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
|
3772
|
+
|
|
3773
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3774
|
+
var O = {};
|
|
3775
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
3776
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3777
|
+
};
|
|
3778
|
+
|
|
3779
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3780
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3781
|
+
var O = {};
|
|
3782
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
3783
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3784
|
+
}
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
3788
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
3789
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
3790
|
+
});
|
|
3791
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
3792
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
3793
|
+
});
|
|
3794
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
3795
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
3796
|
+
});
|
|
3797
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
3798
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
3799
|
+
});
|
|
3800
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
3801
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
3802
|
+
});
|
|
3803
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
3804
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
3805
|
+
});
|
|
3806
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
3807
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
3808
|
+
});
|
|
3809
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
3810
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
3811
|
+
});
|
|
3812
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
3813
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
3814
|
+
});
|
|
3815
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
3816
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3817
|
+
});
|
|
3818
|
+
|
|
3819
|
+
|
|
3030
3820
|
/***/ }),
|
|
3031
3821
|
|
|
3032
3822
|
/***/ 59704:
|
|
@@ -3747,6 +4537,15 @@ var defineWellKnownSymbol = __webpack_require__(48332);
|
|
|
3747
4537
|
defineWellKnownSymbol('unscopables');
|
|
3748
4538
|
|
|
3749
4539
|
|
|
4540
|
+
/***/ }),
|
|
4541
|
+
|
|
4542
|
+
/***/ 12752:
|
|
4543
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
4544
|
+
|
|
4545
|
+
// TODO: Remove from `core-js@4`
|
|
4546
|
+
__webpack_require__(4242);
|
|
4547
|
+
|
|
4548
|
+
|
|
3750
4549
|
/***/ }),
|
|
3751
4550
|
|
|
3752
4551
|
/***/ 17148:
|
|
@@ -3951,6 +4750,20 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
3951
4750
|
}
|
|
3952
4751
|
|
|
3953
4752
|
|
|
4753
|
+
/***/ }),
|
|
4754
|
+
|
|
4755
|
+
/***/ 35846:
|
|
4756
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4757
|
+
|
|
4758
|
+
// TODO: remove from `core-js@4`
|
|
4759
|
+
__webpack_require__(12752);
|
|
4760
|
+
|
|
4761
|
+
var parent = __webpack_require__(56791);
|
|
4762
|
+
__webpack_require__(80162);
|
|
4763
|
+
|
|
4764
|
+
module.exports = parent;
|
|
4765
|
+
|
|
4766
|
+
|
|
3954
4767
|
/***/ }),
|
|
3955
4768
|
|
|
3956
4769
|
/***/ 26174:
|
|
@@ -10636,8 +11449,12 @@ var trimCharsStart = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.curry)(function (char
|
|
|
10636
11449
|
/***/ 68322:
|
|
10637
11450
|
/***/ ((module) => {
|
|
10638
11451
|
|
|
11452
|
+
"use strict";
|
|
11453
|
+
|
|
10639
11454
|
var ShortUniqueId = (() => {
|
|
10640
11455
|
var __defProp = Object.defineProperty;
|
|
11456
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11457
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10641
11458
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10642
11459
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10643
11460
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -10653,22 +11470,34 @@ var ShortUniqueId = (() => {
|
|
|
10653
11470
|
}
|
|
10654
11471
|
return a;
|
|
10655
11472
|
};
|
|
10656
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
10657
11473
|
var __export = (target, all) => {
|
|
10658
|
-
__markAsModule(target);
|
|
10659
11474
|
for (var name in all)
|
|
10660
11475
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10661
11476
|
};
|
|
11477
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11478
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11479
|
+
for (let key of __getOwnPropNames(from))
|
|
11480
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
11481
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11482
|
+
}
|
|
11483
|
+
return to;
|
|
11484
|
+
};
|
|
11485
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
11486
|
+
var __publicField = (obj, key, value) => {
|
|
11487
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11488
|
+
return value;
|
|
11489
|
+
};
|
|
10662
11490
|
|
|
10663
11491
|
// src/index.ts
|
|
10664
11492
|
var src_exports = {};
|
|
10665
11493
|
__export(src_exports, {
|
|
11494
|
+
DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
|
|
10666
11495
|
DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
|
|
10667
11496
|
default: () => ShortUniqueId
|
|
10668
11497
|
});
|
|
10669
11498
|
|
|
10670
11499
|
// package.json
|
|
10671
|
-
var version = "
|
|
11500
|
+
var version = "5.0.2";
|
|
10672
11501
|
|
|
10673
11502
|
// src/index.ts
|
|
10674
11503
|
var DEFAULT_UUID_LENGTH = 6;
|
|
@@ -10676,54 +11505,70 @@ var ShortUniqueId = (() => {
|
|
|
10676
11505
|
dictionary: "alphanum",
|
|
10677
11506
|
shuffle: true,
|
|
10678
11507
|
debug: false,
|
|
10679
|
-
length: DEFAULT_UUID_LENGTH
|
|
11508
|
+
length: DEFAULT_UUID_LENGTH,
|
|
11509
|
+
counter: 0
|
|
10680
11510
|
};
|
|
10681
|
-
var _ShortUniqueId = class
|
|
11511
|
+
var _ShortUniqueId = class _ShortUniqueId {
|
|
10682
11512
|
constructor(argOptions = {}) {
|
|
10683
|
-
|
|
10684
|
-
this
|
|
10685
|
-
this
|
|
10686
|
-
this
|
|
10687
|
-
this
|
|
10688
|
-
this
|
|
10689
|
-
this
|
|
10690
|
-
this
|
|
10691
|
-
this
|
|
10692
|
-
this
|
|
10693
|
-
this
|
|
10694
|
-
this
|
|
10695
|
-
this
|
|
10696
|
-
this
|
|
11513
|
+
__publicField(this, "counter");
|
|
11514
|
+
__publicField(this, "debug");
|
|
11515
|
+
__publicField(this, "dict");
|
|
11516
|
+
__publicField(this, "version");
|
|
11517
|
+
__publicField(this, "dictIndex", 0);
|
|
11518
|
+
__publicField(this, "dictRange", []);
|
|
11519
|
+
__publicField(this, "lowerBound", 0);
|
|
11520
|
+
__publicField(this, "upperBound", 0);
|
|
11521
|
+
__publicField(this, "dictLength", 0);
|
|
11522
|
+
__publicField(this, "uuidLength");
|
|
11523
|
+
__publicField(this, "_digit_first_ascii", 48);
|
|
11524
|
+
__publicField(this, "_digit_last_ascii", 58);
|
|
11525
|
+
__publicField(this, "_alpha_lower_first_ascii", 97);
|
|
11526
|
+
__publicField(this, "_alpha_lower_last_ascii", 123);
|
|
11527
|
+
__publicField(this, "_hex_last_ascii", 103);
|
|
11528
|
+
__publicField(this, "_alpha_upper_first_ascii", 65);
|
|
11529
|
+
__publicField(this, "_alpha_upper_last_ascii", 91);
|
|
11530
|
+
__publicField(this, "_number_dict_ranges", {
|
|
10697
11531
|
digits: [this._digit_first_ascii, this._digit_last_ascii]
|
|
10698
|
-
};
|
|
10699
|
-
this
|
|
11532
|
+
});
|
|
11533
|
+
__publicField(this, "_alpha_dict_ranges", {
|
|
10700
11534
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
10701
11535
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10702
|
-
};
|
|
10703
|
-
this
|
|
11536
|
+
});
|
|
11537
|
+
__publicField(this, "_alpha_lower_dict_ranges", {
|
|
10704
11538
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
10705
|
-
};
|
|
10706
|
-
this
|
|
11539
|
+
});
|
|
11540
|
+
__publicField(this, "_alpha_upper_dict_ranges", {
|
|
10707
11541
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10708
|
-
};
|
|
10709
|
-
this
|
|
11542
|
+
});
|
|
11543
|
+
__publicField(this, "_alphanum_dict_ranges", {
|
|
10710
11544
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10711
11545
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
10712
11546
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10713
|
-
};
|
|
10714
|
-
this
|
|
11547
|
+
});
|
|
11548
|
+
__publicField(this, "_alphanum_lower_dict_ranges", {
|
|
10715
11549
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10716
11550
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
10717
|
-
};
|
|
10718
|
-
this
|
|
11551
|
+
});
|
|
11552
|
+
__publicField(this, "_alphanum_upper_dict_ranges", {
|
|
10719
11553
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10720
11554
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10721
|
-
};
|
|
10722
|
-
this
|
|
11555
|
+
});
|
|
11556
|
+
__publicField(this, "_hex_dict_ranges", {
|
|
10723
11557
|
decDigits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10724
11558
|
alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
|
|
10725
|
-
};
|
|
10726
|
-
this
|
|
11559
|
+
});
|
|
11560
|
+
__publicField(this, "_dict_ranges", {
|
|
11561
|
+
_number_dict_ranges: this._number_dict_ranges,
|
|
11562
|
+
_alpha_dict_ranges: this._alpha_dict_ranges,
|
|
11563
|
+
_alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
|
|
11564
|
+
_alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
|
|
11565
|
+
_alphanum_dict_ranges: this._alphanum_dict_ranges,
|
|
11566
|
+
_alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
|
|
11567
|
+
_alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
|
|
11568
|
+
_hex_dict_ranges: this._hex_dict_ranges
|
|
11569
|
+
});
|
|
11570
|
+
/* tslint:disable consistent-return */
|
|
11571
|
+
__publicField(this, "log", (...args) => {
|
|
10727
11572
|
const finalArgs = [...args];
|
|
10728
11573
|
finalArgs[0] = `[short-unique-id] ${args[0]}`;
|
|
10729
11574
|
if (this.debug === true) {
|
|
@@ -10731,8 +11576,10 @@ var ShortUniqueId = (() => {
|
|
|
10731
11576
|
return console.log(...finalArgs);
|
|
10732
11577
|
}
|
|
10733
11578
|
}
|
|
10734
|
-
};
|
|
10735
|
-
|
|
11579
|
+
});
|
|
11580
|
+
/* tslint:enable consistent-return */
|
|
11581
|
+
/** Change the dictionary after initialization. */
|
|
11582
|
+
__publicField(this, "setDictionary", (dictionary, shuffle) => {
|
|
10736
11583
|
let finalDict;
|
|
10737
11584
|
if (dictionary && Array.isArray(dictionary) && dictionary.length > 1) {
|
|
10738
11585
|
finalDict = dictionary;
|
|
@@ -10741,7 +11588,7 @@ var ShortUniqueId = (() => {
|
|
|
10741
11588
|
let i;
|
|
10742
11589
|
this.dictIndex = i = 0;
|
|
10743
11590
|
const rangesName = `_${dictionary}_dict_ranges`;
|
|
10744
|
-
const ranges = this[rangesName];
|
|
11591
|
+
const ranges = this._dict_ranges[rangesName];
|
|
10745
11592
|
Object.keys(ranges).forEach((rangeType) => {
|
|
10746
11593
|
const rangeTypeKey = rangeType;
|
|
10747
11594
|
this.dictRange = ranges[rangeTypeKey];
|
|
@@ -10758,12 +11605,16 @@ var ShortUniqueId = (() => {
|
|
|
10758
11605
|
}
|
|
10759
11606
|
this.dict = finalDict;
|
|
10760
11607
|
this.dictLength = this.dict.length;
|
|
10761
|
-
this.
|
|
10762
|
-
};
|
|
10763
|
-
this
|
|
11608
|
+
this.setCounter(0);
|
|
11609
|
+
});
|
|
11610
|
+
__publicField(this, "seq", () => {
|
|
10764
11611
|
return this.sequentialUUID();
|
|
10765
|
-
};
|
|
10766
|
-
|
|
11612
|
+
});
|
|
11613
|
+
/**
|
|
11614
|
+
* Generates UUID based on internal counter that's incremented after each ID generation.
|
|
11615
|
+
* @alias `const uid = new ShortUniqueId(); uid.seq();`
|
|
11616
|
+
*/
|
|
11617
|
+
__publicField(this, "sequentialUUID", () => {
|
|
10767
11618
|
let counterDiv;
|
|
10768
11619
|
let counterRem;
|
|
10769
11620
|
let id = "";
|
|
@@ -10775,8 +11626,15 @@ var ShortUniqueId = (() => {
|
|
|
10775
11626
|
} while (counterDiv !== 0);
|
|
10776
11627
|
this.counter += 1;
|
|
10777
11628
|
return id;
|
|
10778
|
-
};
|
|
10779
|
-
this
|
|
11629
|
+
});
|
|
11630
|
+
__publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
11631
|
+
return this.randomUUID(uuidLength);
|
|
11632
|
+
});
|
|
11633
|
+
/**
|
|
11634
|
+
* Generates UUID by creating each part randomly.
|
|
11635
|
+
* @alias `const uid = new ShortUniqueId(); uid.rnd(uuidLength: number);`
|
|
11636
|
+
*/
|
|
11637
|
+
__publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
10780
11638
|
let id;
|
|
10781
11639
|
let randomPartIdx;
|
|
10782
11640
|
let j;
|
|
@@ -10786,44 +11644,234 @@ var ShortUniqueId = (() => {
|
|
|
10786
11644
|
const isPositive = uuidLength >= 0;
|
|
10787
11645
|
id = "";
|
|
10788
11646
|
for (j = 0; j < uuidLength; j += 1) {
|
|
10789
|
-
randomPartIdx = parseInt(
|
|
11647
|
+
randomPartIdx = parseInt(
|
|
11648
|
+
(Math.random() * this.dictLength).toFixed(0),
|
|
11649
|
+
10
|
|
11650
|
+
) % this.dictLength;
|
|
10790
11651
|
id += this.dict[randomPartIdx];
|
|
10791
11652
|
}
|
|
10792
11653
|
return id;
|
|
10793
|
-
};
|
|
10794
|
-
this
|
|
10795
|
-
return
|
|
10796
|
-
};
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
11654
|
+
});
|
|
11655
|
+
__publicField(this, "fmt", (format, date) => {
|
|
11656
|
+
return this.formattedUUID(format, date);
|
|
11657
|
+
});
|
|
11658
|
+
/**
|
|
11659
|
+
* Generates custom UUID with the provided format string.
|
|
11660
|
+
* @alias `const uid = new ShortUniqueId(); uid.fmt(format: string);`
|
|
11661
|
+
*/
|
|
11662
|
+
__publicField(this, "formattedUUID", (format, date) => {
|
|
11663
|
+
const fnMap = {
|
|
11664
|
+
"$r": this.randomUUID,
|
|
11665
|
+
"$s": this.sequentialUUID,
|
|
11666
|
+
"$t": this.stamp
|
|
11667
|
+
};
|
|
11668
|
+
const result = format.replace(
|
|
11669
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
11670
|
+
(m) => {
|
|
11671
|
+
const fn = m.slice(0, 2);
|
|
11672
|
+
const len = parseInt(m.slice(2), 10);
|
|
11673
|
+
if (fn === "$s") {
|
|
11674
|
+
return fnMap[fn]().padStart(len, "0");
|
|
11675
|
+
}
|
|
11676
|
+
if (fn === "$t" && date) {
|
|
11677
|
+
return fnMap[fn](len, date);
|
|
11678
|
+
}
|
|
11679
|
+
return fnMap[fn](len);
|
|
11680
|
+
}
|
|
11681
|
+
);
|
|
11682
|
+
return result;
|
|
11683
|
+
});
|
|
11684
|
+
/**
|
|
11685
|
+
* Calculates total number of possible UUIDs.
|
|
11686
|
+
*
|
|
11687
|
+
* Given that:
|
|
11688
|
+
*
|
|
11689
|
+
* - `H` is the total number of possible UUIDs
|
|
11690
|
+
* - `n` is the number of unique characters in the dictionary
|
|
11691
|
+
* - `l` is the UUID length
|
|
11692
|
+
*
|
|
11693
|
+
* Then `H` is defined as `n` to the power of `l`:
|
|
11694
|
+
*
|
|
11695
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11696
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20H=n%5El"/>
|
|
11697
|
+
* </div>
|
|
11698
|
+
*
|
|
11699
|
+
* This function returns `H`.
|
|
11700
|
+
*/
|
|
11701
|
+
__publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
|
|
11702
|
+
return parseFloat(
|
|
11703
|
+
Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
|
|
11704
|
+
);
|
|
11705
|
+
});
|
|
11706
|
+
/**
|
|
11707
|
+
* Calculates approximate number of hashes before first collision.
|
|
11708
|
+
*
|
|
11709
|
+
* Given that:
|
|
11710
|
+
*
|
|
11711
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11712
|
+
* the result of running `availableUUIDs()`
|
|
11713
|
+
* - the expected number of values we have to choose before finding the
|
|
11714
|
+
* first collision can be expressed as the quantity `Q(H)`
|
|
11715
|
+
*
|
|
11716
|
+
* Then `Q(H)` can be approximated as the square root of the product of half
|
|
11717
|
+
* of pi times `H`:
|
|
11718
|
+
*
|
|
11719
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11720
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20Q(H)%5Capprox%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7DH%7D"/>
|
|
11721
|
+
* </div>
|
|
11722
|
+
*
|
|
11723
|
+
* This function returns `Q(H)`.
|
|
11724
|
+
*
|
|
11725
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
11726
|
+
*/
|
|
11727
|
+
__publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
11728
|
+
return parseFloat(
|
|
11729
|
+
Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
|
|
11730
|
+
);
|
|
11731
|
+
});
|
|
11732
|
+
/**
|
|
11733
|
+
* Calculates probability of generating duplicate UUIDs (a collision) in a
|
|
11734
|
+
* given number of UUID generation rounds.
|
|
11735
|
+
*
|
|
11736
|
+
* Given that:
|
|
11737
|
+
*
|
|
11738
|
+
* - `r` is the maximum number of times that `randomUUID()` will be called,
|
|
11739
|
+
* or better said the number of _rounds_
|
|
11740
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11741
|
+
* the result of running `availableUUIDs()`
|
|
11742
|
+
*
|
|
11743
|
+
* Then the probability of collision `p(r; H)` can be approximated as the result
|
|
11744
|
+
* of dividing the square root of the product of half of pi times `r` by `H`:
|
|
11745
|
+
*
|
|
11746
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11747
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20p(r%3B%20H)%5Capprox%5Cfrac%7B%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7Dr%7D%7D%7BH%7D"/>
|
|
11748
|
+
* </div>
|
|
11749
|
+
*
|
|
11750
|
+
* This function returns `p(r; H)`.
|
|
11751
|
+
*
|
|
11752
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
11753
|
+
*
|
|
11754
|
+
* (Useful if you are wondering _"If I use this lib and expect to perform at most
|
|
11755
|
+
* `r` rounds of UUID generations, what is the probability that I will hit a duplicate UUID?"_.)
|
|
11756
|
+
*/
|
|
11757
|
+
__publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
|
|
11758
|
+
return parseFloat(
|
|
11759
|
+
(this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
|
|
11760
|
+
);
|
|
11761
|
+
});
|
|
11762
|
+
/**
|
|
11763
|
+
* Calculate a "uniqueness" score (from 0 to 1) of UUIDs based on size of
|
|
11764
|
+
* dictionary and chosen UUID length.
|
|
11765
|
+
*
|
|
11766
|
+
* Given that:
|
|
11767
|
+
*
|
|
11768
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11769
|
+
* the result of running `availableUUIDs()`
|
|
11770
|
+
* - `Q(H)` is the approximate number of hashes before first collision,
|
|
11771
|
+
* or in terms of this library, the result of running `approxMaxBeforeCollision()`
|
|
11772
|
+
*
|
|
11773
|
+
* Then `uniqueness` can be expressed as the additive inverse of the probability of
|
|
11774
|
+
* generating a "word" I had previously generated (a duplicate) at any given iteration
|
|
11775
|
+
* up to the the total number of possible UUIDs expressed as the quotiend of `Q(H)` and `H`:
|
|
11776
|
+
*
|
|
11777
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11778
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%201-%5Cfrac%7BQ(H)%7D%7BH%7D"/>
|
|
11779
|
+
* </div>
|
|
11780
|
+
*
|
|
11781
|
+
* (Useful if you need a value to rate the "quality" of the combination of given dictionary
|
|
11782
|
+
* and UUID length. The closer to 1, higher the uniqueness and thus better the quality.)
|
|
11783
|
+
*/
|
|
11784
|
+
__publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
11785
|
+
const score = parseFloat(
|
|
11786
|
+
(1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
|
|
11787
|
+
);
|
|
10805
11788
|
return score > 1 ? 1 : score < 0 ? 0 : score;
|
|
10806
|
-
};
|
|
10807
|
-
|
|
11789
|
+
});
|
|
11790
|
+
/**
|
|
11791
|
+
* Return the version of this module.
|
|
11792
|
+
*/
|
|
11793
|
+
__publicField(this, "getVersion", () => {
|
|
10808
11794
|
return this.version;
|
|
10809
|
-
};
|
|
10810
|
-
|
|
11795
|
+
});
|
|
11796
|
+
/**
|
|
11797
|
+
* Generates a UUID with a timestamp that can be extracted using `uid.parseStamp(stampString);`.
|
|
11798
|
+
*
|
|
11799
|
+
* ```js
|
|
11800
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
11801
|
+
* console.log(uidWithTimestamp);
|
|
11802
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
11803
|
+
*
|
|
11804
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
11805
|
+
* // 2021-05-03T06:24:58.000Z
|
|
11806
|
+
* ```
|
|
11807
|
+
*/
|
|
11808
|
+
__publicField(this, "stamp", (finalLength, date) => {
|
|
11809
|
+
const hexStamp = Math.floor(+(date || /* @__PURE__ */ new Date()) / 1e3).toString(16);
|
|
11810
|
+
if (typeof finalLength === "number" && finalLength === 0) {
|
|
11811
|
+
return hexStamp;
|
|
11812
|
+
}
|
|
10811
11813
|
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
10812
|
-
throw new Error(
|
|
11814
|
+
throw new Error(
|
|
11815
|
+
[
|
|
11816
|
+
"Param finalLength must be a number greater than or equal to 10,",
|
|
11817
|
+
"or 0 if you want the raw hexadecimal timestamp"
|
|
11818
|
+
].join("\n")
|
|
11819
|
+
);
|
|
10813
11820
|
}
|
|
10814
|
-
const hexStamp = Math.floor(+new Date() / 1e3).toString(16);
|
|
10815
11821
|
const idLength = finalLength - 9;
|
|
10816
11822
|
const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
10817
11823
|
const id = this.randomUUID(idLength);
|
|
10818
|
-
return `${id.
|
|
10819
|
-
};
|
|
10820
|
-
|
|
11824
|
+
return `${id.substring(0, rndIdx)}${hexStamp}${id.substring(rndIdx)}${rndIdx.toString(16)}`;
|
|
11825
|
+
});
|
|
11826
|
+
/**
|
|
11827
|
+
* Extracts the date embeded in a UUID generated using the `uid.stamp(finalLength);` method.
|
|
11828
|
+
*
|
|
11829
|
+
* ```js
|
|
11830
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
11831
|
+
* console.log(uidWithTimestamp);
|
|
11832
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
11833
|
+
*
|
|
11834
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
11835
|
+
* // 2021-05-03T06:24:58.000Z
|
|
11836
|
+
* ```
|
|
11837
|
+
*/
|
|
11838
|
+
__publicField(this, "parseStamp", (suid, format) => {
|
|
11839
|
+
if (format && !/t0|t[1-9]\d{1,}/.test(format)) {
|
|
11840
|
+
throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
|
|
11841
|
+
}
|
|
11842
|
+
const stamp = format ? format.replace(
|
|
11843
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
11844
|
+
(m) => {
|
|
11845
|
+
const fnMap = {
|
|
11846
|
+
"$r": (len2) => [...Array(len2)].map(() => "r").join(""),
|
|
11847
|
+
"$s": (len2) => [...Array(len2)].map(() => "s").join(""),
|
|
11848
|
+
"$t": (len2) => [...Array(len2)].map(() => "t").join("")
|
|
11849
|
+
};
|
|
11850
|
+
const fn = m.slice(0, 2);
|
|
11851
|
+
const len = parseInt(m.slice(2), 10);
|
|
11852
|
+
return fnMap[fn](len);
|
|
11853
|
+
}
|
|
11854
|
+
).replace(
|
|
11855
|
+
/^(.*?)(t{8,})(.*)$/g,
|
|
11856
|
+
(_m, p1, p2) => {
|
|
11857
|
+
return suid.substring(p1.length, p1.length + p2.length);
|
|
11858
|
+
}
|
|
11859
|
+
) : suid;
|
|
11860
|
+
if (stamp.length === 8) {
|
|
11861
|
+
return new Date(parseInt(stamp, 16) * 1e3);
|
|
11862
|
+
}
|
|
10821
11863
|
if (stamp.length < 10) {
|
|
10822
11864
|
throw new Error("Stamp length invalid");
|
|
10823
11865
|
}
|
|
10824
|
-
const rndIdx = parseInt(stamp.
|
|
10825
|
-
return new Date(parseInt(stamp.
|
|
10826
|
-
};
|
|
11866
|
+
const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
|
|
11867
|
+
return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
|
|
11868
|
+
});
|
|
11869
|
+
/**
|
|
11870
|
+
* Set the counter to a specific value.
|
|
11871
|
+
*/
|
|
11872
|
+
__publicField(this, "setCounter", (counter) => {
|
|
11873
|
+
this.counter = counter;
|
|
11874
|
+
});
|
|
10827
11875
|
const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
10828
11876
|
this.counter = 0;
|
|
10829
11877
|
this.debug = false;
|
|
@@ -10832,21 +11880,40 @@ var ShortUniqueId = (() => {
|
|
|
10832
11880
|
const {
|
|
10833
11881
|
dictionary,
|
|
10834
11882
|
shuffle,
|
|
10835
|
-
length
|
|
11883
|
+
length,
|
|
11884
|
+
counter
|
|
10836
11885
|
} = options;
|
|
10837
11886
|
this.uuidLength = length;
|
|
10838
11887
|
this.setDictionary(dictionary, shuffle);
|
|
11888
|
+
this.setCounter(counter);
|
|
10839
11889
|
this.debug = options.debug;
|
|
10840
11890
|
this.log(this.dict);
|
|
10841
|
-
this.log(
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
11891
|
+
this.log(
|
|
11892
|
+
`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
|
|
11893
|
+
);
|
|
11894
|
+
this.log = this.log.bind(this);
|
|
11895
|
+
this.setDictionary = this.setDictionary.bind(this);
|
|
11896
|
+
this.setCounter = this.setCounter.bind(this);
|
|
11897
|
+
this.seq = this.seq.bind(this);
|
|
11898
|
+
this.sequentialUUID = this.sequentialUUID.bind(this);
|
|
11899
|
+
this.rnd = this.rnd.bind(this);
|
|
11900
|
+
this.randomUUID = this.randomUUID.bind(this);
|
|
11901
|
+
this.fmt = this.fmt.bind(this);
|
|
11902
|
+
this.formattedUUID = this.formattedUUID.bind(this);
|
|
11903
|
+
this.availableUUIDs = this.availableUUIDs.bind(this);
|
|
11904
|
+
this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
|
|
11905
|
+
this.collisionProbability = this.collisionProbability.bind(this);
|
|
11906
|
+
this.uniqueness = this.uniqueness.bind(this);
|
|
11907
|
+
this.getVersion = this.getVersion.bind(this);
|
|
11908
|
+
this.stamp = this.stamp.bind(this);
|
|
11909
|
+
this.parseStamp = this.parseStamp.bind(this);
|
|
11910
|
+
return this;
|
|
10845
11911
|
}
|
|
10846
11912
|
};
|
|
11913
|
+
/** @hidden */
|
|
11914
|
+
__publicField(_ShortUniqueId, "default", _ShortUniqueId);
|
|
10847
11915
|
var ShortUniqueId = _ShortUniqueId;
|
|
10848
|
-
|
|
10849
|
-
return src_exports;
|
|
11916
|
+
return __toCommonJS(src_exports);
|
|
10850
11917
|
})();
|
|
10851
11918
|
//# sourceMappingURL=short-unique-id.js.map
|
|
10852
11919
|
true&&(module.exports=ShortUniqueId.default),'undefined'!=typeof window&&(ShortUniqueId=ShortUniqueId.default);
|
|
@@ -10860,6 +11927,13 @@ var ShortUniqueId = (() => {
|
|
|
10860
11927
|
|
|
10861
11928
|
/***/ }),
|
|
10862
11929
|
|
|
11930
|
+
/***/ 21427:
|
|
11931
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
11932
|
+
|
|
11933
|
+
module.exports = __webpack_require__(36762);
|
|
11934
|
+
|
|
11935
|
+
/***/ }),
|
|
11936
|
+
|
|
10863
11937
|
/***/ 28936:
|
|
10864
11938
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
10865
11939
|
|
|
@@ -11004,14 +12078,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11004
12078
|
/* harmony import */ var core_js_pure_features_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39982);
|
|
11005
12079
|
|
|
11006
12080
|
|
|
11007
|
-
function _typeof(
|
|
12081
|
+
function _typeof(o) {
|
|
11008
12082
|
"@babel/helpers - typeof";
|
|
11009
12083
|
|
|
11010
|
-
return _typeof = "function" == typeof core_js_pure_features_symbol_index_js__WEBPACK_IMPORTED_MODULE_0__ && "symbol" == typeof core_js_pure_features_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_1__ ? function (
|
|
11011
|
-
return typeof
|
|
11012
|
-
} : function (
|
|
11013
|
-
return
|
|
11014
|
-
}, _typeof(
|
|
12084
|
+
return _typeof = "function" == typeof core_js_pure_features_symbol_index_js__WEBPACK_IMPORTED_MODULE_0__ && "symbol" == typeof core_js_pure_features_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_1__ ? function (o) {
|
|
12085
|
+
return typeof o;
|
|
12086
|
+
} : function (o) {
|
|
12087
|
+
return o && "function" == typeof core_js_pure_features_symbol_index_js__WEBPACK_IMPORTED_MODULE_0__ && o.constructor === core_js_pure_features_symbol_index_js__WEBPACK_IMPORTED_MODULE_0__ && o !== core_js_pure_features_symbol_index_js__WEBPACK_IMPORTED_MODULE_0__.prototype ? "symbol" : typeof o;
|
|
12088
|
+
}, _typeof(o);
|
|
11015
12089
|
}
|
|
11016
12090
|
|
|
11017
12091
|
/***/ }),
|
|
@@ -11029,6 +12103,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11029
12103
|
/* harmony export */ mergeAll: () => (/* binding */ mergeAll),
|
|
11030
12104
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
11031
12105
|
/* harmony export */ });
|
|
12106
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84401);
|
|
12107
|
+
|
|
12108
|
+
|
|
11032
12109
|
/**
|
|
11033
12110
|
* SPDX-FileCopyrightText: Copyright (c) GraphQL Contributors
|
|
11034
12111
|
*
|
|
@@ -11297,7 +12374,7 @@ visitor, {
|
|
|
11297
12374
|
let result;
|
|
11298
12375
|
if (!Array.isArray(node)) {
|
|
11299
12376
|
if (!nodePredicate(node)) {
|
|
11300
|
-
throw new
|
|
12377
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${JSON.stringify(node)}`);
|
|
11301
12378
|
}
|
|
11302
12379
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
11303
12380
|
if (detectCycles && ancestors.includes(node)) {
|
|
@@ -11446,7 +12523,7 @@ visitor, {
|
|
|
11446
12523
|
let result;
|
|
11447
12524
|
if (!Array.isArray(node)) {
|
|
11448
12525
|
if (!nodePredicate(node)) {
|
|
11449
|
-
throw new
|
|
12526
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${JSON.stringify(node)}`);
|
|
11450
12527
|
}
|
|
11451
12528
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
11452
12529
|
if (detectCycles && ancestors.includes(node)) {
|
|
@@ -11527,26 +12604,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11527
12604
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
11528
12605
|
/* harmony import */ var _predicates_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77134);
|
|
11529
12606
|
|
|
11530
|
-
function ownKeys(
|
|
11531
|
-
var
|
|
12607
|
+
function ownKeys(e, r) {
|
|
12608
|
+
var t = Object.keys(e);
|
|
11532
12609
|
if (Object.getOwnPropertySymbols) {
|
|
11533
|
-
var
|
|
11534
|
-
|
|
11535
|
-
return Object.getOwnPropertyDescriptor(
|
|
11536
|
-
})),
|
|
12610
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
12611
|
+
r && (o = o.filter(function (r) {
|
|
12612
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
12613
|
+
})), t.push.apply(t, o);
|
|
11537
12614
|
}
|
|
11538
|
-
return
|
|
12615
|
+
return t;
|
|
11539
12616
|
}
|
|
11540
|
-
function _objectSpread(
|
|
11541
|
-
for (var
|
|
11542
|
-
var
|
|
11543
|
-
|
|
11544
|
-
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
11545
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
11546
|
-
Object.defineProperty(
|
|
12617
|
+
function _objectSpread(e) {
|
|
12618
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12619
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
12620
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
12621
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
|
|
12622
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
12623
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
11547
12624
|
});
|
|
11548
12625
|
}
|
|
11549
|
-
return
|
|
12626
|
+
return e;
|
|
11550
12627
|
}
|
|
11551
12628
|
|
|
11552
12629
|
|
|
@@ -11619,7 +12696,7 @@ function deepmerge(targetElement, sourceElement, options) {
|
|
|
11619
12696
|
}
|
|
11620
12697
|
deepmerge.all = (list, options) => {
|
|
11621
12698
|
if (!Array.isArray(list)) {
|
|
11622
|
-
throw new
|
|
12699
|
+
throw new TypeError('First argument should be an array.');
|
|
11623
12700
|
}
|
|
11624
12701
|
if (list.length === 0) {
|
|
11625
12702
|
return new minim__WEBPACK_IMPORTED_MODULE_1__.ObjectElement();
|
|
@@ -11960,6 +13037,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11960
13037
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11961
13038
|
/* harmony export */ });
|
|
11962
13039
|
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28936);
|
|
13040
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60279);
|
|
13041
|
+
|
|
11963
13042
|
|
|
11964
13043
|
class MediaTypes extends Array {
|
|
11965
13044
|
constructor(...args) {
|
|
@@ -11968,17 +13047,17 @@ class MediaTypes extends Array {
|
|
|
11968
13047
|
}
|
|
11969
13048
|
// eslint-disable-next-line class-methods-use-this
|
|
11970
13049
|
filterByFormat() {
|
|
11971
|
-
throw new
|
|
13050
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_1__["default"]('"filterByFormat" method is not implemented.');
|
|
11972
13051
|
}
|
|
11973
13052
|
|
|
11974
13053
|
// eslint-disable-next-line class-methods-use-this
|
|
11975
13054
|
findBy() {
|
|
11976
|
-
throw new
|
|
13055
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_1__["default"]('"findBy" method is not implemented.');
|
|
11977
13056
|
}
|
|
11978
13057
|
|
|
11979
13058
|
// eslint-disable-next-line class-methods-use-this
|
|
11980
13059
|
latest() {
|
|
11981
|
-
throw new
|
|
13060
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_1__["default"]('"latest" method is not implemented.');
|
|
11982
13061
|
}
|
|
11983
13062
|
}
|
|
11984
13063
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MediaTypes);
|
|
@@ -12236,26 +13315,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12236
13315
|
/* harmony import */ var _traversal_visitor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47548);
|
|
12237
13316
|
/* harmony import */ var _toolbox_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9709);
|
|
12238
13317
|
|
|
12239
|
-
function ownKeys(
|
|
12240
|
-
var
|
|
13318
|
+
function ownKeys(e, r) {
|
|
13319
|
+
var t = Object.keys(e);
|
|
12241
13320
|
if (Object.getOwnPropertySymbols) {
|
|
12242
|
-
var
|
|
12243
|
-
|
|
12244
|
-
return Object.getOwnPropertyDescriptor(
|
|
12245
|
-
})),
|
|
13321
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
13322
|
+
r && (o = o.filter(function (r) {
|
|
13323
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
13324
|
+
})), t.push.apply(t, o);
|
|
12246
13325
|
}
|
|
12247
|
-
return
|
|
13326
|
+
return t;
|
|
12248
13327
|
}
|
|
12249
|
-
function _objectSpread(
|
|
12250
|
-
for (var
|
|
12251
|
-
var
|
|
12252
|
-
|
|
12253
|
-
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
12254
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
12255
|
-
Object.defineProperty(
|
|
13328
|
+
function _objectSpread(e) {
|
|
13329
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
13330
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
13331
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
13332
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
|
|
13333
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
13334
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
12256
13335
|
});
|
|
12257
13336
|
}
|
|
12258
|
-
return
|
|
13337
|
+
return e;
|
|
12259
13338
|
}
|
|
12260
13339
|
|
|
12261
13340
|
|
|
@@ -12299,7 +13378,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12299
13378
|
/* harmony export */ });
|
|
12300
13379
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
12301
13380
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
12302
|
-
// @ts-ignore
|
|
12303
13381
|
|
|
12304
13382
|
|
|
12305
13383
|
|
|
@@ -12320,7 +13398,7 @@ const plugin = ({
|
|
|
12320
13398
|
visitor: {
|
|
12321
13399
|
enter(element) {
|
|
12322
13400
|
// eslint-disable-next-line no-param-reassign
|
|
12323
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
13401
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
12324
13402
|
}
|
|
12325
13403
|
},
|
|
12326
13404
|
post() {
|
|
@@ -12342,7 +13420,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12342
13420
|
/* harmony export */ });
|
|
12343
13421
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
12344
13422
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
12345
|
-
// @ts-ignore
|
|
12346
13423
|
|
|
12347
13424
|
|
|
12348
13425
|
|
|
@@ -12366,7 +13443,7 @@ const plugin = ({
|
|
|
12366
13443
|
enter(element) {
|
|
12367
13444
|
if (!predicates.isPrimitiveElement(element)) {
|
|
12368
13445
|
// eslint-disable-next-line no-param-reassign
|
|
12369
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
13446
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
12370
13447
|
}
|
|
12371
13448
|
}
|
|
12372
13449
|
},
|
|
@@ -12473,26 +13550,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12473
13550
|
/* harmony import */ var _predicates_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77134);
|
|
12474
13551
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97847);
|
|
12475
13552
|
|
|
12476
|
-
function ownKeys(
|
|
12477
|
-
var
|
|
13553
|
+
function ownKeys(e, r) {
|
|
13554
|
+
var t = Object.keys(e);
|
|
12478
13555
|
if (Object.getOwnPropertySymbols) {
|
|
12479
|
-
var
|
|
12480
|
-
|
|
12481
|
-
return Object.getOwnPropertyDescriptor(
|
|
12482
|
-
})),
|
|
13556
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
13557
|
+
r && (o = o.filter(function (r) {
|
|
13558
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
13559
|
+
})), t.push.apply(t, o);
|
|
12483
13560
|
}
|
|
12484
|
-
return
|
|
13561
|
+
return t;
|
|
12485
13562
|
}
|
|
12486
|
-
function _objectSpread(
|
|
12487
|
-
for (var
|
|
12488
|
-
var
|
|
12489
|
-
|
|
12490
|
-
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
12491
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
12492
|
-
Object.defineProperty(
|
|
13563
|
+
function _objectSpread(e) {
|
|
13564
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
13565
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
13566
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
13567
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
|
|
13568
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
13569
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
12493
13570
|
});
|
|
12494
13571
|
}
|
|
12495
|
-
return
|
|
13572
|
+
return e;
|
|
12496
13573
|
}
|
|
12497
13574
|
|
|
12498
13575
|
|
|
@@ -12673,26 +13750,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12673
13750
|
|
|
12674
13751
|
const _excluded = ["keyMap"],
|
|
12675
13752
|
_excluded2 = ["keyMap"];
|
|
12676
|
-
function ownKeys(
|
|
12677
|
-
var
|
|
13753
|
+
function ownKeys(e, r) {
|
|
13754
|
+
var t = Object.keys(e);
|
|
12678
13755
|
if (Object.getOwnPropertySymbols) {
|
|
12679
|
-
var
|
|
12680
|
-
|
|
12681
|
-
return Object.getOwnPropertyDescriptor(
|
|
12682
|
-
})),
|
|
13756
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
13757
|
+
r && (o = o.filter(function (r) {
|
|
13758
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
13759
|
+
})), t.push.apply(t, o);
|
|
12683
13760
|
}
|
|
12684
|
-
return
|
|
13761
|
+
return t;
|
|
12685
13762
|
}
|
|
12686
|
-
function _objectSpread(
|
|
12687
|
-
for (var
|
|
12688
|
-
var
|
|
12689
|
-
|
|
12690
|
-
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
12691
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
12692
|
-
Object.defineProperty(
|
|
13763
|
+
function _objectSpread(e) {
|
|
13764
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
13765
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
13766
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
13767
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
|
|
13768
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
13769
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
12693
13770
|
});
|
|
12694
13771
|
}
|
|
12695
|
-
return
|
|
13772
|
+
return e;
|
|
12696
13773
|
}
|
|
12697
13774
|
|
|
12698
13775
|
|
|
@@ -13337,26 +14414,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13337
14414
|
|
|
13338
14415
|
const _excluded = ["keyMap"],
|
|
13339
14416
|
_excluded2 = ["keyMap"];
|
|
13340
|
-
function ownKeys(
|
|
13341
|
-
var
|
|
14417
|
+
function ownKeys(e, r) {
|
|
14418
|
+
var t = Object.keys(e);
|
|
13342
14419
|
if (Object.getOwnPropertySymbols) {
|
|
13343
|
-
var
|
|
13344
|
-
|
|
13345
|
-
return Object.getOwnPropertyDescriptor(
|
|
13346
|
-
})),
|
|
14420
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
14421
|
+
r && (o = o.filter(function (r) {
|
|
14422
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
14423
|
+
})), t.push.apply(t, o);
|
|
13347
14424
|
}
|
|
13348
|
-
return
|
|
14425
|
+
return t;
|
|
13349
14426
|
}
|
|
13350
|
-
function _objectSpread(
|
|
13351
|
-
for (var
|
|
13352
|
-
var
|
|
13353
|
-
|
|
13354
|
-
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
13355
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
13356
|
-
Object.defineProperty(
|
|
14427
|
+
function _objectSpread(e) {
|
|
14428
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
14429
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
14430
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
14431
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
|
|
14432
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
14433
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
13357
14434
|
});
|
|
13358
14435
|
}
|
|
13359
|
-
return
|
|
14436
|
+
return e;
|
|
13360
14437
|
}
|
|
13361
14438
|
|
|
13362
14439
|
|
|
@@ -13503,156 +14580,350 @@ const dereference = (object, root) => {
|
|
|
13503
14580
|
|
|
13504
14581
|
/***/ }),
|
|
13505
14582
|
|
|
13506
|
-
/***/
|
|
14583
|
+
/***/ 14269:
|
|
13507
14584
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13508
14585
|
|
|
13509
14586
|
"use strict";
|
|
13510
14587
|
__webpack_require__.r(__webpack_exports__);
|
|
13511
14588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13512
|
-
/* harmony export */ "default": () => (
|
|
14589
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13513
14590
|
/* harmony export */ });
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
14591
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39723);
|
|
14592
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
14593
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21427);
|
|
14594
|
+
var _globalThis$Aggregate;
|
|
14595
|
+
|
|
14596
|
+
|
|
14597
|
+
// @ts-ignore
|
|
14598
|
+
|
|
14599
|
+
const AggregateError = (_globalThis$Aggregate = globalThis.AggregateError) !== null && _globalThis$Aggregate !== void 0 ? _globalThis$Aggregate : _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__;
|
|
14600
|
+
/**
|
|
14601
|
+
* ApiDOMAggregateError is using polyfill of AggregateError from core-js-pure
|
|
14602
|
+
* in environments which don't support global AggregateError symbol.
|
|
14603
|
+
*/
|
|
14604
|
+
class ApiDOMAggregateError extends AggregateError {
|
|
14605
|
+
constructor(errors, message, options) {
|
|
14606
|
+
super(errors, message, options);
|
|
13517
14607
|
this.name = this.constructor.name;
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
Error.captureStackTrace(this, this.constructor);
|
|
13521
|
-
} else {
|
|
13522
|
-
this.stack = new Error(message).stack;
|
|
14608
|
+
if (typeof message === 'string') {
|
|
14609
|
+
this.message = message;
|
|
13523
14610
|
}
|
|
13524
|
-
this.name = this.constructor.name;
|
|
13525
|
-
this.message = message;
|
|
13526
14611
|
if (typeof Error.captureStackTrace === 'function') {
|
|
13527
14612
|
Error.captureStackTrace(this, this.constructor);
|
|
13528
14613
|
} else {
|
|
13529
14614
|
this.stack = new Error(message).stack;
|
|
13530
14615
|
}
|
|
14616
|
+
|
|
14617
|
+
/**
|
|
14618
|
+
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
14619
|
+
* Node.js is >= 16.9.0 supports error causes natively.
|
|
14620
|
+
*/
|
|
14621
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', this)) {
|
|
14622
|
+
const {
|
|
14623
|
+
cause
|
|
14624
|
+
} = options;
|
|
14625
|
+
this.cause = cause;
|
|
14626
|
+
if (cause instanceof Error && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('stack', cause)) {
|
|
14627
|
+
this.stack = `${this.stack}\nCAUSE: ${cause === null || cause === void 0 ? void 0 : cause.stack}`;
|
|
14628
|
+
}
|
|
14629
|
+
}
|
|
13531
14630
|
}
|
|
13532
14631
|
}
|
|
14632
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMAggregateError);
|
|
13533
14633
|
|
|
13534
14634
|
/***/ }),
|
|
13535
14635
|
|
|
13536
|
-
/***/
|
|
14636
|
+
/***/ 84401:
|
|
13537
14637
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13538
14638
|
|
|
13539
14639
|
"use strict";
|
|
13540
14640
|
__webpack_require__.r(__webpack_exports__);
|
|
13541
14641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13542
|
-
/* harmony export */ "default": () => (
|
|
14642
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13543
14643
|
/* harmony export */ });
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
14644
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
14645
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39723);
|
|
14646
|
+
/* harmony import */ var _ApiDOMAggregateError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14269);
|
|
14647
|
+
|
|
14648
|
+
|
|
14649
|
+
|
|
14650
|
+
class ApiDOMError extends Error {
|
|
14651
|
+
static [Symbol.hasInstance](instance) {
|
|
14652
|
+
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
14653
|
+
return Function.prototype[Symbol.hasInstance].call(ApiDOMError, instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_js__WEBPACK_IMPORTED_MODULE_1__["default"], instance);
|
|
14654
|
+
}
|
|
14655
|
+
constructor(message, options) {
|
|
14656
|
+
super(message, options);
|
|
13547
14657
|
this.name = this.constructor.name;
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
Error.captureStackTrace(this, this.constructor);
|
|
13551
|
-
} else {
|
|
13552
|
-
this.stack = new Error(`Invalid JSON Pointer "${pointer}". Pointers must begin with "/"`).stack;
|
|
14658
|
+
if (typeof message === 'string') {
|
|
14659
|
+
this.message = message;
|
|
13553
14660
|
}
|
|
13554
|
-
this.name = this.constructor.name;
|
|
13555
|
-
this.message = `Invalid JSON Pointer "${pointer}". Pointers must begin with "/"`;
|
|
13556
14661
|
if (typeof Error.captureStackTrace === 'function') {
|
|
13557
14662
|
Error.captureStackTrace(this, this.constructor);
|
|
13558
14663
|
} else {
|
|
13559
|
-
this.stack = new Error(
|
|
14664
|
+
this.stack = new Error(message).stack;
|
|
14665
|
+
}
|
|
14666
|
+
|
|
14667
|
+
/**
|
|
14668
|
+
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
14669
|
+
* Node.js is >= 16.9.0 supports error causes natively.
|
|
14670
|
+
*/
|
|
14671
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', this)) {
|
|
14672
|
+
const {
|
|
14673
|
+
cause
|
|
14674
|
+
} = options;
|
|
14675
|
+
this.cause = cause;
|
|
14676
|
+
if (cause instanceof Error && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('stack', cause)) {
|
|
14677
|
+
this.stack = `${this.stack}\nCAUSE: ${cause === null || cause === void 0 ? void 0 : cause.stack}`;
|
|
14678
|
+
}
|
|
13560
14679
|
}
|
|
13561
14680
|
}
|
|
13562
14681
|
}
|
|
14682
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
|
|
13563
14683
|
|
|
13564
14684
|
/***/ }),
|
|
13565
14685
|
|
|
13566
|
-
/***/
|
|
14686
|
+
/***/ 86923:
|
|
13567
14687
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13568
14688
|
|
|
13569
14689
|
"use strict";
|
|
13570
14690
|
__webpack_require__.r(__webpack_exports__);
|
|
13571
14691
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13572
|
-
/* harmony export */
|
|
13573
|
-
/* harmony export */ InvalidJsonPointerError: () => (/* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
13574
|
-
/* harmony export */ compile: () => (/* binding */ compile),
|
|
13575
|
-
/* harmony export */ escape: () => (/* binding */ escape),
|
|
13576
|
-
/* harmony export */ evaluate: () => (/* binding */ evaluate),
|
|
13577
|
-
/* harmony export */ parse: () => (/* binding */ parse),
|
|
13578
|
-
/* harmony export */ unescape: () => (/* binding */ unescape),
|
|
13579
|
-
/* harmony export */ uriToPointer: () => (/* binding */ uriToPointer)
|
|
14692
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13580
14693
|
/* harmony export */ });
|
|
13581
14694
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
13582
|
-
/* harmony import */ var
|
|
13583
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23680);
|
|
13584
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7051);
|
|
13585
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77134);
|
|
13586
|
-
/* harmony import */ var _errors_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28786);
|
|
13587
|
-
/* harmony import */ var _errors_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60011);
|
|
14695
|
+
/* harmony import */ var _ApiDOMError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84401);
|
|
13588
14696
|
|
|
13589
14697
|
|
|
14698
|
+
class ApiDOMStructuredError extends _ApiDOMError_js__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
14699
|
+
constructor(message, structuredOptions) {
|
|
14700
|
+
super(message, structuredOptions);
|
|
14701
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
14702
|
+
Object.assign(this, (0,ramda__WEBPACK_IMPORTED_MODULE_0__.omit)(['cause'], structuredOptions));
|
|
14703
|
+
}
|
|
14704
|
+
}
|
|
14705
|
+
}
|
|
14706
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMStructuredError);
|
|
13590
14707
|
|
|
14708
|
+
/***/ }),
|
|
13591
14709
|
|
|
14710
|
+
/***/ 60279:
|
|
14711
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13592
14712
|
|
|
14713
|
+
"use strict";
|
|
14714
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14715
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14716
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14717
|
+
/* harmony export */ });
|
|
14718
|
+
/* harmony import */ var _UnsupportedOperationError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52606);
|
|
13593
14719
|
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
* safeDecodeURIComponent is a safe variant of decodeURIComponent that never trows.
|
|
13597
|
-
*
|
|
13598
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Malformed_URI|More info about URIError}
|
|
13599
|
-
*/
|
|
13600
|
-
const safeDecodeURIComponent = encodedURIComponent => {
|
|
13601
|
-
try {
|
|
13602
|
-
return decodeURIComponent(encodedURIComponent);
|
|
13603
|
-
} catch {
|
|
13604
|
-
return encodedURIComponent;
|
|
13605
|
-
}
|
|
13606
|
-
};
|
|
14720
|
+
class NotImplementedError extends _UnsupportedOperationError_js__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
14721
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
|
|
13607
14722
|
|
|
13608
|
-
|
|
13609
|
-
const escape = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,ramda__WEBPACK_IMPORTED_MODULE_0__.replace)(/~/g, '~0'), (0,ramda__WEBPACK_IMPORTED_MODULE_0__.replace)(/\//g, '~1'), encodeURIComponent);
|
|
14723
|
+
/***/ }),
|
|
13610
14724
|
|
|
13611
|
-
|
|
13612
|
-
|
|
14725
|
+
/***/ 52606:
|
|
14726
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13613
14727
|
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
14728
|
+
"use strict";
|
|
14729
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14730
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14731
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14732
|
+
/* harmony export */ });
|
|
14733
|
+
/* harmony import */ var _ApiDOMError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84401);
|
|
14734
|
+
|
|
14735
|
+
class UnsupportedOperationError extends _ApiDOMError_js__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
14736
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
|
|
14737
|
+
|
|
14738
|
+
/***/ }),
|
|
14739
|
+
|
|
14740
|
+
/***/ 60011:
|
|
14741
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14742
|
+
|
|
14743
|
+
"use strict";
|
|
14744
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14745
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14746
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14747
|
+
/* harmony export */ });
|
|
14748
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28936);
|
|
14749
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77134);
|
|
14750
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40857);
|
|
14751
|
+
/* harmony import */ var _JsonPointerError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57500);
|
|
14752
|
+
|
|
14753
|
+
|
|
14754
|
+
|
|
14755
|
+
class EvaluationJsonPointerError extends _JsonPointerError_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14756
|
+
constructor(message, structuredOptions) {
|
|
14757
|
+
super(message, structuredOptions);
|
|
14758
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "pointer", void 0);
|
|
14759
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "tokens", void 0);
|
|
14760
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "failedToken", void 0);
|
|
14761
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "failedTokenPosition", void 0);
|
|
14762
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "element", void 0);
|
|
14763
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "elementSourceMap", void 0);
|
|
14764
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
14765
|
+
this.pointer = structuredOptions.pointer;
|
|
14766
|
+
if (Array.isArray(structuredOptions.tokens)) {
|
|
14767
|
+
this.tokens = [...structuredOptions.tokens];
|
|
14768
|
+
}
|
|
14769
|
+
this.failedToken = structuredOptions.failedToken;
|
|
14770
|
+
this.failedTokenPosition = structuredOptions.failedTokenPosition;
|
|
14771
|
+
this.element = structuredOptions.element.element;
|
|
14772
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.hasElementSourceMap)(structuredOptions.element)) {
|
|
14773
|
+
this.elementSourceMap = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.toValue)(structuredOptions.element.getMetaProperty('sourceMap'));
|
|
14774
|
+
}
|
|
14775
|
+
}
|
|
13621
14776
|
}
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
};
|
|
14777
|
+
}
|
|
14778
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EvaluationJsonPointerError);
|
|
13625
14779
|
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
14780
|
+
/***/ }),
|
|
14781
|
+
|
|
14782
|
+
/***/ 28786:
|
|
14783
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14784
|
+
|
|
14785
|
+
"use strict";
|
|
14786
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14787
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14788
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14789
|
+
/* harmony export */ });
|
|
14790
|
+
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28936);
|
|
14791
|
+
/* harmony import */ var _JsonPointerError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57500);
|
|
14792
|
+
|
|
14793
|
+
|
|
14794
|
+
class InvalidJsonPointerError extends _JsonPointerError_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
14795
|
+
constructor(message, structuredOptions) {
|
|
14796
|
+
super(message, structuredOptions);
|
|
14797
|
+
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(this, "pointer", void 0);
|
|
14798
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
14799
|
+
this.pointer = structuredOptions.pointer;
|
|
14800
|
+
}
|
|
13630
14801
|
}
|
|
13631
|
-
|
|
13632
|
-
|
|
14802
|
+
}
|
|
14803
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InvalidJsonPointerError);
|
|
14804
|
+
|
|
14805
|
+
/***/ }),
|
|
14806
|
+
|
|
14807
|
+
/***/ 57500:
|
|
14808
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14809
|
+
|
|
14810
|
+
"use strict";
|
|
14811
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14812
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14813
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14814
|
+
/* harmony export */ });
|
|
14815
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86923);
|
|
14816
|
+
|
|
14817
|
+
class JsonPointerError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
14818
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonPointerError);
|
|
14819
|
+
|
|
14820
|
+
/***/ }),
|
|
14821
|
+
|
|
14822
|
+
/***/ 10211:
|
|
14823
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14824
|
+
|
|
14825
|
+
"use strict";
|
|
14826
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14827
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14828
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14829
|
+
/* harmony export */ });
|
|
14830
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23680);
|
|
14831
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77134);
|
|
14832
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40759);
|
|
14833
|
+
/* harmony import */ var _errors_EvaluationJsonPointerError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60011);
|
|
13633
14834
|
|
|
13634
|
-
|
|
14835
|
+
|
|
14836
|
+
|
|
14837
|
+
// evaluates JSON Pointer against ApiDOM fragment
|
|
13635
14838
|
const evaluate = (pointer, element) => {
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
14839
|
+
let tokens;
|
|
14840
|
+
try {
|
|
14841
|
+
tokens = (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(pointer);
|
|
14842
|
+
} catch (error) {
|
|
14843
|
+
throw new _errors_EvaluationJsonPointerError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`JSON Pointer evaluation failed while parsing the pointer "${pointer}".`, {
|
|
14844
|
+
pointer,
|
|
14845
|
+
element,
|
|
14846
|
+
cause: error
|
|
14847
|
+
});
|
|
14848
|
+
}
|
|
14849
|
+
return tokens.reduce((acc, token, tokenPosition) => {
|
|
14850
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isObjectElement)(acc)) {
|
|
13639
14851
|
// @ts-ignore
|
|
13640
14852
|
if (!acc.hasKey(token)) {
|
|
13641
|
-
throw new
|
|
14853
|
+
throw new _errors_EvaluationJsonPointerError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`JSON Pointer evaluation failed while evaluating token "${token}" against an ObjectElement`, {
|
|
14854
|
+
pointer,
|
|
14855
|
+
tokens,
|
|
14856
|
+
failedToken: token,
|
|
14857
|
+
failedTokenPosition: tokenPosition,
|
|
14858
|
+
element: acc
|
|
14859
|
+
});
|
|
13642
14860
|
}
|
|
13643
14861
|
// @ts-ignore
|
|
13644
14862
|
return acc.get(token);
|
|
13645
14863
|
}
|
|
13646
|
-
if ((0,
|
|
13647
|
-
if (!(token in acc.content) || !(0,
|
|
13648
|
-
throw new
|
|
14864
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isArrayElement)(acc)) {
|
|
14865
|
+
if (!(token in acc.content) || !(0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"])(Number(token))) {
|
|
14866
|
+
throw new _errors_EvaluationJsonPointerError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`JSON Pointer evaluation failed while evaluating token "${token}" against an ArrayElement`, {
|
|
14867
|
+
pointer,
|
|
14868
|
+
tokens,
|
|
14869
|
+
failedToken: token,
|
|
14870
|
+
failedTokenPosition: tokenPosition,
|
|
14871
|
+
element: acc
|
|
14872
|
+
});
|
|
13649
14873
|
}
|
|
13650
14874
|
// @ts-ignore
|
|
13651
14875
|
return acc.get(Number(token));
|
|
13652
14876
|
}
|
|
13653
|
-
throw new
|
|
14877
|
+
throw new _errors_EvaluationJsonPointerError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`JSON Pointer evaluation failed while evaluating token "${token}" against an unexpected Element`, {
|
|
14878
|
+
pointer,
|
|
14879
|
+
tokens,
|
|
14880
|
+
failedToken: token,
|
|
14881
|
+
failedTokenPosition: tokenPosition,
|
|
14882
|
+
element: acc
|
|
14883
|
+
});
|
|
13654
14884
|
}, element);
|
|
13655
14885
|
};
|
|
14886
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluate);
|
|
14887
|
+
|
|
14888
|
+
/***/ }),
|
|
14889
|
+
|
|
14890
|
+
/***/ 40759:
|
|
14891
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14892
|
+
|
|
14893
|
+
"use strict";
|
|
14894
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14895
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14896
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
14897
|
+
/* harmony export */ uriToPointer: () => (/* binding */ uriToPointer)
|
|
14898
|
+
/* harmony export */ });
|
|
14899
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
14900
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63641);
|
|
14901
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7051);
|
|
14902
|
+
/* harmony import */ var _unescape_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32421);
|
|
14903
|
+
/* harmony import */ var _errors_InvalidJsonPointerError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28786);
|
|
14904
|
+
|
|
14905
|
+
|
|
14906
|
+
|
|
14907
|
+
// parse :: String -> String[]
|
|
14908
|
+
const parse = pointer => {
|
|
14909
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__["default"])(pointer)) {
|
|
14910
|
+
return [];
|
|
14911
|
+
}
|
|
14912
|
+
if (!(0,ramda__WEBPACK_IMPORTED_MODULE_0__.startsWith)('/', pointer)) {
|
|
14913
|
+
throw new _errors_InvalidJsonPointerError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`Invalid JSON Pointer "${pointer}". JSON Pointers must begin with "/"`, {
|
|
14914
|
+
pointer
|
|
14915
|
+
});
|
|
14916
|
+
}
|
|
14917
|
+
try {
|
|
14918
|
+
const tokens = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,ramda__WEBPACK_IMPORTED_MODULE_0__.split)('/'), (0,ramda__WEBPACK_IMPORTED_MODULE_0__.map)(_unescape_js__WEBPACK_IMPORTED_MODULE_3__["default"]))(pointer);
|
|
14919
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__.tail)(tokens);
|
|
14920
|
+
} catch (error) {
|
|
14921
|
+
throw new _errors_InvalidJsonPointerError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`JSON Pointer parsing of "${pointer}" encountered an error.`, {
|
|
14922
|
+
pointer,
|
|
14923
|
+
cause: error
|
|
14924
|
+
});
|
|
14925
|
+
}
|
|
14926
|
+
};
|
|
13656
14927
|
|
|
13657
14928
|
/**
|
|
13658
14929
|
* Returns the hash (URL fragment), of the given path.
|
|
@@ -13669,8 +14940,40 @@ const getHash = uri => {
|
|
|
13669
14940
|
// uriToPointer :: String -> String
|
|
13670
14941
|
const uriToPointer = uri => {
|
|
13671
14942
|
const hash = getHash(uri);
|
|
13672
|
-
return (0,
|
|
14943
|
+
return (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])('#', hash);
|
|
13673
14944
|
};
|
|
14945
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
14946
|
+
|
|
14947
|
+
/***/ }),
|
|
14948
|
+
|
|
14949
|
+
/***/ 32421:
|
|
14950
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14951
|
+
|
|
14952
|
+
"use strict";
|
|
14953
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14954
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14955
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14956
|
+
/* harmony export */ });
|
|
14957
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
14958
|
+
|
|
14959
|
+
|
|
14960
|
+
/**
|
|
14961
|
+
* decodeURIComponent can throw URIError in certain cases like 'c%d'.
|
|
14962
|
+
* safeDecodeURIComponent is a safe variant of decodeURIComponent that never trows.
|
|
14963
|
+
*
|
|
14964
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Malformed_URI|More info about URIError}
|
|
14965
|
+
*/
|
|
14966
|
+
const safeDecodeURIComponent = encodedURIComponent => {
|
|
14967
|
+
try {
|
|
14968
|
+
return decodeURIComponent(encodedURIComponent);
|
|
14969
|
+
} catch {
|
|
14970
|
+
return encodedURIComponent;
|
|
14971
|
+
}
|
|
14972
|
+
};
|
|
14973
|
+
|
|
14974
|
+
// unescape :: String -> String
|
|
14975
|
+
const unescape = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,ramda__WEBPACK_IMPORTED_MODULE_0__.replace)(/~1/g, '/'), (0,ramda__WEBPACK_IMPORTED_MODULE_0__.replace)(/~0/g, '~'), safeDecodeURIComponent);
|
|
14976
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (unescape);
|
|
13674
14977
|
|
|
13675
14978
|
/***/ }),
|
|
13676
14979
|
|
|
@@ -33093,53 +34396,19 @@ var __webpack_exports__ = {};
|
|
|
33093
34396
|
"use strict";
|
|
33094
34397
|
__webpack_require__.r(__webpack_exports__);
|
|
33095
34398
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33096
|
-
/* harmony export */
|
|
33097
|
-
/* harmony export */
|
|
34399
|
+
/* harmony export */ EvaluationJsonPathError: () => (/* reexport safe */ _errors_EvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
34400
|
+
/* harmony export */ MultiEvaluationJsonPathError: () => (/* reexport safe */ _errors_MultiEvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
34401
|
+
/* harmony export */ evaluate: () => (/* reexport safe */ _evaluate__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
34402
|
+
/* harmony export */ evaluateMulti: () => (/* reexport safe */ _evaluate_multi__WEBPACK_IMPORTED_MODULE_3__["default"])
|
|
33098
34403
|
/* harmony export */ });
|
|
33099
|
-
/* harmony import */ var
|
|
33100
|
-
/* harmony import */ var
|
|
33101
|
-
/* harmony import */ var
|
|
34404
|
+
/* harmony import */ var _errors_EvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91137);
|
|
34405
|
+
/* harmony import */ var _errors_MultiEvaluationJsonPathError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52421);
|
|
34406
|
+
/* harmony import */ var _evaluate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87427);
|
|
34407
|
+
/* harmony import */ var _evaluate_multi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5316);
|
|
33102
34408
|
|
|
33103
34409
|
|
|
33104
34410
|
|
|
33105
|
-
/**
|
|
33106
|
-
* Evaluates single JSONPath on ApiDOM element.
|
|
33107
|
-
*/
|
|
33108
|
-
const evaluate = (path, element) => {
|
|
33109
|
-
const json = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.toValue)(element);
|
|
33110
|
-
const pointers = (0,jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath)({
|
|
33111
|
-
path,
|
|
33112
|
-
json,
|
|
33113
|
-
resultType: 'pointer'
|
|
33114
|
-
});
|
|
33115
|
-
return pointers.map(pointer => (0,_swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__.evaluate)(pointer, element));
|
|
33116
|
-
};
|
|
33117
34411
|
|
|
33118
|
-
/**
|
|
33119
|
-
* Evaluates multiple JSONPaths on ApiDOM element.
|
|
33120
|
-
*/
|
|
33121
|
-
const evaluateMulti = (paths, element) => {
|
|
33122
|
-
const json = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.toValue)(element);
|
|
33123
|
-
const results = [];
|
|
33124
|
-
for (const path of paths) {
|
|
33125
|
-
const pointers = (0,jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath)({
|
|
33126
|
-
path,
|
|
33127
|
-
json,
|
|
33128
|
-
resultType: 'pointer'
|
|
33129
|
-
});
|
|
33130
|
-
const endPointValues = [];
|
|
33131
|
-
for (const pointer of pointers) {
|
|
33132
|
-
const endPointValue = (0,_swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_2__.evaluate)(pointer, element);
|
|
33133
|
-
endPointValues.push(endPointValue);
|
|
33134
|
-
}
|
|
33135
|
-
if (Array.isArray(path)) {
|
|
33136
|
-
results.push([jsonpath_plus__WEBPACK_IMPORTED_MODULE_0__.JSONPath.toPathString(path), endPointValues]);
|
|
33137
|
-
} else {
|
|
33138
|
-
results.push([path, endPointValues]);
|
|
33139
|
-
}
|
|
33140
|
-
}
|
|
33141
|
-
return results;
|
|
33142
|
-
};
|
|
33143
34412
|
})();
|
|
33144
34413
|
|
|
33145
34414
|
/******/ return __webpack_exports__;
|