@speclynx/apidom-parser 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/apidom-parser.browser.js +1724 -1724
- package/package.json +5 -5
|
@@ -12,332 +12,287 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
16
|
-
(
|
|
15
|
+
/***/ 4212
|
|
16
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
18
|
__webpack_require__.r(__webpack_exports__);
|
|
19
19
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
-
/* harmony export */ "default": () => (
|
|
20
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21
21
|
/* harmony export */ });
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4641);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
class ParserError extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
33
|
+
source;
|
|
34
|
+
parserOptions;
|
|
35
|
+
constructor(message, structuredOptions) {
|
|
36
|
+
super(message, structuredOptions);
|
|
37
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
38
|
+
this.source = structuredOptions.source;
|
|
39
|
+
this.parserOptions = structuredOptions.parserOptions;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
24
42
|
}
|
|
43
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParserError);
|
|
25
44
|
|
|
26
45
|
/***/ },
|
|
27
46
|
|
|
28
|
-
/***/
|
|
47
|
+
/***/ 3834
|
|
29
48
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
30
49
|
|
|
31
50
|
__webpack_require__.r(__webpack_exports__);
|
|
32
51
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33
|
-
/* harmony export */ "default": () => (
|
|
52
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
34
53
|
/* harmony export */ });
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
54
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
55
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
56
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
57
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
58
|
+
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6867);
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Checks if input value is `Array`.
|
|
64
|
+
*
|
|
65
|
+
* @func isArray
|
|
66
|
+
* @memberOf RA
|
|
67
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
|
|
68
|
+
* @category Type
|
|
69
|
+
* @sig * -> Boolean
|
|
70
|
+
* @param {*} val The value to test
|
|
71
|
+
* @return {boolean}
|
|
72
|
+
* @see {@link RA.isNotArray|isNotArray}
|
|
73
|
+
* @example
|
|
74
|
+
*
|
|
75
|
+
* RA.isArray([]); //=> true
|
|
76
|
+
* RA.isArray(null); //=> false
|
|
77
|
+
* RA.isArray({}); //=> false
|
|
78
|
+
*/
|
|
79
|
+
var isArray = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,_isFunction_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Array.isArray) ? Array.isArray : (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('Array')));
|
|
80
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isArray);
|
|
38
81
|
|
|
39
82
|
/***/ },
|
|
40
83
|
|
|
41
|
-
/***/
|
|
84
|
+
/***/ 5855
|
|
42
85
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43
86
|
|
|
44
87
|
__webpack_require__.r(__webpack_exports__);
|
|
45
88
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46
89
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
47
90
|
/* harmony export */ });
|
|
48
|
-
/* harmony import */ var
|
|
49
|
-
/* harmony import */ var
|
|
50
|
-
/* harmony import */ var
|
|
51
|
-
/* harmony import */ var
|
|
52
|
-
/* harmony import */ var _internal_xmap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6390);
|
|
53
|
-
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9784);
|
|
54
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7783);
|
|
91
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
92
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
93
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
94
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
55
95
|
|
|
56
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Checks if input value is `Async Function`.
|
|
99
|
+
*
|
|
100
|
+
* @func isAsyncFunction
|
|
101
|
+
* @memberOf RA
|
|
102
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
103
|
+
* @category Type
|
|
104
|
+
* @sig * -> Boolean
|
|
105
|
+
* @param {*} val The value to test
|
|
106
|
+
* @return {boolean}
|
|
107
|
+
* @see {@link RA.isFunction|isFunction}, {@link RA.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* RA.isAsyncFunction(async function test() { }); //=> true
|
|
111
|
+
* RA.isAsyncFunction(null); //=> false
|
|
112
|
+
* RA.isAsyncFunction(function test() { }); //=> false
|
|
113
|
+
* RA.isAsyncFunction(() => {}); //=> false
|
|
114
|
+
*/
|
|
115
|
+
var isAsyncFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('AsyncFunction')));
|
|
116
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isAsyncFunction);
|
|
117
|
+
|
|
118
|
+
/***/ },
|
|
57
119
|
|
|
120
|
+
/***/ 6867
|
|
121
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
58
122
|
|
|
123
|
+
__webpack_require__.r(__webpack_exports__);
|
|
124
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
125
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
126
|
+
/* harmony export */ });
|
|
127
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1020);
|
|
128
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
129
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
130
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
131
|
+
/* harmony import */ var _isGeneratorFunction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9702);
|
|
132
|
+
/* harmony import */ var _isAsyncFunction_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5855);
|
|
59
133
|
|
|
60
134
|
|
|
61
135
|
|
|
62
136
|
|
|
63
137
|
/**
|
|
64
|
-
*
|
|
65
|
-
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
66
|
-
* applies the function to each of the functor's values, and returns
|
|
67
|
-
* a functor of the same shape.
|
|
68
|
-
*
|
|
69
|
-
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
70
|
-
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
71
|
-
*
|
|
72
|
-
* Dispatches to the `map` method of the second argument, if present.
|
|
73
|
-
*
|
|
74
|
-
* Acts as a transducer if a transformer is given in list position.
|
|
75
|
-
*
|
|
76
|
-
* Also treats functions as functors and will compose them together.
|
|
138
|
+
* Checks if input value is `Function`.
|
|
77
139
|
*
|
|
78
|
-
* @func
|
|
79
|
-
* @memberOf
|
|
80
|
-
* @since v0.
|
|
81
|
-
* @category
|
|
82
|
-
* @sig
|
|
83
|
-
* @param {
|
|
84
|
-
* @
|
|
85
|
-
* @
|
|
86
|
-
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
140
|
+
* @func isFunction
|
|
141
|
+
* @memberOf RA
|
|
142
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
143
|
+
* @category Type
|
|
144
|
+
* @sig * -> Boolean
|
|
145
|
+
* @param {*} val The value to test
|
|
146
|
+
* @return {boolean}
|
|
147
|
+
* @see {@link RA.isNotFunction|isNotFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
|
87
148
|
* @example
|
|
88
149
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
96
|
-
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
150
|
+
* RA.isFunction(function test() { }); //=> true
|
|
151
|
+
* RA.isFunction(function* test() { }); //=> true
|
|
152
|
+
* RA.isFunction(async function test() { }); //=> true
|
|
153
|
+
* RA.isFunction(() => {}); //=> true
|
|
154
|
+
* RA.isFunction(null); //=> false
|
|
155
|
+
* RA.isFunction('abc'); //=> false
|
|
97
156
|
*/
|
|
98
|
-
var
|
|
99
|
-
|
|
100
|
-
case '[object Function]':
|
|
101
|
-
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_5__["default"])(functor.length, function () {
|
|
102
|
-
return fn.call(this, functor.apply(this, arguments));
|
|
103
|
-
});
|
|
104
|
-
case '[object Object]':
|
|
105
|
-
return (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (acc, key) {
|
|
106
|
-
acc[key] = fn(functor[key]);
|
|
107
|
-
return acc;
|
|
108
|
-
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_6__["default"])(functor));
|
|
109
|
-
default:
|
|
110
|
-
return (0,_internal_map_js__WEBPACK_IMPORTED_MODULE_3__["default"])(fn, functor);
|
|
111
|
-
}
|
|
112
|
-
}));
|
|
113
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (map);
|
|
157
|
+
var isFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])([(0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('Function')), _isGeneratorFunction_js__WEBPACK_IMPORTED_MODULE_4__["default"], _isAsyncFunction_js__WEBPACK_IMPORTED_MODULE_5__["default"]]);
|
|
158
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isFunction);
|
|
114
159
|
|
|
115
160
|
/***/ },
|
|
116
161
|
|
|
117
|
-
/***/
|
|
162
|
+
/***/ 9702
|
|
118
163
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
119
164
|
|
|
120
165
|
__webpack_require__.r(__webpack_exports__);
|
|
121
166
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
122
|
-
/* harmony export */ "default": () => (
|
|
167
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
123
168
|
/* harmony export */ });
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
169
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
170
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
171
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
172
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Checks if input value is `Generator Function`.
|
|
177
|
+
*
|
|
178
|
+
* @func isGeneratorFunction
|
|
179
|
+
* @memberOf RA
|
|
180
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
181
|
+
* @category Type
|
|
182
|
+
* @sig * -> Boolean
|
|
183
|
+
* @param {*} val The value to test
|
|
184
|
+
* @return {boolean}
|
|
185
|
+
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isNotGeneratorFunction|isNotGeneratorFunction}
|
|
186
|
+
* @example
|
|
187
|
+
*
|
|
188
|
+
* RA.isGeneratorFunction(function* test() { }); //=> true
|
|
189
|
+
* RA.isGeneratorFunction(null); //=> false
|
|
190
|
+
* RA.isGeneratorFunction(function test() { }); //=> false
|
|
191
|
+
* RA.isGeneratorFunction(() => {}); //=> false
|
|
192
|
+
*/
|
|
193
|
+
var isGeneratorFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('GeneratorFunction')));
|
|
194
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isGeneratorFunction);
|
|
129
195
|
|
|
130
196
|
/***/ },
|
|
131
197
|
|
|
132
|
-
/***/
|
|
198
|
+
/***/ 5102
|
|
133
199
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
134
200
|
|
|
135
201
|
__webpack_require__.r(__webpack_exports__);
|
|
136
202
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
137
|
-
/* harmony export */ "default": () => (
|
|
203
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
138
204
|
/* harmony export */ });
|
|
139
|
-
/* harmony import */ var
|
|
140
|
-
/* harmony import */ var
|
|
141
|
-
/* harmony import */ var
|
|
142
|
-
/* harmony import */ var
|
|
143
|
-
/* harmony import */ var _objectIs_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1111);
|
|
144
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7783);
|
|
145
|
-
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(963);
|
|
205
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9784);
|
|
206
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
207
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
208
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
146
209
|
|
|
147
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Checks if input value is `String`.
|
|
213
|
+
*
|
|
214
|
+
* @func isString
|
|
215
|
+
* @memberOf RA
|
|
216
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
|
|
217
|
+
* @category Type
|
|
218
|
+
* @sig * -> Boolean
|
|
219
|
+
* @param {*} val The value to test
|
|
220
|
+
* @return {boolean}
|
|
221
|
+
* @see {@link RA.isNotString|isNotString}
|
|
222
|
+
* @example
|
|
223
|
+
*
|
|
224
|
+
* RA.isString('abc'); //=> true
|
|
225
|
+
* RA.isString(1); //=> false
|
|
226
|
+
*/
|
|
227
|
+
var isString = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('String')));
|
|
228
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isString);
|
|
148
229
|
|
|
230
|
+
/***/ },
|
|
149
231
|
|
|
232
|
+
/***/ 3031
|
|
233
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
150
234
|
|
|
235
|
+
__webpack_require__.r(__webpack_exports__);
|
|
236
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
237
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
238
|
+
/* harmony export */ });
|
|
239
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
240
|
+
/* harmony import */ var _stubUndefined_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3387);
|
|
151
241
|
|
|
152
242
|
|
|
153
243
|
|
|
154
244
|
/**
|
|
155
|
-
*
|
|
156
|
-
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
157
|
-
* - iterators lengths are the same
|
|
158
|
-
* - iterators values are unique
|
|
245
|
+
* Checks if input value is `undefined`.
|
|
159
246
|
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* -
|
|
163
|
-
*
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
function _equals(a, b, stackA, stackB) {
|
|
178
|
-
if ((0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b)) {
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
var typeA = (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(a);
|
|
182
|
-
if (typeA !== (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(b)) {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
|
|
186
|
-
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
|
|
187
|
-
}
|
|
188
|
-
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
|
|
189
|
-
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
|
|
190
|
-
}
|
|
191
|
-
switch (typeA) {
|
|
192
|
-
case 'Arguments':
|
|
193
|
-
case 'Array':
|
|
194
|
-
case 'Object':
|
|
195
|
-
if (typeof a.constructor === 'function' && (0,_functionName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a.constructor) === 'Promise') {
|
|
196
|
-
return a === b;
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
case 'Boolean':
|
|
200
|
-
case 'Number':
|
|
201
|
-
case 'String':
|
|
202
|
-
if (!(typeof a === typeof b && (0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf()))) {
|
|
203
|
-
return false;
|
|
204
|
-
}
|
|
205
|
-
break;
|
|
206
|
-
case 'Date':
|
|
207
|
-
if (!(0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf())) {
|
|
208
|
-
return false;
|
|
209
|
-
}
|
|
210
|
-
break;
|
|
211
|
-
case 'Error':
|
|
212
|
-
return a.name === b.name && a.message === b.message;
|
|
213
|
-
case 'RegExp':
|
|
214
|
-
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
|
|
215
|
-
return false;
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
var idx = stackA.length - 1;
|
|
220
|
-
while (idx >= 0) {
|
|
221
|
-
if (stackA[idx] === a) {
|
|
222
|
-
return stackB[idx] === b;
|
|
223
|
-
}
|
|
224
|
-
idx -= 1;
|
|
225
|
-
}
|
|
226
|
-
switch (typeA) {
|
|
227
|
-
case 'Map':
|
|
228
|
-
if (a.size !== b.size) {
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
232
|
-
case 'Set':
|
|
233
|
-
if (a.size !== b.size) {
|
|
234
|
-
return false;
|
|
235
|
-
}
|
|
236
|
-
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
237
|
-
case 'Arguments':
|
|
238
|
-
case 'Array':
|
|
239
|
-
case 'Object':
|
|
240
|
-
case 'Boolean':
|
|
241
|
-
case 'Number':
|
|
242
|
-
case 'String':
|
|
243
|
-
case 'Date':
|
|
244
|
-
case 'Error':
|
|
245
|
-
case 'RegExp':
|
|
246
|
-
case 'Int8Array':
|
|
247
|
-
case 'Uint8Array':
|
|
248
|
-
case 'Uint8ClampedArray':
|
|
249
|
-
case 'Int16Array':
|
|
250
|
-
case 'Uint16Array':
|
|
251
|
-
case 'Int32Array':
|
|
252
|
-
case 'Uint32Array':
|
|
253
|
-
case 'Float32Array':
|
|
254
|
-
case 'Float64Array':
|
|
255
|
-
case 'ArrayBuffer':
|
|
256
|
-
break;
|
|
257
|
-
default:
|
|
258
|
-
// Values of other types are only equal if identical.
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
var keysA = (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(a);
|
|
262
|
-
if (keysA.length !== (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(b).length) {
|
|
263
|
-
return false;
|
|
264
|
-
}
|
|
265
|
-
var extendedStackA = stackA.concat([a]);
|
|
266
|
-
var extendedStackB = stackB.concat([b]);
|
|
267
|
-
idx = keysA.length - 1;
|
|
268
|
-
while (idx >= 0) {
|
|
269
|
-
var key = keysA[idx];
|
|
270
|
-
if (!((0,_has_js__WEBPACK_IMPORTED_MODULE_3__["default"])(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
271
|
-
return false;
|
|
272
|
-
}
|
|
273
|
-
idx -= 1;
|
|
274
|
-
}
|
|
275
|
-
return true;
|
|
276
|
-
}
|
|
247
|
+
* @func isUndefined
|
|
248
|
+
* @memberOf RA
|
|
249
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
|
|
250
|
+
* @category Type
|
|
251
|
+
* @sig * -> Boolean
|
|
252
|
+
* @param {*} val The value to test
|
|
253
|
+
* @return {boolean}
|
|
254
|
+
* @see {@link RA.isNotUndefined|isNotUndefined}
|
|
255
|
+
* @example
|
|
256
|
+
*
|
|
257
|
+
* RA.isUndefined(1); //=> false
|
|
258
|
+
* RA.isUndefined(undefined); //=> true
|
|
259
|
+
* RA.isUndefined(null); //=> false
|
|
260
|
+
*/
|
|
261
|
+
var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined_js__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
262
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isUndefined);
|
|
277
263
|
|
|
278
264
|
/***/ },
|
|
279
265
|
|
|
280
|
-
/***/
|
|
266
|
+
/***/ 3387
|
|
281
267
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
282
268
|
|
|
283
269
|
__webpack_require__.r(__webpack_exports__);
|
|
284
270
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
285
271
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
286
272
|
/* harmony export */ });
|
|
287
|
-
/* harmony import */ var
|
|
288
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
289
|
-
|
|
273
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9498);
|
|
290
274
|
|
|
291
275
|
|
|
292
276
|
/**
|
|
293
|
-
*
|
|
294
|
-
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
295
|
-
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
277
|
+
* A function that returns `undefined`.
|
|
296
278
|
*
|
|
297
|
-
* @func
|
|
298
|
-
* @memberOf
|
|
299
|
-
* @since
|
|
279
|
+
* @func stubUndefined
|
|
280
|
+
* @memberOf RA
|
|
281
|
+
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
300
282
|
* @category Function
|
|
301
|
-
* @
|
|
302
|
-
* @
|
|
303
|
-
* @param {Function} fn The function to bind to context
|
|
304
|
-
* @param {Object} thisObj The context to bind `fn` to
|
|
305
|
-
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
306
|
-
* @see R.partial
|
|
283
|
+
* @sig ... -> undefined
|
|
284
|
+
* @return {undefined}
|
|
307
285
|
* @example
|
|
308
286
|
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
* // logs {a: 2}
|
|
312
|
-
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
313
|
-
*/
|
|
314
|
-
var bind = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function bind(fn, thisObj) {
|
|
315
|
-
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fn.length, function () {
|
|
316
|
-
return fn.apply(thisObj, arguments);
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bind);
|
|
320
|
-
|
|
321
|
-
/***/ },
|
|
322
|
-
|
|
323
|
-
/***/ 746
|
|
324
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
325
|
-
|
|
326
|
-
__webpack_require__.r(__webpack_exports__);
|
|
327
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
328
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
329
|
-
/* harmony export */ });
|
|
330
|
-
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @public
|
|
287
|
+
* RA.stubUndefined(); //=> undefined
|
|
288
|
+
* RA.stubUndefined(1, 2, 3); //=> undefined
|
|
334
289
|
*/
|
|
335
|
-
|
|
336
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
290
|
+
var stubUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(void 0);
|
|
291
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stubUndefined);
|
|
337
292
|
|
|
338
293
|
/***/ },
|
|
339
294
|
|
|
340
|
-
/***/
|
|
295
|
+
/***/ 9498
|
|
341
296
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
342
297
|
|
|
343
298
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -348,51 +303,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
348
303
|
|
|
349
304
|
|
|
350
305
|
/**
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
306
|
+
* Returns a function that always returns the given value. Note that for
|
|
307
|
+
* non-primitives the value returned is a reference to the original value.
|
|
308
|
+
*
|
|
309
|
+
* This function is known as `const`, `constant`, or `K` (for K combinator) in
|
|
310
|
+
* other languages and libraries.
|
|
355
311
|
*
|
|
356
312
|
* @func
|
|
357
313
|
* @memberOf R
|
|
358
|
-
* @since v0.
|
|
359
|
-
* @category
|
|
360
|
-
* @sig * ->
|
|
361
|
-
* @param {*} val The value to
|
|
362
|
-
* @return {
|
|
314
|
+
* @since v0.1.0
|
|
315
|
+
* @category Function
|
|
316
|
+
* @sig a -> (* -> a)
|
|
317
|
+
* @param {*} val The value to wrap in a function
|
|
318
|
+
* @return {Function} A Function :: * -> val.
|
|
363
319
|
* @example
|
|
364
320
|
*
|
|
365
|
-
* R.
|
|
366
|
-
*
|
|
367
|
-
* R.type(new Set); //=> "Set"
|
|
368
|
-
* R.type(1); //=> "Number"
|
|
369
|
-
* R.type(false); //=> "Boolean"
|
|
370
|
-
* R.type('s'); //=> "String"
|
|
371
|
-
* R.type(null); //=> "Null"
|
|
372
|
-
* R.type([]); //=> "Array"
|
|
373
|
-
* R.type(/[A-z]/); //=> "RegExp"
|
|
374
|
-
* R.type(() => {}); //=> "Function"
|
|
375
|
-
* R.type(async () => {}); //=> "AsyncFunction"
|
|
376
|
-
* R.type(undefined); //=> "Undefined"
|
|
377
|
-
* R.type(BigInt(123)); //=> "BigInt"
|
|
321
|
+
* const t = R.always('Tee');
|
|
322
|
+
* t(); //=> 'Tee'
|
|
378
323
|
*/
|
|
379
|
-
var
|
|
380
|
-
return
|
|
324
|
+
var always = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function always(val) {
|
|
325
|
+
return function () {
|
|
326
|
+
return val;
|
|
327
|
+
};
|
|
381
328
|
});
|
|
382
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
383
|
-
|
|
384
|
-
/***/ },
|
|
385
|
-
|
|
386
|
-
/***/ 1003
|
|
387
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
388
|
-
|
|
389
|
-
__webpack_require__.r(__webpack_exports__);
|
|
390
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
391
|
-
/* harmony export */ "default": () => (/* binding */ _isPlaceholder)
|
|
392
|
-
/* harmony export */ });
|
|
393
|
-
function _isPlaceholder(a) {
|
|
394
|
-
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
|
395
|
-
}
|
|
329
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (always);
|
|
396
330
|
|
|
397
331
|
/***/ },
|
|
398
332
|
|
|
@@ -457,293 +391,268 @@ var anyPass = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["
|
|
|
457
391
|
|
|
458
392
|
/***/ },
|
|
459
393
|
|
|
460
|
-
/***/
|
|
394
|
+
/***/ 560
|
|
461
395
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
462
396
|
|
|
463
397
|
__webpack_require__.r(__webpack_exports__);
|
|
464
398
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
465
399
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
466
400
|
/* harmony export */ });
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
// SameValue algorithm
|
|
470
|
-
if (a === b) {
|
|
471
|
-
// Steps 1-5, 7-10
|
|
472
|
-
// Steps 6.b-6.e: +0 != -0
|
|
473
|
-
return a !== 0 || 1 / a === 1 / b;
|
|
474
|
-
} else {
|
|
475
|
-
// Step 6.a: NaN == NaN
|
|
476
|
-
return a !== a && b !== b;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Object.is === 'function' ? Object.is : _objectIs);
|
|
480
|
-
|
|
481
|
-
/***/ },
|
|
482
|
-
|
|
483
|
-
/***/ 1941
|
|
484
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
485
|
-
|
|
486
|
-
__webpack_require__.r(__webpack_exports__);
|
|
487
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
488
|
-
/* harmony export */ "default": () => (/* binding */ _arrayFromIterator)
|
|
489
|
-
/* harmony export */ });
|
|
490
|
-
function _arrayFromIterator(iter) {
|
|
491
|
-
var list = [];
|
|
492
|
-
var next;
|
|
493
|
-
while (!(next = iter.next()).done) {
|
|
494
|
-
list.push(next.value);
|
|
495
|
-
}
|
|
496
|
-
return list;
|
|
497
|
-
}
|
|
401
|
+
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
402
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
498
403
|
|
|
499
|
-
/***/ },
|
|
500
404
|
|
|
501
|
-
/***/ 1950
|
|
502
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
503
405
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
406
|
+
/**
|
|
407
|
+
* Creates a function that is bound to a context.
|
|
408
|
+
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
409
|
+
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
410
|
+
*
|
|
411
|
+
* @func
|
|
412
|
+
* @memberOf R
|
|
413
|
+
* @since v0.6.0
|
|
414
|
+
* @category Function
|
|
415
|
+
* @category Object
|
|
416
|
+
* @sig (* -> *) -> {*} -> (* -> *)
|
|
417
|
+
* @param {Function} fn The function to bind to context
|
|
418
|
+
* @param {Object} thisObj The context to bind `fn` to
|
|
419
|
+
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
420
|
+
* @see R.partial
|
|
421
|
+
* @example
|
|
422
|
+
*
|
|
423
|
+
* const log = R.bind(console.log, console);
|
|
424
|
+
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
425
|
+
* // logs {a: 2}
|
|
426
|
+
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
427
|
+
*/
|
|
428
|
+
var bind = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function bind(fn, thisObj) {
|
|
429
|
+
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fn.length, function () {
|
|
430
|
+
return fn.apply(thisObj, arguments);
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bind);
|
|
513
434
|
|
|
514
435
|
/***/ },
|
|
515
436
|
|
|
516
|
-
/***/
|
|
437
|
+
/***/ 9784
|
|
517
438
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
518
439
|
|
|
519
440
|
__webpack_require__.r(__webpack_exports__);
|
|
520
441
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
521
|
-
/* harmony export */ "default": () => (
|
|
442
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
522
443
|
/* harmony export */ });
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
while (!current.done) {
|
|
528
|
-
if (fn(current.value[1])) {
|
|
529
|
-
result.set(current.value[0], current.value[1]);
|
|
530
|
-
}
|
|
531
|
-
current = iterator.next();
|
|
532
|
-
}
|
|
533
|
-
return result;
|
|
534
|
-
}
|
|
444
|
+
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
445
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
446
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5959);
|
|
447
|
+
/* harmony import */ var _internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2459);
|
|
535
448
|
|
|
536
|
-
/***/ },
|
|
537
449
|
|
|
538
|
-
/***/ 2243
|
|
539
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
540
450
|
|
|
541
|
-
__webpack_require__.r(__webpack_exports__);
|
|
542
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
543
|
-
/* harmony export */ "default": () => (/* binding */ _indexOf)
|
|
544
|
-
/* harmony export */ });
|
|
545
|
-
/* harmony import */ var _equals_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
546
451
|
|
|
547
|
-
function _indexOf(list, a, idx) {
|
|
548
|
-
var inf, item;
|
|
549
|
-
// Array.prototype.indexOf doesn't exist below IE9
|
|
550
|
-
if (typeof list.indexOf === 'function') {
|
|
551
|
-
switch (typeof a) {
|
|
552
|
-
case 'number':
|
|
553
|
-
if (a === 0) {
|
|
554
|
-
// manually crawl the list to distinguish between +0 and -0
|
|
555
|
-
inf = 1 / a;
|
|
556
|
-
while (idx < list.length) {
|
|
557
|
-
item = list[idx];
|
|
558
|
-
if (item === 0 && 1 / item === inf) {
|
|
559
|
-
return idx;
|
|
560
|
-
}
|
|
561
|
-
idx += 1;
|
|
562
|
-
}
|
|
563
|
-
return -1;
|
|
564
|
-
} else if (a !== a) {
|
|
565
|
-
// NaN
|
|
566
|
-
while (idx < list.length) {
|
|
567
|
-
item = list[idx];
|
|
568
|
-
if (typeof item === 'number' && item !== item) {
|
|
569
|
-
return idx;
|
|
570
|
-
}
|
|
571
|
-
idx += 1;
|
|
572
|
-
}
|
|
573
|
-
return -1;
|
|
574
|
-
}
|
|
575
|
-
// non-zero numbers can utilise Set
|
|
576
|
-
return list.indexOf(a, idx);
|
|
577
452
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
453
|
+
/**
|
|
454
|
+
* Returns a curried equivalent of the provided function, with the specified
|
|
455
|
+
* arity. The curried function has two unusual capabilities. First, its
|
|
456
|
+
* arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
|
|
457
|
+
* following are equivalent:
|
|
458
|
+
*
|
|
459
|
+
* - `g(1)(2)(3)`
|
|
460
|
+
* - `g(1)(2, 3)`
|
|
461
|
+
* - `g(1, 2)(3)`
|
|
462
|
+
* - `g(1, 2, 3)`
|
|
463
|
+
*
|
|
464
|
+
* Secondly, the special placeholder value [`R.__`](#__) may be used to specify
|
|
465
|
+
* "gaps", allowing partial application of any combination of arguments,
|
|
466
|
+
* regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
|
|
467
|
+
* the following are equivalent:
|
|
468
|
+
*
|
|
469
|
+
* - `g(1, 2, 3)`
|
|
470
|
+
* - `g(_, 2, 3)(1)`
|
|
471
|
+
* - `g(_, _, 3)(1)(2)`
|
|
472
|
+
* - `g(_, _, 3)(1, 2)`
|
|
473
|
+
* - `g(_, 2)(1)(3)`
|
|
474
|
+
* - `g(_, 2)(1, 3)`
|
|
475
|
+
* - `g(_, 2)(_, 3)(1)`
|
|
476
|
+
*
|
|
477
|
+
* @func
|
|
478
|
+
* @memberOf R
|
|
479
|
+
* @since v0.5.0
|
|
480
|
+
* @category Function
|
|
481
|
+
* @sig Number -> (* -> a) -> (* -> a)
|
|
482
|
+
* @param {Number} length The arity for the returned function.
|
|
483
|
+
* @param {Function} fn The function to curry.
|
|
484
|
+
* @return {Function} A new, curried function.
|
|
485
|
+
* @see R.curry
|
|
486
|
+
* @example
|
|
487
|
+
*
|
|
488
|
+
* const sumArgs = (...args) => R.sum(args);
|
|
489
|
+
*
|
|
490
|
+
* const curriedAddFourNumbers = R.curryN(4, sumArgs);
|
|
491
|
+
* const f = curriedAddFourNumbers(1, 2);
|
|
492
|
+
* const g = f(3);
|
|
493
|
+
* g(4); //=> 10
|
|
494
|
+
*/
|
|
495
|
+
var curryN = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function curryN(length, fn) {
|
|
496
|
+
if (length === 1) {
|
|
497
|
+
return (0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn);
|
|
597
498
|
}
|
|
598
|
-
return
|
|
599
|
-
}
|
|
499
|
+
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(length, (0,_internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__["default"])(length, [], fn));
|
|
500
|
+
});
|
|
501
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (curryN);
|
|
600
502
|
|
|
601
503
|
/***/ },
|
|
602
504
|
|
|
603
|
-
/***/
|
|
505
|
+
/***/ 3654
|
|
604
506
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
605
507
|
|
|
606
508
|
__webpack_require__.r(__webpack_exports__);
|
|
607
509
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
608
510
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
609
511
|
/* harmony export */ });
|
|
610
|
-
/* harmony import */ var
|
|
512
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
513
|
+
/* harmony import */ var _internal_equals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497);
|
|
514
|
+
|
|
611
515
|
|
|
612
516
|
|
|
613
517
|
/**
|
|
614
|
-
*
|
|
518
|
+
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
519
|
+
* cyclical data structures.
|
|
520
|
+
*
|
|
521
|
+
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
522
|
+
* present.
|
|
523
|
+
*
|
|
524
|
+
* @func
|
|
525
|
+
* @memberOf R
|
|
526
|
+
* @since v0.15.0
|
|
527
|
+
* @category Relation
|
|
528
|
+
* @sig a -> b -> Boolean
|
|
529
|
+
* @param {*} a
|
|
530
|
+
* @param {*} b
|
|
531
|
+
* @return {Boolean}
|
|
532
|
+
* @example
|
|
533
|
+
*
|
|
534
|
+
* R.equals(1, 1); //=> true
|
|
535
|
+
* R.equals(1, '1'); //=> false
|
|
536
|
+
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
537
|
+
*
|
|
538
|
+
* const a = {}; a.v = a;
|
|
539
|
+
* const b = {}; b.v = b;
|
|
540
|
+
* R.equals(a, b); //=> true
|
|
615
541
|
*/
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
findBy() {
|
|
622
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('findBy method in MediaTypes class is not yet implemented.');
|
|
623
|
-
}
|
|
624
|
-
latest() {
|
|
625
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('latest method in MediaTypes class is not yet implemented.');
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MediaTypes);
|
|
542
|
+
var equals = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function equals(a, b) {
|
|
543
|
+
return (0,_internal_equals_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a, b, [], []);
|
|
544
|
+
});
|
|
545
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (equals);
|
|
629
546
|
|
|
630
547
|
/***/ },
|
|
631
548
|
|
|
632
|
-
/***/
|
|
549
|
+
/***/ 8481
|
|
633
550
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
634
551
|
|
|
635
552
|
__webpack_require__.r(__webpack_exports__);
|
|
636
553
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
637
|
-
/* harmony export */ "default": () => (
|
|
554
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
638
555
|
/* harmony export */ });
|
|
639
|
-
/* harmony import */ var
|
|
640
|
-
/* harmony import */ var
|
|
641
|
-
/* harmony import */ var
|
|
642
|
-
/* harmony import */ var
|
|
643
|
-
/* harmony import */ var
|
|
644
|
-
/* harmony import */ var
|
|
556
|
+
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4121);
|
|
557
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
558
|
+
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6738);
|
|
559
|
+
/* harmony import */ var _internal_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6574);
|
|
560
|
+
/* harmony import */ var _internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2098);
|
|
561
|
+
/* harmony import */ var _internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8772);
|
|
562
|
+
/* harmony import */ var _internal_isObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(131);
|
|
563
|
+
/* harmony import */ var _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8080);
|
|
564
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7783);
|
|
645
565
|
|
|
646
566
|
|
|
647
567
|
|
|
648
568
|
|
|
649
569
|
|
|
650
570
|
|
|
651
|
-
function _toString(x, seen) {
|
|
652
|
-
var recur = function recur(y) {
|
|
653
|
-
var xs = seen.concat([x]);
|
|
654
|
-
return (0,_includes_js__WEBPACK_IMPORTED_MODULE_0__["default"])(y, xs) ? '<Circular>' : _toString(y, xs);
|
|
655
|
-
};
|
|
656
571
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Takes a predicate and a `Filterable`, and returns a new filterable of the
|
|
577
|
+
* same type containing the members of the given filterable which satisfy the
|
|
578
|
+
* given predicate. Filterable objects include plain objects, Maps, or any object
|
|
579
|
+
* that has a filter method such as `Array`.
|
|
580
|
+
*
|
|
581
|
+
* Dispatches to the `filter` method of the second argument, if present.
|
|
582
|
+
*
|
|
583
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
584
|
+
*
|
|
585
|
+
* @func
|
|
586
|
+
* @memberOf R
|
|
587
|
+
* @since v0.1.0
|
|
588
|
+
* @category List
|
|
589
|
+
* @category Object
|
|
590
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
591
|
+
* @param {Function} pred
|
|
592
|
+
* @param {Array} filterable
|
|
593
|
+
* @return {Array} Filterable
|
|
594
|
+
* @see R.reject, R.transduce, R.addIndex
|
|
595
|
+
* @example
|
|
596
|
+
*
|
|
597
|
+
* const isEven = n => n % 2 === 0;
|
|
598
|
+
*
|
|
599
|
+
* R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
|
|
600
|
+
*
|
|
601
|
+
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
602
|
+
*/
|
|
603
|
+
var filter = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__["default"])(['fantasy-land/filter', 'filter'], _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_7__["default"], function (pred, filterable) {
|
|
604
|
+
return (0,_internal_isObject_js__WEBPACK_IMPORTED_MODULE_6__["default"])(filterable) ? (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (acc, key) {
|
|
605
|
+
if (pred(filterable[key])) {
|
|
606
|
+
acc[key] = filterable[key];
|
|
607
|
+
}
|
|
608
|
+
return acc;
|
|
609
|
+
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_8__["default"])(filterable)) : (0,_internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__["default"])(filterable) ? (0,_internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__["default"])(pred, filterable) :
|
|
610
|
+
// else
|
|
611
|
+
(0,_internal_filter_js__WEBPACK_IMPORTED_MODULE_3__["default"])(pred, filterable);
|
|
612
|
+
}));
|
|
613
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (filter);
|
|
696
614
|
|
|
697
615
|
/***/ },
|
|
698
616
|
|
|
699
|
-
/***/
|
|
617
|
+
/***/ 5121
|
|
700
618
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
701
619
|
|
|
702
620
|
__webpack_require__.r(__webpack_exports__);
|
|
703
621
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
704
|
-
/* harmony export */ "default": () => (
|
|
622
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
705
623
|
/* harmony export */ });
|
|
706
|
-
/* harmony import */ var
|
|
707
|
-
/* harmony import */ var
|
|
624
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
625
|
+
/* harmony import */ var _internal_nth_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5136);
|
|
708
626
|
|
|
709
627
|
|
|
710
628
|
|
|
711
629
|
/**
|
|
712
|
-
*
|
|
630
|
+
* Returns the first element of the given list or string. In some libraries
|
|
631
|
+
* this function is named `first`.
|
|
713
632
|
*
|
|
714
|
-
* @
|
|
715
|
-
* @
|
|
716
|
-
* @
|
|
717
|
-
* @
|
|
718
|
-
* @
|
|
719
|
-
* @
|
|
633
|
+
* @func
|
|
634
|
+
* @memberOf R
|
|
635
|
+
* @since v0.1.0
|
|
636
|
+
* @category List
|
|
637
|
+
* @sig [a] -> a | Undefined
|
|
638
|
+
* @sig String -> String | Undefined
|
|
639
|
+
* @param {Array|String} list
|
|
640
|
+
* @return {*}
|
|
641
|
+
* @see R.tail, R.init, R.last
|
|
642
|
+
* @example
|
|
643
|
+
*
|
|
644
|
+
* R.head([1, 2, 3]); //=> 1
|
|
645
|
+
* R.head([1]); //=> 1
|
|
646
|
+
* R.head([]); //=> undefined
|
|
647
|
+
*
|
|
648
|
+
* R.head('abc'); //=> 'a'
|
|
649
|
+
* R.head('a'); //=> 'a'
|
|
650
|
+
* R.head(''); //=> undefined
|
|
720
651
|
*/
|
|
721
|
-
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
var left = length;
|
|
726
|
-
var combinedIdx = 0;
|
|
727
|
-
var hasPlaceholder = false;
|
|
728
|
-
while (combinedIdx < received.length || argsIdx < arguments.length) {
|
|
729
|
-
var result;
|
|
730
|
-
if (combinedIdx < received.length && (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
|
731
|
-
result = received[combinedIdx];
|
|
732
|
-
} else {
|
|
733
|
-
result = arguments[argsIdx];
|
|
734
|
-
argsIdx += 1;
|
|
735
|
-
}
|
|
736
|
-
combined[combinedIdx] = result;
|
|
737
|
-
if (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(result)) {
|
|
738
|
-
left -= 1;
|
|
739
|
-
} else {
|
|
740
|
-
hasPlaceholder = true;
|
|
741
|
-
}
|
|
742
|
-
combinedIdx += 1;
|
|
743
|
-
}
|
|
744
|
-
return !hasPlaceholder && left <= 0 ? fn.apply(this, combined) : (0,_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.max(0, left), _curryN(length, combined, fn));
|
|
745
|
-
};
|
|
746
|
-
}
|
|
652
|
+
var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
|
|
653
|
+
return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
|
|
654
|
+
});
|
|
655
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (head);
|
|
747
656
|
|
|
748
657
|
/***/ },
|
|
749
658
|
|
|
@@ -813,348 +722,653 @@ var identical = function (a, b) {
|
|
|
813
722
|
|
|
814
723
|
/***/ },
|
|
815
724
|
|
|
816
|
-
/***/
|
|
725
|
+
/***/ 3607
|
|
817
726
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
818
727
|
|
|
819
728
|
__webpack_require__.r(__webpack_exports__);
|
|
820
729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
821
|
-
/* harmony export */ "default": () => (/* binding */
|
|
730
|
+
/* harmony export */ "default": () => (/* binding */ _arity)
|
|
822
731
|
/* harmony export */ });
|
|
823
|
-
function
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
732
|
+
function _arity(n, fn) {
|
|
733
|
+
/* eslint-disable no-unused-vars */
|
|
734
|
+
switch (n) {
|
|
735
|
+
case 0:
|
|
736
|
+
return function () {
|
|
737
|
+
return fn.apply(this, arguments);
|
|
738
|
+
};
|
|
739
|
+
case 1:
|
|
740
|
+
return function (a0) {
|
|
741
|
+
return fn.apply(this, arguments);
|
|
742
|
+
};
|
|
743
|
+
case 2:
|
|
744
|
+
return function (a0, a1) {
|
|
745
|
+
return fn.apply(this, arguments);
|
|
746
|
+
};
|
|
747
|
+
case 3:
|
|
748
|
+
return function (a0, a1, a2) {
|
|
749
|
+
return fn.apply(this, arguments);
|
|
750
|
+
};
|
|
751
|
+
case 4:
|
|
752
|
+
return function (a0, a1, a2, a3) {
|
|
753
|
+
return fn.apply(this, arguments);
|
|
754
|
+
};
|
|
755
|
+
case 5:
|
|
756
|
+
return function (a0, a1, a2, a3, a4) {
|
|
757
|
+
return fn.apply(this, arguments);
|
|
758
|
+
};
|
|
759
|
+
case 6:
|
|
760
|
+
return function (a0, a1, a2, a3, a4, a5) {
|
|
761
|
+
return fn.apply(this, arguments);
|
|
762
|
+
};
|
|
763
|
+
case 7:
|
|
764
|
+
return function (a0, a1, a2, a3, a4, a5, a6) {
|
|
765
|
+
return fn.apply(this, arguments);
|
|
766
|
+
};
|
|
767
|
+
case 8:
|
|
768
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
|
|
769
|
+
return fn.apply(this, arguments);
|
|
770
|
+
};
|
|
771
|
+
case 9:
|
|
772
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
|
|
773
|
+
return fn.apply(this, arguments);
|
|
774
|
+
};
|
|
775
|
+
case 10:
|
|
776
|
+
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
|
|
777
|
+
return fn.apply(this, arguments);
|
|
778
|
+
};
|
|
779
|
+
default:
|
|
780
|
+
throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
|
|
833
781
|
}
|
|
834
|
-
return xf['@@transducer/result'](acc);
|
|
835
782
|
}
|
|
836
783
|
|
|
837
784
|
/***/ },
|
|
838
785
|
|
|
839
|
-
/***/
|
|
786
|
+
/***/ 1941
|
|
840
787
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
841
788
|
|
|
842
789
|
__webpack_require__.r(__webpack_exports__);
|
|
843
790
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
844
|
-
/* harmony export */ "default": () => (
|
|
791
|
+
/* harmony export */ "default": () => (/* binding */ _arrayFromIterator)
|
|
845
792
|
/* harmony export */ });
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
* @func isUndefined
|
|
855
|
-
* @memberOf RA
|
|
856
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
|
|
857
|
-
* @category Type
|
|
858
|
-
* @sig * -> Boolean
|
|
859
|
-
* @param {*} val The value to test
|
|
860
|
-
* @return {boolean}
|
|
861
|
-
* @see {@link RA.isNotUndefined|isNotUndefined}
|
|
862
|
-
* @example
|
|
863
|
-
*
|
|
864
|
-
* RA.isUndefined(1); //=> false
|
|
865
|
-
* RA.isUndefined(undefined); //=> true
|
|
866
|
-
* RA.isUndefined(null); //=> false
|
|
867
|
-
*/
|
|
868
|
-
var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined_js__WEBPACK_IMPORTED_MODULE_1__["default"])());
|
|
869
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isUndefined);
|
|
793
|
+
function _arrayFromIterator(iter) {
|
|
794
|
+
var list = [];
|
|
795
|
+
var next;
|
|
796
|
+
while (!(next = iter.next()).done) {
|
|
797
|
+
list.push(next.value);
|
|
798
|
+
}
|
|
799
|
+
return list;
|
|
800
|
+
}
|
|
870
801
|
|
|
871
802
|
/***/ },
|
|
872
803
|
|
|
873
|
-
/***/
|
|
804
|
+
/***/ 4121
|
|
874
805
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
875
806
|
|
|
876
807
|
__webpack_require__.r(__webpack_exports__);
|
|
877
808
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
878
|
-
/* harmony export */ "default": () => (
|
|
809
|
+
/* harmony export */ "default": () => (/* binding */ _arrayReduce)
|
|
879
810
|
/* harmony export */ });
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
811
|
+
function _arrayReduce(reducer, acc, list) {
|
|
812
|
+
var index = 0;
|
|
813
|
+
var length = list.length;
|
|
814
|
+
while (index < length) {
|
|
815
|
+
acc = reducer(acc, list[index]);
|
|
816
|
+
index += 1;
|
|
886
817
|
}
|
|
887
|
-
|
|
818
|
+
return acc;
|
|
819
|
+
}
|
|
888
820
|
|
|
889
821
|
/***/ },
|
|
890
822
|
|
|
891
|
-
/***/
|
|
823
|
+
/***/ 6122
|
|
892
824
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
893
825
|
|
|
894
826
|
__webpack_require__.r(__webpack_exports__);
|
|
895
827
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
896
|
-
/* harmony export */ "default": () => (
|
|
828
|
+
/* harmony export */ "default": () => (/* binding */ _checkForMethod)
|
|
897
829
|
/* harmony export */ });
|
|
898
|
-
/* harmony import */ var
|
|
830
|
+
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4099);
|
|
899
831
|
|
|
900
832
|
|
|
901
833
|
/**
|
|
902
|
-
*
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
* @memberOf RA
|
|
906
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
|
|
907
|
-
* @category Function
|
|
908
|
-
* @sig ... -> undefined
|
|
909
|
-
* @return {undefined}
|
|
910
|
-
* @example
|
|
834
|
+
* This checks whether a function has a [methodname] function. If it isn't an
|
|
835
|
+
* array it will execute that function otherwise it will default to the ramda
|
|
836
|
+
* implementation.
|
|
911
837
|
*
|
|
912
|
-
*
|
|
913
|
-
*
|
|
838
|
+
* @private
|
|
839
|
+
* @param {Function} fn ramda implementation
|
|
840
|
+
* @param {String} methodname property to check for a custom implementation
|
|
841
|
+
* @return {Object} Whatever the return value of the method is.
|
|
914
842
|
*/
|
|
915
|
-
|
|
916
|
-
|
|
843
|
+
function _checkForMethod(methodname, fn) {
|
|
844
|
+
return function () {
|
|
845
|
+
var length = arguments.length;
|
|
846
|
+
if (length === 0) {
|
|
847
|
+
return fn();
|
|
848
|
+
}
|
|
849
|
+
var obj = arguments[length - 1];
|
|
850
|
+
return (0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
|
|
851
|
+
};
|
|
852
|
+
}
|
|
917
853
|
|
|
918
854
|
/***/ },
|
|
919
855
|
|
|
920
|
-
/***/
|
|
856
|
+
/***/ 7940
|
|
921
857
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
922
858
|
|
|
923
859
|
__webpack_require__.r(__webpack_exports__);
|
|
924
860
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
925
|
-
/* harmony export */ "default": () => (
|
|
861
|
+
/* harmony export */ "default": () => (/* binding */ _complement)
|
|
926
862
|
/* harmony export */ });
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
constructor(errors, message, options) {
|
|
932
|
-
super(errors, message, options);
|
|
933
|
-
this.name = this.constructor.name;
|
|
934
|
-
if (typeof Error.captureStackTrace === 'function') {
|
|
935
|
-
Error.captureStackTrace(this, this.constructor);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
863
|
+
function _complement(f) {
|
|
864
|
+
return function () {
|
|
865
|
+
return !f.apply(this, arguments);
|
|
866
|
+
};
|
|
938
867
|
}
|
|
939
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMAggregateError);
|
|
940
868
|
|
|
941
869
|
/***/ },
|
|
942
870
|
|
|
943
|
-
/***/
|
|
871
|
+
/***/ 4334
|
|
944
872
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
945
873
|
|
|
946
874
|
__webpack_require__.r(__webpack_exports__);
|
|
947
875
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
948
|
-
/* harmony export */ "default": () => (/* binding */
|
|
876
|
+
/* harmony export */ "default": () => (/* binding */ _createReduce)
|
|
949
877
|
/* harmony export */ });
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
return
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
return fn.apply(this, arguments);
|
|
976
|
-
};
|
|
977
|
-
case 6:
|
|
978
|
-
return function (a0, a1, a2, a3, a4, a5) {
|
|
979
|
-
return fn.apply(this, arguments);
|
|
980
|
-
};
|
|
981
|
-
case 7:
|
|
982
|
-
return function (a0, a1, a2, a3, a4, a5, a6) {
|
|
983
|
-
return fn.apply(this, arguments);
|
|
984
|
-
};
|
|
985
|
-
case 8:
|
|
986
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
|
|
987
|
-
return fn.apply(this, arguments);
|
|
988
|
-
};
|
|
989
|
-
case 9:
|
|
990
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
|
|
991
|
-
return fn.apply(this, arguments);
|
|
992
|
-
};
|
|
993
|
-
case 10:
|
|
994
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
|
|
995
|
-
return fn.apply(this, arguments);
|
|
996
|
-
};
|
|
997
|
-
default:
|
|
998
|
-
throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
|
|
999
|
-
}
|
|
878
|
+
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4620);
|
|
879
|
+
|
|
880
|
+
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
881
|
+
function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
882
|
+
return function _reduce(xf, acc, list) {
|
|
883
|
+
if ((0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list)) {
|
|
884
|
+
return arrayReduce(xf, acc, list);
|
|
885
|
+
}
|
|
886
|
+
if (list == null) {
|
|
887
|
+
return acc;
|
|
888
|
+
}
|
|
889
|
+
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
890
|
+
return methodReduce(xf, acc, list, 'fantasy-land/reduce');
|
|
891
|
+
}
|
|
892
|
+
if (list[symIterator] != null) {
|
|
893
|
+
return iterableReduce(xf, acc, list[symIterator]());
|
|
894
|
+
}
|
|
895
|
+
if (typeof list.next === 'function') {
|
|
896
|
+
return iterableReduce(xf, acc, list);
|
|
897
|
+
}
|
|
898
|
+
if (typeof list.reduce === 'function') {
|
|
899
|
+
return methodReduce(xf, acc, list, 'reduce');
|
|
900
|
+
}
|
|
901
|
+
throw new TypeError('reduce: list must be array or iterable');
|
|
902
|
+
};
|
|
1000
903
|
}
|
|
1001
904
|
|
|
1002
905
|
/***/ },
|
|
1003
906
|
|
|
1004
|
-
/***/
|
|
907
|
+
/***/ 8938
|
|
1005
908
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1006
909
|
|
|
1007
910
|
__webpack_require__.r(__webpack_exports__);
|
|
1008
911
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1009
|
-
/* harmony export */ "default": () => (
|
|
912
|
+
/* harmony export */ "default": () => (/* binding */ _curry1)
|
|
1010
913
|
/* harmony export */ });
|
|
1011
|
-
/* harmony import */ var
|
|
1012
|
-
/* harmony import */ var _internal_equals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(497);
|
|
1013
|
-
|
|
914
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1003);
|
|
1014
915
|
|
|
1015
916
|
|
|
1016
917
|
/**
|
|
1017
|
-
*
|
|
1018
|
-
* cyclical data structures.
|
|
1019
|
-
*
|
|
1020
|
-
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
1021
|
-
* present.
|
|
1022
|
-
*
|
|
1023
|
-
* @func
|
|
1024
|
-
* @memberOf R
|
|
1025
|
-
* @since v0.15.0
|
|
1026
|
-
* @category Relation
|
|
1027
|
-
* @sig a -> b -> Boolean
|
|
1028
|
-
* @param {*} a
|
|
1029
|
-
* @param {*} b
|
|
1030
|
-
* @return {Boolean}
|
|
1031
|
-
* @example
|
|
1032
|
-
*
|
|
1033
|
-
* R.equals(1, 1); //=> true
|
|
1034
|
-
* R.equals(1, '1'); //=> false
|
|
1035
|
-
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
918
|
+
* Optimized internal one-arity curry function.
|
|
1036
919
|
*
|
|
1037
|
-
*
|
|
1038
|
-
*
|
|
1039
|
-
*
|
|
920
|
+
* @private
|
|
921
|
+
* @category Function
|
|
922
|
+
* @param {Function} fn The function to curry.
|
|
923
|
+
* @return {Function} The curried function.
|
|
1040
924
|
*/
|
|
1041
|
-
|
|
1042
|
-
return (
|
|
1043
|
-
|
|
1044
|
-
|
|
925
|
+
function _curry1(fn) {
|
|
926
|
+
return function f1(a) {
|
|
927
|
+
if (arguments.length === 0 || (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a)) {
|
|
928
|
+
return f1;
|
|
929
|
+
} else {
|
|
930
|
+
return fn.apply(this, arguments);
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
}
|
|
1045
934
|
|
|
1046
935
|
/***/ },
|
|
1047
936
|
|
|
1048
|
-
/***/
|
|
937
|
+
/***/ 5959
|
|
1049
938
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1050
939
|
|
|
1051
940
|
__webpack_require__.r(__webpack_exports__);
|
|
1052
941
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1053
|
-
/* harmony export */ "default": () => (
|
|
942
|
+
/* harmony export */ "default": () => (/* binding */ _curry2)
|
|
1054
943
|
/* harmony export */ });
|
|
1055
|
-
/* harmony import */ var
|
|
1056
|
-
/* harmony import */ var
|
|
1057
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1058
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1059
|
-
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6867);
|
|
944
|
+
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
945
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1003);
|
|
1060
946
|
|
|
1061
947
|
|
|
1062
948
|
|
|
1063
949
|
/**
|
|
1064
|
-
*
|
|
1065
|
-
*
|
|
1066
|
-
* @func isArray
|
|
1067
|
-
* @memberOf RA
|
|
1068
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
|
|
1069
|
-
* @category Type
|
|
1070
|
-
* @sig * -> Boolean
|
|
1071
|
-
* @param {*} val The value to test
|
|
1072
|
-
* @return {boolean}
|
|
1073
|
-
* @see {@link RA.isNotArray|isNotArray}
|
|
1074
|
-
* @example
|
|
950
|
+
* Optimized internal two-arity curry function.
|
|
1075
951
|
*
|
|
1076
|
-
*
|
|
1077
|
-
*
|
|
1078
|
-
*
|
|
952
|
+
* @private
|
|
953
|
+
* @category Function
|
|
954
|
+
* @param {Function} fn The function to curry.
|
|
955
|
+
* @return {Function} The curried function.
|
|
1079
956
|
*/
|
|
1080
|
-
|
|
1081
|
-
|
|
957
|
+
function _curry2(fn) {
|
|
958
|
+
return function f2(a, b) {
|
|
959
|
+
switch (arguments.length) {
|
|
960
|
+
case 0:
|
|
961
|
+
return f2;
|
|
962
|
+
case 1:
|
|
963
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) ? f2 : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
964
|
+
return fn(a, _b);
|
|
965
|
+
});
|
|
966
|
+
default:
|
|
967
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b) ? f2 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_a) {
|
|
968
|
+
return fn(_a, b);
|
|
969
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
970
|
+
return fn(a, _b);
|
|
971
|
+
}) : fn(a, b);
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
}
|
|
1082
975
|
|
|
1083
976
|
/***/ },
|
|
1084
977
|
|
|
1085
|
-
/***/
|
|
978
|
+
/***/ 9088
|
|
1086
979
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1087
980
|
|
|
1088
981
|
__webpack_require__.r(__webpack_exports__);
|
|
1089
982
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1090
|
-
/* harmony export */ "default": () => (
|
|
983
|
+
/* harmony export */ "default": () => (/* binding */ _curry3)
|
|
1091
984
|
/* harmony export */ });
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
985
|
+
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
986
|
+
/* harmony import */ var _curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
987
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1003);
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Optimized internal three-arity curry function.
|
|
1099
994
|
*
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
995
|
+
* @private
|
|
996
|
+
* @category Function
|
|
997
|
+
* @param {Function} fn The function to curry.
|
|
998
|
+
* @return {Function} The curried function.
|
|
1103
999
|
*/
|
|
1104
|
-
|
|
1105
|
-
return
|
|
1106
|
-
|
|
1000
|
+
function _curry3(fn) {
|
|
1001
|
+
return function f3(a, b, c) {
|
|
1002
|
+
switch (arguments.length) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
return f3;
|
|
1005
|
+
case 1:
|
|
1006
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? f3 : (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
1007
|
+
return fn(a, _b, _c);
|
|
1008
|
+
});
|
|
1009
|
+
case 2:
|
|
1010
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
1011
|
+
return fn(_a, b, _c);
|
|
1012
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
1013
|
+
return fn(a, _b, _c);
|
|
1014
|
+
}) : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
1015
|
+
return fn(a, b, _c);
|
|
1016
|
+
});
|
|
1017
|
+
default:
|
|
1018
|
+
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _b) {
|
|
1019
|
+
return fn(_a, _b, c);
|
|
1020
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
1021
|
+
return fn(_a, b, _c);
|
|
1022
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
1023
|
+
return fn(a, _b, _c);
|
|
1024
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_a) {
|
|
1025
|
+
return fn(_a, b, c);
|
|
1026
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
1027
|
+
return fn(a, _b, c);
|
|
1028
|
+
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
1029
|
+
return fn(a, b, _c);
|
|
1030
|
+
}) : fn(a, b, c);
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1107
1034
|
|
|
1108
1035
|
/***/ },
|
|
1109
1036
|
|
|
1110
|
-
/***/
|
|
1037
|
+
/***/ 2459
|
|
1111
1038
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1112
1039
|
|
|
1113
1040
|
__webpack_require__.r(__webpack_exports__);
|
|
1114
1041
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1115
|
-
/* harmony export */ "default": () => (/* binding */
|
|
1042
|
+
/* harmony export */ "default": () => (/* binding */ _curryN)
|
|
1116
1043
|
/* harmony export */ });
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1044
|
+
/* harmony import */ var _arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3607);
|
|
1045
|
+
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1003);
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Internal curryN function.
|
|
1051
|
+
*
|
|
1052
|
+
* @private
|
|
1053
|
+
* @category Function
|
|
1054
|
+
* @param {Number} length The arity of the curried function.
|
|
1055
|
+
* @param {Array} received An array of arguments received thus far.
|
|
1056
|
+
* @param {Function} fn The function to curry.
|
|
1057
|
+
* @return {Function} The curried function.
|
|
1058
|
+
*/
|
|
1059
|
+
function _curryN(length, received, fn) {
|
|
1060
|
+
return function () {
|
|
1061
|
+
var combined = [];
|
|
1062
|
+
var argsIdx = 0;
|
|
1063
|
+
var left = length;
|
|
1064
|
+
var combinedIdx = 0;
|
|
1065
|
+
var hasPlaceholder = false;
|
|
1066
|
+
while (combinedIdx < received.length || argsIdx < arguments.length) {
|
|
1067
|
+
var result;
|
|
1068
|
+
if (combinedIdx < received.length && (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
|
1069
|
+
result = received[combinedIdx];
|
|
1070
|
+
} else {
|
|
1071
|
+
result = arguments[argsIdx];
|
|
1072
|
+
argsIdx += 1;
|
|
1073
|
+
}
|
|
1074
|
+
combined[combinedIdx] = result;
|
|
1075
|
+
if (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_1__["default"])(result)) {
|
|
1076
|
+
left -= 1;
|
|
1077
|
+
} else {
|
|
1078
|
+
hasPlaceholder = true;
|
|
1079
|
+
}
|
|
1080
|
+
combinedIdx += 1;
|
|
1081
|
+
}
|
|
1082
|
+
return !hasPlaceholder && left <= 0 ? fn.apply(this, combined) : (0,_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.max(0, left), _curryN(length, combined, fn));
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/***/ },
|
|
1087
|
+
|
|
1088
|
+
/***/ 6738
|
|
1089
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1090
|
+
|
|
1091
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1092
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1093
|
+
/* harmony export */ "default": () => (/* binding */ _dispatchable)
|
|
1094
|
+
/* harmony export */ });
|
|
1095
|
+
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4099);
|
|
1096
|
+
/* harmony import */ var _isTransformer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7117);
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Returns a function that dispatches with different strategies based on the
|
|
1102
|
+
* object in list position (last argument). If it is an array, executes [fn].
|
|
1103
|
+
* Otherwise, if it has a function with one of the given method names, it will
|
|
1104
|
+
* execute that function (functor case). Otherwise, if it is a transformer,
|
|
1105
|
+
* uses transducer created by [transducerCreator] to return a new transformer
|
|
1106
|
+
* (transducer case).
|
|
1107
|
+
* Otherwise, it will default to executing [fn].
|
|
1108
|
+
*
|
|
1109
|
+
* @private
|
|
1110
|
+
* @param {Array} methodNames properties to check for a custom implementation
|
|
1111
|
+
* @param {Function} transducerCreator transducer factory if object is transformer
|
|
1112
|
+
* @param {Function} fn default ramda implementation
|
|
1113
|
+
* @return {Function} A function that dispatches on object in list position
|
|
1114
|
+
*/
|
|
1115
|
+
function _dispatchable(methodNames, transducerCreator, fn) {
|
|
1116
|
+
return function () {
|
|
1117
|
+
if (arguments.length === 0) {
|
|
1118
|
+
return fn();
|
|
1119
|
+
}
|
|
1120
|
+
var obj = arguments[arguments.length - 1];
|
|
1121
|
+
if (!(0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj)) {
|
|
1122
|
+
var idx = 0;
|
|
1123
|
+
while (idx < methodNames.length) {
|
|
1124
|
+
if (typeof obj[methodNames[idx]] === 'function') {
|
|
1125
|
+
return obj[methodNames[idx]].apply(obj, Array.prototype.slice.call(arguments, 0, -1));
|
|
1126
|
+
}
|
|
1127
|
+
idx += 1;
|
|
1128
|
+
}
|
|
1129
|
+
if ((0,_isTransformer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
|
1130
|
+
var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
|
|
1131
|
+
return transducer(obj);
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
return fn.apply(this, arguments);
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/***/ },
|
|
1139
|
+
|
|
1140
|
+
/***/ 497
|
|
1141
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1142
|
+
|
|
1143
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1144
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1145
|
+
/* harmony export */ "default": () => (/* binding */ _equals)
|
|
1146
|
+
/* harmony export */ });
|
|
1147
|
+
/* harmony import */ var _arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1941);
|
|
1148
|
+
/* harmony import */ var _includesWith_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4333);
|
|
1149
|
+
/* harmony import */ var _functionName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(415);
|
|
1150
|
+
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5722);
|
|
1151
|
+
/* harmony import */ var _objectIs_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1111);
|
|
1152
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7783);
|
|
1153
|
+
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(963);
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* private _uniqContentEquals function.
|
|
1164
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
1165
|
+
* - iterators lengths are the same
|
|
1166
|
+
* - iterators values are unique
|
|
1167
|
+
*
|
|
1168
|
+
* false-positive result will be returned for comparison of, e.g.
|
|
1169
|
+
* - [1,2,3] and [1,2,3,4]
|
|
1170
|
+
* - [1,1,1] and [1,2,3]
|
|
1171
|
+
* */
|
|
1172
|
+
|
|
1173
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
1174
|
+
var a = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(aIterator);
|
|
1175
|
+
var b = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bIterator);
|
|
1176
|
+
function eq(_a, _b) {
|
|
1177
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
1123
1178
|
}
|
|
1124
|
-
|
|
1179
|
+
|
|
1180
|
+
// if *a* array contains any element that is not included in *b*
|
|
1181
|
+
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (b, aItem) {
|
|
1182
|
+
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(eq, aItem, b);
|
|
1183
|
+
}, b, a);
|
|
1184
|
+
}
|
|
1185
|
+
function _equals(a, b, stackA, stackB) {
|
|
1186
|
+
if ((0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b)) {
|
|
1187
|
+
return true;
|
|
1188
|
+
}
|
|
1189
|
+
var typeA = (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(a);
|
|
1190
|
+
if (typeA !== (0,_type_js__WEBPACK_IMPORTED_MODULE_6__["default"])(b)) {
|
|
1191
|
+
return false;
|
|
1192
|
+
}
|
|
1193
|
+
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
|
|
1194
|
+
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
|
|
1195
|
+
}
|
|
1196
|
+
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
|
|
1197
|
+
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
|
|
1198
|
+
}
|
|
1199
|
+
switch (typeA) {
|
|
1200
|
+
case 'Arguments':
|
|
1201
|
+
case 'Array':
|
|
1202
|
+
case 'Object':
|
|
1203
|
+
if (typeof a.constructor === 'function' && (0,_functionName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a.constructor) === 'Promise') {
|
|
1204
|
+
return a === b;
|
|
1205
|
+
}
|
|
1206
|
+
break;
|
|
1207
|
+
case 'Boolean':
|
|
1208
|
+
case 'Number':
|
|
1209
|
+
case 'String':
|
|
1210
|
+
if (!(typeof a === typeof b && (0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf()))) {
|
|
1211
|
+
return false;
|
|
1212
|
+
}
|
|
1213
|
+
break;
|
|
1214
|
+
case 'Date':
|
|
1215
|
+
if (!(0,_objectIs_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.valueOf(), b.valueOf())) {
|
|
1216
|
+
return false;
|
|
1217
|
+
}
|
|
1218
|
+
break;
|
|
1219
|
+
case 'Error':
|
|
1220
|
+
return a.name === b.name && a.message === b.message;
|
|
1221
|
+
case 'RegExp':
|
|
1222
|
+
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
|
|
1223
|
+
return false;
|
|
1224
|
+
}
|
|
1225
|
+
break;
|
|
1226
|
+
}
|
|
1227
|
+
var idx = stackA.length - 1;
|
|
1228
|
+
while (idx >= 0) {
|
|
1229
|
+
if (stackA[idx] === a) {
|
|
1230
|
+
return stackB[idx] === b;
|
|
1231
|
+
}
|
|
1232
|
+
idx -= 1;
|
|
1233
|
+
}
|
|
1234
|
+
switch (typeA) {
|
|
1235
|
+
case 'Map':
|
|
1236
|
+
if (a.size !== b.size) {
|
|
1237
|
+
return false;
|
|
1238
|
+
}
|
|
1239
|
+
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
|
1240
|
+
case 'Set':
|
|
1241
|
+
if (a.size !== b.size) {
|
|
1242
|
+
return false;
|
|
1243
|
+
}
|
|
1244
|
+
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
|
1245
|
+
case 'Arguments':
|
|
1246
|
+
case 'Array':
|
|
1247
|
+
case 'Object':
|
|
1248
|
+
case 'Boolean':
|
|
1249
|
+
case 'Number':
|
|
1250
|
+
case 'String':
|
|
1251
|
+
case 'Date':
|
|
1252
|
+
case 'Error':
|
|
1253
|
+
case 'RegExp':
|
|
1254
|
+
case 'Int8Array':
|
|
1255
|
+
case 'Uint8Array':
|
|
1256
|
+
case 'Uint8ClampedArray':
|
|
1257
|
+
case 'Int16Array':
|
|
1258
|
+
case 'Uint16Array':
|
|
1259
|
+
case 'Int32Array':
|
|
1260
|
+
case 'Uint32Array':
|
|
1261
|
+
case 'Float32Array':
|
|
1262
|
+
case 'Float64Array':
|
|
1263
|
+
case 'ArrayBuffer':
|
|
1264
|
+
break;
|
|
1265
|
+
default:
|
|
1266
|
+
// Values of other types are only equal if identical.
|
|
1267
|
+
return false;
|
|
1268
|
+
}
|
|
1269
|
+
var keysA = (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(a);
|
|
1270
|
+
if (keysA.length !== (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(b).length) {
|
|
1271
|
+
return false;
|
|
1272
|
+
}
|
|
1273
|
+
var extendedStackA = stackA.concat([a]);
|
|
1274
|
+
var extendedStackB = stackB.concat([b]);
|
|
1275
|
+
idx = keysA.length - 1;
|
|
1276
|
+
while (idx >= 0) {
|
|
1277
|
+
var key = keysA[idx];
|
|
1278
|
+
if (!((0,_has_js__WEBPACK_IMPORTED_MODULE_3__["default"])(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
1279
|
+
return false;
|
|
1280
|
+
}
|
|
1281
|
+
idx -= 1;
|
|
1282
|
+
}
|
|
1283
|
+
return true;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/***/ },
|
|
1287
|
+
|
|
1288
|
+
/***/ 6574
|
|
1289
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1290
|
+
|
|
1291
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1293
|
+
/* harmony export */ "default": () => (/* binding */ _filter)
|
|
1294
|
+
/* harmony export */ });
|
|
1295
|
+
function _filter(fn, list) {
|
|
1296
|
+
var idx = 0;
|
|
1297
|
+
var len = list.length;
|
|
1298
|
+
var result = [];
|
|
1299
|
+
while (idx < len) {
|
|
1300
|
+
if (fn(list[idx])) {
|
|
1301
|
+
result[result.length] = list[idx];
|
|
1302
|
+
}
|
|
1303
|
+
idx += 1;
|
|
1304
|
+
}
|
|
1305
|
+
return result;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/***/ },
|
|
1309
|
+
|
|
1310
|
+
/***/ 2098
|
|
1311
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1312
|
+
|
|
1313
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1314
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1315
|
+
/* harmony export */ "default": () => (/* binding */ _filterMap)
|
|
1316
|
+
/* harmony export */ });
|
|
1317
|
+
function _filterMap(fn, map) {
|
|
1318
|
+
var result = new Map();
|
|
1319
|
+
var iterator = map.entries();
|
|
1320
|
+
var current = iterator.next();
|
|
1321
|
+
while (!current.done) {
|
|
1322
|
+
if (fn(current.value[1])) {
|
|
1323
|
+
result.set(current.value[0], current.value[1]);
|
|
1324
|
+
}
|
|
1325
|
+
current = iterator.next();
|
|
1326
|
+
}
|
|
1327
|
+
return result;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/***/ },
|
|
1331
|
+
|
|
1332
|
+
/***/ 415
|
|
1333
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1334
|
+
|
|
1335
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1336
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1337
|
+
/* harmony export */ "default": () => (/* binding */ _functionName)
|
|
1338
|
+
/* harmony export */ });
|
|
1339
|
+
function _functionName(f) {
|
|
1340
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
1341
|
+
var match = String(f).match(/^function (\w*)/);
|
|
1342
|
+
return match == null ? '' : match[1];
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/***/ },
|
|
1346
|
+
|
|
1347
|
+
/***/ 5722
|
|
1348
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1349
|
+
|
|
1350
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1351
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1352
|
+
/* harmony export */ "default": () => (/* binding */ _has)
|
|
1353
|
+
/* harmony export */ });
|
|
1354
|
+
function _has(prop, obj) {
|
|
1355
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1125
1356
|
}
|
|
1126
1357
|
|
|
1127
1358
|
/***/ },
|
|
1128
1359
|
|
|
1129
|
-
/***/
|
|
1130
|
-
(
|
|
1360
|
+
/***/ 6265
|
|
1361
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1131
1362
|
|
|
1132
1363
|
__webpack_require__.r(__webpack_exports__);
|
|
1133
1364
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1134
|
-
/* harmony export */ "default": () => (
|
|
1365
|
+
/* harmony export */ "default": () => (/* binding */ _includes)
|
|
1135
1366
|
/* harmony export */ });
|
|
1136
|
-
/* harmony import */ var
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* @public
|
|
1141
|
-
*/
|
|
1367
|
+
/* harmony import */ var _indexOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2243);
|
|
1142
1368
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
*/
|
|
1146
|
-
class ParserError extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
1147
|
-
source;
|
|
1148
|
-
parserOptions;
|
|
1149
|
-
constructor(message, structuredOptions) {
|
|
1150
|
-
super(message, structuredOptions);
|
|
1151
|
-
if (typeof structuredOptions !== 'undefined') {
|
|
1152
|
-
this.source = structuredOptions.source;
|
|
1153
|
-
this.parserOptions = structuredOptions.parserOptions;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1369
|
+
function _includes(a, list) {
|
|
1370
|
+
return (0,_indexOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list, a, 0) >= 0;
|
|
1156
1371
|
}
|
|
1157
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParserError);
|
|
1158
1372
|
|
|
1159
1373
|
/***/ },
|
|
1160
1374
|
|
|
@@ -1179,82 +1393,114 @@ function _includesWith(pred, x, list) {
|
|
|
1179
1393
|
|
|
1180
1394
|
/***/ },
|
|
1181
1395
|
|
|
1182
|
-
/***/
|
|
1396
|
+
/***/ 2243
|
|
1183
1397
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1184
1398
|
|
|
1185
1399
|
__webpack_require__.r(__webpack_exports__);
|
|
1186
1400
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1187
|
-
/* harmony export */ "default": () => (/* binding */
|
|
1401
|
+
/* harmony export */ "default": () => (/* binding */ _indexOf)
|
|
1188
1402
|
/* harmony export */ });
|
|
1189
|
-
/* harmony import */ var
|
|
1403
|
+
/* harmony import */ var _equals_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3654);
|
|
1190
1404
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1405
|
+
function _indexOf(list, a, idx) {
|
|
1406
|
+
var inf, item;
|
|
1407
|
+
// Array.prototype.indexOf doesn't exist below IE9
|
|
1408
|
+
if (typeof list.indexOf === 'function') {
|
|
1409
|
+
switch (typeof a) {
|
|
1410
|
+
case 'number':
|
|
1411
|
+
if (a === 0) {
|
|
1412
|
+
// manually crawl the list to distinguish between +0 and -0
|
|
1413
|
+
inf = 1 / a;
|
|
1414
|
+
while (idx < list.length) {
|
|
1415
|
+
item = list[idx];
|
|
1416
|
+
if (item === 0 && 1 / item === inf) {
|
|
1417
|
+
return idx;
|
|
1418
|
+
}
|
|
1419
|
+
idx += 1;
|
|
1420
|
+
}
|
|
1421
|
+
return -1;
|
|
1422
|
+
} else if (a !== a) {
|
|
1423
|
+
// NaN
|
|
1424
|
+
while (idx < list.length) {
|
|
1425
|
+
item = list[idx];
|
|
1426
|
+
if (typeof item === 'number' && item !== item) {
|
|
1427
|
+
return idx;
|
|
1428
|
+
}
|
|
1429
|
+
idx += 1;
|
|
1430
|
+
}
|
|
1431
|
+
return -1;
|
|
1432
|
+
}
|
|
1433
|
+
// non-zero numbers can utilise Set
|
|
1434
|
+
return list.indexOf(a, idx);
|
|
1435
|
+
|
|
1436
|
+
// all these types can utilise Set
|
|
1437
|
+
case 'string':
|
|
1438
|
+
case 'boolean':
|
|
1439
|
+
case 'function':
|
|
1440
|
+
case 'undefined':
|
|
1441
|
+
return list.indexOf(a, idx);
|
|
1442
|
+
case 'object':
|
|
1443
|
+
if (a === null) {
|
|
1444
|
+
// null can utilise Set
|
|
1445
|
+
return list.indexOf(a, idx);
|
|
1446
|
+
}
|
|
1208
1447
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1448
|
+
}
|
|
1449
|
+
// anything else not covered above, defer to R.equals
|
|
1450
|
+
while (idx < list.length) {
|
|
1451
|
+
if ((0,_equals_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list[idx], a)) {
|
|
1452
|
+
return idx;
|
|
1211
1453
|
}
|
|
1212
|
-
|
|
1213
|
-
}
|
|
1454
|
+
idx += 1;
|
|
1455
|
+
}
|
|
1456
|
+
return -1;
|
|
1214
1457
|
}
|
|
1215
1458
|
|
|
1216
1459
|
/***/ },
|
|
1217
1460
|
|
|
1218
|
-
/***/
|
|
1461
|
+
/***/ 6590
|
|
1219
1462
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1220
1463
|
|
|
1221
1464
|
__webpack_require__.r(__webpack_exports__);
|
|
1222
1465
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1223
|
-
/* harmony export */ "default": () => (
|
|
1466
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1224
1467
|
/* harmony export */ });
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1468
|
+
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5722);
|
|
1469
|
+
|
|
1470
|
+
var toString = Object.prototype.toString;
|
|
1471
|
+
var _isArguments = /*#__PURE__*/function () {
|
|
1472
|
+
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
1473
|
+
return toString.call(x) === '[object Arguments]';
|
|
1474
|
+
} : function _isArguments(x) {
|
|
1475
|
+
return (0,_has_js__WEBPACK_IMPORTED_MODULE_0__["default"])('callee', x);
|
|
1228
1476
|
};
|
|
1229
|
-
}
|
|
1477
|
+
}();
|
|
1478
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArguments);
|
|
1230
1479
|
|
|
1231
1480
|
/***/ },
|
|
1232
1481
|
|
|
1233
|
-
/***/
|
|
1482
|
+
/***/ 4099
|
|
1234
1483
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1235
1484
|
|
|
1236
1485
|
__webpack_require__.r(__webpack_exports__);
|
|
1237
1486
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1238
|
-
/* harmony export */ "default": () => (
|
|
1487
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1239
1488
|
/* harmony export */ });
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
return
|
|
1254
|
-
}
|
|
1255
|
-
function _xwrap(fn) {
|
|
1256
|
-
return new XWrap(fn);
|
|
1257
|
-
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Tests whether or not an object is an array.
|
|
1491
|
+
*
|
|
1492
|
+
* @private
|
|
1493
|
+
* @param {*} val The object to test.
|
|
1494
|
+
* @return {Boolean} `true` if `val` is an array, `false` otherwise.
|
|
1495
|
+
* @example
|
|
1496
|
+
*
|
|
1497
|
+
* _isArray([]); //=> true
|
|
1498
|
+
* _isArray(null); //=> false
|
|
1499
|
+
* _isArray({}); //=> false
|
|
1500
|
+
*/
|
|
1501
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Array.isArray || function _isArray(val) {
|
|
1502
|
+
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
|
|
1503
|
+
});
|
|
1258
1504
|
|
|
1259
1505
|
/***/ },
|
|
1260
1506
|
|
|
@@ -1315,166 +1561,109 @@ var _isArrayLike = /*#__PURE__*/(0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["defa
|
|
|
1315
1561
|
|
|
1316
1562
|
/***/ },
|
|
1317
1563
|
|
|
1318
|
-
/***/
|
|
1564
|
+
/***/ 7700
|
|
1319
1565
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1320
1566
|
|
|
1321
1567
|
__webpack_require__.r(__webpack_exports__);
|
|
1322
1568
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1323
1569
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1324
1570
|
/* harmony export */ });
|
|
1325
|
-
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
1326
|
-
|
|
1327
1571
|
/**
|
|
1328
|
-
*
|
|
1572
|
+
* Determine if the passed argument is an integer.
|
|
1573
|
+
*
|
|
1574
|
+
* @private
|
|
1575
|
+
* @param {*} n
|
|
1576
|
+
* @category Type
|
|
1577
|
+
* @return {Boolean}
|
|
1329
1578
|
*/
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1579
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Number.isInteger || function _isInteger(n) {
|
|
1580
|
+
return n << 0 === n;
|
|
1581
|
+
});
|
|
1582
|
+
|
|
1583
|
+
/***/ },
|
|
1584
|
+
|
|
1585
|
+
/***/ 8772
|
|
1586
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1587
|
+
|
|
1588
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1589
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1590
|
+
/* harmony export */ "default": () => (/* binding */ _isMap)
|
|
1591
|
+
/* harmony export */ });
|
|
1592
|
+
function _isMap(x) {
|
|
1593
|
+
return Object.prototype.toString.call(x) === '[object Map]';
|
|
1342
1594
|
}
|
|
1343
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMStructuredError);
|
|
1344
1595
|
|
|
1345
1596
|
/***/ },
|
|
1346
1597
|
|
|
1347
|
-
/***/
|
|
1598
|
+
/***/ 131
|
|
1348
1599
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1349
1600
|
|
|
1350
1601
|
__webpack_require__.r(__webpack_exports__);
|
|
1351
1602
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1352
|
-
/* harmony export */ "default": () => (
|
|
1603
|
+
/* harmony export */ "default": () => (/* binding */ _isObject)
|
|
1353
1604
|
/* harmony export */ });
|
|
1354
|
-
|
|
1355
|
-
|
|
1605
|
+
function _isObject(x) {
|
|
1606
|
+
return Object.prototype.toString.call(x) === '[object Object]';
|
|
1607
|
+
}
|
|
1356
1608
|
|
|
1609
|
+
/***/ },
|
|
1357
1610
|
|
|
1611
|
+
/***/ 1003
|
|
1612
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1358
1613
|
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
* @sig Ord a => a -> a -> a
|
|
1367
|
-
* @param {*} a
|
|
1368
|
-
* @param {*} b
|
|
1369
|
-
* @return {*}
|
|
1370
|
-
* @see R.maxBy, R.min
|
|
1371
|
-
* @example
|
|
1372
|
-
*
|
|
1373
|
-
* R.max(789, 123); //=> 789
|
|
1374
|
-
* R.max('a', 'b'); //=> 'b'
|
|
1375
|
-
*/
|
|
1376
|
-
var max = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function max(a, b) {
|
|
1377
|
-
if (a === b) {
|
|
1378
|
-
return b;
|
|
1379
|
-
}
|
|
1380
|
-
function safeMax(x, y) {
|
|
1381
|
-
if (x > y !== y > x) {
|
|
1382
|
-
return y > x ? y : x;
|
|
1383
|
-
}
|
|
1384
|
-
return undefined;
|
|
1385
|
-
}
|
|
1386
|
-
var maxByValue = safeMax(a, b);
|
|
1387
|
-
if (maxByValue !== undefined) {
|
|
1388
|
-
return maxByValue;
|
|
1389
|
-
}
|
|
1390
|
-
var maxByType = safeMax(typeof a, typeof b);
|
|
1391
|
-
if (maxByType !== undefined) {
|
|
1392
|
-
return maxByType === typeof a ? a : b;
|
|
1393
|
-
}
|
|
1394
|
-
var stringA = (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a);
|
|
1395
|
-
var maxByStringValue = safeMax(stringA, (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b));
|
|
1396
|
-
if (maxByStringValue !== undefined) {
|
|
1397
|
-
return maxByStringValue === stringA ? a : b;
|
|
1398
|
-
}
|
|
1399
|
-
return b;
|
|
1400
|
-
});
|
|
1401
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (max);
|
|
1614
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1615
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1616
|
+
/* harmony export */ "default": () => (/* binding */ _isPlaceholder)
|
|
1617
|
+
/* harmony export */ });
|
|
1618
|
+
function _isPlaceholder(a) {
|
|
1619
|
+
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
|
1620
|
+
}
|
|
1402
1621
|
|
|
1403
1622
|
/***/ },
|
|
1404
1623
|
|
|
1405
|
-
/***/
|
|
1624
|
+
/***/ 141
|
|
1406
1625
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1407
1626
|
|
|
1408
1627
|
__webpack_require__.r(__webpack_exports__);
|
|
1409
1628
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1410
|
-
/* harmony export */ "default": () => (
|
|
1629
|
+
/* harmony export */ "default": () => (/* binding */ _isString)
|
|
1411
1630
|
/* harmony export */ });
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
/**
|
|
1419
|
-
* Checks if input value is `String`.
|
|
1420
|
-
*
|
|
1421
|
-
* @func isString
|
|
1422
|
-
* @memberOf RA
|
|
1423
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
|
|
1424
|
-
* @category Type
|
|
1425
|
-
* @sig * -> Boolean
|
|
1426
|
-
* @param {*} val The value to test
|
|
1427
|
-
* @return {boolean}
|
|
1428
|
-
* @see {@link RA.isNotString|isNotString}
|
|
1429
|
-
* @example
|
|
1430
|
-
*
|
|
1431
|
-
* RA.isString('abc'); //=> true
|
|
1432
|
-
* RA.isString(1); //=> false
|
|
1433
|
-
*/
|
|
1434
|
-
var isString = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('String')));
|
|
1435
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isString);
|
|
1631
|
+
function _isString(x) {
|
|
1632
|
+
return Object.prototype.toString.call(x) === '[object String]';
|
|
1633
|
+
}
|
|
1436
1634
|
|
|
1437
1635
|
/***/ },
|
|
1438
1636
|
|
|
1439
|
-
/***/
|
|
1637
|
+
/***/ 7117
|
|
1440
1638
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1441
1639
|
|
|
1442
1640
|
__webpack_require__.r(__webpack_exports__);
|
|
1443
1641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1444
|
-
/* harmony export */ "default": () => (
|
|
1642
|
+
/* harmony export */ "default": () => (/* binding */ _isTransformer)
|
|
1445
1643
|
/* harmony export */ });
|
|
1446
|
-
|
|
1447
|
-
|
|
1644
|
+
function _isTransformer(obj) {
|
|
1645
|
+
return obj != null && typeof obj['@@transducer/step'] === 'function';
|
|
1646
|
+
}
|
|
1448
1647
|
|
|
1648
|
+
/***/ },
|
|
1449
1649
|
|
|
1650
|
+
/***/ 6584
|
|
1651
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1450
1652
|
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
*
|
|
1466
|
-
* R.head([1, 2, 3]); //=> 1
|
|
1467
|
-
* R.head([1]); //=> 1
|
|
1468
|
-
* R.head([]); //=> undefined
|
|
1469
|
-
*
|
|
1470
|
-
* R.head('abc'); //=> 'a'
|
|
1471
|
-
* R.head('a'); //=> 'a'
|
|
1472
|
-
* R.head(''); //=> undefined
|
|
1473
|
-
*/
|
|
1474
|
-
var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
|
|
1475
|
-
return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
|
|
1476
|
-
});
|
|
1477
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (head);
|
|
1653
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1654
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1655
|
+
/* harmony export */ "default": () => (/* binding */ _map)
|
|
1656
|
+
/* harmony export */ });
|
|
1657
|
+
function _map(fn, functor) {
|
|
1658
|
+
var idx = 0;
|
|
1659
|
+
var len = functor.length;
|
|
1660
|
+
var result = Array(len);
|
|
1661
|
+
while (idx < len) {
|
|
1662
|
+
result[idx] = fn(functor[idx]);
|
|
1663
|
+
idx += 1;
|
|
1664
|
+
}
|
|
1665
|
+
return result;
|
|
1666
|
+
}
|
|
1478
1667
|
|
|
1479
1668
|
/***/ },
|
|
1480
1669
|
|
|
@@ -1492,212 +1681,268 @@ function _nth(offset, list) {
|
|
|
1492
1681
|
|
|
1493
1682
|
/***/ },
|
|
1494
1683
|
|
|
1495
|
-
/***/
|
|
1684
|
+
/***/ 1111
|
|
1496
1685
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1497
1686
|
|
|
1498
1687
|
__webpack_require__.r(__webpack_exports__);
|
|
1499
1688
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1500
|
-
/* harmony export */ "default": () => (
|
|
1689
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1501
1690
|
/* harmony export */ });
|
|
1502
|
-
|
|
1503
|
-
|
|
1691
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
1692
|
+
function _objectIs(a, b) {
|
|
1693
|
+
// SameValue algorithm
|
|
1694
|
+
if (a === b) {
|
|
1695
|
+
// Steps 1-5, 7-10
|
|
1696
|
+
// Steps 6.b-6.e: +0 != -0
|
|
1697
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
1698
|
+
} else {
|
|
1699
|
+
// Step 6.a: NaN == NaN
|
|
1700
|
+
return a !== a && b !== b;
|
|
1701
|
+
}
|
|
1504
1702
|
}
|
|
1703
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Object.is === 'function' ? Object.is : _objectIs);
|
|
1505
1704
|
|
|
1506
1705
|
/***/ },
|
|
1507
1706
|
|
|
1508
|
-
/***/
|
|
1707
|
+
/***/ 4436
|
|
1708
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1709
|
+
|
|
1710
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1711
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1712
|
+
/* harmony export */ "default": () => (/* binding */ _pipe)
|
|
1713
|
+
/* harmony export */ });
|
|
1714
|
+
function _pipe(f, g) {
|
|
1715
|
+
return function () {
|
|
1716
|
+
return g.call(this, f.apply(this, arguments));
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/***/ },
|
|
1721
|
+
|
|
1722
|
+
/***/ 7057
|
|
1509
1723
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1510
1724
|
|
|
1511
1725
|
__webpack_require__.r(__webpack_exports__);
|
|
1512
1726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1513
1727
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1514
1728
|
/* harmony export */ });
|
|
1515
|
-
/* harmony import */ var
|
|
1516
|
-
/* harmony import */ var
|
|
1517
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
1518
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
1729
|
+
/* harmony import */ var _isInteger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7700);
|
|
1730
|
+
/* harmony import */ var _nth_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5136);
|
|
1519
1731
|
|
|
1520
1732
|
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
* @sig * -> Boolean
|
|
1529
|
-
* @param {*} val The value to test
|
|
1530
|
-
* @return {boolean}
|
|
1531
|
-
* @see {@link RA.isFunction|isFunction}, {@link RA.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
|
1532
|
-
* @example
|
|
1533
|
-
*
|
|
1534
|
-
* RA.isAsyncFunction(async function test() { }); //=> true
|
|
1535
|
-
* RA.isAsyncFunction(null); //=> false
|
|
1536
|
-
* RA.isAsyncFunction(function test() { }); //=> false
|
|
1537
|
-
* RA.isAsyncFunction(() => {}); //=> false
|
|
1538
|
-
*/
|
|
1539
|
-
var isAsyncFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])('AsyncFunction')));
|
|
1540
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isAsyncFunction);
|
|
1733
|
+
function _prop(p, obj) {
|
|
1734
|
+
if (obj == null) {
|
|
1735
|
+
return;
|
|
1736
|
+
}
|
|
1737
|
+
return (0,_isInteger_js__WEBPACK_IMPORTED_MODULE_0__["default"])(p) ? (0,_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(p, obj) : obj[p];
|
|
1738
|
+
}
|
|
1739
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_prop);
|
|
1541
1740
|
|
|
1542
1741
|
/***/ },
|
|
1543
1742
|
|
|
1544
|
-
/***/
|
|
1743
|
+
/***/ 1950
|
|
1545
1744
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1546
1745
|
|
|
1547
1746
|
__webpack_require__.r(__webpack_exports__);
|
|
1548
1747
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1549
|
-
/* harmony export */ "default": () => (/* binding */
|
|
1748
|
+
/* harmony export */ "default": () => (/* binding */ _quote)
|
|
1550
1749
|
/* harmony export */ });
|
|
1551
|
-
|
|
1552
|
-
|
|
1750
|
+
function _quote(s) {
|
|
1751
|
+
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
|
|
1752
|
+
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
|
|
1753
|
+
return '"' + escaped.replace(/"/g, '\\"') + '"';
|
|
1754
|
+
}
|
|
1553
1755
|
|
|
1756
|
+
/***/ },
|
|
1554
1757
|
|
|
1758
|
+
/***/ 8477
|
|
1759
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1555
1760
|
|
|
1761
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1762
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1763
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1764
|
+
/* harmony export */ });
|
|
1556
1765
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
* @private
|
|
1560
|
-
* @category Function
|
|
1561
|
-
* @param {Function} fn The function to curry.
|
|
1562
|
-
* @return {Function} The curried function.
|
|
1766
|
+
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
|
1563
1767
|
*/
|
|
1564
|
-
function
|
|
1565
|
-
return
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1768
|
+
var pad = function pad(n) {
|
|
1769
|
+
return (n < 10 ? '0' : '') + n;
|
|
1770
|
+
};
|
|
1771
|
+
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
|
1772
|
+
return d.toISOString();
|
|
1773
|
+
} : function _toISOString(d) {
|
|
1774
|
+
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
|
1775
|
+
};
|
|
1776
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_toISOString);
|
|
1777
|
+
|
|
1778
|
+
/***/ },
|
|
1779
|
+
|
|
1780
|
+
/***/ 2420
|
|
1781
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1782
|
+
|
|
1783
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1784
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1785
|
+
/* harmony export */ "default": () => (/* binding */ _toString)
|
|
1786
|
+
/* harmony export */ });
|
|
1787
|
+
/* harmony import */ var _includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6265);
|
|
1788
|
+
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6584);
|
|
1789
|
+
/* harmony import */ var _quote_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1950);
|
|
1790
|
+
/* harmony import */ var _toISOString_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8477);
|
|
1791
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7783);
|
|
1792
|
+
/* harmony import */ var _reject_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7444);
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
function _toString(x, seen) {
|
|
1800
|
+
var recur = function recur(y) {
|
|
1801
|
+
var xs = seen.concat([x]);
|
|
1802
|
+
return (0,_includes_js__WEBPACK_IMPORTED_MODULE_0__["default"])(y, xs) ? '<Circular>' : _toString(y, xs);
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
// mapPairs :: (Object, [String]) -> [String]
|
|
1806
|
+
var mapPairs = function (obj, keys) {
|
|
1807
|
+
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (k) {
|
|
1808
|
+
return (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(k) + ': ' + recur(obj[k]);
|
|
1809
|
+
}, keys.slice().sort());
|
|
1580
1810
|
};
|
|
1811
|
+
switch (Object.prototype.toString.call(x)) {
|
|
1812
|
+
case '[object Arguments]':
|
|
1813
|
+
return '(function() { return arguments; }(' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).join(', ') + '))';
|
|
1814
|
+
case '[object Array]':
|
|
1815
|
+
return '[' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).concat(mapPairs(x, (0,_reject_js__WEBPACK_IMPORTED_MODULE_5__["default"])(function (k) {
|
|
1816
|
+
return /^\d+$/.test(k);
|
|
1817
|
+
}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)))).join(', ') + ']';
|
|
1818
|
+
case '[object Boolean]':
|
|
1819
|
+
return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
1820
|
+
case '[object Date]':
|
|
1821
|
+
return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_toISOString_js__WEBPACK_IMPORTED_MODULE_3__["default"])(x))) + ')';
|
|
1822
|
+
case '[object Map]':
|
|
1823
|
+
return 'new Map(' + recur(Array.from(x)) + ')';
|
|
1824
|
+
case '[object Null]':
|
|
1825
|
+
return 'null';
|
|
1826
|
+
case '[object Number]':
|
|
1827
|
+
return typeof x === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
|
|
1828
|
+
case '[object Set]':
|
|
1829
|
+
return 'new Set(' + recur(Array.from(x).sort()) + ')';
|
|
1830
|
+
case '[object String]':
|
|
1831
|
+
return typeof x === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(x);
|
|
1832
|
+
case '[object Undefined]':
|
|
1833
|
+
return 'undefined';
|
|
1834
|
+
default:
|
|
1835
|
+
if (typeof x.toString === 'function') {
|
|
1836
|
+
var repr = x.toString();
|
|
1837
|
+
if (repr !== '[object Object]') {
|
|
1838
|
+
return repr;
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
return '{' + mapPairs(x, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)).join(', ') + '}';
|
|
1842
|
+
}
|
|
1581
1843
|
}
|
|
1582
1844
|
|
|
1583
1845
|
/***/ },
|
|
1584
1846
|
|
|
1585
|
-
/***/
|
|
1847
|
+
/***/ 2719
|
|
1586
1848
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1587
1849
|
|
|
1588
1850
|
__webpack_require__.r(__webpack_exports__);
|
|
1589
1851
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1590
|
-
/* harmony export */ "default": () => (
|
|
1852
|
+
/* harmony export */ "default": () => (/* binding */ _xArrayReduce)
|
|
1591
1853
|
/* harmony export */ });
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
* @since v0.1.4
|
|
1606
|
-
* @category List
|
|
1607
|
-
* @sig Number -> Number -> [a] -> [a]
|
|
1608
|
-
* @sig Number -> Number -> String -> String
|
|
1609
|
-
* @param {Number} fromIndex The start index (inclusive).
|
|
1610
|
-
* @param {Number} toIndex The end index (exclusive).
|
|
1611
|
-
* @param {*} list
|
|
1612
|
-
* @return {*}
|
|
1613
|
-
* @example
|
|
1614
|
-
*
|
|
1615
|
-
* R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1616
|
-
* R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
|
|
1617
|
-
* R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
|
|
1618
|
-
* R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1619
|
-
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
1620
|
-
*/
|
|
1621
|
-
var slice = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('slice', function slice(fromIndex, toIndex, list) {
|
|
1622
|
-
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
1623
|
-
}));
|
|
1624
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (slice);
|
|
1854
|
+
function _xArrayReduce(xf, acc, list) {
|
|
1855
|
+
var idx = 0;
|
|
1856
|
+
var len = list.length;
|
|
1857
|
+
while (idx < len) {
|
|
1858
|
+
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
1859
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
1860
|
+
acc = acc['@@transducer/value'];
|
|
1861
|
+
break;
|
|
1862
|
+
}
|
|
1863
|
+
idx += 1;
|
|
1864
|
+
}
|
|
1865
|
+
return xf['@@transducer/result'](acc);
|
|
1866
|
+
}
|
|
1625
1867
|
|
|
1626
1868
|
/***/ },
|
|
1627
1869
|
|
|
1628
|
-
/***/
|
|
1870
|
+
/***/ 9728
|
|
1629
1871
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1630
1872
|
|
|
1631
1873
|
__webpack_require__.r(__webpack_exports__);
|
|
1632
1874
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1633
|
-
/* harmony export */ "default": () => (
|
|
1875
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1634
1876
|
/* harmony export */ });
|
|
1635
|
-
/* harmony import */ var
|
|
1877
|
+
/* harmony import */ var _createReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4334);
|
|
1878
|
+
/* harmony import */ var _xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2719);
|
|
1879
|
+
/* harmony import */ var _bind_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(560);
|
|
1636
1880
|
|
|
1637
1881
|
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
* @return {Object} Whatever the return value of the method is.
|
|
1647
|
-
*/
|
|
1648
|
-
function _checkForMethod(methodname, fn) {
|
|
1649
|
-
return function () {
|
|
1650
|
-
var length = arguments.length;
|
|
1651
|
-
if (length === 0) {
|
|
1652
|
-
return fn();
|
|
1882
|
+
|
|
1883
|
+
function _xIterableReduce(xf, acc, iter) {
|
|
1884
|
+
var step = iter.next();
|
|
1885
|
+
while (!step.done) {
|
|
1886
|
+
acc = xf['@@transducer/step'](acc, step.value);
|
|
1887
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
1888
|
+
acc = acc['@@transducer/value'];
|
|
1889
|
+
break;
|
|
1653
1890
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1891
|
+
step = iter.next();
|
|
1892
|
+
}
|
|
1893
|
+
return xf['@@transducer/result'](acc);
|
|
1894
|
+
}
|
|
1895
|
+
function _xMethodReduce(xf, acc, obj, methodName) {
|
|
1896
|
+
return xf['@@transducer/result'](obj[methodName]((0,_bind_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf['@@transducer/step'], xf), acc));
|
|
1657
1897
|
}
|
|
1898
|
+
var _xReduce = /*#__PURE__*/(0,_createReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"], _xMethodReduce, _xIterableReduce);
|
|
1899
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xReduce);
|
|
1658
1900
|
|
|
1659
1901
|
/***/ },
|
|
1660
1902
|
|
|
1661
|
-
/***/
|
|
1903
|
+
/***/ 3143
|
|
1662
1904
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1663
1905
|
|
|
1664
1906
|
__webpack_require__.r(__webpack_exports__);
|
|
1665
1907
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1666
1908
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1667
1909
|
/* harmony export */ });
|
|
1668
|
-
/* harmony
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
static [Symbol.hasInstance](instance) {
|
|
1675
|
-
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
1676
|
-
return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
|
|
1677
|
-
}
|
|
1678
|
-
constructor(message, options) {
|
|
1679
|
-
super(message, options);
|
|
1680
|
-
this.name = this.constructor.name;
|
|
1681
|
-
if (typeof Error.captureStackTrace === 'function') {
|
|
1682
|
-
Error.captureStackTrace(this, this.constructor);
|
|
1683
|
-
}
|
|
1910
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1911
|
+
init: function () {
|
|
1912
|
+
return this.xf['@@transducer/init']();
|
|
1913
|
+
},
|
|
1914
|
+
result: function (result) {
|
|
1915
|
+
return this.xf['@@transducer/result'](result);
|
|
1684
1916
|
}
|
|
1685
|
-
}
|
|
1686
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
|
|
1917
|
+
});
|
|
1687
1918
|
|
|
1688
1919
|
/***/ },
|
|
1689
1920
|
|
|
1690
|
-
/***/
|
|
1921
|
+
/***/ 8080
|
|
1691
1922
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1692
1923
|
|
|
1693
1924
|
__webpack_require__.r(__webpack_exports__);
|
|
1694
1925
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1695
|
-
/* harmony export */ "default": () => (/* binding */
|
|
1926
|
+
/* harmony export */ "default": () => (/* binding */ _xfilter)
|
|
1696
1927
|
/* harmony export */ });
|
|
1697
|
-
/* harmony import */ var
|
|
1928
|
+
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3143);
|
|
1698
1929
|
|
|
1699
|
-
function
|
|
1700
|
-
|
|
1930
|
+
var XFilter = /*#__PURE__*/function () {
|
|
1931
|
+
function XFilter(f, xf) {
|
|
1932
|
+
this.xf = xf;
|
|
1933
|
+
this.f = f;
|
|
1934
|
+
}
|
|
1935
|
+
XFilter.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
|
1936
|
+
XFilter.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
|
1937
|
+
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
|
1938
|
+
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
|
1939
|
+
};
|
|
1940
|
+
return XFilter;
|
|
1941
|
+
}();
|
|
1942
|
+
function _xfilter(f) {
|
|
1943
|
+
return function (xf) {
|
|
1944
|
+
return new XFilter(f, xf);
|
|
1945
|
+
};
|
|
1701
1946
|
}
|
|
1702
1947
|
|
|
1703
1948
|
/***/ },
|
|
@@ -1732,285 +1977,249 @@ var _xmap = function _xmap(f) {
|
|
|
1732
1977
|
|
|
1733
1978
|
/***/ },
|
|
1734
1979
|
|
|
1735
|
-
/***/
|
|
1736
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1737
|
-
|
|
1738
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1739
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1740
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1741
|
-
/* harmony export */ });
|
|
1742
|
-
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6122);
|
|
1743
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
1744
|
-
/* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5969);
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
* Returns all but the first element of the given list or string (or object
|
|
1751
|
-
* with a `tail` method).
|
|
1752
|
-
*
|
|
1753
|
-
* Dispatches to the `slice` method of the first argument, if present.
|
|
1754
|
-
*
|
|
1755
|
-
* @func
|
|
1756
|
-
* @memberOf R
|
|
1757
|
-
* @since v0.1.0
|
|
1758
|
-
* @category List
|
|
1759
|
-
* @sig [a] -> [a]
|
|
1760
|
-
* @sig String -> String
|
|
1761
|
-
* @param {*} list
|
|
1762
|
-
* @return {*}
|
|
1763
|
-
* @see R.head, R.init, R.last
|
|
1764
|
-
* @example
|
|
1765
|
-
*
|
|
1766
|
-
* R.tail([1, 2, 3]); //=> [2, 3]
|
|
1767
|
-
* R.tail([1, 2]); //=> [2]
|
|
1768
|
-
* R.tail([1]); //=> []
|
|
1769
|
-
* R.tail([]); //=> []
|
|
1770
|
-
*
|
|
1771
|
-
* R.tail('abc'); //=> 'bc'
|
|
1772
|
-
* R.tail('ab'); //=> 'b'
|
|
1773
|
-
* R.tail('a'); //=> ''
|
|
1774
|
-
* R.tail(''); //=> ''
|
|
1775
|
-
*/
|
|
1776
|
-
var tail = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('tail', /*#__PURE__*/(0,_slice_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, Infinity)));
|
|
1777
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tail);
|
|
1778
|
-
|
|
1779
|
-
/***/ },
|
|
1780
|
-
|
|
1781
|
-
/***/ 6574
|
|
1782
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1783
|
-
|
|
1784
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1785
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1786
|
-
/* harmony export */ "default": () => (/* binding */ _filter)
|
|
1787
|
-
/* harmony export */ });
|
|
1788
|
-
function _filter(fn, list) {
|
|
1789
|
-
var idx = 0;
|
|
1790
|
-
var len = list.length;
|
|
1791
|
-
var result = [];
|
|
1792
|
-
while (idx < len) {
|
|
1793
|
-
if (fn(list[idx])) {
|
|
1794
|
-
result[result.length] = list[idx];
|
|
1795
|
-
}
|
|
1796
|
-
idx += 1;
|
|
1797
|
-
}
|
|
1798
|
-
return result;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
/***/ },
|
|
1802
|
-
|
|
1803
|
-
/***/ 6584
|
|
1980
|
+
/***/ 4514
|
|
1804
1981
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1805
1982
|
|
|
1806
1983
|
__webpack_require__.r(__webpack_exports__);
|
|
1807
1984
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1808
|
-
/* harmony export */ "default": () => (/* binding */
|
|
1985
|
+
/* harmony export */ "default": () => (/* binding */ _xwrap)
|
|
1809
1986
|
/* harmony export */ });
|
|
1810
|
-
function
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
var result = Array(len);
|
|
1814
|
-
while (idx < len) {
|
|
1815
|
-
result[idx] = fn(functor[idx]);
|
|
1816
|
-
idx += 1;
|
|
1987
|
+
var XWrap = /*#__PURE__*/function () {
|
|
1988
|
+
function XWrap(fn) {
|
|
1989
|
+
this.f = fn;
|
|
1817
1990
|
}
|
|
1818
|
-
|
|
1991
|
+
XWrap.prototype['@@transducer/init'] = function () {
|
|
1992
|
+
throw new Error('init not implemented on XWrap');
|
|
1993
|
+
};
|
|
1994
|
+
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
1995
|
+
return acc;
|
|
1996
|
+
};
|
|
1997
|
+
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
1998
|
+
return this.f(acc, x);
|
|
1999
|
+
};
|
|
2000
|
+
return XWrap;
|
|
2001
|
+
}();
|
|
2002
|
+
function _xwrap(fn) {
|
|
2003
|
+
return new XWrap(fn);
|
|
1819
2004
|
}
|
|
1820
2005
|
|
|
1821
2006
|
/***/ },
|
|
1822
2007
|
|
|
1823
|
-
/***/
|
|
2008
|
+
/***/ 7783
|
|
1824
2009
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1825
2010
|
|
|
1826
2011
|
__webpack_require__.r(__webpack_exports__);
|
|
1827
2012
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1828
2013
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1829
2014
|
/* harmony export */ });
|
|
1830
|
-
/* harmony import */ var
|
|
1831
|
-
|
|
1832
|
-
var
|
|
1833
|
-
var _isArguments = /*#__PURE__*/function () {
|
|
1834
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
1835
|
-
return toString.call(x) === '[object Arguments]';
|
|
1836
|
-
} : function _isArguments(x) {
|
|
1837
|
-
return (0,_has_js__WEBPACK_IMPORTED_MODULE_0__["default"])('callee', x);
|
|
1838
|
-
};
|
|
1839
|
-
}();
|
|
1840
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArguments);
|
|
2015
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2016
|
+
/* harmony import */ var _internal_has_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5722);
|
|
2017
|
+
/* harmony import */ var _internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6590);
|
|
1841
2018
|
|
|
1842
|
-
/***/ },
|
|
1843
2019
|
|
|
1844
|
-
/***/ 6738
|
|
1845
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1846
2020
|
|
|
1847
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1848
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1849
|
-
/* harmony export */ "default": () => (/* binding */ _dispatchable)
|
|
1850
|
-
/* harmony export */ });
|
|
1851
|
-
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4099);
|
|
1852
|
-
/* harmony import */ var _isTransformer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7117);
|
|
1853
2021
|
|
|
2022
|
+
// cover IE < 9 keys issues
|
|
2023
|
+
var hasEnumBug = ! /*#__PURE__*/{
|
|
2024
|
+
toString: null
|
|
2025
|
+
}.propertyIsEnumerable('toString');
|
|
2026
|
+
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
|
2027
|
+
// Safari bug
|
|
2028
|
+
var hasArgsEnumBug = /*#__PURE__*/function () {
|
|
2029
|
+
'use strict';
|
|
1854
2030
|
|
|
2031
|
+
return arguments.propertyIsEnumerable('length');
|
|
2032
|
+
}();
|
|
2033
|
+
var contains = function contains(list, item) {
|
|
2034
|
+
var idx = 0;
|
|
2035
|
+
while (idx < list.length) {
|
|
2036
|
+
if (list[idx] === item) {
|
|
2037
|
+
return true;
|
|
2038
|
+
}
|
|
2039
|
+
idx += 1;
|
|
2040
|
+
}
|
|
2041
|
+
return false;
|
|
2042
|
+
};
|
|
1855
2043
|
|
|
1856
2044
|
/**
|
|
1857
|
-
* Returns a
|
|
1858
|
-
*
|
|
1859
|
-
*
|
|
1860
|
-
*
|
|
1861
|
-
* uses transducer created by [transducerCreator] to return a new transformer
|
|
1862
|
-
* (transducer case).
|
|
1863
|
-
* Otherwise, it will default to executing [fn].
|
|
2045
|
+
* Returns a list containing the names of all the enumerable own properties of
|
|
2046
|
+
* the supplied object.
|
|
2047
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
2048
|
+
* across different JS platforms.
|
|
1864
2049
|
*
|
|
1865
|
-
* @
|
|
1866
|
-
* @
|
|
1867
|
-
* @
|
|
1868
|
-
* @
|
|
1869
|
-
* @
|
|
2050
|
+
* @func
|
|
2051
|
+
* @memberOf R
|
|
2052
|
+
* @since v0.1.0
|
|
2053
|
+
* @category Object
|
|
2054
|
+
* @sig {k: v} -> [k]
|
|
2055
|
+
* @param {Object} obj The object to extract properties from
|
|
2056
|
+
* @return {Array} An array of the object's own properties.
|
|
2057
|
+
* @see R.keysIn, R.values, R.toPairs
|
|
2058
|
+
* @example
|
|
2059
|
+
*
|
|
2060
|
+
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
1870
2061
|
*/
|
|
1871
|
-
function
|
|
1872
|
-
return
|
|
1873
|
-
|
|
1874
|
-
|
|
2062
|
+
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
|
2063
|
+
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
2064
|
+
}) : /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
|
2065
|
+
if (Object(obj) !== obj) {
|
|
2066
|
+
return [];
|
|
2067
|
+
}
|
|
2068
|
+
var prop, nIdx;
|
|
2069
|
+
var ks = [];
|
|
2070
|
+
var checkArgsLength = hasArgsEnumBug && (0,_internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__["default"])(obj);
|
|
2071
|
+
for (prop in obj) {
|
|
2072
|
+
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
2073
|
+
ks[ks.length] = prop;
|
|
1875
2074
|
}
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
idx += 1;
|
|
1884
|
-
}
|
|
1885
|
-
if ((0,_isTransformer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
|
1886
|
-
var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
|
|
1887
|
-
return transducer(obj);
|
|
2075
|
+
}
|
|
2076
|
+
if (hasEnumBug) {
|
|
2077
|
+
nIdx = nonEnumerableProps.length - 1;
|
|
2078
|
+
while (nIdx >= 0) {
|
|
2079
|
+
prop = nonEnumerableProps[nIdx];
|
|
2080
|
+
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && !contains(ks, prop)) {
|
|
2081
|
+
ks[ks.length] = prop;
|
|
1888
2082
|
}
|
|
2083
|
+
nIdx -= 1;
|
|
1889
2084
|
}
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
}
|
|
2085
|
+
}
|
|
2086
|
+
return ks;
|
|
2087
|
+
});
|
|
2088
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (keys);
|
|
1893
2089
|
|
|
1894
2090
|
/***/ },
|
|
1895
2091
|
|
|
1896
|
-
/***/
|
|
2092
|
+
/***/ 397
|
|
1897
2093
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1898
2094
|
|
|
1899
2095
|
__webpack_require__.r(__webpack_exports__);
|
|
1900
2096
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1901
2097
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1902
2098
|
/* harmony export */ });
|
|
1903
|
-
/* harmony import */ var
|
|
1904
|
-
/* harmony import */ var
|
|
1905
|
-
/* harmony import */ var
|
|
1906
|
-
/* harmony import */ var
|
|
1907
|
-
/* harmony import */ var
|
|
1908
|
-
/* harmony import */ var
|
|
2099
|
+
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4121);
|
|
2100
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
2101
|
+
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6738);
|
|
2102
|
+
/* harmony import */ var _internal_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6584);
|
|
2103
|
+
/* harmony import */ var _internal_xmap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6390);
|
|
2104
|
+
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9784);
|
|
2105
|
+
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7783);
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
1909
2110
|
|
|
1910
2111
|
|
|
1911
2112
|
|
|
1912
2113
|
|
|
1913
2114
|
/**
|
|
1914
|
-
*
|
|
2115
|
+
* Takes a function and
|
|
2116
|
+
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
2117
|
+
* applies the function to each of the functor's values, and returns
|
|
2118
|
+
* a functor of the same shape.
|
|
1915
2119
|
*
|
|
1916
|
-
*
|
|
1917
|
-
*
|
|
1918
|
-
*
|
|
1919
|
-
*
|
|
1920
|
-
*
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
2120
|
+
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
2121
|
+
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
2122
|
+
*
|
|
2123
|
+
* Dispatches to the `map` method of the second argument, if present.
|
|
2124
|
+
*
|
|
2125
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
2126
|
+
*
|
|
2127
|
+
* Also treats functions as functors and will compose them together.
|
|
2128
|
+
*
|
|
2129
|
+
* @func
|
|
2130
|
+
* @memberOf R
|
|
2131
|
+
* @since v0.1.0
|
|
2132
|
+
* @category List
|
|
2133
|
+
* @sig Functor f => (a -> b) -> f a -> f b
|
|
2134
|
+
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
2135
|
+
* @param {Array} list The list to be iterated over.
|
|
2136
|
+
* @return {Array} The new list.
|
|
2137
|
+
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
1924
2138
|
* @example
|
|
1925
2139
|
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
1931
|
-
*
|
|
2140
|
+
* const double = x => x * 2;
|
|
2141
|
+
*
|
|
2142
|
+
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
2143
|
+
*
|
|
2144
|
+
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
2145
|
+
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
2146
|
+
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
2147
|
+
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
1932
2148
|
*/
|
|
1933
|
-
var
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
/* harmony import */ var _nth_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5136);
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
function _prop(p, obj) {
|
|
1950
|
-
if (obj == null) {
|
|
1951
|
-
return;
|
|
2149
|
+
var map = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_2__["default"])(['fantasy-land/map', 'map'], _internal_xmap_js__WEBPACK_IMPORTED_MODULE_4__["default"], function map(fn, functor) {
|
|
2150
|
+
switch (Object.prototype.toString.call(functor)) {
|
|
2151
|
+
case '[object Function]':
|
|
2152
|
+
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_5__["default"])(functor.length, function () {
|
|
2153
|
+
return fn.call(this, functor.apply(this, arguments));
|
|
2154
|
+
});
|
|
2155
|
+
case '[object Object]':
|
|
2156
|
+
return (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (acc, key) {
|
|
2157
|
+
acc[key] = fn(functor[key]);
|
|
2158
|
+
return acc;
|
|
2159
|
+
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_6__["default"])(functor));
|
|
2160
|
+
default:
|
|
2161
|
+
return (0,_internal_map_js__WEBPACK_IMPORTED_MODULE_3__["default"])(fn, functor);
|
|
1952
2162
|
}
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_prop);
|
|
1956
|
-
|
|
1957
|
-
/***/ },
|
|
1958
|
-
|
|
1959
|
-
/***/ 7117
|
|
1960
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1961
|
-
|
|
1962
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1963
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1964
|
-
/* harmony export */ "default": () => (/* binding */ _isTransformer)
|
|
1965
|
-
/* harmony export */ });
|
|
1966
|
-
function _isTransformer(obj) {
|
|
1967
|
-
return obj != null && typeof obj['@@transducer/step'] === 'function';
|
|
1968
|
-
}
|
|
2163
|
+
}));
|
|
2164
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (map);
|
|
1969
2165
|
|
|
1970
2166
|
/***/ },
|
|
1971
2167
|
|
|
1972
|
-
/***/
|
|
2168
|
+
/***/ 4981
|
|
1973
2169
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1974
2170
|
|
|
1975
2171
|
__webpack_require__.r(__webpack_exports__);
|
|
1976
2172
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1977
2173
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1978
2174
|
/* harmony export */ });
|
|
1979
|
-
/* harmony import */ var
|
|
1980
|
-
/* harmony import */ var
|
|
1981
|
-
/* harmony import */ var _filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8481);
|
|
1982
|
-
|
|
2175
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2176
|
+
/* harmony import */ var _toString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9271);
|
|
1983
2177
|
|
|
1984
2178
|
|
|
1985
2179
|
|
|
1986
2180
|
/**
|
|
1987
|
-
*
|
|
1988
|
-
*
|
|
1989
|
-
* Acts as a transducer if a transformer is given in list position. Filterable
|
|
1990
|
-
* objects include plain objects or any object that has a filter method such
|
|
1991
|
-
* as `Array`.
|
|
1992
|
-
*
|
|
1993
|
-
* @func
|
|
1994
|
-
* @memberOf R
|
|
1995
|
-
* @since v0.1.0
|
|
1996
|
-
* @category List
|
|
1997
|
-
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
1998
|
-
* @param {Function} pred
|
|
1999
|
-
* @param {Array} filterable
|
|
2000
|
-
* @return {Array}
|
|
2001
|
-
* @see R.filter, R.transduce, R.addIndex
|
|
2002
|
-
* @example
|
|
2003
|
-
*
|
|
2004
|
-
* const isOdd = (n) => n % 2 !== 0;
|
|
2181
|
+
* Returns the larger of its two arguments.
|
|
2005
2182
|
*
|
|
2006
|
-
*
|
|
2183
|
+
* @func
|
|
2184
|
+
* @memberOf R
|
|
2185
|
+
* @since v0.1.0
|
|
2186
|
+
* @category Relation
|
|
2187
|
+
* @sig Ord a => a -> a -> a
|
|
2188
|
+
* @param {*} a
|
|
2189
|
+
* @param {*} b
|
|
2190
|
+
* @return {*}
|
|
2191
|
+
* @see R.maxBy, R.min
|
|
2192
|
+
* @example
|
|
2007
2193
|
*
|
|
2008
|
-
* R.
|
|
2194
|
+
* R.max(789, 123); //=> 789
|
|
2195
|
+
* R.max('a', 'b'); //=> 'b'
|
|
2009
2196
|
*/
|
|
2010
|
-
var
|
|
2011
|
-
|
|
2197
|
+
var max = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function max(a, b) {
|
|
2198
|
+
if (a === b) {
|
|
2199
|
+
return b;
|
|
2200
|
+
}
|
|
2201
|
+
function safeMax(x, y) {
|
|
2202
|
+
if (x > y !== y > x) {
|
|
2203
|
+
return y > x ? y : x;
|
|
2204
|
+
}
|
|
2205
|
+
return undefined;
|
|
2206
|
+
}
|
|
2207
|
+
var maxByValue = safeMax(a, b);
|
|
2208
|
+
if (maxByValue !== undefined) {
|
|
2209
|
+
return maxByValue;
|
|
2210
|
+
}
|
|
2211
|
+
var maxByType = safeMax(typeof a, typeof b);
|
|
2212
|
+
if (maxByType !== undefined) {
|
|
2213
|
+
return maxByType === typeof a ? a : b;
|
|
2214
|
+
}
|
|
2215
|
+
var stringA = (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a);
|
|
2216
|
+
var maxByStringValue = safeMax(stringA, (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b));
|
|
2217
|
+
if (maxByStringValue !== undefined) {
|
|
2218
|
+
return maxByStringValue === stringA ? a : b;
|
|
2219
|
+
}
|
|
2220
|
+
return b;
|
|
2012
2221
|
});
|
|
2013
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
2222
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (max);
|
|
2014
2223
|
|
|
2015
2224
|
/***/ },
|
|
2016
2225
|
|
|
@@ -2063,108 +2272,90 @@ function pipe() {
|
|
|
2063
2272
|
|
|
2064
2273
|
/***/ },
|
|
2065
2274
|
|
|
2066
|
-
/***/
|
|
2275
|
+
/***/ 9590
|
|
2067
2276
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2068
2277
|
|
|
2069
2278
|
__webpack_require__.r(__webpack_exports__);
|
|
2070
2279
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2071
2280
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2072
2281
|
/* harmony export */ });
|
|
2282
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2283
|
+
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(397);
|
|
2284
|
+
/* harmony import */ var _prop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8822);
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
|
|
2073
2289
|
/**
|
|
2074
|
-
*
|
|
2290
|
+
* Returns a new list by plucking the same named property off all objects in
|
|
2291
|
+
* the list supplied.
|
|
2075
2292
|
*
|
|
2076
|
-
*
|
|
2077
|
-
*
|
|
2078
|
-
*
|
|
2079
|
-
*
|
|
2293
|
+
* `pluck` will work on
|
|
2294
|
+
* any [functor](https://github.com/fantasyland/fantasy-land#functor) in
|
|
2295
|
+
* addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
|
|
2296
|
+
*
|
|
2297
|
+
* @func
|
|
2298
|
+
* @memberOf R
|
|
2299
|
+
* @since v0.1.0
|
|
2300
|
+
* @category List
|
|
2301
|
+
* @sig Functor f => k -> f {k: v} -> f v
|
|
2302
|
+
* @param {Number|String} key The key name to pluck off of each object.
|
|
2303
|
+
* @param {Array} f The array or functor to consider.
|
|
2304
|
+
* @return {Array} The list of values for the given key.
|
|
2305
|
+
* @see R.project, R.prop, R.props
|
|
2306
|
+
* @example
|
|
2307
|
+
*
|
|
2308
|
+
* var getAges = R.pluck('age');
|
|
2309
|
+
* getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
|
|
2310
|
+
*
|
|
2311
|
+
* R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
|
|
2312
|
+
* R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
|
|
2313
|
+
* @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
|
|
2314
|
+
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
2080
2315
|
*/
|
|
2081
|
-
|
|
2082
|
-
return
|
|
2316
|
+
var pluck = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function pluck(p, list) {
|
|
2317
|
+
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_prop_js__WEBPACK_IMPORTED_MODULE_2__["default"])(p), list);
|
|
2083
2318
|
});
|
|
2319
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pluck);
|
|
2084
2320
|
|
|
2085
2321
|
/***/ },
|
|
2086
2322
|
|
|
2087
|
-
/***/
|
|
2323
|
+
/***/ 8822
|
|
2088
2324
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2089
2325
|
|
|
2090
2326
|
__webpack_require__.r(__webpack_exports__);
|
|
2091
2327
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2092
2328
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2093
2329
|
/* harmony export */ });
|
|
2094
|
-
/* harmony import */ var
|
|
2095
|
-
/* harmony import */ var
|
|
2096
|
-
/* harmony import */ var _internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6590);
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2330
|
+
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2331
|
+
/* harmony import */ var _internal_prop_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7057);
|
|
2100
2332
|
|
|
2101
|
-
// cover IE < 9 keys issues
|
|
2102
|
-
var hasEnumBug = ! /*#__PURE__*/{
|
|
2103
|
-
toString: null
|
|
2104
|
-
}.propertyIsEnumerable('toString');
|
|
2105
|
-
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
|
2106
|
-
// Safari bug
|
|
2107
|
-
var hasArgsEnumBug = /*#__PURE__*/function () {
|
|
2108
|
-
'use strict';
|
|
2109
2333
|
|
|
2110
|
-
return arguments.propertyIsEnumerable('length');
|
|
2111
|
-
}();
|
|
2112
|
-
var contains = function contains(list, item) {
|
|
2113
|
-
var idx = 0;
|
|
2114
|
-
while (idx < list.length) {
|
|
2115
|
-
if (list[idx] === item) {
|
|
2116
|
-
return true;
|
|
2117
|
-
}
|
|
2118
|
-
idx += 1;
|
|
2119
|
-
}
|
|
2120
|
-
return false;
|
|
2121
|
-
};
|
|
2122
2334
|
|
|
2123
2335
|
/**
|
|
2124
|
-
* Returns a
|
|
2125
|
-
*
|
|
2126
|
-
* Note that the order of the output array is not guaranteed to be consistent
|
|
2127
|
-
* across different JS platforms.
|
|
2336
|
+
* Returns a function that when supplied an object returns the indicated
|
|
2337
|
+
* property of that object, if it exists.
|
|
2128
2338
|
*
|
|
2129
2339
|
* @func
|
|
2130
2340
|
* @memberOf R
|
|
2131
2341
|
* @since v0.1.0
|
|
2132
2342
|
* @category Object
|
|
2133
|
-
* @
|
|
2134
|
-
* @
|
|
2135
|
-
* @
|
|
2136
|
-
* @
|
|
2343
|
+
* @typedefn Idx = String | Int | Symbol
|
|
2344
|
+
* @sig Idx -> {s: a} -> a | Undefined
|
|
2345
|
+
* @param {String|Number} p The property name or array index
|
|
2346
|
+
* @param {Object} obj The object to query
|
|
2347
|
+
* @return {*} The value at `obj.p`.
|
|
2348
|
+
* @see R.path, R.props, R.pluck, R.project, R.nth
|
|
2137
2349
|
* @example
|
|
2138
2350
|
*
|
|
2139
|
-
* R.
|
|
2351
|
+
* R.prop('x', {x: 100}); //=> 100
|
|
2352
|
+
* R.prop('x', {}); //=> undefined
|
|
2353
|
+
* R.prop(0, [100]); //=> 100
|
|
2354
|
+
* R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
|
|
2140
2355
|
*/
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
if (Object(obj) !== obj) {
|
|
2145
|
-
return [];
|
|
2146
|
-
}
|
|
2147
|
-
var prop, nIdx;
|
|
2148
|
-
var ks = [];
|
|
2149
|
-
var checkArgsLength = hasArgsEnumBug && (0,_internal_isArguments_js__WEBPACK_IMPORTED_MODULE_2__["default"])(obj);
|
|
2150
|
-
for (prop in obj) {
|
|
2151
|
-
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
|
2152
|
-
ks[ks.length] = prop;
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
if (hasEnumBug) {
|
|
2156
|
-
nIdx = nonEnumerableProps.length - 1;
|
|
2157
|
-
while (nIdx >= 0) {
|
|
2158
|
-
prop = nonEnumerableProps[nIdx];
|
|
2159
|
-
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_1__["default"])(prop, obj) && !contains(ks, prop)) {
|
|
2160
|
-
ks[ks.length] = prop;
|
|
2161
|
-
}
|
|
2162
|
-
nIdx -= 1;
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
return ks;
|
|
2166
|
-
});
|
|
2167
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (keys);
|
|
2356
|
+
|
|
2357
|
+
var prop = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_internal_prop_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
2358
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (prop);
|
|
2168
2359
|
|
|
2169
2360
|
/***/ },
|
|
2170
2361
|
|
|
@@ -2232,304 +2423,146 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2232
2423
|
* // / \ / \
|
|
2233
2424
|
* // 0 1 0 1
|
|
2234
2425
|
*
|
|
2235
|
-
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
2236
|
-
*/
|
|
2237
|
-
var reduce = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (xf, acc, list) {
|
|
2238
|
-
return (0,_internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(typeof xf === 'function' ? (0,_internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf) : xf, acc, list);
|
|
2239
|
-
});
|
|
2240
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reduce);
|
|
2241
|
-
|
|
2242
|
-
/***/ },
|
|
2243
|
-
|
|
2244
|
-
/***/ 7940
|
|
2245
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2246
|
-
|
|
2247
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2248
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2249
|
-
/* harmony export */ "default": () => (/* binding */ _complement)
|
|
2250
|
-
/* harmony export */ });
|
|
2251
|
-
function _complement(f) {
|
|
2252
|
-
return function () {
|
|
2253
|
-
return !f.apply(this, arguments);
|
|
2254
|
-
};
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
/***/ },
|
|
2258
|
-
|
|
2259
|
-
/***/ 8080
|
|
2260
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2261
|
-
|
|
2262
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2263
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2264
|
-
/* harmony export */ "default": () => (/* binding */ _xfilter)
|
|
2265
|
-
/* harmony export */ });
|
|
2266
|
-
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3143);
|
|
2267
|
-
|
|
2268
|
-
var XFilter = /*#__PURE__*/function () {
|
|
2269
|
-
function XFilter(f, xf) {
|
|
2270
|
-
this.xf = xf;
|
|
2271
|
-
this.f = f;
|
|
2272
|
-
}
|
|
2273
|
-
XFilter.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
|
2274
|
-
XFilter.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
|
2275
|
-
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
|
2276
|
-
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
|
2277
|
-
};
|
|
2278
|
-
return XFilter;
|
|
2279
|
-
}();
|
|
2280
|
-
function _xfilter(f) {
|
|
2281
|
-
return function (xf) {
|
|
2282
|
-
return new XFilter(f, xf);
|
|
2283
|
-
};
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
/***/ },
|
|
2287
|
-
|
|
2288
|
-
/***/ 8397
|
|
2289
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2290
|
-
|
|
2291
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2292
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2293
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2294
|
-
/* harmony export */ });
|
|
2295
|
-
/* harmony import */ var _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(746);
|
|
2296
|
-
|
|
2297
|
-
/**
|
|
2298
|
-
* @public
|
|
2299
|
-
*/
|
|
2300
|
-
class NotImplementedError extends _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
2301
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
|
|
2302
|
-
|
|
2303
|
-
/***/ },
|
|
2304
|
-
|
|
2305
|
-
/***/ 8477
|
|
2306
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2307
|
-
|
|
2308
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2309
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2310
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2311
|
-
/* harmony export */ });
|
|
2312
|
-
/**
|
|
2313
|
-
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
|
2314
|
-
*/
|
|
2315
|
-
var pad = function pad(n) {
|
|
2316
|
-
return (n < 10 ? '0' : '') + n;
|
|
2317
|
-
};
|
|
2318
|
-
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
|
2319
|
-
return d.toISOString();
|
|
2320
|
-
} : function _toISOString(d) {
|
|
2321
|
-
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
|
2322
|
-
};
|
|
2323
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_toISOString);
|
|
2426
|
+
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
2427
|
+
*/
|
|
2428
|
+
var reduce = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (xf, acc, list) {
|
|
2429
|
+
return (0,_internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(typeof xf === 'function' ? (0,_internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf) : xf, acc, list);
|
|
2430
|
+
});
|
|
2431
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reduce);
|
|
2324
2432
|
|
|
2325
2433
|
/***/ },
|
|
2326
2434
|
|
|
2327
|
-
/***/
|
|
2435
|
+
/***/ 7444
|
|
2328
2436
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2329
2437
|
|
|
2330
2438
|
__webpack_require__.r(__webpack_exports__);
|
|
2331
2439
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2332
2440
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2333
2441
|
/* harmony export */ });
|
|
2334
|
-
/* harmony import */ var
|
|
2442
|
+
/* harmony import */ var _internal_complement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7940);
|
|
2335
2443
|
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5959);
|
|
2336
|
-
/* harmony import */ var
|
|
2337
|
-
/* harmony import */ var _internal_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6574);
|
|
2338
|
-
/* harmony import */ var _internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2098);
|
|
2339
|
-
/* harmony import */ var _internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8772);
|
|
2340
|
-
/* harmony import */ var _internal_isObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(131);
|
|
2341
|
-
/* harmony import */ var _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8080);
|
|
2342
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7783);
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2444
|
+
/* harmony import */ var _filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8481);
|
|
2349
2445
|
|
|
2350
2446
|
|
|
2351
2447
|
|
|
2352
2448
|
|
|
2353
2449
|
/**
|
|
2354
|
-
*
|
|
2355
|
-
* same type containing the members of the given filterable which satisfy the
|
|
2356
|
-
* given predicate. Filterable objects include plain objects, Maps, or any object
|
|
2357
|
-
* that has a filter method such as `Array`.
|
|
2358
|
-
*
|
|
2359
|
-
* Dispatches to the `filter` method of the second argument, if present.
|
|
2450
|
+
* The complement of [`filter`](#filter).
|
|
2360
2451
|
*
|
|
2361
|
-
* Acts as a transducer if a transformer is given in list position.
|
|
2452
|
+
* Acts as a transducer if a transformer is given in list position. Filterable
|
|
2453
|
+
* objects include plain objects or any object that has a filter method such
|
|
2454
|
+
* as `Array`.
|
|
2362
2455
|
*
|
|
2363
2456
|
* @func
|
|
2364
2457
|
* @memberOf R
|
|
2365
2458
|
* @since v0.1.0
|
|
2366
2459
|
* @category List
|
|
2367
|
-
* @category Object
|
|
2368
2460
|
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
2369
2461
|
* @param {Function} pred
|
|
2370
2462
|
* @param {Array} filterable
|
|
2371
|
-
* @return {Array}
|
|
2372
|
-
* @see R.
|
|
2463
|
+
* @return {Array}
|
|
2464
|
+
* @see R.filter, R.transduce, R.addIndex
|
|
2373
2465
|
* @example
|
|
2374
2466
|
*
|
|
2375
|
-
* const
|
|
2467
|
+
* const isOdd = (n) => n % 2 !== 0;
|
|
2376
2468
|
*
|
|
2377
|
-
* R.
|
|
2469
|
+
* R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
|
|
2378
2470
|
*
|
|
2379
|
-
* R.
|
|
2471
|
+
* R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
2380
2472
|
*/
|
|
2381
|
-
var
|
|
2382
|
-
return (0,
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
}
|
|
2386
|
-
return acc;
|
|
2387
|
-
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_8__["default"])(filterable)) : (0,_internal_isMap_js__WEBPACK_IMPORTED_MODULE_5__["default"])(filterable) ? (0,_internal_filterMap_js__WEBPACK_IMPORTED_MODULE_4__["default"])(pred, filterable) :
|
|
2388
|
-
// else
|
|
2389
|
-
(0,_internal_filter_js__WEBPACK_IMPORTED_MODULE_3__["default"])(pred, filterable);
|
|
2390
|
-
}));
|
|
2391
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (filter);
|
|
2392
|
-
|
|
2393
|
-
/***/ },
|
|
2394
|
-
|
|
2395
|
-
/***/ 8772
|
|
2396
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2397
|
-
|
|
2398
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2399
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2400
|
-
/* harmony export */ "default": () => (/* binding */ _isMap)
|
|
2401
|
-
/* harmony export */ });
|
|
2402
|
-
function _isMap(x) {
|
|
2403
|
-
return Object.prototype.toString.call(x) === '[object Map]';
|
|
2404
|
-
}
|
|
2473
|
+
var reject = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function reject(pred, filterable) {
|
|
2474
|
+
return (0,_filter_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_internal_complement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(pred), filterable);
|
|
2475
|
+
});
|
|
2476
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
|
|
2405
2477
|
|
|
2406
2478
|
/***/ },
|
|
2407
2479
|
|
|
2408
|
-
/***/
|
|
2480
|
+
/***/ 5969
|
|
2409
2481
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2410
2482
|
|
|
2411
2483
|
__webpack_require__.r(__webpack_exports__);
|
|
2412
2484
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2413
2485
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2414
2486
|
/* harmony export */ });
|
|
2415
|
-
/* harmony import */ var
|
|
2416
|
-
/* harmony import */ var
|
|
2487
|
+
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6122);
|
|
2488
|
+
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9088);
|
|
2417
2489
|
|
|
2418
2490
|
|
|
2419
2491
|
|
|
2420
2492
|
/**
|
|
2421
|
-
* Returns
|
|
2422
|
-
*
|
|
2493
|
+
* Returns the elements of the given list or string (or object with a `slice`
|
|
2494
|
+
* method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
|
|
2495
|
+
*
|
|
2496
|
+
* Dispatches to the `slice` method of the third argument, if present.
|
|
2423
2497
|
*
|
|
2424
2498
|
* @func
|
|
2425
2499
|
* @memberOf R
|
|
2426
|
-
* @since v0.1.
|
|
2427
|
-
* @category
|
|
2428
|
-
* @
|
|
2429
|
-
* @sig
|
|
2430
|
-
* @param {
|
|
2431
|
-
* @param {
|
|
2432
|
-
* @
|
|
2433
|
-
* @
|
|
2500
|
+
* @since v0.1.4
|
|
2501
|
+
* @category List
|
|
2502
|
+
* @sig Number -> Number -> [a] -> [a]
|
|
2503
|
+
* @sig Number -> Number -> String -> String
|
|
2504
|
+
* @param {Number} fromIndex The start index (inclusive).
|
|
2505
|
+
* @param {Number} toIndex The end index (exclusive).
|
|
2506
|
+
* @param {*} list
|
|
2507
|
+
* @return {*}
|
|
2434
2508
|
* @example
|
|
2435
2509
|
*
|
|
2436
|
-
* R.
|
|
2437
|
-
* R.
|
|
2438
|
-
* R.
|
|
2439
|
-
* R.
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
var prop = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_internal_prop_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
2443
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (prop);
|
|
2444
|
-
|
|
2445
|
-
/***/ },
|
|
2446
|
-
|
|
2447
|
-
/***/ 8938
|
|
2448
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2449
|
-
|
|
2450
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2451
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2452
|
-
/* harmony export */ "default": () => (/* binding */ _curry1)
|
|
2453
|
-
/* harmony export */ });
|
|
2454
|
-
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1003);
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
/**
|
|
2458
|
-
* Optimized internal one-arity curry function.
|
|
2459
|
-
*
|
|
2460
|
-
* @private
|
|
2461
|
-
* @category Function
|
|
2462
|
-
* @param {Function} fn The function to curry.
|
|
2463
|
-
* @return {Function} The curried function.
|
|
2510
|
+
* R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
2511
|
+
* R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
|
|
2512
|
+
* R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
|
|
2513
|
+
* R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
2514
|
+
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
2464
2515
|
*/
|
|
2465
|
-
function
|
|
2466
|
-
return
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
} else {
|
|
2470
|
-
return fn.apply(this, arguments);
|
|
2471
|
-
}
|
|
2472
|
-
};
|
|
2473
|
-
}
|
|
2516
|
+
var slice = /*#__PURE__*/(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('slice', function slice(fromIndex, toIndex, list) {
|
|
2517
|
+
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
2518
|
+
}));
|
|
2519
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (slice);
|
|
2474
2520
|
|
|
2475
2521
|
/***/ },
|
|
2476
2522
|
|
|
2477
|
-
/***/
|
|
2523
|
+
/***/ 6561
|
|
2478
2524
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2479
2525
|
|
|
2480
2526
|
__webpack_require__.r(__webpack_exports__);
|
|
2481
2527
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2482
|
-
/* harmony export */ "default": () => (
|
|
2528
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2483
2529
|
/* harmony export */ });
|
|
2484
|
-
/* harmony import */ var
|
|
2485
|
-
/* harmony import */ var
|
|
2486
|
-
/* harmony import */ var
|
|
2530
|
+
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6122);
|
|
2531
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
2532
|
+
/* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5969);
|
|
2487
2533
|
|
|
2488
2534
|
|
|
2489
2535
|
|
|
2490
2536
|
|
|
2491
2537
|
/**
|
|
2492
|
-
*
|
|
2538
|
+
* Returns all but the first element of the given list or string (or object
|
|
2539
|
+
* with a `tail` method).
|
|
2493
2540
|
*
|
|
2494
|
-
*
|
|
2495
|
-
*
|
|
2496
|
-
* @
|
|
2497
|
-
* @
|
|
2541
|
+
* Dispatches to the `slice` method of the first argument, if present.
|
|
2542
|
+
*
|
|
2543
|
+
* @func
|
|
2544
|
+
* @memberOf R
|
|
2545
|
+
* @since v0.1.0
|
|
2546
|
+
* @category List
|
|
2547
|
+
* @sig [a] -> [a]
|
|
2548
|
+
* @sig String -> String
|
|
2549
|
+
* @param {*} list
|
|
2550
|
+
* @return {*}
|
|
2551
|
+
* @see R.head, R.init, R.last
|
|
2552
|
+
* @example
|
|
2553
|
+
*
|
|
2554
|
+
* R.tail([1, 2, 3]); //=> [2, 3]
|
|
2555
|
+
* R.tail([1, 2]); //=> [2]
|
|
2556
|
+
* R.tail([1]); //=> []
|
|
2557
|
+
* R.tail([]); //=> []
|
|
2558
|
+
*
|
|
2559
|
+
* R.tail('abc'); //=> 'bc'
|
|
2560
|
+
* R.tail('ab'); //=> 'b'
|
|
2561
|
+
* R.tail('a'); //=> ''
|
|
2562
|
+
* R.tail(''); //=> ''
|
|
2498
2563
|
*/
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
switch (arguments.length) {
|
|
2502
|
-
case 0:
|
|
2503
|
-
return f3;
|
|
2504
|
-
case 1:
|
|
2505
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? f3 : (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2506
|
-
return fn(a, _b, _c);
|
|
2507
|
-
});
|
|
2508
|
-
case 2:
|
|
2509
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
2510
|
-
return fn(_a, b, _c);
|
|
2511
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2512
|
-
return fn(a, _b, _c);
|
|
2513
|
-
}) : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
2514
|
-
return fn(a, b, _c);
|
|
2515
|
-
});
|
|
2516
|
-
default:
|
|
2517
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _b) {
|
|
2518
|
-
return fn(_a, _b, c);
|
|
2519
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
|
2520
|
-
return fn(_a, b, _c);
|
|
2521
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
|
2522
|
-
return fn(a, _b, _c);
|
|
2523
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_a) {
|
|
2524
|
-
return fn(_a, b, c);
|
|
2525
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_b) {
|
|
2526
|
-
return fn(a, _b, c);
|
|
2527
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_2__["default"])(c) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (_c) {
|
|
2528
|
-
return fn(a, b, _c);
|
|
2529
|
-
}) : fn(a, b, c);
|
|
2530
|
-
}
|
|
2531
|
-
};
|
|
2532
|
-
}
|
|
2564
|
+
var tail = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_0__["default"])('tail', /*#__PURE__*/(0,_slice_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, Infinity)));
|
|
2565
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tail);
|
|
2533
2566
|
|
|
2534
2567
|
/***/ },
|
|
2535
2568
|
|
|
@@ -2581,233 +2614,200 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2581
2614
|
* R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
|
|
2582
2615
|
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
2583
2616
|
*/
|
|
2584
|
-
var toString = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function toString(val) {
|
|
2585
|
-
return (0,_internal_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(val, []);
|
|
2617
|
+
var toString = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function toString(val) {
|
|
2618
|
+
return (0,_internal_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(val, []);
|
|
2619
|
+
});
|
|
2620
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toString);
|
|
2621
|
+
|
|
2622
|
+
/***/ },
|
|
2623
|
+
|
|
2624
|
+
/***/ 963
|
|
2625
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2626
|
+
|
|
2627
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2628
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2629
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2630
|
+
/* harmony export */ });
|
|
2631
|
+
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8938);
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Gives a single-word string description of the (native) type of a value,
|
|
2636
|
+
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
|
2637
|
+
* attempt to distinguish user Object types any further, reporting them all as
|
|
2638
|
+
* 'Object'.
|
|
2639
|
+
*
|
|
2640
|
+
* @func
|
|
2641
|
+
* @memberOf R
|
|
2642
|
+
* @since v0.8.0
|
|
2643
|
+
* @category Type
|
|
2644
|
+
* @sig * -> String
|
|
2645
|
+
* @param {*} val The value to test
|
|
2646
|
+
* @return {String}
|
|
2647
|
+
* @example
|
|
2648
|
+
*
|
|
2649
|
+
* R.type({}); //=> "Object"
|
|
2650
|
+
* R.type(new Map); //=> "Map"
|
|
2651
|
+
* R.type(new Set); //=> "Set"
|
|
2652
|
+
* R.type(1); //=> "Number"
|
|
2653
|
+
* R.type(false); //=> "Boolean"
|
|
2654
|
+
* R.type('s'); //=> "String"
|
|
2655
|
+
* R.type(null); //=> "Null"
|
|
2656
|
+
* R.type([]); //=> "Array"
|
|
2657
|
+
* R.type(/[A-z]/); //=> "RegExp"
|
|
2658
|
+
* R.type(() => {}); //=> "Function"
|
|
2659
|
+
* R.type(async () => {}); //=> "AsyncFunction"
|
|
2660
|
+
* R.type(undefined); //=> "Undefined"
|
|
2661
|
+
* R.type(BigInt(123)); //=> "BigInt"
|
|
2662
|
+
*/
|
|
2663
|
+
var type = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function type(val) {
|
|
2664
|
+
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
2586
2665
|
});
|
|
2587
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
2666
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (type);
|
|
2588
2667
|
|
|
2589
2668
|
/***/ },
|
|
2590
2669
|
|
|
2591
|
-
/***/
|
|
2670
|
+
/***/ 2275
|
|
2592
2671
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2593
2672
|
|
|
2594
2673
|
__webpack_require__.r(__webpack_exports__);
|
|
2595
2674
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2596
2675
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2597
2676
|
/* harmony export */ });
|
|
2598
|
-
/* harmony import */ var
|
|
2677
|
+
/* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8397);
|
|
2599
2678
|
|
|
2600
2679
|
|
|
2601
2680
|
/**
|
|
2602
|
-
*
|
|
2603
|
-
* non-primitives the value returned is a reference to the original value.
|
|
2604
|
-
*
|
|
2605
|
-
* This function is known as `const`, `constant`, or `K` (for K combinator) in
|
|
2606
|
-
* other languages and libraries.
|
|
2607
|
-
*
|
|
2608
|
-
* @func
|
|
2609
|
-
* @memberOf R
|
|
2610
|
-
* @since v0.1.0
|
|
2611
|
-
* @category Function
|
|
2612
|
-
* @sig a -> (* -> a)
|
|
2613
|
-
* @param {*} val The value to wrap in a function
|
|
2614
|
-
* @return {Function} A Function :: * -> val.
|
|
2615
|
-
* @example
|
|
2616
|
-
*
|
|
2617
|
-
* const t = R.always('Tee');
|
|
2618
|
-
* t(); //=> 'Tee'
|
|
2681
|
+
* @public
|
|
2619
2682
|
*/
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2683
|
+
class MediaTypes extends Array {
|
|
2684
|
+
unknownMediaType = 'application/octet-stream';
|
|
2685
|
+
filterByFormat() {
|
|
2686
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('filterByFormat method in MediaTypes class is not yet implemented.');
|
|
2687
|
+
}
|
|
2688
|
+
findBy() {
|
|
2689
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('findBy method in MediaTypes class is not yet implemented.');
|
|
2690
|
+
}
|
|
2691
|
+
latest() {
|
|
2692
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('latest method in MediaTypes class is not yet implemented.');
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MediaTypes);
|
|
2626
2696
|
|
|
2627
2697
|
/***/ },
|
|
2628
2698
|
|
|
2629
|
-
/***/
|
|
2699
|
+
/***/ 3437
|
|
2630
2700
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2631
2701
|
|
|
2632
2702
|
__webpack_require__.r(__webpack_exports__);
|
|
2633
2703
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2634
2704
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2635
2705
|
/* harmony export */ });
|
|
2636
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5959);
|
|
2637
|
-
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(397);
|
|
2638
|
-
/* harmony import */ var _prop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8822);
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
2706
|
/**
|
|
2644
|
-
*
|
|
2645
|
-
* the list supplied.
|
|
2646
|
-
*
|
|
2647
|
-
* `pluck` will work on
|
|
2648
|
-
* any [functor](https://github.com/fantasyland/fantasy-land#functor) in
|
|
2649
|
-
* addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
|
|
2650
|
-
*
|
|
2651
|
-
* @func
|
|
2652
|
-
* @memberOf R
|
|
2653
|
-
* @since v0.1.0
|
|
2654
|
-
* @category List
|
|
2655
|
-
* @sig Functor f => k -> f {k: v} -> f v
|
|
2656
|
-
* @param {Number|String} key The key name to pluck off of each object.
|
|
2657
|
-
* @param {Array} f The array or functor to consider.
|
|
2658
|
-
* @return {Array} The list of values for the given key.
|
|
2659
|
-
* @see R.project, R.prop, R.props
|
|
2660
|
-
* @example
|
|
2661
|
-
*
|
|
2662
|
-
* var getAges = R.pluck('age');
|
|
2663
|
-
* getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
|
|
2664
|
-
*
|
|
2665
|
-
* R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
|
|
2666
|
-
* R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
|
|
2667
|
-
* @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
|
|
2668
|
-
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
2707
|
+
* @public
|
|
2669
2708
|
*/
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2709
|
+
class ApiDOMAggregateError extends AggregateError {
|
|
2710
|
+
constructor(errors, message, options) {
|
|
2711
|
+
super(errors, message, options);
|
|
2712
|
+
this.name = this.constructor.name;
|
|
2713
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2714
|
+
Error.captureStackTrace(this, this.constructor);
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMAggregateError);
|
|
2674
2719
|
|
|
2675
2720
|
/***/ },
|
|
2676
2721
|
|
|
2677
|
-
/***/
|
|
2722
|
+
/***/ 6126
|
|
2678
2723
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2679
2724
|
|
|
2680
2725
|
__webpack_require__.r(__webpack_exports__);
|
|
2681
2726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2682
2727
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2683
2728
|
/* harmony export */ });
|
|
2684
|
-
/* harmony import */ var
|
|
2685
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2572);
|
|
2686
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7567);
|
|
2687
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(963);
|
|
2688
|
-
|
|
2729
|
+
/* harmony import */ var _ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3437);
|
|
2689
2730
|
|
|
2690
2731
|
/**
|
|
2691
|
-
*
|
|
2692
|
-
*
|
|
2693
|
-
* @func isGeneratorFunction
|
|
2694
|
-
* @memberOf RA
|
|
2695
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
|
2696
|
-
* @category Type
|
|
2697
|
-
* @sig * -> Boolean
|
|
2698
|
-
* @param {*} val The value to test
|
|
2699
|
-
* @return {boolean}
|
|
2700
|
-
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isNotGeneratorFunction|isNotGeneratorFunction}
|
|
2701
|
-
* @example
|
|
2702
|
-
*
|
|
2703
|
-
* RA.isGeneratorFunction(function* test() { }); //=> true
|
|
2704
|
-
* RA.isGeneratorFunction(null); //=> false
|
|
2705
|
-
* RA.isGeneratorFunction(function test() { }); //=> false
|
|
2706
|
-
* RA.isGeneratorFunction(() => {}); //=> false
|
|
2732
|
+
* @public
|
|
2707
2733
|
*/
|
|
2708
|
-
|
|
2709
|
-
|
|
2734
|
+
class ApiDOMError extends Error {
|
|
2735
|
+
static [Symbol.hasInstance](instance) {
|
|
2736
|
+
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
2737
|
+
return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
|
|
2738
|
+
}
|
|
2739
|
+
constructor(message, options) {
|
|
2740
|
+
super(message, options);
|
|
2741
|
+
this.name = this.constructor.name;
|
|
2742
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
2743
|
+
Error.captureStackTrace(this, this.constructor);
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
|
|
2710
2748
|
|
|
2711
2749
|
/***/ },
|
|
2712
2750
|
|
|
2713
|
-
/***/
|
|
2751
|
+
/***/ 4641
|
|
2714
2752
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2715
2753
|
|
|
2716
2754
|
__webpack_require__.r(__webpack_exports__);
|
|
2717
2755
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2718
2756
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2719
2757
|
/* harmony export */ });
|
|
2720
|
-
/* harmony import */ var
|
|
2721
|
-
/* harmony import */ var _xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2719);
|
|
2722
|
-
/* harmony import */ var _bind_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(560);
|
|
2723
|
-
|
|
2724
|
-
|
|
2758
|
+
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
2725
2759
|
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2760
|
+
/**
|
|
2761
|
+
* @public
|
|
2762
|
+
*/
|
|
2763
|
+
class ApiDOMStructuredError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
2764
|
+
constructor(message, structuredOptions) {
|
|
2765
|
+
super(message, structuredOptions);
|
|
2766
|
+
if (structuredOptions != null && typeof structuredOptions === 'object') {
|
|
2767
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2768
|
+
const {
|
|
2769
|
+
cause,
|
|
2770
|
+
...causelessOptions
|
|
2771
|
+
} = structuredOptions;
|
|
2772
|
+
Object.assign(this, causelessOptions);
|
|
2733
2773
|
}
|
|
2734
|
-
step = iter.next();
|
|
2735
2774
|
}
|
|
2736
|
-
return xf['@@transducer/result'](acc);
|
|
2737
2775
|
}
|
|
2738
|
-
|
|
2739
|
-
return xf['@@transducer/result'](obj[methodName]((0,_bind_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf['@@transducer/step'], xf), acc));
|
|
2740
|
-
}
|
|
2741
|
-
var _xReduce = /*#__PURE__*/(0,_createReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_xArrayReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"], _xMethodReduce, _xIterableReduce);
|
|
2742
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xReduce);
|
|
2776
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMStructuredError);
|
|
2743
2777
|
|
|
2744
2778
|
/***/ },
|
|
2745
2779
|
|
|
2746
|
-
/***/
|
|
2780
|
+
/***/ 8397
|
|
2747
2781
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2748
2782
|
|
|
2749
2783
|
__webpack_require__.r(__webpack_exports__);
|
|
2750
2784
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2751
2785
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2752
2786
|
/* harmony export */ });
|
|
2753
|
-
/* harmony import */ var
|
|
2754
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
|
|
2755
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5959);
|
|
2756
|
-
/* harmony import */ var _internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2459);
|
|
2787
|
+
/* harmony import */ var _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(746);
|
|
2757
2788
|
|
|
2789
|
+
/**
|
|
2790
|
+
* @public
|
|
2791
|
+
*/
|
|
2792
|
+
class NotImplementedError extends _UnsupportedOperationError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
2793
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
|
|
2758
2794
|
|
|
2795
|
+
/***/ },
|
|
2759
2796
|
|
|
2797
|
+
/***/ 746
|
|
2798
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2760
2799
|
|
|
2800
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2801
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2802
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2803
|
+
/* harmony export */ });
|
|
2804
|
+
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6126);
|
|
2761
2805
|
|
|
2762
2806
|
/**
|
|
2763
|
-
*
|
|
2764
|
-
* arity. The curried function has two unusual capabilities. First, its
|
|
2765
|
-
* arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
|
|
2766
|
-
* following are equivalent:
|
|
2767
|
-
*
|
|
2768
|
-
* - `g(1)(2)(3)`
|
|
2769
|
-
* - `g(1)(2, 3)`
|
|
2770
|
-
* - `g(1, 2)(3)`
|
|
2771
|
-
* - `g(1, 2, 3)`
|
|
2772
|
-
*
|
|
2773
|
-
* Secondly, the special placeholder value [`R.__`](#__) may be used to specify
|
|
2774
|
-
* "gaps", allowing partial application of any combination of arguments,
|
|
2775
|
-
* regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
|
|
2776
|
-
* the following are equivalent:
|
|
2777
|
-
*
|
|
2778
|
-
* - `g(1, 2, 3)`
|
|
2779
|
-
* - `g(_, 2, 3)(1)`
|
|
2780
|
-
* - `g(_, _, 3)(1)(2)`
|
|
2781
|
-
* - `g(_, _, 3)(1, 2)`
|
|
2782
|
-
* - `g(_, 2)(1)(3)`
|
|
2783
|
-
* - `g(_, 2)(1, 3)`
|
|
2784
|
-
* - `g(_, 2)(_, 3)(1)`
|
|
2785
|
-
*
|
|
2786
|
-
* @func
|
|
2787
|
-
* @memberOf R
|
|
2788
|
-
* @since v0.5.0
|
|
2789
|
-
* @category Function
|
|
2790
|
-
* @sig Number -> (* -> a) -> (* -> a)
|
|
2791
|
-
* @param {Number} length The arity for the returned function.
|
|
2792
|
-
* @param {Function} fn The function to curry.
|
|
2793
|
-
* @return {Function} A new, curried function.
|
|
2794
|
-
* @see R.curry
|
|
2795
|
-
* @example
|
|
2796
|
-
*
|
|
2797
|
-
* const sumArgs = (...args) => R.sum(args);
|
|
2798
|
-
*
|
|
2799
|
-
* const curriedAddFourNumbers = R.curryN(4, sumArgs);
|
|
2800
|
-
* const f = curriedAddFourNumbers(1, 2);
|
|
2801
|
-
* const g = f(3);
|
|
2802
|
-
* g(4); //=> 10
|
|
2807
|
+
* @public
|
|
2803
2808
|
*/
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
return (0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn);
|
|
2807
|
-
}
|
|
2808
|
-
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(length, (0,_internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__["default"])(length, [], fn));
|
|
2809
|
-
});
|
|
2810
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (curryN);
|
|
2809
|
+
class UnsupportedOperationError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
2810
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
|
|
2811
2811
|
|
|
2812
2812
|
/***/ }
|
|
2813
2813
|
|