@truto/langchain-toolset 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +160 -0
- package/dist/main.cjs +3616 -0
- package/dist/main.cjs.map +1 -0
- package/dist/module.js +3601 -0
- package/dist/module.js.map +1 -0
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +77 -0
package/dist/main.cjs
ADDED
|
@@ -0,0 +1,3616 @@
|
|
|
1
|
+
var $krXZW$langchaincoretools = require("@langchain/core/tools");
|
|
2
|
+
var $krXZW$trutotrutotssdk = require("@truto/truto-ts-sdk");
|
|
3
|
+
var $krXZW$pluralize = require("pluralize");
|
|
4
|
+
|
|
5
|
+
function $parcel$export(e, n, v, s) {
|
|
6
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
|
+
}
|
|
8
|
+
var $parcel$global =
|
|
9
|
+
typeof globalThis !== 'undefined'
|
|
10
|
+
? globalThis
|
|
11
|
+
: typeof self !== 'undefined'
|
|
12
|
+
? self
|
|
13
|
+
: typeof window !== 'undefined'
|
|
14
|
+
? window
|
|
15
|
+
: typeof global !== 'undefined'
|
|
16
|
+
? global
|
|
17
|
+
: {};
|
|
18
|
+
function $parcel$interopDefault(a) {
|
|
19
|
+
return a && a.__esModule ? a.default : a;
|
|
20
|
+
}
|
|
21
|
+
function $parcel$defineInteropFlag(a) {
|
|
22
|
+
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
23
|
+
}
|
|
24
|
+
var $parcel$modules = {};
|
|
25
|
+
var $parcel$inits = {};
|
|
26
|
+
|
|
27
|
+
var parcelRequire = $parcel$global["parcelRequire6410"];
|
|
28
|
+
if (parcelRequire == null) {
|
|
29
|
+
parcelRequire = function(id) {
|
|
30
|
+
if (id in $parcel$modules) {
|
|
31
|
+
return $parcel$modules[id].exports;
|
|
32
|
+
}
|
|
33
|
+
if (id in $parcel$inits) {
|
|
34
|
+
var init = $parcel$inits[id];
|
|
35
|
+
delete $parcel$inits[id];
|
|
36
|
+
var module = {id: id, exports: {}};
|
|
37
|
+
$parcel$modules[id] = module;
|
|
38
|
+
init.call(module.exports, module, module.exports);
|
|
39
|
+
return module.exports;
|
|
40
|
+
}
|
|
41
|
+
var err = new Error("Cannot find module '" + id + "'");
|
|
42
|
+
err.code = 'MODULE_NOT_FOUND';
|
|
43
|
+
throw err;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
parcelRequire.register = function register(id, init) {
|
|
47
|
+
$parcel$inits[id] = init;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
$parcel$global["parcelRequire6410"] = parcelRequire;
|
|
51
|
+
}
|
|
52
|
+
parcelRequire.register("7ghSH", function(module, exports) {
|
|
53
|
+
|
|
54
|
+
$parcel$export(module.exports, "default", () => $5497e5d8ca7e1008$export$2e2bcd8739ae039, (v) => $5497e5d8ca7e1008$export$2e2bcd8739ae039 = v);
|
|
55
|
+
|
|
56
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
57
|
+
|
|
58
|
+
var $kufcc = parcelRequire("kufcc");
|
|
59
|
+
/** Detect free variable `exports`. */ var freeExports = exports && !exports.nodeType && exports;
|
|
60
|
+
/** Detect free variable `module`. */ var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
61
|
+
/** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
62
|
+
/** Built-in value references. */ var Buffer = moduleExports ? (0, $cBFFg.default).Buffer : undefined;
|
|
63
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Checks if `value` is a buffer.
|
|
66
|
+
*
|
|
67
|
+
* @static
|
|
68
|
+
* @memberOf _
|
|
69
|
+
* @since 4.3.0
|
|
70
|
+
* @category Lang
|
|
71
|
+
* @param {*} value The value to check.
|
|
72
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
73
|
+
* @example
|
|
74
|
+
*
|
|
75
|
+
* _.isBuffer(new Buffer(2));
|
|
76
|
+
* // => true
|
|
77
|
+
*
|
|
78
|
+
* _.isBuffer(new Uint8Array(2));
|
|
79
|
+
* // => false
|
|
80
|
+
*/ var isBuffer = nativeIsBuffer || (0, $kufcc.default);
|
|
81
|
+
var $5497e5d8ca7e1008$export$2e2bcd8739ae039 = isBuffer;
|
|
82
|
+
|
|
83
|
+
});
|
|
84
|
+
parcelRequire.register("cBFFg", function(module, exports) {
|
|
85
|
+
|
|
86
|
+
$parcel$export(module.exports, "default", () => $92d942720e82ced7$export$2e2bcd8739ae039);
|
|
87
|
+
|
|
88
|
+
var $k516g = parcelRequire("k516g");
|
|
89
|
+
/** Detect free variable `self`. */ var $92d942720e82ced7$var$freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
90
|
+
/** Used as a reference to the global object. */ var $92d942720e82ced7$var$root = (0, $k516g.default) || $92d942720e82ced7$var$freeSelf || Function("return this")();
|
|
91
|
+
var $92d942720e82ced7$export$2e2bcd8739ae039 = $92d942720e82ced7$var$root;
|
|
92
|
+
|
|
93
|
+
});
|
|
94
|
+
parcelRequire.register("k516g", function(module, exports) {
|
|
95
|
+
|
|
96
|
+
$parcel$export(module.exports, "default", () => $e9e520bdc21d9e24$export$2e2bcd8739ae039);
|
|
97
|
+
/** Detect free variable `global` from Node.js. */ var $e9e520bdc21d9e24$var$freeGlobal = typeof $parcel$global == "object" && $parcel$global && $parcel$global.Object === Object && $parcel$global;
|
|
98
|
+
var $e9e520bdc21d9e24$export$2e2bcd8739ae039 = $e9e520bdc21d9e24$var$freeGlobal;
|
|
99
|
+
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
parcelRequire.register("kufcc", function(module, exports) {
|
|
104
|
+
|
|
105
|
+
$parcel$export(module.exports, "default", () => $eea2658d3afd5480$export$2e2bcd8739ae039);
|
|
106
|
+
/**
|
|
107
|
+
* This method returns `false`.
|
|
108
|
+
*
|
|
109
|
+
* @static
|
|
110
|
+
* @memberOf _
|
|
111
|
+
* @since 4.13.0
|
|
112
|
+
* @category Util
|
|
113
|
+
* @returns {boolean} Returns `false`.
|
|
114
|
+
* @example
|
|
115
|
+
*
|
|
116
|
+
* _.times(2, _.stubFalse);
|
|
117
|
+
* // => [false, false]
|
|
118
|
+
*/ function $eea2658d3afd5480$var$stubFalse() {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
var $eea2658d3afd5480$export$2e2bcd8739ae039 = $eea2658d3afd5480$var$stubFalse;
|
|
122
|
+
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
parcelRequire.register("gFOyM", function(module, exports) {
|
|
127
|
+
|
|
128
|
+
$parcel$export(module.exports, "default", () => $c237b1d9afada438$export$2e2bcd8739ae039, (v) => $c237b1d9afada438$export$2e2bcd8739ae039 = v);
|
|
129
|
+
|
|
130
|
+
var $k516g = parcelRequire("k516g");
|
|
131
|
+
/** Detect free variable `exports`. */ var freeExports = exports && !exports.nodeType && exports;
|
|
132
|
+
/** Detect free variable `module`. */ var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
133
|
+
/** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
134
|
+
/** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && (0, $k516g.default).process;
|
|
135
|
+
/** Used to access faster Node.js helpers. */ var nodeUtil = function() {
|
|
136
|
+
try {
|
|
137
|
+
// Use `util.types` for Node.js 10+.
|
|
138
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
139
|
+
if (types) return types;
|
|
140
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
|
141
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
142
|
+
} catch (e) {}
|
|
143
|
+
}();
|
|
144
|
+
var $c237b1d9afada438$export$2e2bcd8739ae039 = nodeUtil;
|
|
145
|
+
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
$parcel$defineInteropFlag(module.exports);
|
|
150
|
+
|
|
151
|
+
$parcel$export(module.exports, "isCustomMethod", () => $4de6ba44f0531b39$export$2bbf5922e5b7acba);
|
|
152
|
+
$parcel$export(module.exports, "isIndividualMethod", () => $4de6ba44f0531b39$export$7da726409ab705b2);
|
|
153
|
+
$parcel$export(module.exports, "getRequiredProperties", () => $4de6ba44f0531b39$export$840dc5320eefa4b4);
|
|
154
|
+
$parcel$export(module.exports, "getPropertiesBySchema", () => $4de6ba44f0531b39$export$34efffa2116fc158);
|
|
155
|
+
$parcel$export(module.exports, "getToolName", () => $4de6ba44f0531b39$export$fe20e531d43cf24a);
|
|
156
|
+
$parcel$export(module.exports, "getTools", () => $4de6ba44f0531b39$export$ffc9f93b394316dd);
|
|
157
|
+
$parcel$export(module.exports, "default", () => $4de6ba44f0531b39$export$2e2bcd8739ae039);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Creates an array with all falsey values removed. The values `false`, `null`,
|
|
162
|
+
* `0`, `""`, `undefined`, and `NaN` are falsey.
|
|
163
|
+
*
|
|
164
|
+
* @static
|
|
165
|
+
* @memberOf _
|
|
166
|
+
* @since 0.1.0
|
|
167
|
+
* @category Array
|
|
168
|
+
* @param {Array} array The array to compact.
|
|
169
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
170
|
+
* @example
|
|
171
|
+
*
|
|
172
|
+
* _.compact([0, 1, false, 2, '', 3]);
|
|
173
|
+
* // => [1, 2, 3]
|
|
174
|
+
*/ function $0f6d19ecf074c2ba$var$compact(array) {
|
|
175
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
176
|
+
while(++index < length){
|
|
177
|
+
var value = array[index];
|
|
178
|
+
if (value) result[resIndex++] = value;
|
|
179
|
+
}
|
|
180
|
+
return result;
|
|
181
|
+
}
|
|
182
|
+
var $0f6d19ecf074c2ba$export$2e2bcd8739ae039 = $0f6d19ecf074c2ba$var$compact;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
186
|
+
* iteratee shorthands.
|
|
187
|
+
*
|
|
188
|
+
* @private
|
|
189
|
+
* @param {Array} [array] The array to iterate over.
|
|
190
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
191
|
+
* @returns {Array} Returns `array`.
|
|
192
|
+
*/ function $498928d730fb1482$var$arrayEach(array, iteratee) {
|
|
193
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
194
|
+
while(++index < length){
|
|
195
|
+
if (iteratee(array[index], index, array) === false) break;
|
|
196
|
+
}
|
|
197
|
+
return array;
|
|
198
|
+
}
|
|
199
|
+
var $498928d730fb1482$export$2e2bcd8739ae039 = $498928d730fb1482$var$arrayEach;
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
204
|
+
*
|
|
205
|
+
* @private
|
|
206
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
207
|
+
* @returns {Function} Returns the new base function.
|
|
208
|
+
*/ function $fbe1001c72cf3efa$var$createBaseFor(fromRight) {
|
|
209
|
+
return function(object, iteratee, keysFunc) {
|
|
210
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
211
|
+
while(length--){
|
|
212
|
+
var key = props[fromRight ? length : ++index];
|
|
213
|
+
if (iteratee(iterable[key], key, iterable) === false) break;
|
|
214
|
+
}
|
|
215
|
+
return object;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
var $fbe1001c72cf3efa$export$2e2bcd8739ae039 = $fbe1001c72cf3efa$var$createBaseFor;
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
|
223
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
224
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
225
|
+
*
|
|
226
|
+
* @private
|
|
227
|
+
* @param {Object} object The object to iterate over.
|
|
228
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
229
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
230
|
+
* @returns {Object} Returns `object`.
|
|
231
|
+
*/ var $e731a5d86dd49f38$var$baseFor = (0, $fbe1001c72cf3efa$export$2e2bcd8739ae039)();
|
|
232
|
+
var $e731a5d86dd49f38$export$2e2bcd8739ae039 = $e731a5d86dd49f38$var$baseFor;
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
237
|
+
* or max array length checks.
|
|
238
|
+
*
|
|
239
|
+
* @private
|
|
240
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
241
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
242
|
+
* @returns {Array} Returns the array of results.
|
|
243
|
+
*/ function $6e0c707c343640ba$var$baseTimes(n, iteratee) {
|
|
244
|
+
var index = -1, result = Array(n);
|
|
245
|
+
while(++index < n)result[index] = iteratee(index);
|
|
246
|
+
return result;
|
|
247
|
+
}
|
|
248
|
+
var $6e0c707c343640ba$export$2e2bcd8739ae039 = $6e0c707c343640ba$var$baseTimes;
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
253
|
+
/** Built-in value references. */ var $31256154b144d6ac$var$Symbol = (0, $cBFFg.default).Symbol;
|
|
254
|
+
var $31256154b144d6ac$export$2e2bcd8739ae039 = $31256154b144d6ac$var$Symbol;
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/** Used for built-in method references. */ var $a67343640e79610b$var$objectProto = Object.prototype;
|
|
259
|
+
/** Used to check objects for own properties. */ var $a67343640e79610b$var$hasOwnProperty = $a67343640e79610b$var$objectProto.hasOwnProperty;
|
|
260
|
+
/**
|
|
261
|
+
* Used to resolve the
|
|
262
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
263
|
+
* of values.
|
|
264
|
+
*/ var $a67343640e79610b$var$nativeObjectToString = $a67343640e79610b$var$objectProto.toString;
|
|
265
|
+
/** Built-in value references. */ var $a67343640e79610b$var$symToStringTag = (0, $31256154b144d6ac$export$2e2bcd8739ae039) ? (0, $31256154b144d6ac$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
266
|
+
/**
|
|
267
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
268
|
+
*
|
|
269
|
+
* @private
|
|
270
|
+
* @param {*} value The value to query.
|
|
271
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
272
|
+
*/ function $a67343640e79610b$var$getRawTag(value) {
|
|
273
|
+
var isOwn = $a67343640e79610b$var$hasOwnProperty.call(value, $a67343640e79610b$var$symToStringTag), tag = value[$a67343640e79610b$var$symToStringTag];
|
|
274
|
+
try {
|
|
275
|
+
value[$a67343640e79610b$var$symToStringTag] = undefined;
|
|
276
|
+
var unmasked = true;
|
|
277
|
+
} catch (e) {}
|
|
278
|
+
var result = $a67343640e79610b$var$nativeObjectToString.call(value);
|
|
279
|
+
if (unmasked) {
|
|
280
|
+
if (isOwn) value[$a67343640e79610b$var$symToStringTag] = tag;
|
|
281
|
+
else delete value[$a67343640e79610b$var$symToStringTag];
|
|
282
|
+
}
|
|
283
|
+
return result;
|
|
284
|
+
}
|
|
285
|
+
var $a67343640e79610b$export$2e2bcd8739ae039 = $a67343640e79610b$var$getRawTag;
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
/** Used for built-in method references. */ var $5ab7c4879aa70f60$var$objectProto = Object.prototype;
|
|
289
|
+
/**
|
|
290
|
+
* Used to resolve the
|
|
291
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
292
|
+
* of values.
|
|
293
|
+
*/ var $5ab7c4879aa70f60$var$nativeObjectToString = $5ab7c4879aa70f60$var$objectProto.toString;
|
|
294
|
+
/**
|
|
295
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
296
|
+
*
|
|
297
|
+
* @private
|
|
298
|
+
* @param {*} value The value to convert.
|
|
299
|
+
* @returns {string} Returns the converted string.
|
|
300
|
+
*/ function $5ab7c4879aa70f60$var$objectToString(value) {
|
|
301
|
+
return $5ab7c4879aa70f60$var$nativeObjectToString.call(value);
|
|
302
|
+
}
|
|
303
|
+
var $5ab7c4879aa70f60$export$2e2bcd8739ae039 = $5ab7c4879aa70f60$var$objectToString;
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/** `Object#toString` result references. */ var $1907102e5dd48704$var$nullTag = "[object Null]", $1907102e5dd48704$var$undefinedTag = "[object Undefined]";
|
|
307
|
+
/** Built-in value references. */ var $1907102e5dd48704$var$symToStringTag = (0, $31256154b144d6ac$export$2e2bcd8739ae039) ? (0, $31256154b144d6ac$export$2e2bcd8739ae039).toStringTag : undefined;
|
|
308
|
+
/**
|
|
309
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
310
|
+
*
|
|
311
|
+
* @private
|
|
312
|
+
* @param {*} value The value to query.
|
|
313
|
+
* @returns {string} Returns the `toStringTag`.
|
|
314
|
+
*/ function $1907102e5dd48704$var$baseGetTag(value) {
|
|
315
|
+
if (value == null) return value === undefined ? $1907102e5dd48704$var$undefinedTag : $1907102e5dd48704$var$nullTag;
|
|
316
|
+
return $1907102e5dd48704$var$symToStringTag && $1907102e5dd48704$var$symToStringTag in Object(value) ? (0, $a67343640e79610b$export$2e2bcd8739ae039)(value) : (0, $5ab7c4879aa70f60$export$2e2bcd8739ae039)(value);
|
|
317
|
+
}
|
|
318
|
+
var $1907102e5dd48704$export$2e2bcd8739ae039 = $1907102e5dd48704$var$baseGetTag;
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
323
|
+
* and has a `typeof` result of "object".
|
|
324
|
+
*
|
|
325
|
+
* @static
|
|
326
|
+
* @memberOf _
|
|
327
|
+
* @since 4.0.0
|
|
328
|
+
* @category Lang
|
|
329
|
+
* @param {*} value The value to check.
|
|
330
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
331
|
+
* @example
|
|
332
|
+
*
|
|
333
|
+
* _.isObjectLike({});
|
|
334
|
+
* // => true
|
|
335
|
+
*
|
|
336
|
+
* _.isObjectLike([1, 2, 3]);
|
|
337
|
+
* // => true
|
|
338
|
+
*
|
|
339
|
+
* _.isObjectLike(_.noop);
|
|
340
|
+
* // => false
|
|
341
|
+
*
|
|
342
|
+
* _.isObjectLike(null);
|
|
343
|
+
* // => false
|
|
344
|
+
*/ function $30bfdc87473d5a2a$var$isObjectLike(value) {
|
|
345
|
+
return value != null && typeof value == "object";
|
|
346
|
+
}
|
|
347
|
+
var $30bfdc87473d5a2a$export$2e2bcd8739ae039 = $30bfdc87473d5a2a$var$isObjectLike;
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
/** `Object#toString` result references. */ var $1f2f80a5406764f4$var$argsTag = "[object Arguments]";
|
|
351
|
+
/**
|
|
352
|
+
* The base implementation of `_.isArguments`.
|
|
353
|
+
*
|
|
354
|
+
* @private
|
|
355
|
+
* @param {*} value The value to check.
|
|
356
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
357
|
+
*/ function $1f2f80a5406764f4$var$baseIsArguments(value) {
|
|
358
|
+
return (0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(value) && (0, $1907102e5dd48704$export$2e2bcd8739ae039)(value) == $1f2f80a5406764f4$var$argsTag;
|
|
359
|
+
}
|
|
360
|
+
var $1f2f80a5406764f4$export$2e2bcd8739ae039 = $1f2f80a5406764f4$var$baseIsArguments;
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
/** Used for built-in method references. */ var $e908654d23162200$var$objectProto = Object.prototype;
|
|
365
|
+
/** Used to check objects for own properties. */ var $e908654d23162200$var$hasOwnProperty = $e908654d23162200$var$objectProto.hasOwnProperty;
|
|
366
|
+
/** Built-in value references. */ var $e908654d23162200$var$propertyIsEnumerable = $e908654d23162200$var$objectProto.propertyIsEnumerable;
|
|
367
|
+
/**
|
|
368
|
+
* Checks if `value` is likely an `arguments` object.
|
|
369
|
+
*
|
|
370
|
+
* @static
|
|
371
|
+
* @memberOf _
|
|
372
|
+
* @since 0.1.0
|
|
373
|
+
* @category Lang
|
|
374
|
+
* @param {*} value The value to check.
|
|
375
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
376
|
+
* else `false`.
|
|
377
|
+
* @example
|
|
378
|
+
*
|
|
379
|
+
* _.isArguments(function() { return arguments; }());
|
|
380
|
+
* // => true
|
|
381
|
+
*
|
|
382
|
+
* _.isArguments([1, 2, 3]);
|
|
383
|
+
* // => false
|
|
384
|
+
*/ var $e908654d23162200$var$isArguments = (0, $1f2f80a5406764f4$export$2e2bcd8739ae039)(function() {
|
|
385
|
+
return arguments;
|
|
386
|
+
}()) ? (0, $1f2f80a5406764f4$export$2e2bcd8739ae039) : function(value) {
|
|
387
|
+
return (0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(value) && $e908654d23162200$var$hasOwnProperty.call(value, "callee") && !$e908654d23162200$var$propertyIsEnumerable.call(value, "callee");
|
|
388
|
+
};
|
|
389
|
+
var $e908654d23162200$export$2e2bcd8739ae039 = $e908654d23162200$var$isArguments;
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Checks if `value` is classified as an `Array` object.
|
|
394
|
+
*
|
|
395
|
+
* @static
|
|
396
|
+
* @memberOf _
|
|
397
|
+
* @since 0.1.0
|
|
398
|
+
* @category Lang
|
|
399
|
+
* @param {*} value The value to check.
|
|
400
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
401
|
+
* @example
|
|
402
|
+
*
|
|
403
|
+
* _.isArray([1, 2, 3]);
|
|
404
|
+
* // => true
|
|
405
|
+
*
|
|
406
|
+
* _.isArray(document.body.children);
|
|
407
|
+
* // => false
|
|
408
|
+
*
|
|
409
|
+
* _.isArray('abc');
|
|
410
|
+
* // => false
|
|
411
|
+
*
|
|
412
|
+
* _.isArray(_.noop);
|
|
413
|
+
* // => false
|
|
414
|
+
*/ var $1ddb8e56ff9d94e3$var$isArray = Array.isArray;
|
|
415
|
+
var $1ddb8e56ff9d94e3$export$2e2bcd8739ae039 = $1ddb8e56ff9d94e3$var$isArray;
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
var $7ghSH = parcelRequire("7ghSH");
|
|
420
|
+
/** Used as references for various `Number` constants. */ var $6921f7c908d98bc4$var$MAX_SAFE_INTEGER = 9007199254740991;
|
|
421
|
+
/** Used to detect unsigned integer values. */ var $6921f7c908d98bc4$var$reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
422
|
+
/**
|
|
423
|
+
* Checks if `value` is a valid array-like index.
|
|
424
|
+
*
|
|
425
|
+
* @private
|
|
426
|
+
* @param {*} value The value to check.
|
|
427
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
428
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
429
|
+
*/ function $6921f7c908d98bc4$var$isIndex(value, length) {
|
|
430
|
+
var type = typeof value;
|
|
431
|
+
length = length == null ? $6921f7c908d98bc4$var$MAX_SAFE_INTEGER : length;
|
|
432
|
+
return !!length && (type == "number" || type != "symbol" && $6921f7c908d98bc4$var$reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
433
|
+
}
|
|
434
|
+
var $6921f7c908d98bc4$export$2e2bcd8739ae039 = $6921f7c908d98bc4$var$isIndex;
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
/** Used as references for various `Number` constants. */ var $e3467f90d76d977f$var$MAX_SAFE_INTEGER = 9007199254740991;
|
|
439
|
+
/**
|
|
440
|
+
* Checks if `value` is a valid array-like length.
|
|
441
|
+
*
|
|
442
|
+
* **Note:** This method is loosely based on
|
|
443
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
444
|
+
*
|
|
445
|
+
* @static
|
|
446
|
+
* @memberOf _
|
|
447
|
+
* @since 4.0.0
|
|
448
|
+
* @category Lang
|
|
449
|
+
* @param {*} value The value to check.
|
|
450
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
451
|
+
* @example
|
|
452
|
+
*
|
|
453
|
+
* _.isLength(3);
|
|
454
|
+
* // => true
|
|
455
|
+
*
|
|
456
|
+
* _.isLength(Number.MIN_VALUE);
|
|
457
|
+
* // => false
|
|
458
|
+
*
|
|
459
|
+
* _.isLength(Infinity);
|
|
460
|
+
* // => false
|
|
461
|
+
*
|
|
462
|
+
* _.isLength('3');
|
|
463
|
+
* // => false
|
|
464
|
+
*/ function $e3467f90d76d977f$var$isLength(value) {
|
|
465
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= $e3467f90d76d977f$var$MAX_SAFE_INTEGER;
|
|
466
|
+
}
|
|
467
|
+
var $e3467f90d76d977f$export$2e2bcd8739ae039 = $e3467f90d76d977f$var$isLength;
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
/** `Object#toString` result references. */ var $8dc20a7b535d0047$var$argsTag = "[object Arguments]", $8dc20a7b535d0047$var$arrayTag = "[object Array]", $8dc20a7b535d0047$var$boolTag = "[object Boolean]", $8dc20a7b535d0047$var$dateTag = "[object Date]", $8dc20a7b535d0047$var$errorTag = "[object Error]", $8dc20a7b535d0047$var$funcTag = "[object Function]", $8dc20a7b535d0047$var$mapTag = "[object Map]", $8dc20a7b535d0047$var$numberTag = "[object Number]", $8dc20a7b535d0047$var$objectTag = "[object Object]", $8dc20a7b535d0047$var$regexpTag = "[object RegExp]", $8dc20a7b535d0047$var$setTag = "[object Set]", $8dc20a7b535d0047$var$stringTag = "[object String]", $8dc20a7b535d0047$var$weakMapTag = "[object WeakMap]";
|
|
472
|
+
var $8dc20a7b535d0047$var$arrayBufferTag = "[object ArrayBuffer]", $8dc20a7b535d0047$var$dataViewTag = "[object DataView]", $8dc20a7b535d0047$var$float32Tag = "[object Float32Array]", $8dc20a7b535d0047$var$float64Tag = "[object Float64Array]", $8dc20a7b535d0047$var$int8Tag = "[object Int8Array]", $8dc20a7b535d0047$var$int16Tag = "[object Int16Array]", $8dc20a7b535d0047$var$int32Tag = "[object Int32Array]", $8dc20a7b535d0047$var$uint8Tag = "[object Uint8Array]", $8dc20a7b535d0047$var$uint8ClampedTag = "[object Uint8ClampedArray]", $8dc20a7b535d0047$var$uint16Tag = "[object Uint16Array]", $8dc20a7b535d0047$var$uint32Tag = "[object Uint32Array]";
|
|
473
|
+
/** Used to identify `toStringTag` values of typed arrays. */ var $8dc20a7b535d0047$var$typedArrayTags = {};
|
|
474
|
+
$8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$float32Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$float64Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$int8Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$int16Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$int32Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$uint8Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$uint8ClampedTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$uint16Tag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$uint32Tag] = true;
|
|
475
|
+
$8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$argsTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$arrayTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$arrayBufferTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$boolTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$dataViewTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$dateTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$errorTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$funcTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$mapTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$numberTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$objectTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$regexpTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$setTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$stringTag] = $8dc20a7b535d0047$var$typedArrayTags[$8dc20a7b535d0047$var$weakMapTag] = false;
|
|
476
|
+
/**
|
|
477
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
478
|
+
*
|
|
479
|
+
* @private
|
|
480
|
+
* @param {*} value The value to check.
|
|
481
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
482
|
+
*/ function $8dc20a7b535d0047$var$baseIsTypedArray(value) {
|
|
483
|
+
return (0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(value) && (0, $e3467f90d76d977f$export$2e2bcd8739ae039)(value.length) && !!$8dc20a7b535d0047$var$typedArrayTags[(0, $1907102e5dd48704$export$2e2bcd8739ae039)(value)];
|
|
484
|
+
}
|
|
485
|
+
var $8dc20a7b535d0047$export$2e2bcd8739ae039 = $8dc20a7b535d0047$var$baseIsTypedArray;
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
490
|
+
*
|
|
491
|
+
* @private
|
|
492
|
+
* @param {Function} func The function to cap arguments for.
|
|
493
|
+
* @returns {Function} Returns the new capped function.
|
|
494
|
+
*/ function $08a8073349868343$var$baseUnary(func) {
|
|
495
|
+
return function(value) {
|
|
496
|
+
return func(value);
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
var $08a8073349868343$export$2e2bcd8739ae039 = $08a8073349868343$var$baseUnary;
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
var $gFOyM = parcelRequire("gFOyM");
|
|
504
|
+
/* Node.js helper references. */ var $8fa7f154f72ec40e$var$nodeIsTypedArray = (0, $gFOyM.default) && (0, $gFOyM.default).isTypedArray;
|
|
505
|
+
/**
|
|
506
|
+
* Checks if `value` is classified as a typed array.
|
|
507
|
+
*
|
|
508
|
+
* @static
|
|
509
|
+
* @memberOf _
|
|
510
|
+
* @since 3.0.0
|
|
511
|
+
* @category Lang
|
|
512
|
+
* @param {*} value The value to check.
|
|
513
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
514
|
+
* @example
|
|
515
|
+
*
|
|
516
|
+
* _.isTypedArray(new Uint8Array);
|
|
517
|
+
* // => true
|
|
518
|
+
*
|
|
519
|
+
* _.isTypedArray([]);
|
|
520
|
+
* // => false
|
|
521
|
+
*/ var $8fa7f154f72ec40e$var$isTypedArray = $8fa7f154f72ec40e$var$nodeIsTypedArray ? (0, $08a8073349868343$export$2e2bcd8739ae039)($8fa7f154f72ec40e$var$nodeIsTypedArray) : (0, $8dc20a7b535d0047$export$2e2bcd8739ae039);
|
|
522
|
+
var $8fa7f154f72ec40e$export$2e2bcd8739ae039 = $8fa7f154f72ec40e$var$isTypedArray;
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/** Used for built-in method references. */ var $ad0343616e3868d3$var$objectProto = Object.prototype;
|
|
526
|
+
/** Used to check objects for own properties. */ var $ad0343616e3868d3$var$hasOwnProperty = $ad0343616e3868d3$var$objectProto.hasOwnProperty;
|
|
527
|
+
/**
|
|
528
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
529
|
+
*
|
|
530
|
+
* @private
|
|
531
|
+
* @param {*} value The value to query.
|
|
532
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
533
|
+
* @returns {Array} Returns the array of property names.
|
|
534
|
+
*/ function $ad0343616e3868d3$var$arrayLikeKeys(value, inherited) {
|
|
535
|
+
var isArr = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value), isArg = !isArr && (0, $e908654d23162200$export$2e2bcd8739ae039)(value), isBuff = !isArr && !isArg && (0, $7ghSH.default)(value), isType = !isArr && !isArg && !isBuff && (0, $8fa7f154f72ec40e$export$2e2bcd8739ae039)(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? (0, $6e0c707c343640ba$export$2e2bcd8739ae039)(value.length, String) : [], length = result.length;
|
|
536
|
+
for(var key in value)if ((inherited || $ad0343616e3868d3$var$hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
537
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
538
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
539
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
540
|
+
(0, $6921f7c908d98bc4$export$2e2bcd8739ae039)(key, length)))) result.push(key);
|
|
541
|
+
return result;
|
|
542
|
+
}
|
|
543
|
+
var $ad0343616e3868d3$export$2e2bcd8739ae039 = $ad0343616e3868d3$var$arrayLikeKeys;
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
/** Used for built-in method references. */ var $bc4bbfdcdf5a9d45$var$objectProto = Object.prototype;
|
|
547
|
+
/**
|
|
548
|
+
* Checks if `value` is likely a prototype object.
|
|
549
|
+
*
|
|
550
|
+
* @private
|
|
551
|
+
* @param {*} value The value to check.
|
|
552
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
553
|
+
*/ function $bc4bbfdcdf5a9d45$var$isPrototype(value) {
|
|
554
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || $bc4bbfdcdf5a9d45$var$objectProto;
|
|
555
|
+
return value === proto;
|
|
556
|
+
}
|
|
557
|
+
var $bc4bbfdcdf5a9d45$export$2e2bcd8739ae039 = $bc4bbfdcdf5a9d45$var$isPrototype;
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
562
|
+
*
|
|
563
|
+
* @private
|
|
564
|
+
* @param {Function} func The function to wrap.
|
|
565
|
+
* @param {Function} transform The argument transform.
|
|
566
|
+
* @returns {Function} Returns the new function.
|
|
567
|
+
*/ function $a77c321848df4a6f$var$overArg(func, transform) {
|
|
568
|
+
return function(arg) {
|
|
569
|
+
return func(transform(arg));
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
var $a77c321848df4a6f$export$2e2bcd8739ae039 = $a77c321848df4a6f$var$overArg;
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var $552cad7ad3e4cba4$var$nativeKeys = (0, $a77c321848df4a6f$export$2e2bcd8739ae039)(Object.keys, Object);
|
|
576
|
+
var $552cad7ad3e4cba4$export$2e2bcd8739ae039 = $552cad7ad3e4cba4$var$nativeKeys;
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
/** Used for built-in method references. */ var $657d59d4cbe02a49$var$objectProto = Object.prototype;
|
|
580
|
+
/** Used to check objects for own properties. */ var $657d59d4cbe02a49$var$hasOwnProperty = $657d59d4cbe02a49$var$objectProto.hasOwnProperty;
|
|
581
|
+
/**
|
|
582
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
583
|
+
*
|
|
584
|
+
* @private
|
|
585
|
+
* @param {Object} object The object to query.
|
|
586
|
+
* @returns {Array} Returns the array of property names.
|
|
587
|
+
*/ function $657d59d4cbe02a49$var$baseKeys(object) {
|
|
588
|
+
if (!(0, $bc4bbfdcdf5a9d45$export$2e2bcd8739ae039)(object)) return (0, $552cad7ad3e4cba4$export$2e2bcd8739ae039)(object);
|
|
589
|
+
var result = [];
|
|
590
|
+
for(var key in Object(object))if ($657d59d4cbe02a49$var$hasOwnProperty.call(object, key) && key != "constructor") result.push(key);
|
|
591
|
+
return result;
|
|
592
|
+
}
|
|
593
|
+
var $657d59d4cbe02a49$export$2e2bcd8739ae039 = $657d59d4cbe02a49$var$baseKeys;
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Checks if `value` is the
|
|
599
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
600
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
601
|
+
*
|
|
602
|
+
* @static
|
|
603
|
+
* @memberOf _
|
|
604
|
+
* @since 0.1.0
|
|
605
|
+
* @category Lang
|
|
606
|
+
* @param {*} value The value to check.
|
|
607
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
608
|
+
* @example
|
|
609
|
+
*
|
|
610
|
+
* _.isObject({});
|
|
611
|
+
* // => true
|
|
612
|
+
*
|
|
613
|
+
* _.isObject([1, 2, 3]);
|
|
614
|
+
* // => true
|
|
615
|
+
*
|
|
616
|
+
* _.isObject(_.noop);
|
|
617
|
+
* // => true
|
|
618
|
+
*
|
|
619
|
+
* _.isObject(null);
|
|
620
|
+
* // => false
|
|
621
|
+
*/ function $f327b722d951deae$var$isObject(value) {
|
|
622
|
+
var type = typeof value;
|
|
623
|
+
return value != null && (type == "object" || type == "function");
|
|
624
|
+
}
|
|
625
|
+
var $f327b722d951deae$export$2e2bcd8739ae039 = $f327b722d951deae$var$isObject;
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
/** `Object#toString` result references. */ var $ee4a222f50608bb5$var$asyncTag = "[object AsyncFunction]", $ee4a222f50608bb5$var$funcTag = "[object Function]", $ee4a222f50608bb5$var$genTag = "[object GeneratorFunction]", $ee4a222f50608bb5$var$proxyTag = "[object Proxy]";
|
|
629
|
+
/**
|
|
630
|
+
* Checks if `value` is classified as a `Function` object.
|
|
631
|
+
*
|
|
632
|
+
* @static
|
|
633
|
+
* @memberOf _
|
|
634
|
+
* @since 0.1.0
|
|
635
|
+
* @category Lang
|
|
636
|
+
* @param {*} value The value to check.
|
|
637
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
638
|
+
* @example
|
|
639
|
+
*
|
|
640
|
+
* _.isFunction(_);
|
|
641
|
+
* // => true
|
|
642
|
+
*
|
|
643
|
+
* _.isFunction(/abc/);
|
|
644
|
+
* // => false
|
|
645
|
+
*/ function $ee4a222f50608bb5$var$isFunction(value) {
|
|
646
|
+
if (!(0, $f327b722d951deae$export$2e2bcd8739ae039)(value)) return false;
|
|
647
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
648
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
649
|
+
var tag = (0, $1907102e5dd48704$export$2e2bcd8739ae039)(value);
|
|
650
|
+
return tag == $ee4a222f50608bb5$var$funcTag || tag == $ee4a222f50608bb5$var$genTag || tag == $ee4a222f50608bb5$var$asyncTag || tag == $ee4a222f50608bb5$var$proxyTag;
|
|
651
|
+
}
|
|
652
|
+
var $ee4a222f50608bb5$export$2e2bcd8739ae039 = $ee4a222f50608bb5$var$isFunction;
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
658
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
659
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
660
|
+
*
|
|
661
|
+
* @static
|
|
662
|
+
* @memberOf _
|
|
663
|
+
* @since 4.0.0
|
|
664
|
+
* @category Lang
|
|
665
|
+
* @param {*} value The value to check.
|
|
666
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
667
|
+
* @example
|
|
668
|
+
*
|
|
669
|
+
* _.isArrayLike([1, 2, 3]);
|
|
670
|
+
* // => true
|
|
671
|
+
*
|
|
672
|
+
* _.isArrayLike(document.body.children);
|
|
673
|
+
* // => true
|
|
674
|
+
*
|
|
675
|
+
* _.isArrayLike('abc');
|
|
676
|
+
* // => true
|
|
677
|
+
*
|
|
678
|
+
* _.isArrayLike(_.noop);
|
|
679
|
+
* // => false
|
|
680
|
+
*/ function $f09093f447d43a82$var$isArrayLike(value) {
|
|
681
|
+
return value != null && (0, $e3467f90d76d977f$export$2e2bcd8739ae039)(value.length) && !(0, $ee4a222f50608bb5$export$2e2bcd8739ae039)(value);
|
|
682
|
+
}
|
|
683
|
+
var $f09093f447d43a82$export$2e2bcd8739ae039 = $f09093f447d43a82$var$isArrayLike;
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
688
|
+
*
|
|
689
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
690
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
691
|
+
* for more details.
|
|
692
|
+
*
|
|
693
|
+
* @static
|
|
694
|
+
* @since 0.1.0
|
|
695
|
+
* @memberOf _
|
|
696
|
+
* @category Object
|
|
697
|
+
* @param {Object} object The object to query.
|
|
698
|
+
* @returns {Array} Returns the array of property names.
|
|
699
|
+
* @example
|
|
700
|
+
*
|
|
701
|
+
* function Foo() {
|
|
702
|
+
* this.a = 1;
|
|
703
|
+
* this.b = 2;
|
|
704
|
+
* }
|
|
705
|
+
*
|
|
706
|
+
* Foo.prototype.c = 3;
|
|
707
|
+
*
|
|
708
|
+
* _.keys(new Foo);
|
|
709
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
710
|
+
*
|
|
711
|
+
* _.keys('hi');
|
|
712
|
+
* // => ['0', '1']
|
|
713
|
+
*/ function $b0738ab9823f0933$var$keys(object) {
|
|
714
|
+
return (0, $f09093f447d43a82$export$2e2bcd8739ae039)(object) ? (0, $ad0343616e3868d3$export$2e2bcd8739ae039)(object) : (0, $657d59d4cbe02a49$export$2e2bcd8739ae039)(object);
|
|
715
|
+
}
|
|
716
|
+
var $b0738ab9823f0933$export$2e2bcd8739ae039 = $b0738ab9823f0933$var$keys;
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
721
|
+
*
|
|
722
|
+
* @private
|
|
723
|
+
* @param {Object} object The object to iterate over.
|
|
724
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
725
|
+
* @returns {Object} Returns `object`.
|
|
726
|
+
*/ function $0d5278392368079b$var$baseForOwn(object, iteratee) {
|
|
727
|
+
return object && (0, $e731a5d86dd49f38$export$2e2bcd8739ae039)(object, iteratee, (0, $b0738ab9823f0933$export$2e2bcd8739ae039));
|
|
728
|
+
}
|
|
729
|
+
var $0d5278392368079b$export$2e2bcd8739ae039 = $0d5278392368079b$var$baseForOwn;
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Creates a `baseEach` or `baseEachRight` function.
|
|
735
|
+
*
|
|
736
|
+
* @private
|
|
737
|
+
* @param {Function} eachFunc The function to iterate over a collection.
|
|
738
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
739
|
+
* @returns {Function} Returns the new base function.
|
|
740
|
+
*/ function $fee34d7d5bf4628c$var$createBaseEach(eachFunc, fromRight) {
|
|
741
|
+
return function(collection, iteratee) {
|
|
742
|
+
if (collection == null) return collection;
|
|
743
|
+
if (!(0, $f09093f447d43a82$export$2e2bcd8739ae039)(collection)) return eachFunc(collection, iteratee);
|
|
744
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
745
|
+
while(fromRight ? index-- : ++index < length){
|
|
746
|
+
if (iteratee(iterable[index], index, iterable) === false) break;
|
|
747
|
+
}
|
|
748
|
+
return collection;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
var $fee34d7d5bf4628c$export$2e2bcd8739ae039 = $fee34d7d5bf4628c$var$createBaseEach;
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
756
|
+
*
|
|
757
|
+
* @private
|
|
758
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
759
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
760
|
+
* @returns {Array|Object} Returns `collection`.
|
|
761
|
+
*/ var $3a95e911dedbc5e1$var$baseEach = (0, $fee34d7d5bf4628c$export$2e2bcd8739ae039)((0, $0d5278392368079b$export$2e2bcd8739ae039));
|
|
762
|
+
var $3a95e911dedbc5e1$export$2e2bcd8739ae039 = $3a95e911dedbc5e1$var$baseEach;
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* This method returns the first argument it receives.
|
|
767
|
+
*
|
|
768
|
+
* @static
|
|
769
|
+
* @since 0.1.0
|
|
770
|
+
* @memberOf _
|
|
771
|
+
* @category Util
|
|
772
|
+
* @param {*} value Any value.
|
|
773
|
+
* @returns {*} Returns `value`.
|
|
774
|
+
* @example
|
|
775
|
+
*
|
|
776
|
+
* var object = { 'a': 1 };
|
|
777
|
+
*
|
|
778
|
+
* console.log(_.identity(object) === object);
|
|
779
|
+
* // => true
|
|
780
|
+
*/ function $3de470775021b21e$var$identity(value) {
|
|
781
|
+
return value;
|
|
782
|
+
}
|
|
783
|
+
var $3de470775021b21e$export$2e2bcd8739ae039 = $3de470775021b21e$var$identity;
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Casts `value` to `identity` if it's not a function.
|
|
788
|
+
*
|
|
789
|
+
* @private
|
|
790
|
+
* @param {*} value The value to inspect.
|
|
791
|
+
* @returns {Function} Returns cast function.
|
|
792
|
+
*/ function $62c11455357f3e8d$var$castFunction(value) {
|
|
793
|
+
return typeof value == "function" ? value : (0, $3de470775021b21e$export$2e2bcd8739ae039);
|
|
794
|
+
}
|
|
795
|
+
var $62c11455357f3e8d$export$2e2bcd8739ae039 = $62c11455357f3e8d$var$castFunction;
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Iterates over elements of `collection` and invokes `iteratee` for each element.
|
|
801
|
+
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
|
802
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
803
|
+
*
|
|
804
|
+
* **Note:** As with other "Collections" methods, objects with a "length"
|
|
805
|
+
* property are iterated like arrays. To avoid this behavior use `_.forIn`
|
|
806
|
+
* or `_.forOwn` for object iteration.
|
|
807
|
+
*
|
|
808
|
+
* @static
|
|
809
|
+
* @memberOf _
|
|
810
|
+
* @since 0.1.0
|
|
811
|
+
* @alias each
|
|
812
|
+
* @category Collection
|
|
813
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
814
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
815
|
+
* @returns {Array|Object} Returns `collection`.
|
|
816
|
+
* @see _.forEachRight
|
|
817
|
+
* @example
|
|
818
|
+
*
|
|
819
|
+
* _.forEach([1, 2], function(value) {
|
|
820
|
+
* console.log(value);
|
|
821
|
+
* });
|
|
822
|
+
* // => Logs `1` then `2`.
|
|
823
|
+
*
|
|
824
|
+
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
|
|
825
|
+
* console.log(key);
|
|
826
|
+
* });
|
|
827
|
+
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
828
|
+
*/ function $c6f51911d1519af6$var$forEach(collection, iteratee) {
|
|
829
|
+
var func = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(collection) ? (0, $498928d730fb1482$export$2e2bcd8739ae039) : (0, $3a95e911dedbc5e1$export$2e2bcd8739ae039);
|
|
830
|
+
return func(collection, (0, $62c11455357f3e8d$export$2e2bcd8739ae039)(iteratee));
|
|
831
|
+
}
|
|
832
|
+
var $c6f51911d1519af6$export$2e2bcd8739ae039 = $c6f51911d1519af6$var$forEach;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
836
|
+
* iteratee shorthands.
|
|
837
|
+
*
|
|
838
|
+
* @private
|
|
839
|
+
* @param {Array} [array] The array to iterate over.
|
|
840
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
841
|
+
* @returns {Array} Returns the new filtered array.
|
|
842
|
+
*/ function $47f6d3a8ca5b6c69$var$arrayFilter(array, predicate) {
|
|
843
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
844
|
+
while(++index < length){
|
|
845
|
+
var value = array[index];
|
|
846
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
847
|
+
}
|
|
848
|
+
return result;
|
|
849
|
+
}
|
|
850
|
+
var $47f6d3a8ca5b6c69$export$2e2bcd8739ae039 = $47f6d3a8ca5b6c69$var$arrayFilter;
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* The base implementation of `_.filter` without support for iteratee shorthands.
|
|
856
|
+
*
|
|
857
|
+
* @private
|
|
858
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
859
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
860
|
+
* @returns {Array} Returns the new filtered array.
|
|
861
|
+
*/ function $281504449f197165$var$baseFilter(collection, predicate) {
|
|
862
|
+
var result = [];
|
|
863
|
+
(0, $3a95e911dedbc5e1$export$2e2bcd8739ae039)(collection, function(value, index, collection) {
|
|
864
|
+
if (predicate(value, index, collection)) result.push(value);
|
|
865
|
+
});
|
|
866
|
+
return result;
|
|
867
|
+
}
|
|
868
|
+
var $281504449f197165$export$2e2bcd8739ae039 = $281504449f197165$var$baseFilter;
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Removes all key-value entries from the list cache.
|
|
873
|
+
*
|
|
874
|
+
* @private
|
|
875
|
+
* @name clear
|
|
876
|
+
* @memberOf ListCache
|
|
877
|
+
*/ function $8dcb370d4f8fd32a$var$listCacheClear() {
|
|
878
|
+
this.__data__ = [];
|
|
879
|
+
this.size = 0;
|
|
880
|
+
}
|
|
881
|
+
var $8dcb370d4f8fd32a$export$2e2bcd8739ae039 = $8dcb370d4f8fd32a$var$listCacheClear;
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Performs a
|
|
886
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
887
|
+
* comparison between two values to determine if they are equivalent.
|
|
888
|
+
*
|
|
889
|
+
* @static
|
|
890
|
+
* @memberOf _
|
|
891
|
+
* @since 4.0.0
|
|
892
|
+
* @category Lang
|
|
893
|
+
* @param {*} value The value to compare.
|
|
894
|
+
* @param {*} other The other value to compare.
|
|
895
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
896
|
+
* @example
|
|
897
|
+
*
|
|
898
|
+
* var object = { 'a': 1 };
|
|
899
|
+
* var other = { 'a': 1 };
|
|
900
|
+
*
|
|
901
|
+
* _.eq(object, object);
|
|
902
|
+
* // => true
|
|
903
|
+
*
|
|
904
|
+
* _.eq(object, other);
|
|
905
|
+
* // => false
|
|
906
|
+
*
|
|
907
|
+
* _.eq('a', 'a');
|
|
908
|
+
* // => true
|
|
909
|
+
*
|
|
910
|
+
* _.eq('a', Object('a'));
|
|
911
|
+
* // => false
|
|
912
|
+
*
|
|
913
|
+
* _.eq(NaN, NaN);
|
|
914
|
+
* // => true
|
|
915
|
+
*/ function $c722e1d89fff12e9$var$eq(value, other) {
|
|
916
|
+
return value === other || value !== value && other !== other;
|
|
917
|
+
}
|
|
918
|
+
var $c722e1d89fff12e9$export$2e2bcd8739ae039 = $c722e1d89fff12e9$var$eq;
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
923
|
+
*
|
|
924
|
+
* @private
|
|
925
|
+
* @param {Array} array The array to inspect.
|
|
926
|
+
* @param {*} key The key to search for.
|
|
927
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
928
|
+
*/ function $574e805c52436061$var$assocIndexOf(array, key) {
|
|
929
|
+
var length = array.length;
|
|
930
|
+
while(length--){
|
|
931
|
+
if ((0, $c722e1d89fff12e9$export$2e2bcd8739ae039)(array[length][0], key)) return length;
|
|
932
|
+
}
|
|
933
|
+
return -1;
|
|
934
|
+
}
|
|
935
|
+
var $574e805c52436061$export$2e2bcd8739ae039 = $574e805c52436061$var$assocIndexOf;
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
/** Used for built-in method references. */ var $04df147a21456c0d$var$arrayProto = Array.prototype;
|
|
939
|
+
/** Built-in value references. */ var $04df147a21456c0d$var$splice = $04df147a21456c0d$var$arrayProto.splice;
|
|
940
|
+
/**
|
|
941
|
+
* Removes `key` and its value from the list cache.
|
|
942
|
+
*
|
|
943
|
+
* @private
|
|
944
|
+
* @name delete
|
|
945
|
+
* @memberOf ListCache
|
|
946
|
+
* @param {string} key The key of the value to remove.
|
|
947
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
948
|
+
*/ function $04df147a21456c0d$var$listCacheDelete(key) {
|
|
949
|
+
var data = this.__data__, index = (0, $574e805c52436061$export$2e2bcd8739ae039)(data, key);
|
|
950
|
+
if (index < 0) return false;
|
|
951
|
+
var lastIndex = data.length - 1;
|
|
952
|
+
if (index == lastIndex) data.pop();
|
|
953
|
+
else $04df147a21456c0d$var$splice.call(data, index, 1);
|
|
954
|
+
--this.size;
|
|
955
|
+
return true;
|
|
956
|
+
}
|
|
957
|
+
var $04df147a21456c0d$export$2e2bcd8739ae039 = $04df147a21456c0d$var$listCacheDelete;
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Gets the list cache value for `key`.
|
|
963
|
+
*
|
|
964
|
+
* @private
|
|
965
|
+
* @name get
|
|
966
|
+
* @memberOf ListCache
|
|
967
|
+
* @param {string} key The key of the value to get.
|
|
968
|
+
* @returns {*} Returns the entry value.
|
|
969
|
+
*/ function $6435f12e386478c9$var$listCacheGet(key) {
|
|
970
|
+
var data = this.__data__, index = (0, $574e805c52436061$export$2e2bcd8739ae039)(data, key);
|
|
971
|
+
return index < 0 ? undefined : data[index][1];
|
|
972
|
+
}
|
|
973
|
+
var $6435f12e386478c9$export$2e2bcd8739ae039 = $6435f12e386478c9$var$listCacheGet;
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Checks if a list cache value for `key` exists.
|
|
979
|
+
*
|
|
980
|
+
* @private
|
|
981
|
+
* @name has
|
|
982
|
+
* @memberOf ListCache
|
|
983
|
+
* @param {string} key The key of the entry to check.
|
|
984
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
985
|
+
*/ function $0ef7d416c94d0904$var$listCacheHas(key) {
|
|
986
|
+
return (0, $574e805c52436061$export$2e2bcd8739ae039)(this.__data__, key) > -1;
|
|
987
|
+
}
|
|
988
|
+
var $0ef7d416c94d0904$export$2e2bcd8739ae039 = $0ef7d416c94d0904$var$listCacheHas;
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Sets the list cache `key` to `value`.
|
|
994
|
+
*
|
|
995
|
+
* @private
|
|
996
|
+
* @name set
|
|
997
|
+
* @memberOf ListCache
|
|
998
|
+
* @param {string} key The key of the value to set.
|
|
999
|
+
* @param {*} value The value to set.
|
|
1000
|
+
* @returns {Object} Returns the list cache instance.
|
|
1001
|
+
*/ function $8aea5465242acc34$var$listCacheSet(key, value) {
|
|
1002
|
+
var data = this.__data__, index = (0, $574e805c52436061$export$2e2bcd8739ae039)(data, key);
|
|
1003
|
+
if (index < 0) {
|
|
1004
|
+
++this.size;
|
|
1005
|
+
data.push([
|
|
1006
|
+
key,
|
|
1007
|
+
value
|
|
1008
|
+
]);
|
|
1009
|
+
} else data[index][1] = value;
|
|
1010
|
+
return this;
|
|
1011
|
+
}
|
|
1012
|
+
var $8aea5465242acc34$export$2e2bcd8739ae039 = $8aea5465242acc34$var$listCacheSet;
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Creates an list cache object.
|
|
1017
|
+
*
|
|
1018
|
+
* @private
|
|
1019
|
+
* @constructor
|
|
1020
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1021
|
+
*/ function $890b751b61078810$var$ListCache(entries) {
|
|
1022
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1023
|
+
this.clear();
|
|
1024
|
+
while(++index < length){
|
|
1025
|
+
var entry = entries[index];
|
|
1026
|
+
this.set(entry[0], entry[1]);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
// Add methods to `ListCache`.
|
|
1030
|
+
$890b751b61078810$var$ListCache.prototype.clear = (0, $8dcb370d4f8fd32a$export$2e2bcd8739ae039);
|
|
1031
|
+
$890b751b61078810$var$ListCache.prototype["delete"] = (0, $04df147a21456c0d$export$2e2bcd8739ae039);
|
|
1032
|
+
$890b751b61078810$var$ListCache.prototype.get = (0, $6435f12e386478c9$export$2e2bcd8739ae039);
|
|
1033
|
+
$890b751b61078810$var$ListCache.prototype.has = (0, $0ef7d416c94d0904$export$2e2bcd8739ae039);
|
|
1034
|
+
$890b751b61078810$var$ListCache.prototype.set = (0, $8aea5465242acc34$export$2e2bcd8739ae039);
|
|
1035
|
+
var $890b751b61078810$export$2e2bcd8739ae039 = $890b751b61078810$var$ListCache;
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Removes all key-value entries from the stack.
|
|
1041
|
+
*
|
|
1042
|
+
* @private
|
|
1043
|
+
* @name clear
|
|
1044
|
+
* @memberOf Stack
|
|
1045
|
+
*/ function $6d557114f67f97e6$var$stackClear() {
|
|
1046
|
+
this.__data__ = new (0, $890b751b61078810$export$2e2bcd8739ae039);
|
|
1047
|
+
this.size = 0;
|
|
1048
|
+
}
|
|
1049
|
+
var $6d557114f67f97e6$export$2e2bcd8739ae039 = $6d557114f67f97e6$var$stackClear;
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Removes `key` and its value from the stack.
|
|
1054
|
+
*
|
|
1055
|
+
* @private
|
|
1056
|
+
* @name delete
|
|
1057
|
+
* @memberOf Stack
|
|
1058
|
+
* @param {string} key The key of the value to remove.
|
|
1059
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1060
|
+
*/ function $49726e6eec470c2d$var$stackDelete(key) {
|
|
1061
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1062
|
+
this.size = data.size;
|
|
1063
|
+
return result;
|
|
1064
|
+
}
|
|
1065
|
+
var $49726e6eec470c2d$export$2e2bcd8739ae039 = $49726e6eec470c2d$var$stackDelete;
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Gets the stack value for `key`.
|
|
1070
|
+
*
|
|
1071
|
+
* @private
|
|
1072
|
+
* @name get
|
|
1073
|
+
* @memberOf Stack
|
|
1074
|
+
* @param {string} key The key of the value to get.
|
|
1075
|
+
* @returns {*} Returns the entry value.
|
|
1076
|
+
*/ function $56fa7d0825d12ee5$var$stackGet(key) {
|
|
1077
|
+
return this.__data__.get(key);
|
|
1078
|
+
}
|
|
1079
|
+
var $56fa7d0825d12ee5$export$2e2bcd8739ae039 = $56fa7d0825d12ee5$var$stackGet;
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Checks if a stack value for `key` exists.
|
|
1084
|
+
*
|
|
1085
|
+
* @private
|
|
1086
|
+
* @name has
|
|
1087
|
+
* @memberOf Stack
|
|
1088
|
+
* @param {string} key The key of the entry to check.
|
|
1089
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1090
|
+
*/ function $f79e184342cbc24f$var$stackHas(key) {
|
|
1091
|
+
return this.__data__.has(key);
|
|
1092
|
+
}
|
|
1093
|
+
var $f79e184342cbc24f$export$2e2bcd8739ae039 = $f79e184342cbc24f$var$stackHas;
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1100
|
+
/** Used to detect overreaching core-js shims. */ var $bdde8092f4600570$var$coreJsData = (0, $cBFFg.default)["__core-js_shared__"];
|
|
1101
|
+
var $bdde8092f4600570$export$2e2bcd8739ae039 = $bdde8092f4600570$var$coreJsData;
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
/** Used to detect methods masquerading as native. */ var $917cb77f83f58af3$var$maskSrcKey = function() {
|
|
1105
|
+
var uid = /[^.]+$/.exec((0, $bdde8092f4600570$export$2e2bcd8739ae039) && (0, $bdde8092f4600570$export$2e2bcd8739ae039).keys && (0, $bdde8092f4600570$export$2e2bcd8739ae039).keys.IE_PROTO || "");
|
|
1106
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
1107
|
+
}();
|
|
1108
|
+
/**
|
|
1109
|
+
* Checks if `func` has its source masked.
|
|
1110
|
+
*
|
|
1111
|
+
* @private
|
|
1112
|
+
* @param {Function} func The function to check.
|
|
1113
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1114
|
+
*/ function $917cb77f83f58af3$var$isMasked(func) {
|
|
1115
|
+
return !!$917cb77f83f58af3$var$maskSrcKey && $917cb77f83f58af3$var$maskSrcKey in func;
|
|
1116
|
+
}
|
|
1117
|
+
var $917cb77f83f58af3$export$2e2bcd8739ae039 = $917cb77f83f58af3$var$isMasked;
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
/** Used for built-in method references. */ var $7883895913762d88$var$funcProto = Function.prototype;
|
|
1122
|
+
/** Used to resolve the decompiled source of functions. */ var $7883895913762d88$var$funcToString = $7883895913762d88$var$funcProto.toString;
|
|
1123
|
+
/**
|
|
1124
|
+
* Converts `func` to its source code.
|
|
1125
|
+
*
|
|
1126
|
+
* @private
|
|
1127
|
+
* @param {Function} func The function to convert.
|
|
1128
|
+
* @returns {string} Returns the source code.
|
|
1129
|
+
*/ function $7883895913762d88$var$toSource(func) {
|
|
1130
|
+
if (func != null) {
|
|
1131
|
+
try {
|
|
1132
|
+
return $7883895913762d88$var$funcToString.call(func);
|
|
1133
|
+
} catch (e) {}
|
|
1134
|
+
try {
|
|
1135
|
+
return func + "";
|
|
1136
|
+
} catch (e) {}
|
|
1137
|
+
}
|
|
1138
|
+
return "";
|
|
1139
|
+
}
|
|
1140
|
+
var $7883895913762d88$export$2e2bcd8739ae039 = $7883895913762d88$var$toSource;
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Used to match `RegExp`
|
|
1145
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1146
|
+
*/ var $fcff3a77955a6433$var$reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
1147
|
+
/** Used to detect host constructors (Safari). */ var $fcff3a77955a6433$var$reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
1148
|
+
/** Used for built-in method references. */ var $fcff3a77955a6433$var$funcProto = Function.prototype, $fcff3a77955a6433$var$objectProto = Object.prototype;
|
|
1149
|
+
/** Used to resolve the decompiled source of functions. */ var $fcff3a77955a6433$var$funcToString = $fcff3a77955a6433$var$funcProto.toString;
|
|
1150
|
+
/** Used to check objects for own properties. */ var $fcff3a77955a6433$var$hasOwnProperty = $fcff3a77955a6433$var$objectProto.hasOwnProperty;
|
|
1151
|
+
/** Used to detect if a method is native. */ var $fcff3a77955a6433$var$reIsNative = RegExp("^" + $fcff3a77955a6433$var$funcToString.call($fcff3a77955a6433$var$hasOwnProperty).replace($fcff3a77955a6433$var$reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1152
|
+
/**
|
|
1153
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
1154
|
+
*
|
|
1155
|
+
* @private
|
|
1156
|
+
* @param {*} value The value to check.
|
|
1157
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1158
|
+
* else `false`.
|
|
1159
|
+
*/ function $fcff3a77955a6433$var$baseIsNative(value) {
|
|
1160
|
+
if (!(0, $f327b722d951deae$export$2e2bcd8739ae039)(value) || (0, $917cb77f83f58af3$export$2e2bcd8739ae039)(value)) return false;
|
|
1161
|
+
var pattern = (0, $ee4a222f50608bb5$export$2e2bcd8739ae039)(value) ? $fcff3a77955a6433$var$reIsNative : $fcff3a77955a6433$var$reIsHostCtor;
|
|
1162
|
+
return pattern.test((0, $7883895913762d88$export$2e2bcd8739ae039)(value));
|
|
1163
|
+
}
|
|
1164
|
+
var $fcff3a77955a6433$export$2e2bcd8739ae039 = $fcff3a77955a6433$var$baseIsNative;
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Gets the value at `key` of `object`.
|
|
1169
|
+
*
|
|
1170
|
+
* @private
|
|
1171
|
+
* @param {Object} [object] The object to query.
|
|
1172
|
+
* @param {string} key The key of the property to get.
|
|
1173
|
+
* @returns {*} Returns the property value.
|
|
1174
|
+
*/ function $7fab3c504cd9b6d3$var$getValue(object, key) {
|
|
1175
|
+
return object == null ? undefined : object[key];
|
|
1176
|
+
}
|
|
1177
|
+
var $7fab3c504cd9b6d3$export$2e2bcd8739ae039 = $7fab3c504cd9b6d3$var$getValue;
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Gets the native function at `key` of `object`.
|
|
1182
|
+
*
|
|
1183
|
+
* @private
|
|
1184
|
+
* @param {Object} object The object to query.
|
|
1185
|
+
* @param {string} key The key of the method to get.
|
|
1186
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1187
|
+
*/ function $367cfb010623cf3e$var$getNative(object, key) {
|
|
1188
|
+
var value = (0, $7fab3c504cd9b6d3$export$2e2bcd8739ae039)(object, key);
|
|
1189
|
+
return (0, $fcff3a77955a6433$export$2e2bcd8739ae039)(value) ? value : undefined;
|
|
1190
|
+
}
|
|
1191
|
+
var $367cfb010623cf3e$export$2e2bcd8739ae039 = $367cfb010623cf3e$var$getNative;
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1196
|
+
/* Built-in method references that are verified to be native. */ var $34897db59cda48d6$var$Map = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)((0, $cBFFg.default), "Map");
|
|
1197
|
+
var $34897db59cda48d6$export$2e2bcd8739ae039 = $34897db59cda48d6$var$Map;
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/* Built-in method references that are verified to be native. */ var $cce727cb7f351b0a$var$nativeCreate = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)(Object, "create");
|
|
1202
|
+
var $cce727cb7f351b0a$export$2e2bcd8739ae039 = $cce727cb7f351b0a$var$nativeCreate;
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Removes all key-value entries from the hash.
|
|
1207
|
+
*
|
|
1208
|
+
* @private
|
|
1209
|
+
* @name clear
|
|
1210
|
+
* @memberOf Hash
|
|
1211
|
+
*/ function $b615af4b613f3eaa$var$hashClear() {
|
|
1212
|
+
this.__data__ = (0, $cce727cb7f351b0a$export$2e2bcd8739ae039) ? (0, $cce727cb7f351b0a$export$2e2bcd8739ae039)(null) : {};
|
|
1213
|
+
this.size = 0;
|
|
1214
|
+
}
|
|
1215
|
+
var $b615af4b613f3eaa$export$2e2bcd8739ae039 = $b615af4b613f3eaa$var$hashClear;
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Removes `key` and its value from the hash.
|
|
1220
|
+
*
|
|
1221
|
+
* @private
|
|
1222
|
+
* @name delete
|
|
1223
|
+
* @memberOf Hash
|
|
1224
|
+
* @param {Object} hash The hash to modify.
|
|
1225
|
+
* @param {string} key The key of the value to remove.
|
|
1226
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1227
|
+
*/ function $dd55cbecc1078bb5$var$hashDelete(key) {
|
|
1228
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1229
|
+
this.size -= result ? 1 : 0;
|
|
1230
|
+
return result;
|
|
1231
|
+
}
|
|
1232
|
+
var $dd55cbecc1078bb5$export$2e2bcd8739ae039 = $dd55cbecc1078bb5$var$hashDelete;
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
/** Used to stand-in for `undefined` hash values. */ var $18ae53467aa7abd0$var$HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1237
|
+
/** Used for built-in method references. */ var $18ae53467aa7abd0$var$objectProto = Object.prototype;
|
|
1238
|
+
/** Used to check objects for own properties. */ var $18ae53467aa7abd0$var$hasOwnProperty = $18ae53467aa7abd0$var$objectProto.hasOwnProperty;
|
|
1239
|
+
/**
|
|
1240
|
+
* Gets the hash value for `key`.
|
|
1241
|
+
*
|
|
1242
|
+
* @private
|
|
1243
|
+
* @name get
|
|
1244
|
+
* @memberOf Hash
|
|
1245
|
+
* @param {string} key The key of the value to get.
|
|
1246
|
+
* @returns {*} Returns the entry value.
|
|
1247
|
+
*/ function $18ae53467aa7abd0$var$hashGet(key) {
|
|
1248
|
+
var data = this.__data__;
|
|
1249
|
+
if (0, $cce727cb7f351b0a$export$2e2bcd8739ae039) {
|
|
1250
|
+
var result = data[key];
|
|
1251
|
+
return result === $18ae53467aa7abd0$var$HASH_UNDEFINED ? undefined : result;
|
|
1252
|
+
}
|
|
1253
|
+
return $18ae53467aa7abd0$var$hasOwnProperty.call(data, key) ? data[key] : undefined;
|
|
1254
|
+
}
|
|
1255
|
+
var $18ae53467aa7abd0$export$2e2bcd8739ae039 = $18ae53467aa7abd0$var$hashGet;
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
/** Used for built-in method references. */ var $6cd1d1dd77ab6daa$var$objectProto = Object.prototype;
|
|
1260
|
+
/** Used to check objects for own properties. */ var $6cd1d1dd77ab6daa$var$hasOwnProperty = $6cd1d1dd77ab6daa$var$objectProto.hasOwnProperty;
|
|
1261
|
+
/**
|
|
1262
|
+
* Checks if a hash value for `key` exists.
|
|
1263
|
+
*
|
|
1264
|
+
* @private
|
|
1265
|
+
* @name has
|
|
1266
|
+
* @memberOf Hash
|
|
1267
|
+
* @param {string} key The key of the entry to check.
|
|
1268
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1269
|
+
*/ function $6cd1d1dd77ab6daa$var$hashHas(key) {
|
|
1270
|
+
var data = this.__data__;
|
|
1271
|
+
return (0, $cce727cb7f351b0a$export$2e2bcd8739ae039) ? data[key] !== undefined : $6cd1d1dd77ab6daa$var$hasOwnProperty.call(data, key);
|
|
1272
|
+
}
|
|
1273
|
+
var $6cd1d1dd77ab6daa$export$2e2bcd8739ae039 = $6cd1d1dd77ab6daa$var$hashHas;
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
/** Used to stand-in for `undefined` hash values. */ var $b4ce9775b60f3132$var$HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1278
|
+
/**
|
|
1279
|
+
* Sets the hash `key` to `value`.
|
|
1280
|
+
*
|
|
1281
|
+
* @private
|
|
1282
|
+
* @name set
|
|
1283
|
+
* @memberOf Hash
|
|
1284
|
+
* @param {string} key The key of the value to set.
|
|
1285
|
+
* @param {*} value The value to set.
|
|
1286
|
+
* @returns {Object} Returns the hash instance.
|
|
1287
|
+
*/ function $b4ce9775b60f3132$var$hashSet(key, value) {
|
|
1288
|
+
var data = this.__data__;
|
|
1289
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1290
|
+
data[key] = (0, $cce727cb7f351b0a$export$2e2bcd8739ae039) && value === undefined ? $b4ce9775b60f3132$var$HASH_UNDEFINED : value;
|
|
1291
|
+
return this;
|
|
1292
|
+
}
|
|
1293
|
+
var $b4ce9775b60f3132$export$2e2bcd8739ae039 = $b4ce9775b60f3132$var$hashSet;
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Creates a hash object.
|
|
1298
|
+
*
|
|
1299
|
+
* @private
|
|
1300
|
+
* @constructor
|
|
1301
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1302
|
+
*/ function $f3b4432ff044ddf6$var$Hash(entries) {
|
|
1303
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1304
|
+
this.clear();
|
|
1305
|
+
while(++index < length){
|
|
1306
|
+
var entry = entries[index];
|
|
1307
|
+
this.set(entry[0], entry[1]);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
// Add methods to `Hash`.
|
|
1311
|
+
$f3b4432ff044ddf6$var$Hash.prototype.clear = (0, $b615af4b613f3eaa$export$2e2bcd8739ae039);
|
|
1312
|
+
$f3b4432ff044ddf6$var$Hash.prototype["delete"] = (0, $dd55cbecc1078bb5$export$2e2bcd8739ae039);
|
|
1313
|
+
$f3b4432ff044ddf6$var$Hash.prototype.get = (0, $18ae53467aa7abd0$export$2e2bcd8739ae039);
|
|
1314
|
+
$f3b4432ff044ddf6$var$Hash.prototype.has = (0, $6cd1d1dd77ab6daa$export$2e2bcd8739ae039);
|
|
1315
|
+
$f3b4432ff044ddf6$var$Hash.prototype.set = (0, $b4ce9775b60f3132$export$2e2bcd8739ae039);
|
|
1316
|
+
var $f3b4432ff044ddf6$export$2e2bcd8739ae039 = $f3b4432ff044ddf6$var$Hash;
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Removes all key-value entries from the map.
|
|
1323
|
+
*
|
|
1324
|
+
* @private
|
|
1325
|
+
* @name clear
|
|
1326
|
+
* @memberOf MapCache
|
|
1327
|
+
*/ function $acc3f5e4e7e4246a$var$mapCacheClear() {
|
|
1328
|
+
this.size = 0;
|
|
1329
|
+
this.__data__ = {
|
|
1330
|
+
"hash": new (0, $f3b4432ff044ddf6$export$2e2bcd8739ae039),
|
|
1331
|
+
"map": new ((0, $34897db59cda48d6$export$2e2bcd8739ae039) || (0, $890b751b61078810$export$2e2bcd8739ae039)),
|
|
1332
|
+
"string": new (0, $f3b4432ff044ddf6$export$2e2bcd8739ae039)
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
var $acc3f5e4e7e4246a$export$2e2bcd8739ae039 = $acc3f5e4e7e4246a$var$mapCacheClear;
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1340
|
+
*
|
|
1341
|
+
* @private
|
|
1342
|
+
* @param {*} value The value to check.
|
|
1343
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1344
|
+
*/ function $dad82b8811070632$var$isKeyable(value) {
|
|
1345
|
+
var type = typeof value;
|
|
1346
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1347
|
+
}
|
|
1348
|
+
var $dad82b8811070632$export$2e2bcd8739ae039 = $dad82b8811070632$var$isKeyable;
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Gets the data for `map`.
|
|
1353
|
+
*
|
|
1354
|
+
* @private
|
|
1355
|
+
* @param {Object} map The map to query.
|
|
1356
|
+
* @param {string} key The reference key.
|
|
1357
|
+
* @returns {*} Returns the map data.
|
|
1358
|
+
*/ function $3a19b28133acd985$var$getMapData(map, key) {
|
|
1359
|
+
var data = map.__data__;
|
|
1360
|
+
return (0, $dad82b8811070632$export$2e2bcd8739ae039)(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1361
|
+
}
|
|
1362
|
+
var $3a19b28133acd985$export$2e2bcd8739ae039 = $3a19b28133acd985$var$getMapData;
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* Removes `key` and its value from the map.
|
|
1367
|
+
*
|
|
1368
|
+
* @private
|
|
1369
|
+
* @name delete
|
|
1370
|
+
* @memberOf MapCache
|
|
1371
|
+
* @param {string} key The key of the value to remove.
|
|
1372
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1373
|
+
*/ function $e0de2bf930159915$var$mapCacheDelete(key) {
|
|
1374
|
+
var result = (0, $3a19b28133acd985$export$2e2bcd8739ae039)(this, key)["delete"](key);
|
|
1375
|
+
this.size -= result ? 1 : 0;
|
|
1376
|
+
return result;
|
|
1377
|
+
}
|
|
1378
|
+
var $e0de2bf930159915$export$2e2bcd8739ae039 = $e0de2bf930159915$var$mapCacheDelete;
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Gets the map value for `key`.
|
|
1384
|
+
*
|
|
1385
|
+
* @private
|
|
1386
|
+
* @name get
|
|
1387
|
+
* @memberOf MapCache
|
|
1388
|
+
* @param {string} key The key of the value to get.
|
|
1389
|
+
* @returns {*} Returns the entry value.
|
|
1390
|
+
*/ function $f6f35db1f79566c6$var$mapCacheGet(key) {
|
|
1391
|
+
return (0, $3a19b28133acd985$export$2e2bcd8739ae039)(this, key).get(key);
|
|
1392
|
+
}
|
|
1393
|
+
var $f6f35db1f79566c6$export$2e2bcd8739ae039 = $f6f35db1f79566c6$var$mapCacheGet;
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Checks if a map value for `key` exists.
|
|
1399
|
+
*
|
|
1400
|
+
* @private
|
|
1401
|
+
* @name has
|
|
1402
|
+
* @memberOf MapCache
|
|
1403
|
+
* @param {string} key The key of the entry to check.
|
|
1404
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1405
|
+
*/ function $037d36a6658c8dce$var$mapCacheHas(key) {
|
|
1406
|
+
return (0, $3a19b28133acd985$export$2e2bcd8739ae039)(this, key).has(key);
|
|
1407
|
+
}
|
|
1408
|
+
var $037d36a6658c8dce$export$2e2bcd8739ae039 = $037d36a6658c8dce$var$mapCacheHas;
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Sets the map `key` to `value`.
|
|
1414
|
+
*
|
|
1415
|
+
* @private
|
|
1416
|
+
* @name set
|
|
1417
|
+
* @memberOf MapCache
|
|
1418
|
+
* @param {string} key The key of the value to set.
|
|
1419
|
+
* @param {*} value The value to set.
|
|
1420
|
+
* @returns {Object} Returns the map cache instance.
|
|
1421
|
+
*/ function $0388adbd409eb9c3$var$mapCacheSet(key, value) {
|
|
1422
|
+
var data = (0, $3a19b28133acd985$export$2e2bcd8739ae039)(this, key), size = data.size;
|
|
1423
|
+
data.set(key, value);
|
|
1424
|
+
this.size += data.size == size ? 0 : 1;
|
|
1425
|
+
return this;
|
|
1426
|
+
}
|
|
1427
|
+
var $0388adbd409eb9c3$export$2e2bcd8739ae039 = $0388adbd409eb9c3$var$mapCacheSet;
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Creates a map cache object to store key-value pairs.
|
|
1432
|
+
*
|
|
1433
|
+
* @private
|
|
1434
|
+
* @constructor
|
|
1435
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1436
|
+
*/ function $6fbdde6cf6182d22$var$MapCache(entries) {
|
|
1437
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1438
|
+
this.clear();
|
|
1439
|
+
while(++index < length){
|
|
1440
|
+
var entry = entries[index];
|
|
1441
|
+
this.set(entry[0], entry[1]);
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
// Add methods to `MapCache`.
|
|
1445
|
+
$6fbdde6cf6182d22$var$MapCache.prototype.clear = (0, $acc3f5e4e7e4246a$export$2e2bcd8739ae039);
|
|
1446
|
+
$6fbdde6cf6182d22$var$MapCache.prototype["delete"] = (0, $e0de2bf930159915$export$2e2bcd8739ae039);
|
|
1447
|
+
$6fbdde6cf6182d22$var$MapCache.prototype.get = (0, $f6f35db1f79566c6$export$2e2bcd8739ae039);
|
|
1448
|
+
$6fbdde6cf6182d22$var$MapCache.prototype.has = (0, $037d36a6658c8dce$export$2e2bcd8739ae039);
|
|
1449
|
+
$6fbdde6cf6182d22$var$MapCache.prototype.set = (0, $0388adbd409eb9c3$export$2e2bcd8739ae039);
|
|
1450
|
+
var $6fbdde6cf6182d22$export$2e2bcd8739ae039 = $6fbdde6cf6182d22$var$MapCache;
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/** Used as the size to enable large array optimizations. */ var $d38a7b198ce44868$var$LARGE_ARRAY_SIZE = 200;
|
|
1454
|
+
/**
|
|
1455
|
+
* Sets the stack `key` to `value`.
|
|
1456
|
+
*
|
|
1457
|
+
* @private
|
|
1458
|
+
* @name set
|
|
1459
|
+
* @memberOf Stack
|
|
1460
|
+
* @param {string} key The key of the value to set.
|
|
1461
|
+
* @param {*} value The value to set.
|
|
1462
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1463
|
+
*/ function $d38a7b198ce44868$var$stackSet(key, value) {
|
|
1464
|
+
var data = this.__data__;
|
|
1465
|
+
if (data instanceof (0, $890b751b61078810$export$2e2bcd8739ae039)) {
|
|
1466
|
+
var pairs = data.__data__;
|
|
1467
|
+
if (!(0, $34897db59cda48d6$export$2e2bcd8739ae039) || pairs.length < $d38a7b198ce44868$var$LARGE_ARRAY_SIZE - 1) {
|
|
1468
|
+
pairs.push([
|
|
1469
|
+
key,
|
|
1470
|
+
value
|
|
1471
|
+
]);
|
|
1472
|
+
this.size = ++data.size;
|
|
1473
|
+
return this;
|
|
1474
|
+
}
|
|
1475
|
+
data = this.__data__ = new (0, $6fbdde6cf6182d22$export$2e2bcd8739ae039)(pairs);
|
|
1476
|
+
}
|
|
1477
|
+
data.set(key, value);
|
|
1478
|
+
this.size = data.size;
|
|
1479
|
+
return this;
|
|
1480
|
+
}
|
|
1481
|
+
var $d38a7b198ce44868$export$2e2bcd8739ae039 = $d38a7b198ce44868$var$stackSet;
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Creates a stack cache object to store key-value pairs.
|
|
1486
|
+
*
|
|
1487
|
+
* @private
|
|
1488
|
+
* @constructor
|
|
1489
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1490
|
+
*/ function $87781f7ccfcca9d0$var$Stack(entries) {
|
|
1491
|
+
var data = this.__data__ = new (0, $890b751b61078810$export$2e2bcd8739ae039)(entries);
|
|
1492
|
+
this.size = data.size;
|
|
1493
|
+
}
|
|
1494
|
+
// Add methods to `Stack`.
|
|
1495
|
+
$87781f7ccfcca9d0$var$Stack.prototype.clear = (0, $6d557114f67f97e6$export$2e2bcd8739ae039);
|
|
1496
|
+
$87781f7ccfcca9d0$var$Stack.prototype["delete"] = (0, $49726e6eec470c2d$export$2e2bcd8739ae039);
|
|
1497
|
+
$87781f7ccfcca9d0$var$Stack.prototype.get = (0, $56fa7d0825d12ee5$export$2e2bcd8739ae039);
|
|
1498
|
+
$87781f7ccfcca9d0$var$Stack.prototype.has = (0, $f79e184342cbc24f$export$2e2bcd8739ae039);
|
|
1499
|
+
$87781f7ccfcca9d0$var$Stack.prototype.set = (0, $d38a7b198ce44868$export$2e2bcd8739ae039);
|
|
1500
|
+
var $87781f7ccfcca9d0$export$2e2bcd8739ae039 = $87781f7ccfcca9d0$var$Stack;
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
/** Used to stand-in for `undefined` hash values. */ var $9ce70e11ec6c1793$var$HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1506
|
+
/**
|
|
1507
|
+
* Adds `value` to the array cache.
|
|
1508
|
+
*
|
|
1509
|
+
* @private
|
|
1510
|
+
* @name add
|
|
1511
|
+
* @memberOf SetCache
|
|
1512
|
+
* @alias push
|
|
1513
|
+
* @param {*} value The value to cache.
|
|
1514
|
+
* @returns {Object} Returns the cache instance.
|
|
1515
|
+
*/ function $9ce70e11ec6c1793$var$setCacheAdd(value) {
|
|
1516
|
+
this.__data__.set(value, $9ce70e11ec6c1793$var$HASH_UNDEFINED);
|
|
1517
|
+
return this;
|
|
1518
|
+
}
|
|
1519
|
+
var $9ce70e11ec6c1793$export$2e2bcd8739ae039 = $9ce70e11ec6c1793$var$setCacheAdd;
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Checks if `value` is in the array cache.
|
|
1524
|
+
*
|
|
1525
|
+
* @private
|
|
1526
|
+
* @name has
|
|
1527
|
+
* @memberOf SetCache
|
|
1528
|
+
* @param {*} value The value to search for.
|
|
1529
|
+
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
1530
|
+
*/ function $94506163a94bbe77$var$setCacheHas(value) {
|
|
1531
|
+
return this.__data__.has(value);
|
|
1532
|
+
}
|
|
1533
|
+
var $94506163a94bbe77$export$2e2bcd8739ae039 = $94506163a94bbe77$var$setCacheHas;
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* Creates an array cache object to store unique values.
|
|
1539
|
+
*
|
|
1540
|
+
* @private
|
|
1541
|
+
* @constructor
|
|
1542
|
+
* @param {Array} [values] The values to cache.
|
|
1543
|
+
*/ function $cf32d2f8e3c66b80$var$SetCache(values) {
|
|
1544
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
1545
|
+
this.__data__ = new (0, $6fbdde6cf6182d22$export$2e2bcd8739ae039);
|
|
1546
|
+
while(++index < length)this.add(values[index]);
|
|
1547
|
+
}
|
|
1548
|
+
// Add methods to `SetCache`.
|
|
1549
|
+
$cf32d2f8e3c66b80$var$SetCache.prototype.add = $cf32d2f8e3c66b80$var$SetCache.prototype.push = (0, $9ce70e11ec6c1793$export$2e2bcd8739ae039);
|
|
1550
|
+
$cf32d2f8e3c66b80$var$SetCache.prototype.has = (0, $94506163a94bbe77$export$2e2bcd8739ae039);
|
|
1551
|
+
var $cf32d2f8e3c66b80$export$2e2bcd8739ae039 = $cf32d2f8e3c66b80$var$SetCache;
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* A specialized version of `_.some` for arrays without support for iteratee
|
|
1556
|
+
* shorthands.
|
|
1557
|
+
*
|
|
1558
|
+
* @private
|
|
1559
|
+
* @param {Array} [array] The array to iterate over.
|
|
1560
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1561
|
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
1562
|
+
* else `false`.
|
|
1563
|
+
*/ function $1e43d26c089d2f0d$var$arraySome(array, predicate) {
|
|
1564
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1565
|
+
while(++index < length){
|
|
1566
|
+
if (predicate(array[index], index, array)) return true;
|
|
1567
|
+
}
|
|
1568
|
+
return false;
|
|
1569
|
+
}
|
|
1570
|
+
var $1e43d26c089d2f0d$export$2e2bcd8739ae039 = $1e43d26c089d2f0d$var$arraySome;
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Checks if a `cache` value for `key` exists.
|
|
1575
|
+
*
|
|
1576
|
+
* @private
|
|
1577
|
+
* @param {Object} cache The cache to query.
|
|
1578
|
+
* @param {string} key The key of the entry to check.
|
|
1579
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1580
|
+
*/ function $b00380257ea1e97c$var$cacheHas(cache, key) {
|
|
1581
|
+
return cache.has(key);
|
|
1582
|
+
}
|
|
1583
|
+
var $b00380257ea1e97c$export$2e2bcd8739ae039 = $b00380257ea1e97c$var$cacheHas;
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
/** Used to compose bitmasks for value comparisons. */ var $4ca799790c9f6273$var$COMPARE_PARTIAL_FLAG = 1, $4ca799790c9f6273$var$COMPARE_UNORDERED_FLAG = 2;
|
|
1587
|
+
/**
|
|
1588
|
+
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
1589
|
+
* partial deep comparisons.
|
|
1590
|
+
*
|
|
1591
|
+
* @private
|
|
1592
|
+
* @param {Array} array The array to compare.
|
|
1593
|
+
* @param {Array} other The other array to compare.
|
|
1594
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1595
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
1596
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1597
|
+
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
1598
|
+
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
1599
|
+
*/ function $4ca799790c9f6273$var$equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
1600
|
+
var isPartial = bitmask & $4ca799790c9f6273$var$COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
1601
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
|
|
1602
|
+
// Check that cyclic values are equal.
|
|
1603
|
+
var arrStacked = stack.get(array);
|
|
1604
|
+
var othStacked = stack.get(other);
|
|
1605
|
+
if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
|
|
1606
|
+
var index = -1, result = true, seen = bitmask & $4ca799790c9f6273$var$COMPARE_UNORDERED_FLAG ? new (0, $cf32d2f8e3c66b80$export$2e2bcd8739ae039) : undefined;
|
|
1607
|
+
stack.set(array, other);
|
|
1608
|
+
stack.set(other, array);
|
|
1609
|
+
// Ignore non-index properties.
|
|
1610
|
+
while(++index < arrLength){
|
|
1611
|
+
var arrValue = array[index], othValue = other[index];
|
|
1612
|
+
if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
1613
|
+
if (compared !== undefined) {
|
|
1614
|
+
if (compared) continue;
|
|
1615
|
+
result = false;
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
// Recursively compare arrays (susceptible to call stack limits).
|
|
1619
|
+
if (seen) {
|
|
1620
|
+
if (!(0, $1e43d26c089d2f0d$export$2e2bcd8739ae039)(other, function(othValue, othIndex) {
|
|
1621
|
+
if (!(0, $b00380257ea1e97c$export$2e2bcd8739ae039)(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
|
|
1622
|
+
})) {
|
|
1623
|
+
result = false;
|
|
1624
|
+
break;
|
|
1625
|
+
}
|
|
1626
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
1627
|
+
result = false;
|
|
1628
|
+
break;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
stack["delete"](array);
|
|
1632
|
+
stack["delete"](other);
|
|
1633
|
+
return result;
|
|
1634
|
+
}
|
|
1635
|
+
var $4ca799790c9f6273$export$2e2bcd8739ae039 = $4ca799790c9f6273$var$equalArrays;
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1641
|
+
/** Built-in value references. */ var $94ae4469dbfdbf00$var$Uint8Array = (0, $cBFFg.default).Uint8Array;
|
|
1642
|
+
var $94ae4469dbfdbf00$export$2e2bcd8739ae039 = $94ae4469dbfdbf00$var$Uint8Array;
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Converts `map` to its key-value pairs.
|
|
1649
|
+
*
|
|
1650
|
+
* @private
|
|
1651
|
+
* @param {Object} map The map to convert.
|
|
1652
|
+
* @returns {Array} Returns the key-value pairs.
|
|
1653
|
+
*/ function $d3842163cb3d3beb$var$mapToArray(map) {
|
|
1654
|
+
var index = -1, result = Array(map.size);
|
|
1655
|
+
map.forEach(function(value, key) {
|
|
1656
|
+
result[++index] = [
|
|
1657
|
+
key,
|
|
1658
|
+
value
|
|
1659
|
+
];
|
|
1660
|
+
});
|
|
1661
|
+
return result;
|
|
1662
|
+
}
|
|
1663
|
+
var $d3842163cb3d3beb$export$2e2bcd8739ae039 = $d3842163cb3d3beb$var$mapToArray;
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Converts `set` to an array of its values.
|
|
1668
|
+
*
|
|
1669
|
+
* @private
|
|
1670
|
+
* @param {Object} set The set to convert.
|
|
1671
|
+
* @returns {Array} Returns the values.
|
|
1672
|
+
*/ function $215406fd1eec4aa1$var$setToArray(set) {
|
|
1673
|
+
var index = -1, result = Array(set.size);
|
|
1674
|
+
set.forEach(function(value) {
|
|
1675
|
+
result[++index] = value;
|
|
1676
|
+
});
|
|
1677
|
+
return result;
|
|
1678
|
+
}
|
|
1679
|
+
var $215406fd1eec4aa1$export$2e2bcd8739ae039 = $215406fd1eec4aa1$var$setToArray;
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
/** Used to compose bitmasks for value comparisons. */ var $8d524d2d7cccde51$var$COMPARE_PARTIAL_FLAG = 1, $8d524d2d7cccde51$var$COMPARE_UNORDERED_FLAG = 2;
|
|
1683
|
+
/** `Object#toString` result references. */ var $8d524d2d7cccde51$var$boolTag = "[object Boolean]", $8d524d2d7cccde51$var$dateTag = "[object Date]", $8d524d2d7cccde51$var$errorTag = "[object Error]", $8d524d2d7cccde51$var$mapTag = "[object Map]", $8d524d2d7cccde51$var$numberTag = "[object Number]", $8d524d2d7cccde51$var$regexpTag = "[object RegExp]", $8d524d2d7cccde51$var$setTag = "[object Set]", $8d524d2d7cccde51$var$stringTag = "[object String]", $8d524d2d7cccde51$var$symbolTag = "[object Symbol]";
|
|
1684
|
+
var $8d524d2d7cccde51$var$arrayBufferTag = "[object ArrayBuffer]", $8d524d2d7cccde51$var$dataViewTag = "[object DataView]";
|
|
1685
|
+
/** Used to convert symbols to primitives and strings. */ var $8d524d2d7cccde51$var$symbolProto = (0, $31256154b144d6ac$export$2e2bcd8739ae039) ? (0, $31256154b144d6ac$export$2e2bcd8739ae039).prototype : undefined, $8d524d2d7cccde51$var$symbolValueOf = $8d524d2d7cccde51$var$symbolProto ? $8d524d2d7cccde51$var$symbolProto.valueOf : undefined;
|
|
1686
|
+
/**
|
|
1687
|
+
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
1688
|
+
* the same `toStringTag`.
|
|
1689
|
+
*
|
|
1690
|
+
* **Note:** This function only supports comparing values with tags of
|
|
1691
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
1692
|
+
*
|
|
1693
|
+
* @private
|
|
1694
|
+
* @param {Object} object The object to compare.
|
|
1695
|
+
* @param {Object} other The other object to compare.
|
|
1696
|
+
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
1697
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1698
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
1699
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1700
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
1701
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
1702
|
+
*/ function $8d524d2d7cccde51$var$equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1703
|
+
switch(tag){
|
|
1704
|
+
case $8d524d2d7cccde51$var$dataViewTag:
|
|
1705
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
|
|
1706
|
+
object = object.buffer;
|
|
1707
|
+
other = other.buffer;
|
|
1708
|
+
case $8d524d2d7cccde51$var$arrayBufferTag:
|
|
1709
|
+
if (object.byteLength != other.byteLength || !equalFunc(new (0, $94ae4469dbfdbf00$export$2e2bcd8739ae039)(object), new (0, $94ae4469dbfdbf00$export$2e2bcd8739ae039)(other))) return false;
|
|
1710
|
+
return true;
|
|
1711
|
+
case $8d524d2d7cccde51$var$boolTag:
|
|
1712
|
+
case $8d524d2d7cccde51$var$dateTag:
|
|
1713
|
+
case $8d524d2d7cccde51$var$numberTag:
|
|
1714
|
+
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
1715
|
+
// Invalid dates are coerced to `NaN`.
|
|
1716
|
+
return (0, $c722e1d89fff12e9$export$2e2bcd8739ae039)(+object, +other);
|
|
1717
|
+
case $8d524d2d7cccde51$var$errorTag:
|
|
1718
|
+
return object.name == other.name && object.message == other.message;
|
|
1719
|
+
case $8d524d2d7cccde51$var$regexpTag:
|
|
1720
|
+
case $8d524d2d7cccde51$var$stringTag:
|
|
1721
|
+
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
1722
|
+
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
1723
|
+
// for more details.
|
|
1724
|
+
return object == other + "";
|
|
1725
|
+
case $8d524d2d7cccde51$var$mapTag:
|
|
1726
|
+
var convert = (0, $d3842163cb3d3beb$export$2e2bcd8739ae039);
|
|
1727
|
+
case $8d524d2d7cccde51$var$setTag:
|
|
1728
|
+
var isPartial = bitmask & $8d524d2d7cccde51$var$COMPARE_PARTIAL_FLAG;
|
|
1729
|
+
convert || (convert = (0, $215406fd1eec4aa1$export$2e2bcd8739ae039));
|
|
1730
|
+
if (object.size != other.size && !isPartial) return false;
|
|
1731
|
+
// Assume cyclic values are equal.
|
|
1732
|
+
var stacked = stack.get(object);
|
|
1733
|
+
if (stacked) return stacked == other;
|
|
1734
|
+
bitmask |= $8d524d2d7cccde51$var$COMPARE_UNORDERED_FLAG;
|
|
1735
|
+
// Recursively compare objects (susceptible to call stack limits).
|
|
1736
|
+
stack.set(object, other);
|
|
1737
|
+
var result = (0, $4ca799790c9f6273$export$2e2bcd8739ae039)(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1738
|
+
stack["delete"](object);
|
|
1739
|
+
return result;
|
|
1740
|
+
case $8d524d2d7cccde51$var$symbolTag:
|
|
1741
|
+
if ($8d524d2d7cccde51$var$symbolValueOf) return $8d524d2d7cccde51$var$symbolValueOf.call(object) == $8d524d2d7cccde51$var$symbolValueOf.call(other);
|
|
1742
|
+
}
|
|
1743
|
+
return false;
|
|
1744
|
+
}
|
|
1745
|
+
var $8d524d2d7cccde51$export$2e2bcd8739ae039 = $8d524d2d7cccde51$var$equalByTag;
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* Appends the elements of `values` to `array`.
|
|
1750
|
+
*
|
|
1751
|
+
* @private
|
|
1752
|
+
* @param {Array} array The array to modify.
|
|
1753
|
+
* @param {Array} values The values to append.
|
|
1754
|
+
* @returns {Array} Returns `array`.
|
|
1755
|
+
*/ function $1914dbcd3e64cc69$var$arrayPush(array, values) {
|
|
1756
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1757
|
+
while(++index < length)array[offset + index] = values[index];
|
|
1758
|
+
return array;
|
|
1759
|
+
}
|
|
1760
|
+
var $1914dbcd3e64cc69$export$2e2bcd8739ae039 = $1914dbcd3e64cc69$var$arrayPush;
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1766
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1767
|
+
* symbols of `object`.
|
|
1768
|
+
*
|
|
1769
|
+
* @private
|
|
1770
|
+
* @param {Object} object The object to query.
|
|
1771
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1772
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1773
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1774
|
+
*/ function $eccaa347a6690902$var$baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1775
|
+
var result = keysFunc(object);
|
|
1776
|
+
return (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(object) ? result : (0, $1914dbcd3e64cc69$export$2e2bcd8739ae039)(result, symbolsFunc(object));
|
|
1777
|
+
}
|
|
1778
|
+
var $eccaa347a6690902$export$2e2bcd8739ae039 = $eccaa347a6690902$var$baseGetAllKeys;
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* This method returns a new empty array.
|
|
1784
|
+
*
|
|
1785
|
+
* @static
|
|
1786
|
+
* @memberOf _
|
|
1787
|
+
* @since 4.13.0
|
|
1788
|
+
* @category Util
|
|
1789
|
+
* @returns {Array} Returns the new empty array.
|
|
1790
|
+
* @example
|
|
1791
|
+
*
|
|
1792
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1793
|
+
*
|
|
1794
|
+
* console.log(arrays);
|
|
1795
|
+
* // => [[], []]
|
|
1796
|
+
*
|
|
1797
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1798
|
+
* // => false
|
|
1799
|
+
*/ function $e0afbf8b80ba0a68$var$stubArray() {
|
|
1800
|
+
return [];
|
|
1801
|
+
}
|
|
1802
|
+
var $e0afbf8b80ba0a68$export$2e2bcd8739ae039 = $e0afbf8b80ba0a68$var$stubArray;
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/** Used for built-in method references. */ var $eb17f050895e8e4c$var$objectProto = Object.prototype;
|
|
1806
|
+
/** Built-in value references. */ var $eb17f050895e8e4c$var$propertyIsEnumerable = $eb17f050895e8e4c$var$objectProto.propertyIsEnumerable;
|
|
1807
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var $eb17f050895e8e4c$var$nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1808
|
+
/**
|
|
1809
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
1810
|
+
*
|
|
1811
|
+
* @private
|
|
1812
|
+
* @param {Object} object The object to query.
|
|
1813
|
+
* @returns {Array} Returns the array of symbols.
|
|
1814
|
+
*/ var $eb17f050895e8e4c$var$getSymbols = !$eb17f050895e8e4c$var$nativeGetSymbols ? (0, $e0afbf8b80ba0a68$export$2e2bcd8739ae039) : function(object) {
|
|
1815
|
+
if (object == null) return [];
|
|
1816
|
+
object = Object(object);
|
|
1817
|
+
return (0, $47f6d3a8ca5b6c69$export$2e2bcd8739ae039)($eb17f050895e8e4c$var$nativeGetSymbols(object), function(symbol) {
|
|
1818
|
+
return $eb17f050895e8e4c$var$propertyIsEnumerable.call(object, symbol);
|
|
1819
|
+
});
|
|
1820
|
+
};
|
|
1821
|
+
var $eb17f050895e8e4c$export$2e2bcd8739ae039 = $eb17f050895e8e4c$var$getSymbols;
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1827
|
+
*
|
|
1828
|
+
* @private
|
|
1829
|
+
* @param {Object} object The object to query.
|
|
1830
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1831
|
+
*/ function $2888f94fc01a2270$var$getAllKeys(object) {
|
|
1832
|
+
return (0, $eccaa347a6690902$export$2e2bcd8739ae039)(object, (0, $b0738ab9823f0933$export$2e2bcd8739ae039), (0, $eb17f050895e8e4c$export$2e2bcd8739ae039));
|
|
1833
|
+
}
|
|
1834
|
+
var $2888f94fc01a2270$export$2e2bcd8739ae039 = $2888f94fc01a2270$var$getAllKeys;
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/** Used to compose bitmasks for value comparisons. */ var $dab74146cf6e0ffd$var$COMPARE_PARTIAL_FLAG = 1;
|
|
1838
|
+
/** Used for built-in method references. */ var $dab74146cf6e0ffd$var$objectProto = Object.prototype;
|
|
1839
|
+
/** Used to check objects for own properties. */ var $dab74146cf6e0ffd$var$hasOwnProperty = $dab74146cf6e0ffd$var$objectProto.hasOwnProperty;
|
|
1840
|
+
/**
|
|
1841
|
+
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
1842
|
+
* partial deep comparisons.
|
|
1843
|
+
*
|
|
1844
|
+
* @private
|
|
1845
|
+
* @param {Object} object The object to compare.
|
|
1846
|
+
* @param {Object} other The other object to compare.
|
|
1847
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1848
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
1849
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1850
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
1851
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
1852
|
+
*/ function $dab74146cf6e0ffd$var$equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1853
|
+
var isPartial = bitmask & $dab74146cf6e0ffd$var$COMPARE_PARTIAL_FLAG, objProps = (0, $2888f94fc01a2270$export$2e2bcd8739ae039)(object), objLength = objProps.length, othProps = (0, $2888f94fc01a2270$export$2e2bcd8739ae039)(other), othLength = othProps.length;
|
|
1854
|
+
if (objLength != othLength && !isPartial) return false;
|
|
1855
|
+
var index = objLength;
|
|
1856
|
+
while(index--){
|
|
1857
|
+
var key = objProps[index];
|
|
1858
|
+
if (!(isPartial ? key in other : $dab74146cf6e0ffd$var$hasOwnProperty.call(other, key))) return false;
|
|
1859
|
+
}
|
|
1860
|
+
// Check that cyclic values are equal.
|
|
1861
|
+
var objStacked = stack.get(object);
|
|
1862
|
+
var othStacked = stack.get(other);
|
|
1863
|
+
if (objStacked && othStacked) return objStacked == other && othStacked == object;
|
|
1864
|
+
var result = true;
|
|
1865
|
+
stack.set(object, other);
|
|
1866
|
+
stack.set(other, object);
|
|
1867
|
+
var skipCtor = isPartial;
|
|
1868
|
+
while(++index < objLength){
|
|
1869
|
+
key = objProps[index];
|
|
1870
|
+
var objValue = object[key], othValue = other[key];
|
|
1871
|
+
if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
1872
|
+
// Recursively compare objects (susceptible to call stack limits).
|
|
1873
|
+
if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
1874
|
+
result = false;
|
|
1875
|
+
break;
|
|
1876
|
+
}
|
|
1877
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
1878
|
+
}
|
|
1879
|
+
if (result && !skipCtor) {
|
|
1880
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
1881
|
+
// Non `Object` object instances with different constructors are not equal.
|
|
1882
|
+
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
|
|
1883
|
+
}
|
|
1884
|
+
stack["delete"](object);
|
|
1885
|
+
stack["delete"](other);
|
|
1886
|
+
return result;
|
|
1887
|
+
}
|
|
1888
|
+
var $dab74146cf6e0ffd$export$2e2bcd8739ae039 = $dab74146cf6e0ffd$var$equalObjects;
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1894
|
+
/* Built-in method references that are verified to be native. */ var $b0214420c145b21b$var$DataView = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)((0, $cBFFg.default), "DataView");
|
|
1895
|
+
var $b0214420c145b21b$export$2e2bcd8739ae039 = $b0214420c145b21b$var$DataView;
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1902
|
+
/* Built-in method references that are verified to be native. */ var $2f63c3ee7b58238b$var$Promise = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)((0, $cBFFg.default), "Promise");
|
|
1903
|
+
var $2f63c3ee7b58238b$export$2e2bcd8739ae039 = $2f63c3ee7b58238b$var$Promise;
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1909
|
+
/* Built-in method references that are verified to be native. */ var $ef41f05fcc8e399b$var$Set = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)((0, $cBFFg.default), "Set");
|
|
1910
|
+
var $ef41f05fcc8e399b$export$2e2bcd8739ae039 = $ef41f05fcc8e399b$var$Set;
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
var $cBFFg = parcelRequire("cBFFg");
|
|
1916
|
+
/* Built-in method references that are verified to be native. */ var $37d1fb7704c35ae9$var$WeakMap = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)((0, $cBFFg.default), "WeakMap");
|
|
1917
|
+
var $37d1fb7704c35ae9$export$2e2bcd8739ae039 = $37d1fb7704c35ae9$var$WeakMap;
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
/** `Object#toString` result references. */ var $bf8263b54a0b4f71$var$mapTag = "[object Map]", $bf8263b54a0b4f71$var$objectTag = "[object Object]", $bf8263b54a0b4f71$var$promiseTag = "[object Promise]", $bf8263b54a0b4f71$var$setTag = "[object Set]", $bf8263b54a0b4f71$var$weakMapTag = "[object WeakMap]";
|
|
1923
|
+
var $bf8263b54a0b4f71$var$dataViewTag = "[object DataView]";
|
|
1924
|
+
/** Used to detect maps, sets, and weakmaps. */ var $bf8263b54a0b4f71$var$dataViewCtorString = (0, $7883895913762d88$export$2e2bcd8739ae039)((0, $b0214420c145b21b$export$2e2bcd8739ae039)), $bf8263b54a0b4f71$var$mapCtorString = (0, $7883895913762d88$export$2e2bcd8739ae039)((0, $34897db59cda48d6$export$2e2bcd8739ae039)), $bf8263b54a0b4f71$var$promiseCtorString = (0, $7883895913762d88$export$2e2bcd8739ae039)((0, $2f63c3ee7b58238b$export$2e2bcd8739ae039)), $bf8263b54a0b4f71$var$setCtorString = (0, $7883895913762d88$export$2e2bcd8739ae039)((0, $ef41f05fcc8e399b$export$2e2bcd8739ae039)), $bf8263b54a0b4f71$var$weakMapCtorString = (0, $7883895913762d88$export$2e2bcd8739ae039)((0, $37d1fb7704c35ae9$export$2e2bcd8739ae039));
|
|
1925
|
+
/**
|
|
1926
|
+
* Gets the `toStringTag` of `value`.
|
|
1927
|
+
*
|
|
1928
|
+
* @private
|
|
1929
|
+
* @param {*} value The value to query.
|
|
1930
|
+
* @returns {string} Returns the `toStringTag`.
|
|
1931
|
+
*/ var $bf8263b54a0b4f71$var$getTag = (0, $1907102e5dd48704$export$2e2bcd8739ae039);
|
|
1932
|
+
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
1933
|
+
if ((0, $b0214420c145b21b$export$2e2bcd8739ae039) && $bf8263b54a0b4f71$var$getTag(new (0, $b0214420c145b21b$export$2e2bcd8739ae039)(new ArrayBuffer(1))) != $bf8263b54a0b4f71$var$dataViewTag || (0, $34897db59cda48d6$export$2e2bcd8739ae039) && $bf8263b54a0b4f71$var$getTag(new (0, $34897db59cda48d6$export$2e2bcd8739ae039)) != $bf8263b54a0b4f71$var$mapTag || (0, $2f63c3ee7b58238b$export$2e2bcd8739ae039) && $bf8263b54a0b4f71$var$getTag((0, $2f63c3ee7b58238b$export$2e2bcd8739ae039).resolve()) != $bf8263b54a0b4f71$var$promiseTag || (0, $ef41f05fcc8e399b$export$2e2bcd8739ae039) && $bf8263b54a0b4f71$var$getTag(new (0, $ef41f05fcc8e399b$export$2e2bcd8739ae039)) != $bf8263b54a0b4f71$var$setTag || (0, $37d1fb7704c35ae9$export$2e2bcd8739ae039) && $bf8263b54a0b4f71$var$getTag(new (0, $37d1fb7704c35ae9$export$2e2bcd8739ae039)) != $bf8263b54a0b4f71$var$weakMapTag) $bf8263b54a0b4f71$var$getTag = function(value) {
|
|
1934
|
+
var result = (0, $1907102e5dd48704$export$2e2bcd8739ae039)(value), Ctor = result == $bf8263b54a0b4f71$var$objectTag ? value.constructor : undefined, ctorString = Ctor ? (0, $7883895913762d88$export$2e2bcd8739ae039)(Ctor) : "";
|
|
1935
|
+
if (ctorString) switch(ctorString){
|
|
1936
|
+
case $bf8263b54a0b4f71$var$dataViewCtorString:
|
|
1937
|
+
return $bf8263b54a0b4f71$var$dataViewTag;
|
|
1938
|
+
case $bf8263b54a0b4f71$var$mapCtorString:
|
|
1939
|
+
return $bf8263b54a0b4f71$var$mapTag;
|
|
1940
|
+
case $bf8263b54a0b4f71$var$promiseCtorString:
|
|
1941
|
+
return $bf8263b54a0b4f71$var$promiseTag;
|
|
1942
|
+
case $bf8263b54a0b4f71$var$setCtorString:
|
|
1943
|
+
return $bf8263b54a0b4f71$var$setTag;
|
|
1944
|
+
case $bf8263b54a0b4f71$var$weakMapCtorString:
|
|
1945
|
+
return $bf8263b54a0b4f71$var$weakMapTag;
|
|
1946
|
+
}
|
|
1947
|
+
return result;
|
|
1948
|
+
};
|
|
1949
|
+
var $bf8263b54a0b4f71$export$2e2bcd8739ae039 = $bf8263b54a0b4f71$var$getTag;
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
var $7ghSH = parcelRequire("7ghSH");
|
|
1955
|
+
|
|
1956
|
+
/** Used to compose bitmasks for value comparisons. */ var $c2e7806a00460768$var$COMPARE_PARTIAL_FLAG = 1;
|
|
1957
|
+
/** `Object#toString` result references. */ var $c2e7806a00460768$var$argsTag = "[object Arguments]", $c2e7806a00460768$var$arrayTag = "[object Array]", $c2e7806a00460768$var$objectTag = "[object Object]";
|
|
1958
|
+
/** Used for built-in method references. */ var $c2e7806a00460768$var$objectProto = Object.prototype;
|
|
1959
|
+
/** Used to check objects for own properties. */ var $c2e7806a00460768$var$hasOwnProperty = $c2e7806a00460768$var$objectProto.hasOwnProperty;
|
|
1960
|
+
/**
|
|
1961
|
+
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
1962
|
+
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
1963
|
+
* references to be compared.
|
|
1964
|
+
*
|
|
1965
|
+
* @private
|
|
1966
|
+
* @param {Object} object The object to compare.
|
|
1967
|
+
* @param {Object} other The other object to compare.
|
|
1968
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
1969
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
1970
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
1971
|
+
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
1972
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
1973
|
+
*/ function $c2e7806a00460768$var$baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1974
|
+
var objIsArr = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(object), othIsArr = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(other), objTag = objIsArr ? $c2e7806a00460768$var$arrayTag : (0, $bf8263b54a0b4f71$export$2e2bcd8739ae039)(object), othTag = othIsArr ? $c2e7806a00460768$var$arrayTag : (0, $bf8263b54a0b4f71$export$2e2bcd8739ae039)(other);
|
|
1975
|
+
objTag = objTag == $c2e7806a00460768$var$argsTag ? $c2e7806a00460768$var$objectTag : objTag;
|
|
1976
|
+
othTag = othTag == $c2e7806a00460768$var$argsTag ? $c2e7806a00460768$var$objectTag : othTag;
|
|
1977
|
+
var objIsObj = objTag == $c2e7806a00460768$var$objectTag, othIsObj = othTag == $c2e7806a00460768$var$objectTag, isSameTag = objTag == othTag;
|
|
1978
|
+
if (isSameTag && (0, $7ghSH.default)(object)) {
|
|
1979
|
+
if (!(0, $7ghSH.default)(other)) return false;
|
|
1980
|
+
objIsArr = true;
|
|
1981
|
+
objIsObj = false;
|
|
1982
|
+
}
|
|
1983
|
+
if (isSameTag && !objIsObj) {
|
|
1984
|
+
stack || (stack = new (0, $87781f7ccfcca9d0$export$2e2bcd8739ae039));
|
|
1985
|
+
return objIsArr || (0, $8fa7f154f72ec40e$export$2e2bcd8739ae039)(object) ? (0, $4ca799790c9f6273$export$2e2bcd8739ae039)(object, other, bitmask, customizer, equalFunc, stack) : (0, $8d524d2d7cccde51$export$2e2bcd8739ae039)(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
1986
|
+
}
|
|
1987
|
+
if (!(bitmask & $c2e7806a00460768$var$COMPARE_PARTIAL_FLAG)) {
|
|
1988
|
+
var objIsWrapped = objIsObj && $c2e7806a00460768$var$hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && $c2e7806a00460768$var$hasOwnProperty.call(other, "__wrapped__");
|
|
1989
|
+
if (objIsWrapped || othIsWrapped) {
|
|
1990
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
1991
|
+
stack || (stack = new (0, $87781f7ccfcca9d0$export$2e2bcd8739ae039));
|
|
1992
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
if (!isSameTag) return false;
|
|
1996
|
+
stack || (stack = new (0, $87781f7ccfcca9d0$export$2e2bcd8739ae039));
|
|
1997
|
+
return (0, $dab74146cf6e0ffd$export$2e2bcd8739ae039)(object, other, bitmask, customizer, equalFunc, stack);
|
|
1998
|
+
}
|
|
1999
|
+
var $c2e7806a00460768$export$2e2bcd8739ae039 = $c2e7806a00460768$var$baseIsEqualDeep;
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
2005
|
+
* and tracks traversed objects.
|
|
2006
|
+
*
|
|
2007
|
+
* @private
|
|
2008
|
+
* @param {*} value The value to compare.
|
|
2009
|
+
* @param {*} other The other value to compare.
|
|
2010
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
2011
|
+
* 1 - Unordered comparison
|
|
2012
|
+
* 2 - Partial comparison
|
|
2013
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
2014
|
+
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
2015
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
2016
|
+
*/ function $e1170e6ac39cfab1$var$baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
2017
|
+
if (value === other) return true;
|
|
2018
|
+
if (value == null || other == null || !(0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(value) && !(0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(other)) return value !== value && other !== other;
|
|
2019
|
+
return (0, $c2e7806a00460768$export$2e2bcd8739ae039)(value, other, bitmask, customizer, $e1170e6ac39cfab1$var$baseIsEqual, stack);
|
|
2020
|
+
}
|
|
2021
|
+
var $e1170e6ac39cfab1$export$2e2bcd8739ae039 = $e1170e6ac39cfab1$var$baseIsEqual;
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
/** Used to compose bitmasks for value comparisons. */ var $9807da562870783b$var$COMPARE_PARTIAL_FLAG = 1, $9807da562870783b$var$COMPARE_UNORDERED_FLAG = 2;
|
|
2025
|
+
/**
|
|
2026
|
+
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
2027
|
+
*
|
|
2028
|
+
* @private
|
|
2029
|
+
* @param {Object} object The object to inspect.
|
|
2030
|
+
* @param {Object} source The object of property values to match.
|
|
2031
|
+
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
2032
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
2033
|
+
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
2034
|
+
*/ function $9807da562870783b$var$baseIsMatch(object, source, matchData, customizer) {
|
|
2035
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2036
|
+
if (object == null) return !length;
|
|
2037
|
+
object = Object(object);
|
|
2038
|
+
while(index--){
|
|
2039
|
+
var data = matchData[index];
|
|
2040
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
|
|
2041
|
+
}
|
|
2042
|
+
while(++index < length){
|
|
2043
|
+
data = matchData[index];
|
|
2044
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
2045
|
+
if (noCustomizer && data[2]) {
|
|
2046
|
+
if (objValue === undefined && !(key in object)) return false;
|
|
2047
|
+
} else {
|
|
2048
|
+
var stack = new (0, $87781f7ccfcca9d0$export$2e2bcd8739ae039);
|
|
2049
|
+
if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
2050
|
+
if (!(result === undefined ? (0, $e1170e6ac39cfab1$export$2e2bcd8739ae039)(srcValue, objValue, $9807da562870783b$var$COMPARE_PARTIAL_FLAG | $9807da562870783b$var$COMPARE_UNORDERED_FLAG, customizer, stack) : result)) return false;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
return true;
|
|
2054
|
+
}
|
|
2055
|
+
var $9807da562870783b$export$2e2bcd8739ae039 = $9807da562870783b$var$baseIsMatch;
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
2061
|
+
*
|
|
2062
|
+
* @private
|
|
2063
|
+
* @param {*} value The value to check.
|
|
2064
|
+
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
2065
|
+
* equality comparisons, else `false`.
|
|
2066
|
+
*/ function $7c0b50a96c50339c$var$isStrictComparable(value) {
|
|
2067
|
+
return value === value && !(0, $f327b722d951deae$export$2e2bcd8739ae039)(value);
|
|
2068
|
+
}
|
|
2069
|
+
var $7c0b50a96c50339c$export$2e2bcd8739ae039 = $7c0b50a96c50339c$var$isStrictComparable;
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* Gets the property names, values, and compare flags of `object`.
|
|
2075
|
+
*
|
|
2076
|
+
* @private
|
|
2077
|
+
* @param {Object} object The object to query.
|
|
2078
|
+
* @returns {Array} Returns the match data of `object`.
|
|
2079
|
+
*/ function $7333cd3ce2f4bc68$var$getMatchData(object) {
|
|
2080
|
+
var result = (0, $b0738ab9823f0933$export$2e2bcd8739ae039)(object), length = result.length;
|
|
2081
|
+
while(length--){
|
|
2082
|
+
var key = result[length], value = object[key];
|
|
2083
|
+
result[length] = [
|
|
2084
|
+
key,
|
|
2085
|
+
value,
|
|
2086
|
+
(0, $7c0b50a96c50339c$export$2e2bcd8739ae039)(value)
|
|
2087
|
+
];
|
|
2088
|
+
}
|
|
2089
|
+
return result;
|
|
2090
|
+
}
|
|
2091
|
+
var $7333cd3ce2f4bc68$export$2e2bcd8739ae039 = $7333cd3ce2f4bc68$var$getMatchData;
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* A specialized version of `matchesProperty` for source values suitable
|
|
2096
|
+
* for strict equality comparisons, i.e. `===`.
|
|
2097
|
+
*
|
|
2098
|
+
* @private
|
|
2099
|
+
* @param {string} key The key of the property to get.
|
|
2100
|
+
* @param {*} srcValue The value to match.
|
|
2101
|
+
* @returns {Function} Returns the new spec function.
|
|
2102
|
+
*/ function $46082e5b62e5b933$var$matchesStrictComparable(key, srcValue) {
|
|
2103
|
+
return function(object) {
|
|
2104
|
+
if (object == null) return false;
|
|
2105
|
+
return object[key] === srcValue && (srcValue !== undefined || key in Object(object));
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
var $46082e5b62e5b933$export$2e2bcd8739ae039 = $46082e5b62e5b933$var$matchesStrictComparable;
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
2113
|
+
*
|
|
2114
|
+
* @private
|
|
2115
|
+
* @param {Object} source The object of property values to match.
|
|
2116
|
+
* @returns {Function} Returns the new spec function.
|
|
2117
|
+
*/ function $a96c46c5b5929171$var$baseMatches(source) {
|
|
2118
|
+
var matchData = (0, $7333cd3ce2f4bc68$export$2e2bcd8739ae039)(source);
|
|
2119
|
+
if (matchData.length == 1 && matchData[0][2]) return (0, $46082e5b62e5b933$export$2e2bcd8739ae039)(matchData[0][0], matchData[0][1]);
|
|
2120
|
+
return function(object) {
|
|
2121
|
+
return object === source || (0, $9807da562870783b$export$2e2bcd8739ae039)(object, source, matchData);
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
var $a96c46c5b5929171$export$2e2bcd8739ae039 = $a96c46c5b5929171$var$baseMatches;
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
/** `Object#toString` result references. */ var $acf6ce0b6c79e1c3$var$symbolTag = "[object Symbol]";
|
|
2133
|
+
/**
|
|
2134
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2135
|
+
*
|
|
2136
|
+
* @static
|
|
2137
|
+
* @memberOf _
|
|
2138
|
+
* @since 4.0.0
|
|
2139
|
+
* @category Lang
|
|
2140
|
+
* @param {*} value The value to check.
|
|
2141
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2142
|
+
* @example
|
|
2143
|
+
*
|
|
2144
|
+
* _.isSymbol(Symbol.iterator);
|
|
2145
|
+
* // => true
|
|
2146
|
+
*
|
|
2147
|
+
* _.isSymbol('abc');
|
|
2148
|
+
* // => false
|
|
2149
|
+
*/ function $acf6ce0b6c79e1c3$var$isSymbol(value) {
|
|
2150
|
+
return typeof value == "symbol" || (0, $30bfdc87473d5a2a$export$2e2bcd8739ae039)(value) && (0, $1907102e5dd48704$export$2e2bcd8739ae039)(value) == $acf6ce0b6c79e1c3$var$symbolTag;
|
|
2151
|
+
}
|
|
2152
|
+
var $acf6ce0b6c79e1c3$export$2e2bcd8739ae039 = $acf6ce0b6c79e1c3$var$isSymbol;
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
/** Used to match property names within property paths. */ var $4e570830b54578b7$var$reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $4e570830b54578b7$var$reIsPlainProp = /^\w*$/;
|
|
2156
|
+
/**
|
|
2157
|
+
* Checks if `value` is a property name and not a property path.
|
|
2158
|
+
*
|
|
2159
|
+
* @private
|
|
2160
|
+
* @param {*} value The value to check.
|
|
2161
|
+
* @param {Object} [object] The object to query keys on.
|
|
2162
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
2163
|
+
*/ function $4e570830b54578b7$var$isKey(value, object) {
|
|
2164
|
+
if ((0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value)) return false;
|
|
2165
|
+
var type = typeof value;
|
|
2166
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || (0, $acf6ce0b6c79e1c3$export$2e2bcd8739ae039)(value)) return true;
|
|
2167
|
+
return $4e570830b54578b7$var$reIsPlainProp.test(value) || !$4e570830b54578b7$var$reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
2168
|
+
}
|
|
2169
|
+
var $4e570830b54578b7$export$2e2bcd8739ae039 = $4e570830b54578b7$var$isKey;
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
/** Error message constants. */ var $96d2812db4b63915$var$FUNC_ERROR_TEXT = "Expected a function";
|
|
2174
|
+
/**
|
|
2175
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2176
|
+
* provided, it determines the cache key for storing the result based on the
|
|
2177
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
2178
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
2179
|
+
* is invoked with the `this` binding of the memoized function.
|
|
2180
|
+
*
|
|
2181
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2182
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2183
|
+
* constructor with one whose instances implement the
|
|
2184
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2185
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2186
|
+
*
|
|
2187
|
+
* @static
|
|
2188
|
+
* @memberOf _
|
|
2189
|
+
* @since 0.1.0
|
|
2190
|
+
* @category Function
|
|
2191
|
+
* @param {Function} func The function to have its output memoized.
|
|
2192
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2193
|
+
* @returns {Function} Returns the new memoized function.
|
|
2194
|
+
* @example
|
|
2195
|
+
*
|
|
2196
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
2197
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
2198
|
+
*
|
|
2199
|
+
* var values = _.memoize(_.values);
|
|
2200
|
+
* values(object);
|
|
2201
|
+
* // => [1, 2]
|
|
2202
|
+
*
|
|
2203
|
+
* values(other);
|
|
2204
|
+
* // => [3, 4]
|
|
2205
|
+
*
|
|
2206
|
+
* object.a = 2;
|
|
2207
|
+
* values(object);
|
|
2208
|
+
* // => [1, 2]
|
|
2209
|
+
*
|
|
2210
|
+
* // Modify the result cache.
|
|
2211
|
+
* values.cache.set(object, ['a', 'b']);
|
|
2212
|
+
* values(object);
|
|
2213
|
+
* // => ['a', 'b']
|
|
2214
|
+
*
|
|
2215
|
+
* // Replace `_.memoize.Cache`.
|
|
2216
|
+
* _.memoize.Cache = WeakMap;
|
|
2217
|
+
*/ function $96d2812db4b63915$var$memoize(func, resolver) {
|
|
2218
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError($96d2812db4b63915$var$FUNC_ERROR_TEXT);
|
|
2219
|
+
var memoized = function() {
|
|
2220
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
2221
|
+
if (cache.has(key)) return cache.get(key);
|
|
2222
|
+
var result = func.apply(this, args);
|
|
2223
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
2224
|
+
return result;
|
|
2225
|
+
};
|
|
2226
|
+
memoized.cache = new ($96d2812db4b63915$var$memoize.Cache || (0, $6fbdde6cf6182d22$export$2e2bcd8739ae039));
|
|
2227
|
+
return memoized;
|
|
2228
|
+
}
|
|
2229
|
+
// Expose `MapCache`.
|
|
2230
|
+
$96d2812db4b63915$var$memoize.Cache = (0, $6fbdde6cf6182d22$export$2e2bcd8739ae039);
|
|
2231
|
+
var $96d2812db4b63915$export$2e2bcd8739ae039 = $96d2812db4b63915$var$memoize;
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
/** Used as the maximum memoize cache size. */ var $c31ab8f88c97edaf$var$MAX_MEMOIZE_SIZE = 500;
|
|
2235
|
+
/**
|
|
2236
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2237
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2238
|
+
*
|
|
2239
|
+
* @private
|
|
2240
|
+
* @param {Function} func The function to have its output memoized.
|
|
2241
|
+
* @returns {Function} Returns the new memoized function.
|
|
2242
|
+
*/ function $c31ab8f88c97edaf$var$memoizeCapped(func) {
|
|
2243
|
+
var result = (0, $96d2812db4b63915$export$2e2bcd8739ae039)(func, function(key) {
|
|
2244
|
+
if (cache.size === $c31ab8f88c97edaf$var$MAX_MEMOIZE_SIZE) cache.clear();
|
|
2245
|
+
return key;
|
|
2246
|
+
});
|
|
2247
|
+
var cache = result.cache;
|
|
2248
|
+
return result;
|
|
2249
|
+
}
|
|
2250
|
+
var $c31ab8f88c97edaf$export$2e2bcd8739ae039 = $c31ab8f88c97edaf$var$memoizeCapped;
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
/** Used to match property names within property paths. */ var $8a39490189dc2a3f$var$rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2254
|
+
/** Used to match backslashes in property paths. */ var $8a39490189dc2a3f$var$reEscapeChar = /\\(\\)?/g;
|
|
2255
|
+
/**
|
|
2256
|
+
* Converts `string` to a property path array.
|
|
2257
|
+
*
|
|
2258
|
+
* @private
|
|
2259
|
+
* @param {string} string The string to convert.
|
|
2260
|
+
* @returns {Array} Returns the property path array.
|
|
2261
|
+
*/ var $8a39490189dc2a3f$var$stringToPath = (0, $c31ab8f88c97edaf$export$2e2bcd8739ae039)(function(string) {
|
|
2262
|
+
var result = [];
|
|
2263
|
+
if (string.charCodeAt(0) === 46 /* . */ ) result.push("");
|
|
2264
|
+
string.replace($8a39490189dc2a3f$var$rePropName, function(match, number, quote, subString) {
|
|
2265
|
+
result.push(quote ? subString.replace($8a39490189dc2a3f$var$reEscapeChar, "$1") : number || match);
|
|
2266
|
+
});
|
|
2267
|
+
return result;
|
|
2268
|
+
});
|
|
2269
|
+
var $8a39490189dc2a3f$export$2e2bcd8739ae039 = $8a39490189dc2a3f$var$stringToPath;
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2275
|
+
* shorthands.
|
|
2276
|
+
*
|
|
2277
|
+
* @private
|
|
2278
|
+
* @param {Array} [array] The array to iterate over.
|
|
2279
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2280
|
+
* @returns {Array} Returns the new mapped array.
|
|
2281
|
+
*/ function $82f33e31f1de2868$var$arrayMap(array, iteratee) {
|
|
2282
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
2283
|
+
while(++index < length)result[index] = iteratee(array[index], index, array);
|
|
2284
|
+
return result;
|
|
2285
|
+
}
|
|
2286
|
+
var $82f33e31f1de2868$export$2e2bcd8739ae039 = $82f33e31f1de2868$var$arrayMap;
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
/** Used as references for various `Number` constants. */ var $70b12a2aa546a212$var$INFINITY = 1 / 0;
|
|
2292
|
+
/** Used to convert symbols to primitives and strings. */ var $70b12a2aa546a212$var$symbolProto = (0, $31256154b144d6ac$export$2e2bcd8739ae039) ? (0, $31256154b144d6ac$export$2e2bcd8739ae039).prototype : undefined, $70b12a2aa546a212$var$symbolToString = $70b12a2aa546a212$var$symbolProto ? $70b12a2aa546a212$var$symbolProto.toString : undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2295
|
+
* values to empty strings.
|
|
2296
|
+
*
|
|
2297
|
+
* @private
|
|
2298
|
+
* @param {*} value The value to process.
|
|
2299
|
+
* @returns {string} Returns the string.
|
|
2300
|
+
*/ function $70b12a2aa546a212$var$baseToString(value) {
|
|
2301
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
2302
|
+
if (typeof value == "string") return value;
|
|
2303
|
+
if ((0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value)) // Recursively convert values (susceptible to call stack limits).
|
|
2304
|
+
return (0, $82f33e31f1de2868$export$2e2bcd8739ae039)(value, $70b12a2aa546a212$var$baseToString) + "";
|
|
2305
|
+
if ((0, $acf6ce0b6c79e1c3$export$2e2bcd8739ae039)(value)) return $70b12a2aa546a212$var$symbolToString ? $70b12a2aa546a212$var$symbolToString.call(value) : "";
|
|
2306
|
+
var result = value + "";
|
|
2307
|
+
return result == "0" && 1 / value == -$70b12a2aa546a212$var$INFINITY ? "-0" : result;
|
|
2308
|
+
}
|
|
2309
|
+
var $70b12a2aa546a212$export$2e2bcd8739ae039 = $70b12a2aa546a212$var$baseToString;
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2314
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2315
|
+
*
|
|
2316
|
+
* @static
|
|
2317
|
+
* @memberOf _
|
|
2318
|
+
* @since 4.0.0
|
|
2319
|
+
* @category Lang
|
|
2320
|
+
* @param {*} value The value to convert.
|
|
2321
|
+
* @returns {string} Returns the converted string.
|
|
2322
|
+
* @example
|
|
2323
|
+
*
|
|
2324
|
+
* _.toString(null);
|
|
2325
|
+
* // => ''
|
|
2326
|
+
*
|
|
2327
|
+
* _.toString(-0);
|
|
2328
|
+
* // => '-0'
|
|
2329
|
+
*
|
|
2330
|
+
* _.toString([1, 2, 3]);
|
|
2331
|
+
* // => '1,2,3'
|
|
2332
|
+
*/ function $7f265029f6c37de9$var$toString(value) {
|
|
2333
|
+
return value == null ? "" : (0, $70b12a2aa546a212$export$2e2bcd8739ae039)(value);
|
|
2334
|
+
}
|
|
2335
|
+
var $7f265029f6c37de9$export$2e2bcd8739ae039 = $7f265029f6c37de9$var$toString;
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* Casts `value` to a path array if it's not one.
|
|
2340
|
+
*
|
|
2341
|
+
* @private
|
|
2342
|
+
* @param {*} value The value to inspect.
|
|
2343
|
+
* @param {Object} [object] The object to query keys on.
|
|
2344
|
+
* @returns {Array} Returns the cast property path array.
|
|
2345
|
+
*/ function $1b31811fd803df9a$var$castPath(value, object) {
|
|
2346
|
+
if ((0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value)) return value;
|
|
2347
|
+
return (0, $4e570830b54578b7$export$2e2bcd8739ae039)(value, object) ? [
|
|
2348
|
+
value
|
|
2349
|
+
] : (0, $8a39490189dc2a3f$export$2e2bcd8739ae039)((0, $7f265029f6c37de9$export$2e2bcd8739ae039)(value));
|
|
2350
|
+
}
|
|
2351
|
+
var $1b31811fd803df9a$export$2e2bcd8739ae039 = $1b31811fd803df9a$var$castPath;
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/** Used as references for various `Number` constants. */ var $065647068fff6b7e$var$INFINITY = 1 / 0;
|
|
2356
|
+
/**
|
|
2357
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
2358
|
+
*
|
|
2359
|
+
* @private
|
|
2360
|
+
* @param {*} value The value to inspect.
|
|
2361
|
+
* @returns {string|symbol} Returns the key.
|
|
2362
|
+
*/ function $065647068fff6b7e$var$toKey(value) {
|
|
2363
|
+
if (typeof value == "string" || (0, $acf6ce0b6c79e1c3$export$2e2bcd8739ae039)(value)) return value;
|
|
2364
|
+
var result = value + "";
|
|
2365
|
+
return result == "0" && 1 / value == -$065647068fff6b7e$var$INFINITY ? "-0" : result;
|
|
2366
|
+
}
|
|
2367
|
+
var $065647068fff6b7e$export$2e2bcd8739ae039 = $065647068fff6b7e$var$toKey;
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* The base implementation of `_.get` without support for default values.
|
|
2372
|
+
*
|
|
2373
|
+
* @private
|
|
2374
|
+
* @param {Object} object The object to query.
|
|
2375
|
+
* @param {Array|string} path The path of the property to get.
|
|
2376
|
+
* @returns {*} Returns the resolved value.
|
|
2377
|
+
*/ function $5bcbe90542b2c925$var$baseGet(object, path) {
|
|
2378
|
+
path = (0, $1b31811fd803df9a$export$2e2bcd8739ae039)(path, object);
|
|
2379
|
+
var index = 0, length = path.length;
|
|
2380
|
+
while(object != null && index < length)object = object[(0, $065647068fff6b7e$export$2e2bcd8739ae039)(path[index++])];
|
|
2381
|
+
return index && index == length ? object : undefined;
|
|
2382
|
+
}
|
|
2383
|
+
var $5bcbe90542b2c925$export$2e2bcd8739ae039 = $5bcbe90542b2c925$var$baseGet;
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
2388
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
2389
|
+
*
|
|
2390
|
+
* @static
|
|
2391
|
+
* @memberOf _
|
|
2392
|
+
* @since 3.7.0
|
|
2393
|
+
* @category Object
|
|
2394
|
+
* @param {Object} object The object to query.
|
|
2395
|
+
* @param {Array|string} path The path of the property to get.
|
|
2396
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
2397
|
+
* @returns {*} Returns the resolved value.
|
|
2398
|
+
* @example
|
|
2399
|
+
*
|
|
2400
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
2401
|
+
*
|
|
2402
|
+
* _.get(object, 'a[0].b.c');
|
|
2403
|
+
* // => 3
|
|
2404
|
+
*
|
|
2405
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
2406
|
+
* // => 3
|
|
2407
|
+
*
|
|
2408
|
+
* _.get(object, 'a.b.c', 'default');
|
|
2409
|
+
* // => 'default'
|
|
2410
|
+
*/ function $131d32f858236d04$var$get(object, path, defaultValue) {
|
|
2411
|
+
var result = object == null ? undefined : (0, $5bcbe90542b2c925$export$2e2bcd8739ae039)(object, path);
|
|
2412
|
+
return result === undefined ? defaultValue : result;
|
|
2413
|
+
}
|
|
2414
|
+
var $131d32f858236d04$export$2e2bcd8739ae039 = $131d32f858236d04$var$get;
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* The base implementation of `_.hasIn` without support for deep paths.
|
|
2419
|
+
*
|
|
2420
|
+
* @private
|
|
2421
|
+
* @param {Object} [object] The object to query.
|
|
2422
|
+
* @param {Array|string} key The key to check.
|
|
2423
|
+
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
2424
|
+
*/ function $d6bbcd07eae8dfc9$var$baseHasIn(object, key) {
|
|
2425
|
+
return object != null && key in Object(object);
|
|
2426
|
+
}
|
|
2427
|
+
var $d6bbcd07eae8dfc9$export$2e2bcd8739ae039 = $d6bbcd07eae8dfc9$var$baseHasIn;
|
|
2428
|
+
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* Checks if `path` exists on `object`.
|
|
2438
|
+
*
|
|
2439
|
+
* @private
|
|
2440
|
+
* @param {Object} object The object to query.
|
|
2441
|
+
* @param {Array|string} path The path to check.
|
|
2442
|
+
* @param {Function} hasFunc The function to check properties.
|
|
2443
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2444
|
+
*/ function $d40f571244ba92be$var$hasPath(object, path, hasFunc) {
|
|
2445
|
+
path = (0, $1b31811fd803df9a$export$2e2bcd8739ae039)(path, object);
|
|
2446
|
+
var index = -1, length = path.length, result = false;
|
|
2447
|
+
while(++index < length){
|
|
2448
|
+
var key = (0, $065647068fff6b7e$export$2e2bcd8739ae039)(path[index]);
|
|
2449
|
+
if (!(result = object != null && hasFunc(object, key))) break;
|
|
2450
|
+
object = object[key];
|
|
2451
|
+
}
|
|
2452
|
+
if (result || ++index != length) return result;
|
|
2453
|
+
length = object == null ? 0 : object.length;
|
|
2454
|
+
return !!length && (0, $e3467f90d76d977f$export$2e2bcd8739ae039)(length) && (0, $6921f7c908d98bc4$export$2e2bcd8739ae039)(key, length) && ((0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(object) || (0, $e908654d23162200$export$2e2bcd8739ae039)(object));
|
|
2455
|
+
}
|
|
2456
|
+
var $d40f571244ba92be$export$2e2bcd8739ae039 = $d40f571244ba92be$var$hasPath;
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* Checks if `path` is a direct or inherited property of `object`.
|
|
2461
|
+
*
|
|
2462
|
+
* @static
|
|
2463
|
+
* @memberOf _
|
|
2464
|
+
* @since 4.0.0
|
|
2465
|
+
* @category Object
|
|
2466
|
+
* @param {Object} object The object to query.
|
|
2467
|
+
* @param {Array|string} path The path to check.
|
|
2468
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
2469
|
+
* @example
|
|
2470
|
+
*
|
|
2471
|
+
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
2472
|
+
*
|
|
2473
|
+
* _.hasIn(object, 'a');
|
|
2474
|
+
* // => true
|
|
2475
|
+
*
|
|
2476
|
+
* _.hasIn(object, 'a.b');
|
|
2477
|
+
* // => true
|
|
2478
|
+
*
|
|
2479
|
+
* _.hasIn(object, ['a', 'b']);
|
|
2480
|
+
* // => true
|
|
2481
|
+
*
|
|
2482
|
+
* _.hasIn(object, 'b');
|
|
2483
|
+
* // => false
|
|
2484
|
+
*/ function $d1744594998ff9dc$var$hasIn(object, path) {
|
|
2485
|
+
return object != null && (0, $d40f571244ba92be$export$2e2bcd8739ae039)(object, path, (0, $d6bbcd07eae8dfc9$export$2e2bcd8739ae039));
|
|
2486
|
+
}
|
|
2487
|
+
var $d1744594998ff9dc$export$2e2bcd8739ae039 = $d1744594998ff9dc$var$hasIn;
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
/** Used to compose bitmasks for value comparisons. */ var $89e5a13c76cc23a0$var$COMPARE_PARTIAL_FLAG = 1, $89e5a13c76cc23a0$var$COMPARE_UNORDERED_FLAG = 2;
|
|
2495
|
+
/**
|
|
2496
|
+
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
2497
|
+
*
|
|
2498
|
+
* @private
|
|
2499
|
+
* @param {string} path The path of the property to get.
|
|
2500
|
+
* @param {*} srcValue The value to match.
|
|
2501
|
+
* @returns {Function} Returns the new spec function.
|
|
2502
|
+
*/ function $89e5a13c76cc23a0$var$baseMatchesProperty(path, srcValue) {
|
|
2503
|
+
if ((0, $4e570830b54578b7$export$2e2bcd8739ae039)(path) && (0, $7c0b50a96c50339c$export$2e2bcd8739ae039)(srcValue)) return (0, $46082e5b62e5b933$export$2e2bcd8739ae039)((0, $065647068fff6b7e$export$2e2bcd8739ae039)(path), srcValue);
|
|
2504
|
+
return function(object) {
|
|
2505
|
+
var objValue = (0, $131d32f858236d04$export$2e2bcd8739ae039)(object, path);
|
|
2506
|
+
return objValue === undefined && objValue === srcValue ? (0, $d1744594998ff9dc$export$2e2bcd8739ae039)(object, path) : (0, $e1170e6ac39cfab1$export$2e2bcd8739ae039)(srcValue, objValue, $89e5a13c76cc23a0$var$COMPARE_PARTIAL_FLAG | $89e5a13c76cc23a0$var$COMPARE_UNORDERED_FLAG);
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
var $89e5a13c76cc23a0$export$2e2bcd8739ae039 = $89e5a13c76cc23a0$var$baseMatchesProperty;
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* The base implementation of `_.property` without support for deep paths.
|
|
2516
|
+
*
|
|
2517
|
+
* @private
|
|
2518
|
+
* @param {string} key The key of the property to get.
|
|
2519
|
+
* @returns {Function} Returns the new accessor function.
|
|
2520
|
+
*/ function $b5f508cd174ca882$var$baseProperty(key) {
|
|
2521
|
+
return function(object) {
|
|
2522
|
+
return object == null ? undefined : object[key];
|
|
2523
|
+
};
|
|
2524
|
+
}
|
|
2525
|
+
var $b5f508cd174ca882$export$2e2bcd8739ae039 = $b5f508cd174ca882$var$baseProperty;
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* A specialized version of `baseProperty` which supports deep paths.
|
|
2531
|
+
*
|
|
2532
|
+
* @private
|
|
2533
|
+
* @param {Array|string} path The path of the property to get.
|
|
2534
|
+
* @returns {Function} Returns the new accessor function.
|
|
2535
|
+
*/ function $96b98ffabdd5e162$var$basePropertyDeep(path) {
|
|
2536
|
+
return function(object) {
|
|
2537
|
+
return (0, $5bcbe90542b2c925$export$2e2bcd8739ae039)(object, path);
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
var $96b98ffabdd5e162$export$2e2bcd8739ae039 = $96b98ffabdd5e162$var$basePropertyDeep;
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
/**
|
|
2546
|
+
* Creates a function that returns the value at `path` of a given object.
|
|
2547
|
+
*
|
|
2548
|
+
* @static
|
|
2549
|
+
* @memberOf _
|
|
2550
|
+
* @since 2.4.0
|
|
2551
|
+
* @category Util
|
|
2552
|
+
* @param {Array|string} path The path of the property to get.
|
|
2553
|
+
* @returns {Function} Returns the new accessor function.
|
|
2554
|
+
* @example
|
|
2555
|
+
*
|
|
2556
|
+
* var objects = [
|
|
2557
|
+
* { 'a': { 'b': 2 } },
|
|
2558
|
+
* { 'a': { 'b': 1 } }
|
|
2559
|
+
* ];
|
|
2560
|
+
*
|
|
2561
|
+
* _.map(objects, _.property('a.b'));
|
|
2562
|
+
* // => [2, 1]
|
|
2563
|
+
*
|
|
2564
|
+
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
2565
|
+
* // => [1, 2]
|
|
2566
|
+
*/ function $cbd69bb5619e1e0c$var$property(path) {
|
|
2567
|
+
return (0, $4e570830b54578b7$export$2e2bcd8739ae039)(path) ? (0, $b5f508cd174ca882$export$2e2bcd8739ae039)((0, $065647068fff6b7e$export$2e2bcd8739ae039)(path)) : (0, $96b98ffabdd5e162$export$2e2bcd8739ae039)(path);
|
|
2568
|
+
}
|
|
2569
|
+
var $cbd69bb5619e1e0c$export$2e2bcd8739ae039 = $cbd69bb5619e1e0c$var$property;
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* The base implementation of `_.iteratee`.
|
|
2574
|
+
*
|
|
2575
|
+
* @private
|
|
2576
|
+
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
2577
|
+
* @returns {Function} Returns the iteratee.
|
|
2578
|
+
*/ function $297cc133ac5d3fea$var$baseIteratee(value) {
|
|
2579
|
+
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
2580
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
2581
|
+
if (typeof value == "function") return value;
|
|
2582
|
+
if (value == null) return 0, $3de470775021b21e$export$2e2bcd8739ae039;
|
|
2583
|
+
if (typeof value == "object") return (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value) ? (0, $89e5a13c76cc23a0$export$2e2bcd8739ae039)(value[0], value[1]) : (0, $a96c46c5b5929171$export$2e2bcd8739ae039)(value);
|
|
2584
|
+
return (0, $cbd69bb5619e1e0c$export$2e2bcd8739ae039)(value);
|
|
2585
|
+
}
|
|
2586
|
+
var $297cc133ac5d3fea$export$2e2bcd8739ae039 = $297cc133ac5d3fea$var$baseIteratee;
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* Iterates over elements of `collection`, returning an array of all elements
|
|
2592
|
+
* `predicate` returns truthy for. The predicate is invoked with three
|
|
2593
|
+
* arguments: (value, index|key, collection).
|
|
2594
|
+
*
|
|
2595
|
+
* **Note:** Unlike `_.remove`, this method returns a new array.
|
|
2596
|
+
*
|
|
2597
|
+
* @static
|
|
2598
|
+
* @memberOf _
|
|
2599
|
+
* @since 0.1.0
|
|
2600
|
+
* @category Collection
|
|
2601
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2602
|
+
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
2603
|
+
* @returns {Array} Returns the new filtered array.
|
|
2604
|
+
* @see _.reject
|
|
2605
|
+
* @example
|
|
2606
|
+
*
|
|
2607
|
+
* var users = [
|
|
2608
|
+
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
2609
|
+
* { 'user': 'fred', 'age': 40, 'active': false }
|
|
2610
|
+
* ];
|
|
2611
|
+
*
|
|
2612
|
+
* _.filter(users, function(o) { return !o.active; });
|
|
2613
|
+
* // => objects for ['fred']
|
|
2614
|
+
*
|
|
2615
|
+
* // The `_.matches` iteratee shorthand.
|
|
2616
|
+
* _.filter(users, { 'age': 36, 'active': true });
|
|
2617
|
+
* // => objects for ['barney']
|
|
2618
|
+
*
|
|
2619
|
+
* // The `_.matchesProperty` iteratee shorthand.
|
|
2620
|
+
* _.filter(users, ['active', false]);
|
|
2621
|
+
* // => objects for ['fred']
|
|
2622
|
+
*
|
|
2623
|
+
* // The `_.property` iteratee shorthand.
|
|
2624
|
+
* _.filter(users, 'active');
|
|
2625
|
+
* // => objects for ['barney']
|
|
2626
|
+
*
|
|
2627
|
+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
|
2628
|
+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
2629
|
+
* // => objects for ['fred', 'barney']
|
|
2630
|
+
*/ function $da521aba5e26b4ec$var$filter(collection, predicate) {
|
|
2631
|
+
var func = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(collection) ? (0, $47f6d3a8ca5b6c69$export$2e2bcd8739ae039) : (0, $281504449f197165$export$2e2bcd8739ae039);
|
|
2632
|
+
return func(collection, (0, $297cc133ac5d3fea$export$2e2bcd8739ae039)(predicate, 3));
|
|
2633
|
+
}
|
|
2634
|
+
var $da521aba5e26b4ec$export$2e2bcd8739ae039 = $da521aba5e26b4ec$var$filter;
|
|
2635
|
+
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* The base implementation of `_.map` without support for iteratee shorthands.
|
|
2642
|
+
*
|
|
2643
|
+
* @private
|
|
2644
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2645
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2646
|
+
* @returns {Array} Returns the new mapped array.
|
|
2647
|
+
*/ function $1e557d43c898569a$var$baseMap(collection, iteratee) {
|
|
2648
|
+
var index = -1, result = (0, $f09093f447d43a82$export$2e2bcd8739ae039)(collection) ? Array(collection.length) : [];
|
|
2649
|
+
(0, $3a95e911dedbc5e1$export$2e2bcd8739ae039)(collection, function(value, key, collection) {
|
|
2650
|
+
result[++index] = iteratee(value, key, collection);
|
|
2651
|
+
});
|
|
2652
|
+
return result;
|
|
2653
|
+
}
|
|
2654
|
+
var $1e557d43c898569a$export$2e2bcd8739ae039 = $1e557d43c898569a$var$baseMap;
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* Creates an array of values by running each element in `collection` thru
|
|
2660
|
+
* `iteratee`. The iteratee is invoked with three arguments:
|
|
2661
|
+
* (value, index|key, collection).
|
|
2662
|
+
*
|
|
2663
|
+
* Many lodash methods are guarded to work as iteratees for methods like
|
|
2664
|
+
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
|
2665
|
+
*
|
|
2666
|
+
* The guarded methods are:
|
|
2667
|
+
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
|
2668
|
+
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
|
2669
|
+
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
|
2670
|
+
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
|
2671
|
+
*
|
|
2672
|
+
* @static
|
|
2673
|
+
* @memberOf _
|
|
2674
|
+
* @since 0.1.0
|
|
2675
|
+
* @category Collection
|
|
2676
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
2677
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
|
2678
|
+
* @returns {Array} Returns the new mapped array.
|
|
2679
|
+
* @example
|
|
2680
|
+
*
|
|
2681
|
+
* function square(n) {
|
|
2682
|
+
* return n * n;
|
|
2683
|
+
* }
|
|
2684
|
+
*
|
|
2685
|
+
* _.map([4, 8], square);
|
|
2686
|
+
* // => [16, 64]
|
|
2687
|
+
*
|
|
2688
|
+
* _.map({ 'a': 4, 'b': 8 }, square);
|
|
2689
|
+
* // => [16, 64] (iteration order is not guaranteed)
|
|
2690
|
+
*
|
|
2691
|
+
* var users = [
|
|
2692
|
+
* { 'user': 'barney' },
|
|
2693
|
+
* { 'user': 'fred' }
|
|
2694
|
+
* ];
|
|
2695
|
+
*
|
|
2696
|
+
* // The `_.property` iteratee shorthand.
|
|
2697
|
+
* _.map(users, 'user');
|
|
2698
|
+
* // => ['barney', 'fred']
|
|
2699
|
+
*/ function $9d0f38b99e436de9$var$map(collection, iteratee) {
|
|
2700
|
+
var func = (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(collection) ? (0, $82f33e31f1de2868$export$2e2bcd8739ae039) : (0, $1e557d43c898569a$export$2e2bcd8739ae039);
|
|
2701
|
+
return func(collection, (0, $297cc133ac5d3fea$export$2e2bcd8739ae039)(iteratee, 3));
|
|
2702
|
+
}
|
|
2703
|
+
var $9d0f38b99e436de9$export$2e2bcd8739ae039 = $9d0f38b99e436de9$var$map;
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
var $7a7562e85dfd96e1$var$defineProperty = function() {
|
|
2708
|
+
try {
|
|
2709
|
+
var func = (0, $367cfb010623cf3e$export$2e2bcd8739ae039)(Object, "defineProperty");
|
|
2710
|
+
func({}, "", {});
|
|
2711
|
+
return func;
|
|
2712
|
+
} catch (e) {}
|
|
2713
|
+
}();
|
|
2714
|
+
var $7a7562e85dfd96e1$export$2e2bcd8739ae039 = $7a7562e85dfd96e1$var$defineProperty;
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
2719
|
+
* value checks.
|
|
2720
|
+
*
|
|
2721
|
+
* @private
|
|
2722
|
+
* @param {Object} object The object to modify.
|
|
2723
|
+
* @param {string} key The key of the property to assign.
|
|
2724
|
+
* @param {*} value The value to assign.
|
|
2725
|
+
*/ function $29ee5be6170fe53d$var$baseAssignValue(object, key, value) {
|
|
2726
|
+
if (key == "__proto__" && (0, $7a7562e85dfd96e1$export$2e2bcd8739ae039)) (0, $7a7562e85dfd96e1$export$2e2bcd8739ae039)(object, key, {
|
|
2727
|
+
"configurable": true,
|
|
2728
|
+
"enumerable": true,
|
|
2729
|
+
"value": value,
|
|
2730
|
+
"writable": true
|
|
2731
|
+
});
|
|
2732
|
+
else object[key] = value;
|
|
2733
|
+
}
|
|
2734
|
+
var $29ee5be6170fe53d$export$2e2bcd8739ae039 = $29ee5be6170fe53d$var$baseAssignValue;
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
/** Used for built-in method references. */ var $bc05dcdf9d00bf86$var$objectProto = Object.prototype;
|
|
2739
|
+
/** Used to check objects for own properties. */ var $bc05dcdf9d00bf86$var$hasOwnProperty = $bc05dcdf9d00bf86$var$objectProto.hasOwnProperty;
|
|
2740
|
+
/**
|
|
2741
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
2742
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
2743
|
+
* for equality comparisons.
|
|
2744
|
+
*
|
|
2745
|
+
* @private
|
|
2746
|
+
* @param {Object} object The object to modify.
|
|
2747
|
+
* @param {string} key The key of the property to assign.
|
|
2748
|
+
* @param {*} value The value to assign.
|
|
2749
|
+
*/ function $bc05dcdf9d00bf86$var$assignValue(object, key, value) {
|
|
2750
|
+
var objValue = object[key];
|
|
2751
|
+
if (!($bc05dcdf9d00bf86$var$hasOwnProperty.call(object, key) && (0, $c722e1d89fff12e9$export$2e2bcd8739ae039)(objValue, value)) || value === undefined && !(key in object)) (0, $29ee5be6170fe53d$export$2e2bcd8739ae039)(object, key, value);
|
|
2752
|
+
}
|
|
2753
|
+
var $bc05dcdf9d00bf86$export$2e2bcd8739ae039 = $bc05dcdf9d00bf86$var$assignValue;
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* The base implementation of `_.set`.
|
|
2762
|
+
*
|
|
2763
|
+
* @private
|
|
2764
|
+
* @param {Object} object The object to modify.
|
|
2765
|
+
* @param {Array|string} path The path of the property to set.
|
|
2766
|
+
* @param {*} value The value to set.
|
|
2767
|
+
* @param {Function} [customizer] The function to customize path creation.
|
|
2768
|
+
* @returns {Object} Returns `object`.
|
|
2769
|
+
*/ function $1be1400126f01903$var$baseSet(object, path, value, customizer) {
|
|
2770
|
+
if (!(0, $f327b722d951deae$export$2e2bcd8739ae039)(object)) return object;
|
|
2771
|
+
path = (0, $1b31811fd803df9a$export$2e2bcd8739ae039)(path, object);
|
|
2772
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
2773
|
+
while(nested != null && ++index < length){
|
|
2774
|
+
var key = (0, $065647068fff6b7e$export$2e2bcd8739ae039)(path[index]), newValue = value;
|
|
2775
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
|
|
2776
|
+
if (index != lastIndex) {
|
|
2777
|
+
var objValue = nested[key];
|
|
2778
|
+
newValue = customizer ? customizer(objValue, key, nested) : undefined;
|
|
2779
|
+
if (newValue === undefined) newValue = (0, $f327b722d951deae$export$2e2bcd8739ae039)(objValue) ? objValue : (0, $6921f7c908d98bc4$export$2e2bcd8739ae039)(path[index + 1]) ? [] : {};
|
|
2780
|
+
}
|
|
2781
|
+
(0, $bc05dcdf9d00bf86$export$2e2bcd8739ae039)(nested, key, newValue);
|
|
2782
|
+
nested = nested[key];
|
|
2783
|
+
}
|
|
2784
|
+
return object;
|
|
2785
|
+
}
|
|
2786
|
+
var $1be1400126f01903$export$2e2bcd8739ae039 = $1be1400126f01903$var$baseSet;
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
2792
|
+
*
|
|
2793
|
+
* @private
|
|
2794
|
+
* @param {Object} object The source object.
|
|
2795
|
+
* @param {string[]} paths The property paths to pick.
|
|
2796
|
+
* @param {Function} predicate The function invoked per property.
|
|
2797
|
+
* @returns {Object} Returns the new object.
|
|
2798
|
+
*/ function $08a65194722030d2$var$basePickBy(object, paths, predicate) {
|
|
2799
|
+
var index = -1, length = paths.length, result = {};
|
|
2800
|
+
while(++index < length){
|
|
2801
|
+
var path = paths[index], value = (0, $5bcbe90542b2c925$export$2e2bcd8739ae039)(object, path);
|
|
2802
|
+
if (predicate(value, path)) (0, $1be1400126f01903$export$2e2bcd8739ae039)(result, (0, $1b31811fd803df9a$export$2e2bcd8739ae039)(path, object), value);
|
|
2803
|
+
}
|
|
2804
|
+
return result;
|
|
2805
|
+
}
|
|
2806
|
+
var $08a65194722030d2$export$2e2bcd8739ae039 = $08a65194722030d2$var$basePickBy;
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* The base implementation of `_.pick` without support for individual
|
|
2812
|
+
* property identifiers.
|
|
2813
|
+
*
|
|
2814
|
+
* @private
|
|
2815
|
+
* @param {Object} object The source object.
|
|
2816
|
+
* @param {string[]} paths The property paths to pick.
|
|
2817
|
+
* @returns {Object} Returns the new object.
|
|
2818
|
+
*/ function $ea9825bdb132960a$var$basePick(object, paths) {
|
|
2819
|
+
return (0, $08a65194722030d2$export$2e2bcd8739ae039)(object, paths, function(value, path) {
|
|
2820
|
+
return (0, $d1744594998ff9dc$export$2e2bcd8739ae039)(object, path);
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2823
|
+
var $ea9825bdb132960a$export$2e2bcd8739ae039 = $ea9825bdb132960a$var$basePick;
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
/** Built-in value references. */ var $0dde69344cf61740$var$spreadableSymbol = (0, $31256154b144d6ac$export$2e2bcd8739ae039) ? (0, $31256154b144d6ac$export$2e2bcd8739ae039).isConcatSpreadable : undefined;
|
|
2831
|
+
/**
|
|
2832
|
+
* Checks if `value` is a flattenable `arguments` object or array.
|
|
2833
|
+
*
|
|
2834
|
+
* @private
|
|
2835
|
+
* @param {*} value The value to check.
|
|
2836
|
+
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
2837
|
+
*/ function $0dde69344cf61740$var$isFlattenable(value) {
|
|
2838
|
+
return (0, $1ddb8e56ff9d94e3$export$2e2bcd8739ae039)(value) || (0, $e908654d23162200$export$2e2bcd8739ae039)(value) || !!($0dde69344cf61740$var$spreadableSymbol && value && value[$0dde69344cf61740$var$spreadableSymbol]);
|
|
2839
|
+
}
|
|
2840
|
+
var $0dde69344cf61740$export$2e2bcd8739ae039 = $0dde69344cf61740$var$isFlattenable;
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
/**
|
|
2844
|
+
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
2845
|
+
*
|
|
2846
|
+
* @private
|
|
2847
|
+
* @param {Array} array The array to flatten.
|
|
2848
|
+
* @param {number} depth The maximum recursion depth.
|
|
2849
|
+
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
2850
|
+
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
2851
|
+
* @param {Array} [result=[]] The initial result value.
|
|
2852
|
+
* @returns {Array} Returns the new flattened array.
|
|
2853
|
+
*/ function $4b8faf52d2582f33$var$baseFlatten(array, depth, predicate, isStrict, result) {
|
|
2854
|
+
var index = -1, length = array.length;
|
|
2855
|
+
predicate || (predicate = (0, $0dde69344cf61740$export$2e2bcd8739ae039));
|
|
2856
|
+
result || (result = []);
|
|
2857
|
+
while(++index < length){
|
|
2858
|
+
var value = array[index];
|
|
2859
|
+
if (depth > 0 && predicate(value)) {
|
|
2860
|
+
if (depth > 1) // Recursively flatten arrays (susceptible to call stack limits).
|
|
2861
|
+
$4b8faf52d2582f33$var$baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
2862
|
+
else (0, $1914dbcd3e64cc69$export$2e2bcd8739ae039)(result, value);
|
|
2863
|
+
} else if (!isStrict) result[result.length] = value;
|
|
2864
|
+
}
|
|
2865
|
+
return result;
|
|
2866
|
+
}
|
|
2867
|
+
var $4b8faf52d2582f33$export$2e2bcd8739ae039 = $4b8faf52d2582f33$var$baseFlatten;
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* Flattens `array` a single level deep.
|
|
2872
|
+
*
|
|
2873
|
+
* @static
|
|
2874
|
+
* @memberOf _
|
|
2875
|
+
* @since 0.1.0
|
|
2876
|
+
* @category Array
|
|
2877
|
+
* @param {Array} array The array to flatten.
|
|
2878
|
+
* @returns {Array} Returns the new flattened array.
|
|
2879
|
+
* @example
|
|
2880
|
+
*
|
|
2881
|
+
* _.flatten([1, [2, [3, [4]], 5]]);
|
|
2882
|
+
* // => [1, 2, [3, [4]], 5]
|
|
2883
|
+
*/ function $133707e2878082b9$var$flatten(array) {
|
|
2884
|
+
var length = array == null ? 0 : array.length;
|
|
2885
|
+
return length ? (0, $4b8faf52d2582f33$export$2e2bcd8739ae039)(array, 1) : [];
|
|
2886
|
+
}
|
|
2887
|
+
var $133707e2878082b9$export$2e2bcd8739ae039 = $133707e2878082b9$var$flatten;
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
2892
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
2893
|
+
*
|
|
2894
|
+
* @private
|
|
2895
|
+
* @param {Function} func The function to invoke.
|
|
2896
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
2897
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
2898
|
+
* @returns {*} Returns the result of `func`.
|
|
2899
|
+
*/ function $ace5ad1b3a0a53b8$var$apply(func, thisArg, args) {
|
|
2900
|
+
switch(args.length){
|
|
2901
|
+
case 0:
|
|
2902
|
+
return func.call(thisArg);
|
|
2903
|
+
case 1:
|
|
2904
|
+
return func.call(thisArg, args[0]);
|
|
2905
|
+
case 2:
|
|
2906
|
+
return func.call(thisArg, args[0], args[1]);
|
|
2907
|
+
case 3:
|
|
2908
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
2909
|
+
}
|
|
2910
|
+
return func.apply(thisArg, args);
|
|
2911
|
+
}
|
|
2912
|
+
var $ace5ad1b3a0a53b8$export$2e2bcd8739ae039 = $ace5ad1b3a0a53b8$var$apply;
|
|
2913
|
+
|
|
2914
|
+
|
|
2915
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var $a4d9a48873326368$var$nativeMax = Math.max;
|
|
2916
|
+
/**
|
|
2917
|
+
* A specialized version of `baseRest` which transforms the rest array.
|
|
2918
|
+
*
|
|
2919
|
+
* @private
|
|
2920
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
2921
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2922
|
+
* @param {Function} transform The rest array transform.
|
|
2923
|
+
* @returns {Function} Returns the new function.
|
|
2924
|
+
*/ function $a4d9a48873326368$var$overRest(func, start, transform) {
|
|
2925
|
+
start = $a4d9a48873326368$var$nativeMax(start === undefined ? func.length - 1 : start, 0);
|
|
2926
|
+
return function() {
|
|
2927
|
+
var args = arguments, index = -1, length = $a4d9a48873326368$var$nativeMax(args.length - start, 0), array = Array(length);
|
|
2928
|
+
while(++index < length)array[index] = args[start + index];
|
|
2929
|
+
index = -1;
|
|
2930
|
+
var otherArgs = Array(start + 1);
|
|
2931
|
+
while(++index < start)otherArgs[index] = args[index];
|
|
2932
|
+
otherArgs[start] = transform(array);
|
|
2933
|
+
return (0, $ace5ad1b3a0a53b8$export$2e2bcd8739ae039)(func, this, otherArgs);
|
|
2934
|
+
};
|
|
2935
|
+
}
|
|
2936
|
+
var $a4d9a48873326368$export$2e2bcd8739ae039 = $a4d9a48873326368$var$overRest;
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* Creates a function that returns `value`.
|
|
2941
|
+
*
|
|
2942
|
+
* @static
|
|
2943
|
+
* @memberOf _
|
|
2944
|
+
* @since 2.4.0
|
|
2945
|
+
* @category Util
|
|
2946
|
+
* @param {*} value The value to return from the new function.
|
|
2947
|
+
* @returns {Function} Returns the new constant function.
|
|
2948
|
+
* @example
|
|
2949
|
+
*
|
|
2950
|
+
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
2951
|
+
*
|
|
2952
|
+
* console.log(objects);
|
|
2953
|
+
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
2954
|
+
*
|
|
2955
|
+
* console.log(objects[0] === objects[1]);
|
|
2956
|
+
* // => true
|
|
2957
|
+
*/ function $d91b465d56c937ad$var$constant(value) {
|
|
2958
|
+
return function() {
|
|
2959
|
+
return value;
|
|
2960
|
+
};
|
|
2961
|
+
}
|
|
2962
|
+
var $d91b465d56c937ad$export$2e2bcd8739ae039 = $d91b465d56c937ad$var$constant;
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* The base implementation of `setToString` without support for hot loop shorting.
|
|
2969
|
+
*
|
|
2970
|
+
* @private
|
|
2971
|
+
* @param {Function} func The function to modify.
|
|
2972
|
+
* @param {Function} string The `toString` result.
|
|
2973
|
+
* @returns {Function} Returns `func`.
|
|
2974
|
+
*/ var $edac5caeaa4aff94$var$baseSetToString = !(0, $7a7562e85dfd96e1$export$2e2bcd8739ae039) ? (0, $3de470775021b21e$export$2e2bcd8739ae039) : function(func, string) {
|
|
2975
|
+
return (0, $7a7562e85dfd96e1$export$2e2bcd8739ae039)(func, "toString", {
|
|
2976
|
+
"configurable": true,
|
|
2977
|
+
"enumerable": false,
|
|
2978
|
+
"value": (0, $d91b465d56c937ad$export$2e2bcd8739ae039)(string),
|
|
2979
|
+
"writable": true
|
|
2980
|
+
});
|
|
2981
|
+
};
|
|
2982
|
+
var $edac5caeaa4aff94$export$2e2bcd8739ae039 = $edac5caeaa4aff94$var$baseSetToString;
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
/** Used to detect hot functions by number of calls within a span of milliseconds. */ var $7debbec787de9be1$var$HOT_COUNT = 800, $7debbec787de9be1$var$HOT_SPAN = 16;
|
|
2986
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var $7debbec787de9be1$var$nativeNow = Date.now;
|
|
2987
|
+
/**
|
|
2988
|
+
* Creates a function that'll short out and invoke `identity` instead
|
|
2989
|
+
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
2990
|
+
* milliseconds.
|
|
2991
|
+
*
|
|
2992
|
+
* @private
|
|
2993
|
+
* @param {Function} func The function to restrict.
|
|
2994
|
+
* @returns {Function} Returns the new shortable function.
|
|
2995
|
+
*/ function $7debbec787de9be1$var$shortOut(func) {
|
|
2996
|
+
var count = 0, lastCalled = 0;
|
|
2997
|
+
return function() {
|
|
2998
|
+
var stamp = $7debbec787de9be1$var$nativeNow(), remaining = $7debbec787de9be1$var$HOT_SPAN - (stamp - lastCalled);
|
|
2999
|
+
lastCalled = stamp;
|
|
3000
|
+
if (remaining > 0) {
|
|
3001
|
+
if (++count >= $7debbec787de9be1$var$HOT_COUNT) return arguments[0];
|
|
3002
|
+
} else count = 0;
|
|
3003
|
+
return func.apply(undefined, arguments);
|
|
3004
|
+
};
|
|
3005
|
+
}
|
|
3006
|
+
var $7debbec787de9be1$export$2e2bcd8739ae039 = $7debbec787de9be1$var$shortOut;
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
/**
|
|
3010
|
+
* Sets the `toString` method of `func` to return `string`.
|
|
3011
|
+
*
|
|
3012
|
+
* @private
|
|
3013
|
+
* @param {Function} func The function to modify.
|
|
3014
|
+
* @param {Function} string The `toString` result.
|
|
3015
|
+
* @returns {Function} Returns `func`.
|
|
3016
|
+
*/ var $aef7bd246d0a2ba4$var$setToString = (0, $7debbec787de9be1$export$2e2bcd8739ae039)((0, $edac5caeaa4aff94$export$2e2bcd8739ae039));
|
|
3017
|
+
var $aef7bd246d0a2ba4$export$2e2bcd8739ae039 = $aef7bd246d0a2ba4$var$setToString;
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
/**
|
|
3021
|
+
* A specialized version of `baseRest` which flattens the rest array.
|
|
3022
|
+
*
|
|
3023
|
+
* @private
|
|
3024
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
3025
|
+
* @returns {Function} Returns the new function.
|
|
3026
|
+
*/ function $f49dafde66c4929a$var$flatRest(func) {
|
|
3027
|
+
return (0, $aef7bd246d0a2ba4$export$2e2bcd8739ae039)((0, $a4d9a48873326368$export$2e2bcd8739ae039)(func, undefined, (0, $133707e2878082b9$export$2e2bcd8739ae039)), func + "");
|
|
3028
|
+
}
|
|
3029
|
+
var $f49dafde66c4929a$export$2e2bcd8739ae039 = $f49dafde66c4929a$var$flatRest;
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Creates an object composed of the picked `object` properties.
|
|
3034
|
+
*
|
|
3035
|
+
* @static
|
|
3036
|
+
* @since 0.1.0
|
|
3037
|
+
* @memberOf _
|
|
3038
|
+
* @category Object
|
|
3039
|
+
* @param {Object} object The source object.
|
|
3040
|
+
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
3041
|
+
* @returns {Object} Returns the new object.
|
|
3042
|
+
* @example
|
|
3043
|
+
*
|
|
3044
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
3045
|
+
*
|
|
3046
|
+
* _.pick(object, ['a', 'c']);
|
|
3047
|
+
* // => { 'a': 1, 'c': 3 }
|
|
3048
|
+
*/ var $0a4020db2cc59923$var$pick = (0, $f49dafde66c4929a$export$2e2bcd8739ae039)(function(object, paths) {
|
|
3049
|
+
return object == null ? {} : (0, $ea9825bdb132960a$export$2e2bcd8739ae039)(object, paths);
|
|
3050
|
+
});
|
|
3051
|
+
var $0a4020db2cc59923$export$2e2bcd8739ae039 = $0a4020db2cc59923$var$pick;
|
|
3052
|
+
|
|
3053
|
+
/**
|
|
3054
|
+
* A specialized version of `_.reduce` for arrays without support for
|
|
3055
|
+
* iteratee shorthands.
|
|
3056
|
+
*
|
|
3057
|
+
* @private
|
|
3058
|
+
* @param {Array} [array] The array to iterate over.
|
|
3059
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
3060
|
+
* @param {*} [accumulator] The initial value.
|
|
3061
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
3062
|
+
* the initial value.
|
|
3063
|
+
* @returns {*} Returns the accumulated value.
|
|
3064
|
+
*/ function $f1d9f5eb0d513fbe$var$arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
3065
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
3066
|
+
if (initAccum && length) accumulator = array[++index];
|
|
3067
|
+
while(++index < length)accumulator = iteratee(accumulator, array[index], index, array);
|
|
3068
|
+
return accumulator;
|
|
3069
|
+
}
|
|
3070
|
+
var $f1d9f5eb0d513fbe$export$2e2bcd8739ae039 = $f1d9f5eb0d513fbe$var$arrayReduce;
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
3075
|
+
*
|
|
3076
|
+
* @private
|
|
3077
|
+
* @param {Object} object The object to query.
|
|
3078
|
+
* @returns {Function} Returns the new accessor function.
|
|
3079
|
+
*/ function $1cce55870b3a17f2$var$basePropertyOf(object) {
|
|
3080
|
+
return function(key) {
|
|
3081
|
+
return object == null ? undefined : object[key];
|
|
3082
|
+
};
|
|
3083
|
+
}
|
|
3084
|
+
var $1cce55870b3a17f2$export$2e2bcd8739ae039 = $1cce55870b3a17f2$var$basePropertyOf;
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */ var $b0a94b6bcad6004c$var$deburredLetters = {
|
|
3088
|
+
// Latin-1 Supplement block.
|
|
3089
|
+
"\xc0": "A",
|
|
3090
|
+
"\xc1": "A",
|
|
3091
|
+
"\xc2": "A",
|
|
3092
|
+
"\xc3": "A",
|
|
3093
|
+
"\xc4": "A",
|
|
3094
|
+
"\xc5": "A",
|
|
3095
|
+
"\xe0": "a",
|
|
3096
|
+
"\xe1": "a",
|
|
3097
|
+
"\xe2": "a",
|
|
3098
|
+
"\xe3": "a",
|
|
3099
|
+
"\xe4": "a",
|
|
3100
|
+
"\xe5": "a",
|
|
3101
|
+
"\xc7": "C",
|
|
3102
|
+
"\xe7": "c",
|
|
3103
|
+
"\xd0": "D",
|
|
3104
|
+
"\xf0": "d",
|
|
3105
|
+
"\xc8": "E",
|
|
3106
|
+
"\xc9": "E",
|
|
3107
|
+
"\xca": "E",
|
|
3108
|
+
"\xcb": "E",
|
|
3109
|
+
"\xe8": "e",
|
|
3110
|
+
"\xe9": "e",
|
|
3111
|
+
"\xea": "e",
|
|
3112
|
+
"\xeb": "e",
|
|
3113
|
+
"\xcc": "I",
|
|
3114
|
+
"\xcd": "I",
|
|
3115
|
+
"\xce": "I",
|
|
3116
|
+
"\xcf": "I",
|
|
3117
|
+
"\xec": "i",
|
|
3118
|
+
"\xed": "i",
|
|
3119
|
+
"\xee": "i",
|
|
3120
|
+
"\xef": "i",
|
|
3121
|
+
"\xd1": "N",
|
|
3122
|
+
"\xf1": "n",
|
|
3123
|
+
"\xd2": "O",
|
|
3124
|
+
"\xd3": "O",
|
|
3125
|
+
"\xd4": "O",
|
|
3126
|
+
"\xd5": "O",
|
|
3127
|
+
"\xd6": "O",
|
|
3128
|
+
"\xd8": "O",
|
|
3129
|
+
"\xf2": "o",
|
|
3130
|
+
"\xf3": "o",
|
|
3131
|
+
"\xf4": "o",
|
|
3132
|
+
"\xf5": "o",
|
|
3133
|
+
"\xf6": "o",
|
|
3134
|
+
"\xf8": "o",
|
|
3135
|
+
"\xd9": "U",
|
|
3136
|
+
"\xda": "U",
|
|
3137
|
+
"\xdb": "U",
|
|
3138
|
+
"\xdc": "U",
|
|
3139
|
+
"\xf9": "u",
|
|
3140
|
+
"\xfa": "u",
|
|
3141
|
+
"\xfb": "u",
|
|
3142
|
+
"\xfc": "u",
|
|
3143
|
+
"\xdd": "Y",
|
|
3144
|
+
"\xfd": "y",
|
|
3145
|
+
"\xff": "y",
|
|
3146
|
+
"\xc6": "Ae",
|
|
3147
|
+
"\xe6": "ae",
|
|
3148
|
+
"\xde": "Th",
|
|
3149
|
+
"\xfe": "th",
|
|
3150
|
+
"\xdf": "ss",
|
|
3151
|
+
// Latin Extended-A block.
|
|
3152
|
+
"Ā": "A",
|
|
3153
|
+
"Ă": "A",
|
|
3154
|
+
"Ą": "A",
|
|
3155
|
+
"ā": "a",
|
|
3156
|
+
"ă": "a",
|
|
3157
|
+
"ą": "a",
|
|
3158
|
+
"Ć": "C",
|
|
3159
|
+
"Ĉ": "C",
|
|
3160
|
+
"Ċ": "C",
|
|
3161
|
+
"Č": "C",
|
|
3162
|
+
"ć": "c",
|
|
3163
|
+
"ĉ": "c",
|
|
3164
|
+
"ċ": "c",
|
|
3165
|
+
"č": "c",
|
|
3166
|
+
"Ď": "D",
|
|
3167
|
+
"Đ": "D",
|
|
3168
|
+
"ď": "d",
|
|
3169
|
+
"đ": "d",
|
|
3170
|
+
"Ē": "E",
|
|
3171
|
+
"Ĕ": "E",
|
|
3172
|
+
"Ė": "E",
|
|
3173
|
+
"Ę": "E",
|
|
3174
|
+
"Ě": "E",
|
|
3175
|
+
"ē": "e",
|
|
3176
|
+
"ĕ": "e",
|
|
3177
|
+
"ė": "e",
|
|
3178
|
+
"ę": "e",
|
|
3179
|
+
"ě": "e",
|
|
3180
|
+
"Ĝ": "G",
|
|
3181
|
+
"Ğ": "G",
|
|
3182
|
+
"Ġ": "G",
|
|
3183
|
+
"Ģ": "G",
|
|
3184
|
+
"ĝ": "g",
|
|
3185
|
+
"ğ": "g",
|
|
3186
|
+
"ġ": "g",
|
|
3187
|
+
"ģ": "g",
|
|
3188
|
+
"Ĥ": "H",
|
|
3189
|
+
"Ħ": "H",
|
|
3190
|
+
"ĥ": "h",
|
|
3191
|
+
"ħ": "h",
|
|
3192
|
+
"Ĩ": "I",
|
|
3193
|
+
"Ī": "I",
|
|
3194
|
+
"Ĭ": "I",
|
|
3195
|
+
"Į": "I",
|
|
3196
|
+
"İ": "I",
|
|
3197
|
+
"ĩ": "i",
|
|
3198
|
+
"ī": "i",
|
|
3199
|
+
"ĭ": "i",
|
|
3200
|
+
"į": "i",
|
|
3201
|
+
"ı": "i",
|
|
3202
|
+
"Ĵ": "J",
|
|
3203
|
+
"ĵ": "j",
|
|
3204
|
+
"Ķ": "K",
|
|
3205
|
+
"ķ": "k",
|
|
3206
|
+
"ĸ": "k",
|
|
3207
|
+
"Ĺ": "L",
|
|
3208
|
+
"Ļ": "L",
|
|
3209
|
+
"Ľ": "L",
|
|
3210
|
+
"Ŀ": "L",
|
|
3211
|
+
"Ł": "L",
|
|
3212
|
+
"ĺ": "l",
|
|
3213
|
+
"ļ": "l",
|
|
3214
|
+
"ľ": "l",
|
|
3215
|
+
"ŀ": "l",
|
|
3216
|
+
"ł": "l",
|
|
3217
|
+
"Ń": "N",
|
|
3218
|
+
"Ņ": "N",
|
|
3219
|
+
"Ň": "N",
|
|
3220
|
+
"Ŋ": "N",
|
|
3221
|
+
"ń": "n",
|
|
3222
|
+
"ņ": "n",
|
|
3223
|
+
"ň": "n",
|
|
3224
|
+
"ŋ": "n",
|
|
3225
|
+
"Ō": "O",
|
|
3226
|
+
"Ŏ": "O",
|
|
3227
|
+
"Ő": "O",
|
|
3228
|
+
"ō": "o",
|
|
3229
|
+
"ŏ": "o",
|
|
3230
|
+
"ő": "o",
|
|
3231
|
+
"Ŕ": "R",
|
|
3232
|
+
"Ŗ": "R",
|
|
3233
|
+
"Ř": "R",
|
|
3234
|
+
"ŕ": "r",
|
|
3235
|
+
"ŗ": "r",
|
|
3236
|
+
"ř": "r",
|
|
3237
|
+
"Ś": "S",
|
|
3238
|
+
"Ŝ": "S",
|
|
3239
|
+
"Ş": "S",
|
|
3240
|
+
"Š": "S",
|
|
3241
|
+
"ś": "s",
|
|
3242
|
+
"ŝ": "s",
|
|
3243
|
+
"ş": "s",
|
|
3244
|
+
"š": "s",
|
|
3245
|
+
"Ţ": "T",
|
|
3246
|
+
"Ť": "T",
|
|
3247
|
+
"Ŧ": "T",
|
|
3248
|
+
"ţ": "t",
|
|
3249
|
+
"ť": "t",
|
|
3250
|
+
"ŧ": "t",
|
|
3251
|
+
"Ũ": "U",
|
|
3252
|
+
"Ū": "U",
|
|
3253
|
+
"Ŭ": "U",
|
|
3254
|
+
"Ů": "U",
|
|
3255
|
+
"Ű": "U",
|
|
3256
|
+
"Ų": "U",
|
|
3257
|
+
"ũ": "u",
|
|
3258
|
+
"ū": "u",
|
|
3259
|
+
"ŭ": "u",
|
|
3260
|
+
"ů": "u",
|
|
3261
|
+
"ű": "u",
|
|
3262
|
+
"ų": "u",
|
|
3263
|
+
"Ŵ": "W",
|
|
3264
|
+
"ŵ": "w",
|
|
3265
|
+
"Ŷ": "Y",
|
|
3266
|
+
"ŷ": "y",
|
|
3267
|
+
"Ÿ": "Y",
|
|
3268
|
+
"Ź": "Z",
|
|
3269
|
+
"Ż": "Z",
|
|
3270
|
+
"Ž": "Z",
|
|
3271
|
+
"ź": "z",
|
|
3272
|
+
"ż": "z",
|
|
3273
|
+
"ž": "z",
|
|
3274
|
+
"IJ": "IJ",
|
|
3275
|
+
"ij": "ij",
|
|
3276
|
+
"Œ": "Oe",
|
|
3277
|
+
"œ": "oe",
|
|
3278
|
+
"ʼn": "'n",
|
|
3279
|
+
"ſ": "s"
|
|
3280
|
+
};
|
|
3281
|
+
/**
|
|
3282
|
+
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
3283
|
+
* letters to basic Latin letters.
|
|
3284
|
+
*
|
|
3285
|
+
* @private
|
|
3286
|
+
* @param {string} letter The matched letter to deburr.
|
|
3287
|
+
* @returns {string} Returns the deburred letter.
|
|
3288
|
+
*/ var $b0a94b6bcad6004c$var$deburrLetter = (0, $1cce55870b3a17f2$export$2e2bcd8739ae039)($b0a94b6bcad6004c$var$deburredLetters);
|
|
3289
|
+
var $b0a94b6bcad6004c$export$2e2bcd8739ae039 = $b0a94b6bcad6004c$var$deburrLetter;
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
/** Used to match Latin Unicode letters (excluding mathematical operators). */ var $ee2f9601ee32ad45$var$reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
3294
|
+
/** Used to compose unicode character classes. */ var $ee2f9601ee32ad45$var$rsComboMarksRange = "\\u0300-\\u036f", $ee2f9601ee32ad45$var$reComboHalfMarksRange = "\\ufe20-\\ufe2f", $ee2f9601ee32ad45$var$rsComboSymbolsRange = "\\u20d0-\\u20ff", $ee2f9601ee32ad45$var$rsComboRange = $ee2f9601ee32ad45$var$rsComboMarksRange + $ee2f9601ee32ad45$var$reComboHalfMarksRange + $ee2f9601ee32ad45$var$rsComboSymbolsRange;
|
|
3295
|
+
/** Used to compose unicode capture groups. */ var $ee2f9601ee32ad45$var$rsCombo = "[" + $ee2f9601ee32ad45$var$rsComboRange + "]";
|
|
3296
|
+
/**
|
|
3297
|
+
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
3298
|
+
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
3299
|
+
*/ var $ee2f9601ee32ad45$var$reComboMark = RegExp($ee2f9601ee32ad45$var$rsCombo, "g");
|
|
3300
|
+
/**
|
|
3301
|
+
* Deburrs `string` by converting
|
|
3302
|
+
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
3303
|
+
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
3304
|
+
* letters to basic Latin letters and removing
|
|
3305
|
+
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
3306
|
+
*
|
|
3307
|
+
* @static
|
|
3308
|
+
* @memberOf _
|
|
3309
|
+
* @since 3.0.0
|
|
3310
|
+
* @category String
|
|
3311
|
+
* @param {string} [string=''] The string to deburr.
|
|
3312
|
+
* @returns {string} Returns the deburred string.
|
|
3313
|
+
* @example
|
|
3314
|
+
*
|
|
3315
|
+
* _.deburr('déjà vu');
|
|
3316
|
+
* // => 'deja vu'
|
|
3317
|
+
*/ function $ee2f9601ee32ad45$var$deburr(string) {
|
|
3318
|
+
string = (0, $7f265029f6c37de9$export$2e2bcd8739ae039)(string);
|
|
3319
|
+
return string && string.replace($ee2f9601ee32ad45$var$reLatin, (0, $b0a94b6bcad6004c$export$2e2bcd8739ae039)).replace($ee2f9601ee32ad45$var$reComboMark, "");
|
|
3320
|
+
}
|
|
3321
|
+
var $ee2f9601ee32ad45$export$2e2bcd8739ae039 = $ee2f9601ee32ad45$var$deburr;
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
/** Used to match words composed of alphanumeric characters. */ var $0321c51d2c3cba5c$var$reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
3325
|
+
/**
|
|
3326
|
+
* Splits an ASCII `string` into an array of its words.
|
|
3327
|
+
*
|
|
3328
|
+
* @private
|
|
3329
|
+
* @param {string} The string to inspect.
|
|
3330
|
+
* @returns {Array} Returns the words of `string`.
|
|
3331
|
+
*/ function $0321c51d2c3cba5c$var$asciiWords(string) {
|
|
3332
|
+
return string.match($0321c51d2c3cba5c$var$reAsciiWord) || [];
|
|
3333
|
+
}
|
|
3334
|
+
var $0321c51d2c3cba5c$export$2e2bcd8739ae039 = $0321c51d2c3cba5c$var$asciiWords;
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
/** Used to detect strings that need a more robust regexp to match words. */ var $9d9ce76e01c7817d$var$reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
3338
|
+
/**
|
|
3339
|
+
* Checks if `string` contains a word composed of Unicode symbols.
|
|
3340
|
+
*
|
|
3341
|
+
* @private
|
|
3342
|
+
* @param {string} string The string to inspect.
|
|
3343
|
+
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
3344
|
+
*/ function $9d9ce76e01c7817d$var$hasUnicodeWord(string) {
|
|
3345
|
+
return $9d9ce76e01c7817d$var$reHasUnicodeWord.test(string);
|
|
3346
|
+
}
|
|
3347
|
+
var $9d9ce76e01c7817d$export$2e2bcd8739ae039 = $9d9ce76e01c7817d$var$hasUnicodeWord;
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
/** Used to compose unicode character classes. */ var $1b100d70b61da203$var$rsAstralRange = "\ud800-\udfff", $1b100d70b61da203$var$rsComboMarksRange = "\\u0300-\\u036f", $1b100d70b61da203$var$reComboHalfMarksRange = "\\ufe20-\\ufe2f", $1b100d70b61da203$var$rsComboSymbolsRange = "\\u20d0-\\u20ff", $1b100d70b61da203$var$rsComboRange = $1b100d70b61da203$var$rsComboMarksRange + $1b100d70b61da203$var$reComboHalfMarksRange + $1b100d70b61da203$var$rsComboSymbolsRange, $1b100d70b61da203$var$rsDingbatRange = "\\u2700-\\u27bf", $1b100d70b61da203$var$rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", $1b100d70b61da203$var$rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", $1b100d70b61da203$var$rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $1b100d70b61da203$var$rsPunctuationRange = "\\u2000-\\u206f", $1b100d70b61da203$var$rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", $1b100d70b61da203$var$rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", $1b100d70b61da203$var$rsVarRange = "\\ufe0e\\ufe0f", $1b100d70b61da203$var$rsBreakRange = $1b100d70b61da203$var$rsMathOpRange + $1b100d70b61da203$var$rsNonCharRange + $1b100d70b61da203$var$rsPunctuationRange + $1b100d70b61da203$var$rsSpaceRange;
|
|
3352
|
+
/** Used to compose unicode capture groups. */ var $1b100d70b61da203$var$rsApos = "['’]", $1b100d70b61da203$var$rsBreak = "[" + $1b100d70b61da203$var$rsBreakRange + "]", $1b100d70b61da203$var$rsCombo = "[" + $1b100d70b61da203$var$rsComboRange + "]", $1b100d70b61da203$var$rsDigits = "\\d+", $1b100d70b61da203$var$rsDingbat = "[" + $1b100d70b61da203$var$rsDingbatRange + "]", $1b100d70b61da203$var$rsLower = "[" + $1b100d70b61da203$var$rsLowerRange + "]", $1b100d70b61da203$var$rsMisc = "[^" + $1b100d70b61da203$var$rsAstralRange + $1b100d70b61da203$var$rsBreakRange + $1b100d70b61da203$var$rsDigits + $1b100d70b61da203$var$rsDingbatRange + $1b100d70b61da203$var$rsLowerRange + $1b100d70b61da203$var$rsUpperRange + "]", $1b100d70b61da203$var$rsFitz = "\ud83c[\udffb-\udfff]", $1b100d70b61da203$var$rsModifier = "(?:" + $1b100d70b61da203$var$rsCombo + "|" + $1b100d70b61da203$var$rsFitz + ")", $1b100d70b61da203$var$rsNonAstral = "[^" + $1b100d70b61da203$var$rsAstralRange + "]", $1b100d70b61da203$var$rsRegional = "(?:\ud83c[\udde6-\uddff]){2}", $1b100d70b61da203$var$rsSurrPair = "[\ud800-\udbff][\udc00-\udfff]", $1b100d70b61da203$var$rsUpper = "[" + $1b100d70b61da203$var$rsUpperRange + "]", $1b100d70b61da203$var$rsZWJ = "\\u200d";
|
|
3353
|
+
/** Used to compose unicode regexes. */ var $1b100d70b61da203$var$rsMiscLower = "(?:" + $1b100d70b61da203$var$rsLower + "|" + $1b100d70b61da203$var$rsMisc + ")", $1b100d70b61da203$var$rsMiscUpper = "(?:" + $1b100d70b61da203$var$rsUpper + "|" + $1b100d70b61da203$var$rsMisc + ")", $1b100d70b61da203$var$rsOptContrLower = "(?:" + $1b100d70b61da203$var$rsApos + "(?:d|ll|m|re|s|t|ve))?", $1b100d70b61da203$var$rsOptContrUpper = "(?:" + $1b100d70b61da203$var$rsApos + "(?:D|LL|M|RE|S|T|VE))?", $1b100d70b61da203$var$reOptMod = $1b100d70b61da203$var$rsModifier + "?", $1b100d70b61da203$var$rsOptVar = "[" + $1b100d70b61da203$var$rsVarRange + "]?", $1b100d70b61da203$var$rsOptJoin = "(?:" + $1b100d70b61da203$var$rsZWJ + "(?:" + [
|
|
3354
|
+
$1b100d70b61da203$var$rsNonAstral,
|
|
3355
|
+
$1b100d70b61da203$var$rsRegional,
|
|
3356
|
+
$1b100d70b61da203$var$rsSurrPair
|
|
3357
|
+
].join("|") + ")" + $1b100d70b61da203$var$rsOptVar + $1b100d70b61da203$var$reOptMod + ")*", $1b100d70b61da203$var$rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", $1b100d70b61da203$var$rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", $1b100d70b61da203$var$rsSeq = $1b100d70b61da203$var$rsOptVar + $1b100d70b61da203$var$reOptMod + $1b100d70b61da203$var$rsOptJoin, $1b100d70b61da203$var$rsEmoji = "(?:" + [
|
|
3358
|
+
$1b100d70b61da203$var$rsDingbat,
|
|
3359
|
+
$1b100d70b61da203$var$rsRegional,
|
|
3360
|
+
$1b100d70b61da203$var$rsSurrPair
|
|
3361
|
+
].join("|") + ")" + $1b100d70b61da203$var$rsSeq;
|
|
3362
|
+
/** Used to match complex or compound words. */ var $1b100d70b61da203$var$reUnicodeWord = RegExp([
|
|
3363
|
+
$1b100d70b61da203$var$rsUpper + "?" + $1b100d70b61da203$var$rsLower + "+" + $1b100d70b61da203$var$rsOptContrLower + "(?=" + [
|
|
3364
|
+
$1b100d70b61da203$var$rsBreak,
|
|
3365
|
+
$1b100d70b61da203$var$rsUpper,
|
|
3366
|
+
"$"
|
|
3367
|
+
].join("|") + ")",
|
|
3368
|
+
$1b100d70b61da203$var$rsMiscUpper + "+" + $1b100d70b61da203$var$rsOptContrUpper + "(?=" + [
|
|
3369
|
+
$1b100d70b61da203$var$rsBreak,
|
|
3370
|
+
$1b100d70b61da203$var$rsUpper + $1b100d70b61da203$var$rsMiscLower,
|
|
3371
|
+
"$"
|
|
3372
|
+
].join("|") + ")",
|
|
3373
|
+
$1b100d70b61da203$var$rsUpper + "?" + $1b100d70b61da203$var$rsMiscLower + "+" + $1b100d70b61da203$var$rsOptContrLower,
|
|
3374
|
+
$1b100d70b61da203$var$rsUpper + "+" + $1b100d70b61da203$var$rsOptContrUpper,
|
|
3375
|
+
$1b100d70b61da203$var$rsOrdUpper,
|
|
3376
|
+
$1b100d70b61da203$var$rsOrdLower,
|
|
3377
|
+
$1b100d70b61da203$var$rsDigits,
|
|
3378
|
+
$1b100d70b61da203$var$rsEmoji
|
|
3379
|
+
].join("|"), "g");
|
|
3380
|
+
/**
|
|
3381
|
+
* Splits a Unicode `string` into an array of its words.
|
|
3382
|
+
*
|
|
3383
|
+
* @private
|
|
3384
|
+
* @param {string} The string to inspect.
|
|
3385
|
+
* @returns {Array} Returns the words of `string`.
|
|
3386
|
+
*/ function $1b100d70b61da203$var$unicodeWords(string) {
|
|
3387
|
+
return string.match($1b100d70b61da203$var$reUnicodeWord) || [];
|
|
3388
|
+
}
|
|
3389
|
+
var $1b100d70b61da203$export$2e2bcd8739ae039 = $1b100d70b61da203$var$unicodeWords;
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Splits `string` into an array of its words.
|
|
3394
|
+
*
|
|
3395
|
+
* @static
|
|
3396
|
+
* @memberOf _
|
|
3397
|
+
* @since 3.0.0
|
|
3398
|
+
* @category String
|
|
3399
|
+
* @param {string} [string=''] The string to inspect.
|
|
3400
|
+
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
3401
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
3402
|
+
* @returns {Array} Returns the words of `string`.
|
|
3403
|
+
* @example
|
|
3404
|
+
*
|
|
3405
|
+
* _.words('fred, barney, & pebbles');
|
|
3406
|
+
* // => ['fred', 'barney', 'pebbles']
|
|
3407
|
+
*
|
|
3408
|
+
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
3409
|
+
* // => ['fred', 'barney', '&', 'pebbles']
|
|
3410
|
+
*/ function $bd7e99006c754fec$var$words(string, pattern, guard) {
|
|
3411
|
+
string = (0, $7f265029f6c37de9$export$2e2bcd8739ae039)(string);
|
|
3412
|
+
pattern = guard ? undefined : pattern;
|
|
3413
|
+
if (pattern === undefined) return (0, $9d9ce76e01c7817d$export$2e2bcd8739ae039)(string) ? (0, $1b100d70b61da203$export$2e2bcd8739ae039)(string) : (0, $0321c51d2c3cba5c$export$2e2bcd8739ae039)(string);
|
|
3414
|
+
return string.match(pattern) || [];
|
|
3415
|
+
}
|
|
3416
|
+
var $bd7e99006c754fec$export$2e2bcd8739ae039 = $bd7e99006c754fec$var$words;
|
|
3417
|
+
|
|
3418
|
+
|
|
3419
|
+
/** Used to compose unicode capture groups. */ var $732ee8537ef480e7$var$rsApos = "['’]";
|
|
3420
|
+
/** Used to match apostrophes. */ var $732ee8537ef480e7$var$reApos = RegExp($732ee8537ef480e7$var$rsApos, "g");
|
|
3421
|
+
/**
|
|
3422
|
+
* Creates a function like `_.camelCase`.
|
|
3423
|
+
*
|
|
3424
|
+
* @private
|
|
3425
|
+
* @param {Function} callback The function to combine each word.
|
|
3426
|
+
* @returns {Function} Returns the new compounder function.
|
|
3427
|
+
*/ function $732ee8537ef480e7$var$createCompounder(callback) {
|
|
3428
|
+
return function(string) {
|
|
3429
|
+
return (0, $f1d9f5eb0d513fbe$export$2e2bcd8739ae039)((0, $bd7e99006c754fec$export$2e2bcd8739ae039)((0, $ee2f9601ee32ad45$export$2e2bcd8739ae039)(string).replace($732ee8537ef480e7$var$reApos, "")), callback, "");
|
|
3430
|
+
};
|
|
3431
|
+
}
|
|
3432
|
+
var $732ee8537ef480e7$export$2e2bcd8739ae039 = $732ee8537ef480e7$var$createCompounder;
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Converts `string` to
|
|
3437
|
+
* [snake case](https://en.wikipedia.org/wiki/Snake_case).
|
|
3438
|
+
*
|
|
3439
|
+
* @static
|
|
3440
|
+
* @memberOf _
|
|
3441
|
+
* @since 3.0.0
|
|
3442
|
+
* @category String
|
|
3443
|
+
* @param {string} [string=''] The string to convert.
|
|
3444
|
+
* @returns {string} Returns the snake cased string.
|
|
3445
|
+
* @example
|
|
3446
|
+
*
|
|
3447
|
+
* _.snakeCase('Foo Bar');
|
|
3448
|
+
* // => 'foo_bar'
|
|
3449
|
+
*
|
|
3450
|
+
* _.snakeCase('fooBar');
|
|
3451
|
+
* // => 'foo_bar'
|
|
3452
|
+
*
|
|
3453
|
+
* _.snakeCase('--FOO-BAR--');
|
|
3454
|
+
* // => 'foo_bar'
|
|
3455
|
+
*/ var $31ce2ff3ff79897b$var$snakeCase = (0, $732ee8537ef480e7$export$2e2bcd8739ae039)(function(result, word, index) {
|
|
3456
|
+
return result + (index ? "_" : "") + word.toLowerCase();
|
|
3457
|
+
});
|
|
3458
|
+
var $31ce2ff3ff79897b$export$2e2bcd8739ae039 = $31ce2ff3ff79897b$var$snakeCase;
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
const $4de6ba44f0531b39$export$2bbf5922e5b7acba = (method)=>{
|
|
3463
|
+
return [
|
|
3464
|
+
"get",
|
|
3465
|
+
"list",
|
|
3466
|
+
"create",
|
|
3467
|
+
"update",
|
|
3468
|
+
"delete"
|
|
3469
|
+
].indexOf(method) === -1;
|
|
3470
|
+
};
|
|
3471
|
+
const $4de6ba44f0531b39$export$7da726409ab705b2 = (method)=>{
|
|
3472
|
+
return [
|
|
3473
|
+
"get",
|
|
3474
|
+
"update",
|
|
3475
|
+
"delete"
|
|
3476
|
+
].indexOf(method) !== -1;
|
|
3477
|
+
};
|
|
3478
|
+
const $4de6ba44f0531b39$export$840dc5320eefa4b4 = (schema)=>{
|
|
3479
|
+
return (0, $da521aba5e26b4ec$export$2e2bcd8739ae039)((0, $9d0f38b99e436de9$export$2e2bcd8739ae039)(schema, (value, key)=>value.required ? key : null), (value)=>value !== null);
|
|
3480
|
+
};
|
|
3481
|
+
const $4de6ba44f0531b39$export$34efffa2116fc158 = (body, schema)=>{
|
|
3482
|
+
const keysToPick = (0, $b0738ab9823f0933$export$2e2bcd8739ae039)(schema);
|
|
3483
|
+
return (0, $0a4020db2cc59923$export$2e2bcd8739ae039)(body, keysToPick);
|
|
3484
|
+
};
|
|
3485
|
+
const $4de6ba44f0531b39$export$fe20e531d43cf24a = (integrationLabel, resourceName, methodName)=>{
|
|
3486
|
+
if (methodName === "list") return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`list all ${integrationLabel} ${resourceName}`);
|
|
3487
|
+
if (methodName === "get") return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`get single ${integrationLabel} ${(0, ($parcel$interopDefault($krXZW$pluralize))).singular(resourceName)} by id`);
|
|
3488
|
+
if (methodName === "create") return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`create a ${integrationLabel} ${(0, ($parcel$interopDefault($krXZW$pluralize))).singular(resourceName)}`);
|
|
3489
|
+
if (methodName === "update") return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`update a ${integrationLabel} ${(0, ($parcel$interopDefault($krXZW$pluralize))).singular(resourceName)} by id`);
|
|
3490
|
+
if (methodName === "delete") return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`delete a ${integrationLabel} ${(0, ($parcel$interopDefault($krXZW$pluralize))).singular(resourceName)} by id`);
|
|
3491
|
+
return (0, $31ce2ff3ff79897b$export$2e2bcd8739ae039)(`${integrationLabel} ${resourceName} ${methodName}`);
|
|
3492
|
+
};
|
|
3493
|
+
async function $4de6ba44f0531b39$export$ffc9f93b394316dd(integratedAccountId, config) {
|
|
3494
|
+
const tools = {};
|
|
3495
|
+
const trutoApi = new (0, ($parcel$interopDefault($krXZW$trutotrutotssdk)))({
|
|
3496
|
+
baseUrl: config.truto.baseUrl,
|
|
3497
|
+
token: config.truto.token
|
|
3498
|
+
});
|
|
3499
|
+
const integratedAccount = await trutoApi.integratedAccount.get(integratedAccountId);
|
|
3500
|
+
const installedIntegration = await trutoApi.environmentIntegration.get(integratedAccount.environment_integration_id);
|
|
3501
|
+
const integration = (0, $131d32f858236d04$export$2e2bcd8739ae039)(installedIntegration, "integration") || {};
|
|
3502
|
+
const resources = (0, $131d32f858236d04$export$2e2bcd8739ae039)(integration, "config.resources", []);
|
|
3503
|
+
(0, $c6f51911d1519af6$export$2e2bcd8739ae039)(resources, (resource, resourceName)=>{
|
|
3504
|
+
(0, $c6f51911d1519af6$export$2e2bcd8739ae039)(resource, (method, methodName)=>{
|
|
3505
|
+
const description = (0, $131d32f858236d04$export$2e2bcd8739ae039)(method, "description") || "";
|
|
3506
|
+
if (!description) return;
|
|
3507
|
+
const toolName = $4de6ba44f0531b39$export$fe20e531d43cf24a(integration.name || "", resourceName, methodName);
|
|
3508
|
+
const querySchema = (0, $131d32f858236d04$export$2e2bcd8739ae039)(method, "query_schema") || {};
|
|
3509
|
+
if (methodName === "list") {
|
|
3510
|
+
querySchema.limit = {
|
|
3511
|
+
type: "string",
|
|
3512
|
+
description: "The number of records to fetch"
|
|
3513
|
+
};
|
|
3514
|
+
querySchema.next_cursor = {
|
|
3515
|
+
type: "string",
|
|
3516
|
+
description: "The cursor to fetch the next set of records. This can be found in the response of the previous call as nextCursor."
|
|
3517
|
+
};
|
|
3518
|
+
}
|
|
3519
|
+
const queryRequiredProperties = $4de6ba44f0531b39$export$840dc5320eefa4b4(querySchema);
|
|
3520
|
+
const bodySchema = (0, $131d32f858236d04$export$2e2bcd8739ae039)(method, "body_schema") || {};
|
|
3521
|
+
const bodyRequiredProperties = $4de6ba44f0531b39$export$840dc5320eefa4b4(bodySchema);
|
|
3522
|
+
tools[toolName] = (0, $krXZW$langchaincoretools.tool)(async (config)=>{
|
|
3523
|
+
const methodToCall = $4de6ba44f0531b39$export$2bbf5922e5b7acba(methodName) ? "customMethod" : methodName;
|
|
3524
|
+
const query = $4de6ba44f0531b39$export$34efffa2116fc158(config, querySchema) || {};
|
|
3525
|
+
const body = $4de6ba44f0531b39$export$34efffa2116fc158(config, bodySchema) || {};
|
|
3526
|
+
switch(methodToCall){
|
|
3527
|
+
case "list":
|
|
3528
|
+
return JSON.stringify(await trutoApi.proxyApi.list({
|
|
3529
|
+
integrated_account_id: integratedAccountId,
|
|
3530
|
+
resource: resourceName,
|
|
3531
|
+
...query
|
|
3532
|
+
}).next(), null, 2);
|
|
3533
|
+
case "get":
|
|
3534
|
+
return JSON.stringify(await trutoApi.proxyApi.get(config?.id, {
|
|
3535
|
+
integrated_account_id: integratedAccountId,
|
|
3536
|
+
resource: resourceName,
|
|
3537
|
+
...query
|
|
3538
|
+
}), null, 2);
|
|
3539
|
+
case "create":
|
|
3540
|
+
return JSON.stringify(await trutoApi.proxyApi.create(body, {
|
|
3541
|
+
integrated_account_id: integratedAccountId,
|
|
3542
|
+
resource: resourceName,
|
|
3543
|
+
...query
|
|
3544
|
+
}), null, 2);
|
|
3545
|
+
case "update":
|
|
3546
|
+
return JSON.stringify(await trutoApi.proxyApi.update(config?.id, body, {
|
|
3547
|
+
integrated_account_id: integratedAccountId,
|
|
3548
|
+
resource: resourceName,
|
|
3549
|
+
...query
|
|
3550
|
+
}), null, 2);
|
|
3551
|
+
case "delete":
|
|
3552
|
+
return JSON.stringify(await trutoApi.proxyApi.delete(config?.id, {
|
|
3553
|
+
integrated_account_id: integratedAccountId,
|
|
3554
|
+
resource: resourceName,
|
|
3555
|
+
...query
|
|
3556
|
+
}), null, 2);
|
|
3557
|
+
case "customMethod":
|
|
3558
|
+
return JSON.stringify(await trutoApi.proxyApi.customMethod(methodName, body, {
|
|
3559
|
+
integrated_account_id: integratedAccountId,
|
|
3560
|
+
resource: resourceName,
|
|
3561
|
+
...query
|
|
3562
|
+
}), null, 2);
|
|
3563
|
+
}
|
|
3564
|
+
return [];
|
|
3565
|
+
}, {
|
|
3566
|
+
name: toolName,
|
|
3567
|
+
description: (0, $131d32f858236d04$export$2e2bcd8739ae039)(method, "description") || "",
|
|
3568
|
+
schema: {
|
|
3569
|
+
type: "object",
|
|
3570
|
+
properties: {
|
|
3571
|
+
...querySchema,
|
|
3572
|
+
...bodySchema,
|
|
3573
|
+
...$4de6ba44f0531b39$export$7da726409ab705b2(methodName) ? {
|
|
3574
|
+
id: {
|
|
3575
|
+
type: "string",
|
|
3576
|
+
description: `The id of the ${resourceName} to ${methodName}. Required.`
|
|
3577
|
+
}
|
|
3578
|
+
} : {}
|
|
3579
|
+
},
|
|
3580
|
+
required: (0, $0f6d19ecf074c2ba$export$2e2bcd8739ae039)([
|
|
3581
|
+
$4de6ba44f0531b39$export$7da726409ab705b2(methodName) ? "id" : null,
|
|
3582
|
+
...queryRequiredProperties,
|
|
3583
|
+
...bodyRequiredProperties
|
|
3584
|
+
])
|
|
3585
|
+
}
|
|
3586
|
+
});
|
|
3587
|
+
console.log("Registering tool", JSON.stringify({
|
|
3588
|
+
name: toolName,
|
|
3589
|
+
description: (0, $131d32f858236d04$export$2e2bcd8739ae039)(method, "description") || "",
|
|
3590
|
+
schema: {
|
|
3591
|
+
type: "object",
|
|
3592
|
+
properties: {
|
|
3593
|
+
...querySchema,
|
|
3594
|
+
...bodySchema,
|
|
3595
|
+
...$4de6ba44f0531b39$export$7da726409ab705b2(methodName) ? {
|
|
3596
|
+
id: {
|
|
3597
|
+
type: "string",
|
|
3598
|
+
description: `The id of the ${resourceName} to ${methodName}. Required.`
|
|
3599
|
+
}
|
|
3600
|
+
} : {}
|
|
3601
|
+
},
|
|
3602
|
+
required: (0, $0f6d19ecf074c2ba$export$2e2bcd8739ae039)([
|
|
3603
|
+
$4de6ba44f0531b39$export$7da726409ab705b2(methodName) ? "id" : null,
|
|
3604
|
+
...queryRequiredProperties,
|
|
3605
|
+
...bodyRequiredProperties
|
|
3606
|
+
])
|
|
3607
|
+
}
|
|
3608
|
+
}, null, 2));
|
|
3609
|
+
});
|
|
3610
|
+
});
|
|
3611
|
+
return tools;
|
|
3612
|
+
}
|
|
3613
|
+
var $4de6ba44f0531b39$export$2e2bcd8739ae039 = $4de6ba44f0531b39$export$ffc9f93b394316dd;
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
|
+
//# sourceMappingURL=main.cjs.map
|