@qodalis/cli-string 2.0.0-rc.1 → 2.0.0-rc.3
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/package.json +3 -3
- package/public-api.js +34 -13
- package/public-api.js.map +1 -1
- package/public-api.mjs +34 -13
- package/public-api.mjs.map +1 -1
- package/umd/index.global.js +240 -219
package/umd/index.global.js
CHANGED
|
@@ -35,7 +35,7 @@ var string = (() => {
|
|
|
35
35
|
"../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js"(exports, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
(function() {
|
|
38
|
-
var
|
|
38
|
+
var undefined2;
|
|
39
39
|
var VERSION = "4.18.1";
|
|
40
40
|
var LARGE_ARRAY_SIZE = 200;
|
|
41
41
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
@@ -537,12 +537,12 @@ var string = (() => {
|
|
|
537
537
|
}
|
|
538
538
|
function baseProperty(key) {
|
|
539
539
|
return function(object) {
|
|
540
|
-
return object == null ?
|
|
540
|
+
return object == null ? undefined2 : object[key];
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
function basePropertyOf(object) {
|
|
544
544
|
return function(key) {
|
|
545
|
-
return object == null ?
|
|
545
|
+
return object == null ? undefined2 : object[key];
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
@@ -563,8 +563,8 @@ var string = (() => {
|
|
|
563
563
|
var result, index = -1, length = array.length;
|
|
564
564
|
while (++index < length) {
|
|
565
565
|
var current = iteratee(array[index]);
|
|
566
|
-
if (current !==
|
|
567
|
-
result = result ===
|
|
566
|
+
if (current !== undefined2) {
|
|
567
|
+
result = result === undefined2 ? current : result + current;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
return result;
|
|
@@ -624,7 +624,7 @@ var string = (() => {
|
|
|
624
624
|
return "\\" + stringEscapes[chr];
|
|
625
625
|
}
|
|
626
626
|
function getValue(object, key) {
|
|
627
|
-
return object == null ?
|
|
627
|
+
return object == null ? undefined2 : object[key];
|
|
628
628
|
}
|
|
629
629
|
function hasUnicode(string) {
|
|
630
630
|
return reHasUnicode.test(string);
|
|
@@ -738,7 +738,7 @@ var string = (() => {
|
|
|
738
738
|
var reIsNative = RegExp2(
|
|
739
739
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
740
740
|
);
|
|
741
|
-
var Buffer2 = moduleExports ? context.Buffer :
|
|
741
|
+
var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
|
|
742
742
|
var defineProperty = (function() {
|
|
743
743
|
try {
|
|
744
744
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -748,12 +748,12 @@ var string = (() => {
|
|
|
748
748
|
}
|
|
749
749
|
})();
|
|
750
750
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
751
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer :
|
|
751
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
752
752
|
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
753
753
|
var metaMap = WeakMap && new WeakMap();
|
|
754
754
|
var realNames = {};
|
|
755
755
|
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
756
|
-
var symbolProto = Symbol2 ? Symbol2.prototype :
|
|
756
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
|
|
757
757
|
function lodash2(value) {
|
|
758
758
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
759
759
|
if (value instanceof LodashWrapper) {
|
|
@@ -777,7 +777,7 @@ var string = (() => {
|
|
|
777
777
|
}
|
|
778
778
|
object.prototype = proto;
|
|
779
779
|
var result2 = new object();
|
|
780
|
-
object.prototype =
|
|
780
|
+
object.prototype = undefined2;
|
|
781
781
|
return result2;
|
|
782
782
|
};
|
|
783
783
|
})();
|
|
@@ -788,7 +788,7 @@ var string = (() => {
|
|
|
788
788
|
this.__actions__ = [];
|
|
789
789
|
this.__chain__ = !!chainAll;
|
|
790
790
|
this.__index__ = 0;
|
|
791
|
-
this.__values__ =
|
|
791
|
+
this.__values__ = undefined2;
|
|
792
792
|
}
|
|
793
793
|
lodash2.templateSettings = {
|
|
794
794
|
/**
|
|
@@ -918,18 +918,18 @@ var string = (() => {
|
|
|
918
918
|
var data = this.__data__;
|
|
919
919
|
if (nativeCreate) {
|
|
920
920
|
var result2 = data[key];
|
|
921
|
-
return result2 === HASH_UNDEFINED ?
|
|
921
|
+
return result2 === HASH_UNDEFINED ? undefined2 : result2;
|
|
922
922
|
}
|
|
923
|
-
return hasOwnProperty.call(data, key) ? data[key] :
|
|
923
|
+
return hasOwnProperty.call(data, key) ? data[key] : undefined2;
|
|
924
924
|
}
|
|
925
925
|
function hashHas(key) {
|
|
926
926
|
var data = this.__data__;
|
|
927
|
-
return nativeCreate ? data[key] !==
|
|
927
|
+
return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key);
|
|
928
928
|
}
|
|
929
929
|
function hashSet(key, value) {
|
|
930
930
|
var data = this.__data__;
|
|
931
931
|
this.size += this.has(key) ? 0 : 1;
|
|
932
|
-
data[key] = nativeCreate && value ===
|
|
932
|
+
data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value;
|
|
933
933
|
return this;
|
|
934
934
|
}
|
|
935
935
|
Hash.prototype.clear = hashClear;
|
|
@@ -965,7 +965,7 @@ var string = (() => {
|
|
|
965
965
|
}
|
|
966
966
|
function listCacheGet(key) {
|
|
967
967
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
968
|
-
return index < 0 ?
|
|
968
|
+
return index < 0 ? undefined2 : data[index][1];
|
|
969
969
|
}
|
|
970
970
|
function listCacheHas(key) {
|
|
971
971
|
return assocIndexOf(this.__data__, key) > -1;
|
|
@@ -1093,7 +1093,7 @@ var string = (() => {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
function arraySample(array) {
|
|
1095
1095
|
var length = array.length;
|
|
1096
|
-
return length ? array[baseRandom(0, length - 1)] :
|
|
1096
|
+
return length ? array[baseRandom(0, length - 1)] : undefined2;
|
|
1097
1097
|
}
|
|
1098
1098
|
function arraySampleSize(array, n) {
|
|
1099
1099
|
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
|
|
@@ -1102,13 +1102,13 @@ var string = (() => {
|
|
|
1102
1102
|
return shuffleSelf(copyArray(array));
|
|
1103
1103
|
}
|
|
1104
1104
|
function assignMergeValue(object, key, value) {
|
|
1105
|
-
if (value !==
|
|
1105
|
+
if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) {
|
|
1106
1106
|
baseAssignValue(object, key, value);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
function assignValue(object, key, value) {
|
|
1110
1110
|
var objValue = object[key];
|
|
1111
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value ===
|
|
1111
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) {
|
|
1112
1112
|
baseAssignValue(object, key, value);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
@@ -1148,16 +1148,16 @@ var string = (() => {
|
|
|
1148
1148
|
function baseAt(object, paths) {
|
|
1149
1149
|
var index = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1150
1150
|
while (++index < length) {
|
|
1151
|
-
result2[index] = skip ?
|
|
1151
|
+
result2[index] = skip ? undefined2 : get(object, paths[index]);
|
|
1152
1152
|
}
|
|
1153
1153
|
return result2;
|
|
1154
1154
|
}
|
|
1155
1155
|
function baseClamp(number, lower, upper) {
|
|
1156
1156
|
if (number === number) {
|
|
1157
|
-
if (upper !==
|
|
1157
|
+
if (upper !== undefined2) {
|
|
1158
1158
|
number = number <= upper ? number : upper;
|
|
1159
1159
|
}
|
|
1160
|
-
if (lower !==
|
|
1160
|
+
if (lower !== undefined2) {
|
|
1161
1161
|
number = number >= lower ? number : lower;
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
@@ -1168,7 +1168,7 @@ var string = (() => {
|
|
|
1168
1168
|
if (customizer) {
|
|
1169
1169
|
result2 = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1170
1170
|
}
|
|
1171
|
-
if (result2 !==
|
|
1171
|
+
if (result2 !== undefined2) {
|
|
1172
1172
|
return result2;
|
|
1173
1173
|
}
|
|
1174
1174
|
if (!isObject(value)) {
|
|
@@ -1213,7 +1213,7 @@ var string = (() => {
|
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
1216
|
-
var props = isArr ?
|
|
1216
|
+
var props = isArr ? undefined2 : keysFunc(value);
|
|
1217
1217
|
arrayEach(props || value, function(subValue, key2) {
|
|
1218
1218
|
if (props) {
|
|
1219
1219
|
key2 = subValue;
|
|
@@ -1237,7 +1237,7 @@ var string = (() => {
|
|
|
1237
1237
|
object = Object2(object);
|
|
1238
1238
|
while (length--) {
|
|
1239
1239
|
var key = props[length], predicate = source[key], value = object[key];
|
|
1240
|
-
if (value ===
|
|
1240
|
+
if (value === undefined2 && !(key in object) || !predicate(value)) {
|
|
1241
1241
|
return false;
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
@@ -1248,7 +1248,7 @@ var string = (() => {
|
|
|
1248
1248
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
1249
1249
|
}
|
|
1250
1250
|
return setTimeout2(function() {
|
|
1251
|
-
func.apply(
|
|
1251
|
+
func.apply(undefined2, args);
|
|
1252
1252
|
}, wait);
|
|
1253
1253
|
}
|
|
1254
1254
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
@@ -1299,7 +1299,7 @@ var string = (() => {
|
|
|
1299
1299
|
var index = -1, length = array.length;
|
|
1300
1300
|
while (++index < length) {
|
|
1301
1301
|
var value = array[index], current = iteratee2(value);
|
|
1302
|
-
if (current != null && (computed ===
|
|
1302
|
+
if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
1303
1303
|
var computed = current, result2 = value;
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
@@ -1311,7 +1311,7 @@ var string = (() => {
|
|
|
1311
1311
|
if (start < 0) {
|
|
1312
1312
|
start = -start > length ? 0 : length + start;
|
|
1313
1313
|
}
|
|
1314
|
-
end = end ===
|
|
1314
|
+
end = end === undefined2 || end > length ? length : toInteger(end);
|
|
1315
1315
|
if (end < 0) {
|
|
1316
1316
|
end += length;
|
|
1317
1317
|
}
|
|
@@ -1367,7 +1367,7 @@ var string = (() => {
|
|
|
1367
1367
|
while (object != null && index < length) {
|
|
1368
1368
|
object = object[toKey(path[index++])];
|
|
1369
1369
|
}
|
|
1370
|
-
return index && index == length ? object :
|
|
1370
|
+
return index && index == length ? object : undefined2;
|
|
1371
1371
|
}
|
|
1372
1372
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1373
1373
|
var result2 = keysFunc(object);
|
|
@@ -1375,7 +1375,7 @@ var string = (() => {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
function baseGetTag(value) {
|
|
1377
1377
|
if (value == null) {
|
|
1378
|
-
return value ===
|
|
1378
|
+
return value === undefined2 ? undefinedTag : nullTag;
|
|
1379
1379
|
}
|
|
1380
1380
|
return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value);
|
|
1381
1381
|
}
|
|
@@ -1399,7 +1399,7 @@ var string = (() => {
|
|
|
1399
1399
|
array = arrayMap(array, baseUnary(iteratee2));
|
|
1400
1400
|
}
|
|
1401
1401
|
maxLength = nativeMin(array.length, maxLength);
|
|
1402
|
-
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) :
|
|
1402
|
+
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2;
|
|
1403
1403
|
}
|
|
1404
1404
|
array = arrays[0];
|
|
1405
1405
|
var index = -1, seen = caches[0];
|
|
@@ -1433,7 +1433,7 @@ var string = (() => {
|
|
|
1433
1433
|
path = castPath(path, object);
|
|
1434
1434
|
object = parent(object, path);
|
|
1435
1435
|
var func = object == null ? object : object[toKey(last(path))];
|
|
1436
|
-
return func == null ?
|
|
1436
|
+
return func == null ? undefined2 : apply(func, object, args);
|
|
1437
1437
|
}
|
|
1438
1438
|
function baseIsArguments(value) {
|
|
1439
1439
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
@@ -1502,7 +1502,7 @@ var string = (() => {
|
|
|
1502
1502
|
data = matchData[index];
|
|
1503
1503
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1504
1504
|
if (noCustomizer && data[2]) {
|
|
1505
|
-
if (objValue ===
|
|
1505
|
+
if (objValue === undefined2 && !(key in object)) {
|
|
1506
1506
|
return false;
|
|
1507
1507
|
}
|
|
1508
1508
|
} else {
|
|
@@ -1510,7 +1510,7 @@ var string = (() => {
|
|
|
1510
1510
|
if (customizer) {
|
|
1511
1511
|
var result2 = customizer(objValue, srcValue, key, object, source, stack);
|
|
1512
1512
|
}
|
|
1513
|
-
if (!(result2 ===
|
|
1513
|
+
if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
|
|
1514
1514
|
return false;
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
@@ -1594,7 +1594,7 @@ var string = (() => {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return function(object) {
|
|
1596
1596
|
var objValue = get(object, path);
|
|
1597
|
-
return objValue ===
|
|
1597
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -1606,8 +1606,8 @@ var string = (() => {
|
|
|
1606
1606
|
if (isObject(srcValue)) {
|
|
1607
1607
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1608
1608
|
} else {
|
|
1609
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) :
|
|
1610
|
-
if (newValue ===
|
|
1609
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2;
|
|
1610
|
+
if (newValue === undefined2) {
|
|
1611
1611
|
newValue = srcValue;
|
|
1612
1612
|
}
|
|
1613
1613
|
assignMergeValue(object, key, newValue);
|
|
@@ -1620,8 +1620,8 @@ var string = (() => {
|
|
|
1620
1620
|
assignMergeValue(object, key, stacked);
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) :
|
|
1624
|
-
var isCommon = newValue ===
|
|
1623
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2;
|
|
1624
|
+
var isCommon = newValue === undefined2;
|
|
1625
1625
|
if (isCommon) {
|
|
1626
1626
|
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1627
1627
|
newValue = srcValue;
|
|
@@ -1663,7 +1663,7 @@ var string = (() => {
|
|
|
1663
1663
|
return;
|
|
1664
1664
|
}
|
|
1665
1665
|
n += n < 0 ? length : 0;
|
|
1666
|
-
return isIndex(n, length) ? array[n] :
|
|
1666
|
+
return isIndex(n, length) ? array[n] : undefined2;
|
|
1667
1667
|
}
|
|
1668
1668
|
function baseOrderBy(collection, iteratees, orders) {
|
|
1669
1669
|
if (iteratees.length) {
|
|
@@ -1794,8 +1794,8 @@ var string = (() => {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
if (index != lastIndex) {
|
|
1796
1796
|
var objValue = nested[key];
|
|
1797
|
-
newValue = customizer ? customizer(objValue, key, nested) :
|
|
1798
|
-
if (newValue ===
|
|
1797
|
+
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
1798
|
+
if (newValue === undefined2) {
|
|
1799
1799
|
newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
@@ -1865,9 +1865,9 @@ var string = (() => {
|
|
|
1865
1865
|
return 0;
|
|
1866
1866
|
}
|
|
1867
1867
|
value = iteratee2(value);
|
|
1868
|
-
var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value ===
|
|
1868
|
+
var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2;
|
|
1869
1869
|
while (low < high) {
|
|
1870
|
-
var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !==
|
|
1870
|
+
var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
|
|
1871
1871
|
if (valIsNaN) {
|
|
1872
1872
|
var setLow = retHighest || othIsReflexive;
|
|
1873
1873
|
} else if (valIsUndefined) {
|
|
@@ -2017,7 +2017,7 @@ var string = (() => {
|
|
|
2017
2017
|
function baseZipObject(props, values2, assignFunc) {
|
|
2018
2018
|
var index = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
2019
2019
|
while (++index < length) {
|
|
2020
|
-
var value = index < valsLength ? values2[index] :
|
|
2020
|
+
var value = index < valsLength ? values2[index] : undefined2;
|
|
2021
2021
|
assignFunc(result2, props[index], value);
|
|
2022
2022
|
}
|
|
2023
2023
|
return result2;
|
|
@@ -2037,7 +2037,7 @@ var string = (() => {
|
|
|
2037
2037
|
var castRest = baseRest;
|
|
2038
2038
|
function castSlice(array, start, end) {
|
|
2039
2039
|
var length = array.length;
|
|
2040
|
-
end = end ===
|
|
2040
|
+
end = end === undefined2 ? length : end;
|
|
2041
2041
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
2042
2042
|
}
|
|
2043
2043
|
var clearTimeout2 = ctxClearTimeout || function(id) {
|
|
@@ -2074,8 +2074,8 @@ var string = (() => {
|
|
|
2074
2074
|
}
|
|
2075
2075
|
function compareAscending(value, other) {
|
|
2076
2076
|
if (value !== other) {
|
|
2077
|
-
var valIsDefined = value !==
|
|
2078
|
-
var othIsDefined = other !==
|
|
2077
|
+
var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
|
|
2078
|
+
var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
|
|
2079
2079
|
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
|
|
2080
2080
|
return 1;
|
|
2081
2081
|
}
|
|
@@ -2144,8 +2144,8 @@ var string = (() => {
|
|
|
2144
2144
|
var index = -1, length = props.length;
|
|
2145
2145
|
while (++index < length) {
|
|
2146
2146
|
var key = props[index];
|
|
2147
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) :
|
|
2148
|
-
if (newValue ===
|
|
2147
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2;
|
|
2148
|
+
if (newValue === undefined2) {
|
|
2149
2149
|
newValue = source[key];
|
|
2150
2150
|
}
|
|
2151
2151
|
if (isNew) {
|
|
@@ -2170,10 +2170,10 @@ var string = (() => {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
function createAssigner(assigner) {
|
|
2172
2172
|
return baseRest(function(object, sources) {
|
|
2173
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] :
|
|
2174
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) :
|
|
2173
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2;
|
|
2174
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2;
|
|
2175
2175
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2176
|
-
customizer = length < 3 ?
|
|
2176
|
+
customizer = length < 3 ? undefined2 : customizer;
|
|
2177
2177
|
length = 1;
|
|
2178
2178
|
}
|
|
2179
2179
|
object = Object2(object);
|
|
@@ -2226,7 +2226,7 @@ var string = (() => {
|
|
|
2226
2226
|
function createCaseFirst(methodName) {
|
|
2227
2227
|
return function(string) {
|
|
2228
2228
|
string = toString(string);
|
|
2229
|
-
var strSymbols = hasUnicode(string) ? stringToArray(string) :
|
|
2229
|
+
var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2;
|
|
2230
2230
|
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
|
2231
2231
|
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
|
2232
2232
|
return chr[methodName]() + trailing;
|
|
@@ -2277,11 +2277,11 @@ var string = (() => {
|
|
|
2277
2277
|
bitmask,
|
|
2278
2278
|
createHybrid,
|
|
2279
2279
|
wrapper.placeholder,
|
|
2280
|
-
|
|
2280
|
+
undefined2,
|
|
2281
2281
|
args,
|
|
2282
2282
|
holders,
|
|
2283
|
-
|
|
2284
|
-
|
|
2283
|
+
undefined2,
|
|
2284
|
+
undefined2,
|
|
2285
2285
|
arity - length
|
|
2286
2286
|
);
|
|
2287
2287
|
}
|
|
@@ -2301,7 +2301,7 @@ var string = (() => {
|
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
2303
|
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
2304
|
-
return index > -1 ? iterable[iteratee2 ? collection[index] : index] :
|
|
2304
|
+
return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2;
|
|
2305
2305
|
};
|
|
2306
2306
|
}
|
|
2307
2307
|
function createFlow(fromRight) {
|
|
@@ -2322,7 +2322,7 @@ var string = (() => {
|
|
|
2322
2322
|
index = wrapper ? index : length;
|
|
2323
2323
|
while (++index < length) {
|
|
2324
2324
|
func = funcs[index];
|
|
2325
|
-
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) :
|
|
2325
|
+
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2;
|
|
2326
2326
|
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
2327
2327
|
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
2328
2328
|
} else {
|
|
@@ -2343,7 +2343,7 @@ var string = (() => {
|
|
|
2343
2343
|
});
|
|
2344
2344
|
}
|
|
2345
2345
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
2346
|
-
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ?
|
|
2346
|
+
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func);
|
|
2347
2347
|
function wrapper() {
|
|
2348
2348
|
var length = arguments.length, args = Array2(length), index = length;
|
|
2349
2349
|
while (index--) {
|
|
@@ -2399,14 +2399,14 @@ var string = (() => {
|
|
|
2399
2399
|
function createMathOperation(operator, defaultValue) {
|
|
2400
2400
|
return function(value, other) {
|
|
2401
2401
|
var result2;
|
|
2402
|
-
if (value ===
|
|
2402
|
+
if (value === undefined2 && other === undefined2) {
|
|
2403
2403
|
return defaultValue;
|
|
2404
2404
|
}
|
|
2405
|
-
if (value !==
|
|
2405
|
+
if (value !== undefined2) {
|
|
2406
2406
|
result2 = value;
|
|
2407
2407
|
}
|
|
2408
|
-
if (other !==
|
|
2409
|
-
if (result2 ===
|
|
2408
|
+
if (other !== undefined2) {
|
|
2409
|
+
if (result2 === undefined2) {
|
|
2410
2410
|
return other;
|
|
2411
2411
|
}
|
|
2412
2412
|
if (typeof value == "string" || typeof other == "string") {
|
|
@@ -2433,7 +2433,7 @@ var string = (() => {
|
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
function createPadding(length, chars) {
|
|
2436
|
-
chars = chars ===
|
|
2436
|
+
chars = chars === undefined2 ? " " : baseToString(chars);
|
|
2437
2437
|
var charsLength = chars.length;
|
|
2438
2438
|
if (charsLength < 2) {
|
|
2439
2439
|
return charsLength ? baseRepeat(chars, length) : chars;
|
|
@@ -2458,16 +2458,16 @@ var string = (() => {
|
|
|
2458
2458
|
function createRange(fromRight) {
|
|
2459
2459
|
return function(start, end, step) {
|
|
2460
2460
|
if (step && typeof step != "number" && isIterateeCall(start, end, step)) {
|
|
2461
|
-
end = step =
|
|
2461
|
+
end = step = undefined2;
|
|
2462
2462
|
}
|
|
2463
2463
|
start = toFinite(start);
|
|
2464
|
-
if (end ===
|
|
2464
|
+
if (end === undefined2) {
|
|
2465
2465
|
end = start;
|
|
2466
2466
|
start = 0;
|
|
2467
2467
|
} else {
|
|
2468
2468
|
end = toFinite(end);
|
|
2469
2469
|
}
|
|
2470
|
-
step = step ===
|
|
2470
|
+
step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step);
|
|
2471
2471
|
return baseRange(start, end, step, fromRight);
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
@@ -2481,7 +2481,7 @@ var string = (() => {
|
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
2483
|
function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
|
|
2484
|
-
var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders :
|
|
2484
|
+
var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials;
|
|
2485
2485
|
bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
|
|
2486
2486
|
bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
|
|
2487
2487
|
if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
|
|
@@ -2499,7 +2499,7 @@ var string = (() => {
|
|
|
2499
2499
|
ary2,
|
|
2500
2500
|
arity
|
|
2501
2501
|
];
|
|
2502
|
-
var result2 = wrapFunc.apply(
|
|
2502
|
+
var result2 = wrapFunc.apply(undefined2, newData);
|
|
2503
2503
|
if (isLaziable(func)) {
|
|
2504
2504
|
setData(result2, newData);
|
|
2505
2505
|
}
|
|
@@ -2542,16 +2542,16 @@ var string = (() => {
|
|
|
2542
2542
|
var length = partials ? partials.length : 0;
|
|
2543
2543
|
if (!length) {
|
|
2544
2544
|
bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
|
|
2545
|
-
partials = holders =
|
|
2545
|
+
partials = holders = undefined2;
|
|
2546
2546
|
}
|
|
2547
|
-
ary2 = ary2 ===
|
|
2548
|
-
arity = arity ===
|
|
2547
|
+
ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0);
|
|
2548
|
+
arity = arity === undefined2 ? arity : toInteger(arity);
|
|
2549
2549
|
length -= holders ? holders.length : 0;
|
|
2550
2550
|
if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
|
|
2551
2551
|
var partialsRight = partials, holdersRight = holders;
|
|
2552
|
-
partials = holders =
|
|
2552
|
+
partials = holders = undefined2;
|
|
2553
2553
|
}
|
|
2554
|
-
var data = isBindKey ?
|
|
2554
|
+
var data = isBindKey ? undefined2 : getData(func);
|
|
2555
2555
|
var newData = [
|
|
2556
2556
|
func,
|
|
2557
2557
|
bitmask,
|
|
@@ -2572,7 +2572,7 @@ var string = (() => {
|
|
|
2572
2572
|
thisArg = newData[2];
|
|
2573
2573
|
partials = newData[3];
|
|
2574
2574
|
holders = newData[4];
|
|
2575
|
-
arity = newData[9] = newData[9] ===
|
|
2575
|
+
arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
2576
2576
|
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
|
|
2577
2577
|
bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
|
|
2578
2578
|
}
|
|
@@ -2583,13 +2583,13 @@ var string = (() => {
|
|
|
2583
2583
|
} else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
|
|
2584
2584
|
result2 = createPartial(func, bitmask, thisArg, partials);
|
|
2585
2585
|
} else {
|
|
2586
|
-
result2 = createHybrid.apply(
|
|
2586
|
+
result2 = createHybrid.apply(undefined2, newData);
|
|
2587
2587
|
}
|
|
2588
2588
|
var setter = data ? baseSetData : setData;
|
|
2589
2589
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
2590
2590
|
}
|
|
2591
2591
|
function customDefaultsAssignIn(objValue, srcValue, key, object) {
|
|
2592
|
-
if (objValue ===
|
|
2592
|
+
if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
|
|
2593
2593
|
return srcValue;
|
|
2594
2594
|
}
|
|
2595
2595
|
return objValue;
|
|
@@ -2597,13 +2597,13 @@ var string = (() => {
|
|
|
2597
2597
|
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
|
2598
2598
|
if (isObject(objValue) && isObject(srcValue)) {
|
|
2599
2599
|
stack.set(srcValue, objValue);
|
|
2600
|
-
baseMerge(objValue, srcValue,
|
|
2600
|
+
baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack);
|
|
2601
2601
|
stack["delete"](srcValue);
|
|
2602
2602
|
}
|
|
2603
2603
|
return objValue;
|
|
2604
2604
|
}
|
|
2605
2605
|
function customOmitClone(value) {
|
|
2606
|
-
return isPlainObject(value) ?
|
|
2606
|
+
return isPlainObject(value) ? undefined2 : value;
|
|
2607
2607
|
}
|
|
2608
2608
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
2609
2609
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
@@ -2615,7 +2615,7 @@ var string = (() => {
|
|
|
2615
2615
|
if (arrStacked && othStacked) {
|
|
2616
2616
|
return arrStacked == other && othStacked == array;
|
|
2617
2617
|
}
|
|
2618
|
-
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() :
|
|
2618
|
+
var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2;
|
|
2619
2619
|
stack.set(array, other);
|
|
2620
2620
|
stack.set(other, array);
|
|
2621
2621
|
while (++index < arrLength) {
|
|
@@ -2623,7 +2623,7 @@ var string = (() => {
|
|
|
2623
2623
|
if (customizer) {
|
|
2624
2624
|
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
2625
2625
|
}
|
|
2626
|
-
if (compared !==
|
|
2626
|
+
if (compared !== undefined2) {
|
|
2627
2627
|
if (compared) {
|
|
2628
2628
|
continue;
|
|
2629
2629
|
}
|
|
@@ -2721,7 +2721,7 @@ var string = (() => {
|
|
|
2721
2721
|
if (customizer) {
|
|
2722
2722
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2723
2723
|
}
|
|
2724
|
-
if (!(compared ===
|
|
2724
|
+
if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2725
2725
|
result2 = false;
|
|
2726
2726
|
break;
|
|
2727
2727
|
}
|
|
@@ -2738,7 +2738,7 @@ var string = (() => {
|
|
|
2738
2738
|
return result2;
|
|
2739
2739
|
}
|
|
2740
2740
|
function flatRest(func) {
|
|
2741
|
-
return setToString(overRest(func,
|
|
2741
|
+
return setToString(overRest(func, undefined2, flatten), func + "");
|
|
2742
2742
|
}
|
|
2743
2743
|
function getAllKeys(object) {
|
|
2744
2744
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
@@ -2782,12 +2782,12 @@ var string = (() => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
function getNative(object, key) {
|
|
2784
2784
|
var value = getValue(object, key);
|
|
2785
|
-
return baseIsNative(value) ? value :
|
|
2785
|
+
return baseIsNative(value) ? value : undefined2;
|
|
2786
2786
|
}
|
|
2787
2787
|
function getRawTag(value) {
|
|
2788
2788
|
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
2789
2789
|
try {
|
|
2790
|
-
value[symToStringTag] =
|
|
2790
|
+
value[symToStringTag] = undefined2;
|
|
2791
2791
|
var unmasked = true;
|
|
2792
2792
|
} catch (e) {
|
|
2793
2793
|
}
|
|
@@ -2821,7 +2821,7 @@ var string = (() => {
|
|
|
2821
2821
|
var getTag = baseGetTag;
|
|
2822
2822
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2823
2823
|
getTag = function(value) {
|
|
2824
|
-
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor :
|
|
2824
|
+
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2825
2825
|
if (ctorString) {
|
|
2826
2826
|
switch (ctorString) {
|
|
2827
2827
|
case dataViewCtorString:
|
|
@@ -2993,7 +2993,7 @@ var string = (() => {
|
|
|
2993
2993
|
if (object == null) {
|
|
2994
2994
|
return false;
|
|
2995
2995
|
}
|
|
2996
|
-
return object[key] === srcValue && (srcValue !==
|
|
2996
|
+
return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object));
|
|
2997
2997
|
};
|
|
2998
2998
|
}
|
|
2999
2999
|
function memoizeCapped(func) {
|
|
@@ -3055,7 +3055,7 @@ var string = (() => {
|
|
|
3055
3055
|
return nativeObjectToString.call(value);
|
|
3056
3056
|
}
|
|
3057
3057
|
function overRest(func, start, transform2) {
|
|
3058
|
-
start = nativeMax(start ===
|
|
3058
|
+
start = nativeMax(start === undefined2 ? func.length - 1 : start, 0);
|
|
3059
3059
|
return function() {
|
|
3060
3060
|
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
3061
3061
|
while (++index < length) {
|
|
@@ -3077,7 +3077,7 @@ var string = (() => {
|
|
|
3077
3077
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
3078
3078
|
while (length--) {
|
|
3079
3079
|
var index = indexes[length];
|
|
3080
|
-
array[length] = isIndex(index, arrLength) ? oldArray[index] :
|
|
3080
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2;
|
|
3081
3081
|
}
|
|
3082
3082
|
return array;
|
|
3083
3083
|
}
|
|
@@ -3111,12 +3111,12 @@ var string = (() => {
|
|
|
3111
3111
|
} else {
|
|
3112
3112
|
count = 0;
|
|
3113
3113
|
}
|
|
3114
|
-
return func.apply(
|
|
3114
|
+
return func.apply(undefined2, arguments);
|
|
3115
3115
|
};
|
|
3116
3116
|
}
|
|
3117
3117
|
function shuffleSelf(array, size2) {
|
|
3118
3118
|
var index = -1, length = array.length, lastIndex = length - 1;
|
|
3119
|
-
size2 = size2 ===
|
|
3119
|
+
size2 = size2 === undefined2 ? length : size2;
|
|
3120
3120
|
while (++index < size2) {
|
|
3121
3121
|
var rand = baseRandom(index, lastIndex), value = array[rand];
|
|
3122
3122
|
array[rand] = array[index];
|
|
@@ -3175,7 +3175,7 @@ var string = (() => {
|
|
|
3175
3175
|
return result2;
|
|
3176
3176
|
}
|
|
3177
3177
|
function chunk(array, size2, guard) {
|
|
3178
|
-
if (guard ? isIterateeCall(array, size2, guard) : size2 ===
|
|
3178
|
+
if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) {
|
|
3179
3179
|
size2 = 1;
|
|
3180
3180
|
} else {
|
|
3181
3181
|
size2 = nativeMax(toInteger(size2), 0);
|
|
@@ -3217,23 +3217,23 @@ var string = (() => {
|
|
|
3217
3217
|
var differenceBy = baseRest(function(array, values2) {
|
|
3218
3218
|
var iteratee2 = last(values2);
|
|
3219
3219
|
if (isArrayLikeObject(iteratee2)) {
|
|
3220
|
-
iteratee2 =
|
|
3220
|
+
iteratee2 = undefined2;
|
|
3221
3221
|
}
|
|
3222
3222
|
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : [];
|
|
3223
3223
|
});
|
|
3224
3224
|
var differenceWith = baseRest(function(array, values2) {
|
|
3225
3225
|
var comparator = last(values2);
|
|
3226
3226
|
if (isArrayLikeObject(comparator)) {
|
|
3227
|
-
comparator =
|
|
3227
|
+
comparator = undefined2;
|
|
3228
3228
|
}
|
|
3229
|
-
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true),
|
|
3229
|
+
return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : [];
|
|
3230
3230
|
});
|
|
3231
3231
|
function drop(array, n, guard) {
|
|
3232
3232
|
var length = array == null ? 0 : array.length;
|
|
3233
3233
|
if (!length) {
|
|
3234
3234
|
return [];
|
|
3235
3235
|
}
|
|
3236
|
-
n = guard || n ===
|
|
3236
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3237
3237
|
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3238
3238
|
}
|
|
3239
3239
|
function dropRight(array, n, guard) {
|
|
@@ -3241,7 +3241,7 @@ var string = (() => {
|
|
|
3241
3241
|
if (!length) {
|
|
3242
3242
|
return [];
|
|
3243
3243
|
}
|
|
3244
|
-
n = guard || n ===
|
|
3244
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3245
3245
|
n = length - n;
|
|
3246
3246
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3247
3247
|
}
|
|
@@ -3279,7 +3279,7 @@ var string = (() => {
|
|
|
3279
3279
|
return -1;
|
|
3280
3280
|
}
|
|
3281
3281
|
var index = length - 1;
|
|
3282
|
-
if (fromIndex !==
|
|
3282
|
+
if (fromIndex !== undefined2) {
|
|
3283
3283
|
index = toInteger(fromIndex);
|
|
3284
3284
|
index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
3285
3285
|
}
|
|
@@ -3298,7 +3298,7 @@ var string = (() => {
|
|
|
3298
3298
|
if (!length) {
|
|
3299
3299
|
return [];
|
|
3300
3300
|
}
|
|
3301
|
-
depth = depth ===
|
|
3301
|
+
depth = depth === undefined2 ? 1 : toInteger(depth);
|
|
3302
3302
|
return baseFlatten(array, depth);
|
|
3303
3303
|
}
|
|
3304
3304
|
function fromPairs(pairs) {
|
|
@@ -3310,7 +3310,7 @@ var string = (() => {
|
|
|
3310
3310
|
return result2;
|
|
3311
3311
|
}
|
|
3312
3312
|
function head(array) {
|
|
3313
|
-
return array && array.length ? array[0] :
|
|
3313
|
+
return array && array.length ? array[0] : undefined2;
|
|
3314
3314
|
}
|
|
3315
3315
|
function indexOf(array, value, fromIndex) {
|
|
3316
3316
|
var length = array == null ? 0 : array.length;
|
|
@@ -3334,7 +3334,7 @@ var string = (() => {
|
|
|
3334
3334
|
var intersectionBy = baseRest(function(arrays) {
|
|
3335
3335
|
var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
|
|
3336
3336
|
if (iteratee2 === last(mapped)) {
|
|
3337
|
-
iteratee2 =
|
|
3337
|
+
iteratee2 = undefined2;
|
|
3338
3338
|
} else {
|
|
3339
3339
|
mapped.pop();
|
|
3340
3340
|
}
|
|
@@ -3342,18 +3342,18 @@ var string = (() => {
|
|
|
3342
3342
|
});
|
|
3343
3343
|
var intersectionWith = baseRest(function(arrays) {
|
|
3344
3344
|
var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
|
|
3345
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3345
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3346
3346
|
if (comparator) {
|
|
3347
3347
|
mapped.pop();
|
|
3348
3348
|
}
|
|
3349
|
-
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped,
|
|
3349
|
+
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
|
|
3350
3350
|
});
|
|
3351
3351
|
function join(array, separator) {
|
|
3352
3352
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
3353
3353
|
}
|
|
3354
3354
|
function last(array) {
|
|
3355
3355
|
var length = array == null ? 0 : array.length;
|
|
3356
|
-
return length ? array[length - 1] :
|
|
3356
|
+
return length ? array[length - 1] : undefined2;
|
|
3357
3357
|
}
|
|
3358
3358
|
function lastIndexOf(array, value, fromIndex) {
|
|
3359
3359
|
var length = array == null ? 0 : array.length;
|
|
@@ -3361,14 +3361,14 @@ var string = (() => {
|
|
|
3361
3361
|
return -1;
|
|
3362
3362
|
}
|
|
3363
3363
|
var index = length;
|
|
3364
|
-
if (fromIndex !==
|
|
3364
|
+
if (fromIndex !== undefined2) {
|
|
3365
3365
|
index = toInteger(fromIndex);
|
|
3366
3366
|
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
|
3367
3367
|
}
|
|
3368
3368
|
return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
|
|
3369
3369
|
}
|
|
3370
3370
|
function nth(array, n) {
|
|
3371
|
-
return array && array.length ? baseNth(array, toInteger(n)) :
|
|
3371
|
+
return array && array.length ? baseNth(array, toInteger(n)) : undefined2;
|
|
3372
3372
|
}
|
|
3373
3373
|
var pull = baseRest(pullAll);
|
|
3374
3374
|
function pullAll(array, values2) {
|
|
@@ -3378,7 +3378,7 @@ var string = (() => {
|
|
|
3378
3378
|
return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array;
|
|
3379
3379
|
}
|
|
3380
3380
|
function pullAllWith(array, values2, comparator) {
|
|
3381
|
-
return array && array.length && values2 && values2.length ? basePullAll(array, values2,
|
|
3381
|
+
return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array;
|
|
3382
3382
|
}
|
|
3383
3383
|
var pullAt = flatRest(function(array, indexes) {
|
|
3384
3384
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
@@ -3417,7 +3417,7 @@ var string = (() => {
|
|
|
3417
3417
|
end = length;
|
|
3418
3418
|
} else {
|
|
3419
3419
|
start = start == null ? 0 : toInteger(start);
|
|
3420
|
-
end = end ===
|
|
3420
|
+
end = end === undefined2 ? length : toInteger(end);
|
|
3421
3421
|
}
|
|
3422
3422
|
return baseSlice(array, start, end);
|
|
3423
3423
|
}
|
|
@@ -3467,7 +3467,7 @@ var string = (() => {
|
|
|
3467
3467
|
if (!(array && array.length)) {
|
|
3468
3468
|
return [];
|
|
3469
3469
|
}
|
|
3470
|
-
n = guard || n ===
|
|
3470
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3471
3471
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
3472
3472
|
}
|
|
3473
3473
|
function takeRight(array, n, guard) {
|
|
@@ -3475,7 +3475,7 @@ var string = (() => {
|
|
|
3475
3475
|
if (!length) {
|
|
3476
3476
|
return [];
|
|
3477
3477
|
}
|
|
3478
|
-
n = guard || n ===
|
|
3478
|
+
n = guard || n === undefined2 ? 1 : toInteger(n);
|
|
3479
3479
|
n = length - n;
|
|
3480
3480
|
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
3481
3481
|
}
|
|
@@ -3491,14 +3491,14 @@ var string = (() => {
|
|
|
3491
3491
|
var unionBy = baseRest(function(arrays) {
|
|
3492
3492
|
var iteratee2 = last(arrays);
|
|
3493
3493
|
if (isArrayLikeObject(iteratee2)) {
|
|
3494
|
-
iteratee2 =
|
|
3494
|
+
iteratee2 = undefined2;
|
|
3495
3495
|
}
|
|
3496
3496
|
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2));
|
|
3497
3497
|
});
|
|
3498
3498
|
var unionWith = baseRest(function(arrays) {
|
|
3499
3499
|
var comparator = last(arrays);
|
|
3500
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3501
|
-
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true),
|
|
3500
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3501
|
+
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator);
|
|
3502
3502
|
});
|
|
3503
3503
|
function uniq(array) {
|
|
3504
3504
|
return array && array.length ? baseUniq(array) : [];
|
|
@@ -3507,8 +3507,8 @@ var string = (() => {
|
|
|
3507
3507
|
return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : [];
|
|
3508
3508
|
}
|
|
3509
3509
|
function uniqWith(array, comparator) {
|
|
3510
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3511
|
-
return array && array.length ? baseUniq(array,
|
|
3510
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3511
|
+
return array && array.length ? baseUniq(array, undefined2, comparator) : [];
|
|
3512
3512
|
}
|
|
3513
3513
|
function unzip(array) {
|
|
3514
3514
|
if (!(array && array.length)) {
|
|
@@ -3534,7 +3534,7 @@ var string = (() => {
|
|
|
3534
3534
|
return result2;
|
|
3535
3535
|
}
|
|
3536
3536
|
return arrayMap(result2, function(group) {
|
|
3537
|
-
return apply(iteratee2,
|
|
3537
|
+
return apply(iteratee2, undefined2, group);
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
3540
3540
|
var without = baseRest(function(array, values2) {
|
|
@@ -3546,14 +3546,14 @@ var string = (() => {
|
|
|
3546
3546
|
var xorBy = baseRest(function(arrays) {
|
|
3547
3547
|
var iteratee2 = last(arrays);
|
|
3548
3548
|
if (isArrayLikeObject(iteratee2)) {
|
|
3549
|
-
iteratee2 =
|
|
3549
|
+
iteratee2 = undefined2;
|
|
3550
3550
|
}
|
|
3551
3551
|
return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
|
|
3552
3552
|
});
|
|
3553
3553
|
var xorWith = baseRest(function(arrays) {
|
|
3554
3554
|
var comparator = last(arrays);
|
|
3555
|
-
comparator = typeof comparator == "function" ? comparator :
|
|
3556
|
-
return baseXor(arrayFilter(arrays, isArrayLikeObject),
|
|
3555
|
+
comparator = typeof comparator == "function" ? comparator : undefined2;
|
|
3556
|
+
return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator);
|
|
3557
3557
|
});
|
|
3558
3558
|
var zip = baseRest(unzip);
|
|
3559
3559
|
function zipObject(props, values2) {
|
|
@@ -3563,8 +3563,8 @@ var string = (() => {
|
|
|
3563
3563
|
return baseZipObject(props || [], values2 || [], baseSet);
|
|
3564
3564
|
}
|
|
3565
3565
|
var zipWith = baseRest(function(arrays) {
|
|
3566
|
-
var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] :
|
|
3567
|
-
iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) :
|
|
3566
|
+
var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2;
|
|
3567
|
+
iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2;
|
|
3568
3568
|
return unzipWith(arrays, iteratee2);
|
|
3569
3569
|
});
|
|
3570
3570
|
function chain(value) {
|
|
@@ -3590,11 +3590,11 @@ var string = (() => {
|
|
|
3590
3590
|
value.__actions__.push({
|
|
3591
3591
|
"func": thru,
|
|
3592
3592
|
"args": [interceptor],
|
|
3593
|
-
"thisArg":
|
|
3593
|
+
"thisArg": undefined2
|
|
3594
3594
|
});
|
|
3595
3595
|
return new LodashWrapper(value, this.__chain__).thru(function(array) {
|
|
3596
3596
|
if (length && !array.length) {
|
|
3597
|
-
array.push(
|
|
3597
|
+
array.push(undefined2);
|
|
3598
3598
|
}
|
|
3599
3599
|
return array;
|
|
3600
3600
|
});
|
|
@@ -3606,10 +3606,10 @@ var string = (() => {
|
|
|
3606
3606
|
return new LodashWrapper(this.value(), this.__chain__);
|
|
3607
3607
|
}
|
|
3608
3608
|
function wrapperNext() {
|
|
3609
|
-
if (this.__values__ ===
|
|
3609
|
+
if (this.__values__ === undefined2) {
|
|
3610
3610
|
this.__values__ = toArray(this.value());
|
|
3611
3611
|
}
|
|
3612
|
-
var done = this.__index__ >= this.__values__.length, value = done ?
|
|
3612
|
+
var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++];
|
|
3613
3613
|
return { "done": done, "value": value };
|
|
3614
3614
|
}
|
|
3615
3615
|
function wrapperToIterator() {
|
|
@@ -3620,7 +3620,7 @@ var string = (() => {
|
|
|
3620
3620
|
while (parent2 instanceof baseLodash) {
|
|
3621
3621
|
var clone2 = wrapperClone(parent2);
|
|
3622
3622
|
clone2.__index__ = 0;
|
|
3623
|
-
clone2.__values__ =
|
|
3623
|
+
clone2.__values__ = undefined2;
|
|
3624
3624
|
if (result2) {
|
|
3625
3625
|
previous.__wrapped__ = clone2;
|
|
3626
3626
|
} else {
|
|
@@ -3643,7 +3643,7 @@ var string = (() => {
|
|
|
3643
3643
|
wrapped.__actions__.push({
|
|
3644
3644
|
"func": thru,
|
|
3645
3645
|
"args": [reverse],
|
|
3646
|
-
"thisArg":
|
|
3646
|
+
"thisArg": undefined2
|
|
3647
3647
|
});
|
|
3648
3648
|
return new LodashWrapper(wrapped, this.__chain__);
|
|
3649
3649
|
}
|
|
@@ -3662,7 +3662,7 @@ var string = (() => {
|
|
|
3662
3662
|
function every(collection, predicate, guard) {
|
|
3663
3663
|
var func = isArray(collection) ? arrayEvery : baseEvery;
|
|
3664
3664
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
3665
|
-
predicate =
|
|
3665
|
+
predicate = undefined2;
|
|
3666
3666
|
}
|
|
3667
3667
|
return func(collection, getIteratee(predicate, 3));
|
|
3668
3668
|
}
|
|
@@ -3679,7 +3679,7 @@ var string = (() => {
|
|
|
3679
3679
|
return baseFlatten(map(collection, iteratee2), INFINITY);
|
|
3680
3680
|
}
|
|
3681
3681
|
function flatMapDepth(collection, iteratee2, depth) {
|
|
3682
|
-
depth = depth ===
|
|
3682
|
+
depth = depth === undefined2 ? 1 : toInteger(depth);
|
|
3683
3683
|
return baseFlatten(map(collection, iteratee2), depth);
|
|
3684
3684
|
}
|
|
3685
3685
|
function forEach(collection, iteratee2) {
|
|
@@ -3727,7 +3727,7 @@ var string = (() => {
|
|
|
3727
3727
|
if (!isArray(iteratees)) {
|
|
3728
3728
|
iteratees = iteratees == null ? [] : [iteratees];
|
|
3729
3729
|
}
|
|
3730
|
-
orders = guard ?
|
|
3730
|
+
orders = guard ? undefined2 : orders;
|
|
3731
3731
|
if (!isArray(orders)) {
|
|
3732
3732
|
orders = orders == null ? [] : [orders];
|
|
3733
3733
|
}
|
|
@@ -3755,7 +3755,7 @@ var string = (() => {
|
|
|
3755
3755
|
return func(collection);
|
|
3756
3756
|
}
|
|
3757
3757
|
function sampleSize(collection, n, guard) {
|
|
3758
|
-
if (guard ? isIterateeCall(collection, n, guard) : n ===
|
|
3758
|
+
if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) {
|
|
3759
3759
|
n = 1;
|
|
3760
3760
|
} else {
|
|
3761
3761
|
n = toInteger(n);
|
|
@@ -3783,7 +3783,7 @@ var string = (() => {
|
|
|
3783
3783
|
function some(collection, predicate, guard) {
|
|
3784
3784
|
var func = isArray(collection) ? arraySome : baseSome;
|
|
3785
3785
|
if (guard && isIterateeCall(collection, predicate, guard)) {
|
|
3786
|
-
predicate =
|
|
3786
|
+
predicate = undefined2;
|
|
3787
3787
|
}
|
|
3788
3788
|
return func(collection, getIteratee(predicate, 3));
|
|
3789
3789
|
}
|
|
@@ -3814,9 +3814,9 @@ var string = (() => {
|
|
|
3814
3814
|
};
|
|
3815
3815
|
}
|
|
3816
3816
|
function ary(func, n, guard) {
|
|
3817
|
-
n = guard ?
|
|
3817
|
+
n = guard ? undefined2 : n;
|
|
3818
3818
|
n = func && n == null ? func.length : n;
|
|
3819
|
-
return createWrap(func, WRAP_ARY_FLAG,
|
|
3819
|
+
return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n);
|
|
3820
3820
|
}
|
|
3821
3821
|
function before(n, func) {
|
|
3822
3822
|
var result2;
|
|
@@ -3829,7 +3829,7 @@ var string = (() => {
|
|
|
3829
3829
|
result2 = func.apply(this, arguments);
|
|
3830
3830
|
}
|
|
3831
3831
|
if (n <= 1) {
|
|
3832
|
-
func =
|
|
3832
|
+
func = undefined2;
|
|
3833
3833
|
}
|
|
3834
3834
|
return result2;
|
|
3835
3835
|
};
|
|
@@ -3851,14 +3851,14 @@ var string = (() => {
|
|
|
3851
3851
|
return createWrap(key, bitmask, object, partials, holders);
|
|
3852
3852
|
});
|
|
3853
3853
|
function curry(func, arity, guard) {
|
|
3854
|
-
arity = guard ?
|
|
3855
|
-
var result2 = createWrap(func, WRAP_CURRY_FLAG,
|
|
3854
|
+
arity = guard ? undefined2 : arity;
|
|
3855
|
+
var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
|
|
3856
3856
|
result2.placeholder = curry.placeholder;
|
|
3857
3857
|
return result2;
|
|
3858
3858
|
}
|
|
3859
3859
|
function curryRight(func, arity, guard) {
|
|
3860
|
-
arity = guard ?
|
|
3861
|
-
var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG,
|
|
3860
|
+
arity = guard ? undefined2 : arity;
|
|
3861
|
+
var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
|
|
3862
3862
|
result2.placeholder = curryRight.placeholder;
|
|
3863
3863
|
return result2;
|
|
3864
3864
|
}
|
|
@@ -3876,7 +3876,7 @@ var string = (() => {
|
|
|
3876
3876
|
}
|
|
3877
3877
|
function invokeFunc(time) {
|
|
3878
3878
|
var args = lastArgs, thisArg = lastThis;
|
|
3879
|
-
lastArgs = lastThis =
|
|
3879
|
+
lastArgs = lastThis = undefined2;
|
|
3880
3880
|
lastInvokeTime = time;
|
|
3881
3881
|
result2 = func.apply(thisArg, args);
|
|
3882
3882
|
return result2;
|
|
@@ -3892,7 +3892,7 @@ var string = (() => {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
function shouldInvoke(time) {
|
|
3894
3894
|
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
3895
|
-
return lastCallTime ===
|
|
3895
|
+
return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
3896
3896
|
}
|
|
3897
3897
|
function timerExpired() {
|
|
3898
3898
|
var time = now();
|
|
@@ -3902,22 +3902,22 @@ var string = (() => {
|
|
|
3902
3902
|
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
3903
3903
|
}
|
|
3904
3904
|
function trailingEdge(time) {
|
|
3905
|
-
timerId =
|
|
3905
|
+
timerId = undefined2;
|
|
3906
3906
|
if (trailing && lastArgs) {
|
|
3907
3907
|
return invokeFunc(time);
|
|
3908
3908
|
}
|
|
3909
|
-
lastArgs = lastThis =
|
|
3909
|
+
lastArgs = lastThis = undefined2;
|
|
3910
3910
|
return result2;
|
|
3911
3911
|
}
|
|
3912
3912
|
function cancel() {
|
|
3913
|
-
if (timerId !==
|
|
3913
|
+
if (timerId !== undefined2) {
|
|
3914
3914
|
clearTimeout2(timerId);
|
|
3915
3915
|
}
|
|
3916
3916
|
lastInvokeTime = 0;
|
|
3917
|
-
lastArgs = lastCallTime = lastThis = timerId =
|
|
3917
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined2;
|
|
3918
3918
|
}
|
|
3919
3919
|
function flush() {
|
|
3920
|
-
return timerId ===
|
|
3920
|
+
return timerId === undefined2 ? result2 : trailingEdge(now());
|
|
3921
3921
|
}
|
|
3922
3922
|
function debounced() {
|
|
3923
3923
|
var time = now(), isInvoking = shouldInvoke(time);
|
|
@@ -3925,7 +3925,7 @@ var string = (() => {
|
|
|
3925
3925
|
lastThis = this;
|
|
3926
3926
|
lastCallTime = time;
|
|
3927
3927
|
if (isInvoking) {
|
|
3928
|
-
if (timerId ===
|
|
3928
|
+
if (timerId === undefined2) {
|
|
3929
3929
|
return leadingEdge(lastCallTime);
|
|
3930
3930
|
}
|
|
3931
3931
|
if (maxing) {
|
|
@@ -3934,7 +3934,7 @@ var string = (() => {
|
|
|
3934
3934
|
return invokeFunc(lastCallTime);
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
|
-
if (timerId ===
|
|
3937
|
+
if (timerId === undefined2) {
|
|
3938
3938
|
timerId = setTimeout2(timerExpired, wait);
|
|
3939
3939
|
}
|
|
3940
3940
|
return result2;
|
|
@@ -4004,20 +4004,20 @@ var string = (() => {
|
|
|
4004
4004
|
});
|
|
4005
4005
|
var partial = baseRest(function(func, partials) {
|
|
4006
4006
|
var holders = replaceHolders(partials, getHolder(partial));
|
|
4007
|
-
return createWrap(func, WRAP_PARTIAL_FLAG,
|
|
4007
|
+
return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders);
|
|
4008
4008
|
});
|
|
4009
4009
|
var partialRight = baseRest(function(func, partials) {
|
|
4010
4010
|
var holders = replaceHolders(partials, getHolder(partialRight));
|
|
4011
|
-
return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG,
|
|
4011
|
+
return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders);
|
|
4012
4012
|
});
|
|
4013
4013
|
var rearg = flatRest(function(func, indexes) {
|
|
4014
|
-
return createWrap(func, WRAP_REARG_FLAG,
|
|
4014
|
+
return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes);
|
|
4015
4015
|
});
|
|
4016
4016
|
function rest(func, start) {
|
|
4017
4017
|
if (typeof func != "function") {
|
|
4018
4018
|
throw new TypeError2(FUNC_ERROR_TEXT);
|
|
4019
4019
|
}
|
|
4020
|
-
start = start ===
|
|
4020
|
+
start = start === undefined2 ? start : toInteger(start);
|
|
4021
4021
|
return baseRest(func, start);
|
|
4022
4022
|
}
|
|
4023
4023
|
function spread(func, start) {
|
|
@@ -4065,14 +4065,14 @@ var string = (() => {
|
|
|
4065
4065
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
4066
4066
|
}
|
|
4067
4067
|
function cloneWith(value, customizer) {
|
|
4068
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4068
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4069
4069
|
return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
|
|
4070
4070
|
}
|
|
4071
4071
|
function cloneDeep(value) {
|
|
4072
4072
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
4073
4073
|
}
|
|
4074
4074
|
function cloneDeepWith(value, customizer) {
|
|
4075
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4075
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4076
4076
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
|
|
4077
4077
|
}
|
|
4078
4078
|
function conformsTo(object, source) {
|
|
@@ -4131,9 +4131,9 @@ var string = (() => {
|
|
|
4131
4131
|
return baseIsEqual(value, other);
|
|
4132
4132
|
}
|
|
4133
4133
|
function isEqualWith(value, other, customizer) {
|
|
4134
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4135
|
-
var result2 = customizer ? customizer(value, other) :
|
|
4136
|
-
return result2 ===
|
|
4134
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4135
|
+
var result2 = customizer ? customizer(value, other) : undefined2;
|
|
4136
|
+
return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2;
|
|
4137
4137
|
}
|
|
4138
4138
|
function isError(value) {
|
|
4139
4139
|
if (!isObjectLike(value)) {
|
|
@@ -4170,7 +4170,7 @@ var string = (() => {
|
|
|
4170
4170
|
return object === source || baseIsMatch(object, source, getMatchData(source));
|
|
4171
4171
|
}
|
|
4172
4172
|
function isMatchWith(object, source, customizer) {
|
|
4173
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4173
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4174
4174
|
return baseIsMatch(object, source, getMatchData(source), customizer);
|
|
4175
4175
|
}
|
|
4176
4176
|
function isNaN2(value) {
|
|
@@ -4215,7 +4215,7 @@ var string = (() => {
|
|
|
4215
4215
|
}
|
|
4216
4216
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
4217
4217
|
function isUndefined(value) {
|
|
4218
|
-
return value ===
|
|
4218
|
+
return value === undefined2;
|
|
4219
4219
|
}
|
|
4220
4220
|
function isWeakMap(value) {
|
|
4221
4221
|
return isObjectLike(value) && getTag(value) == weakMapTag;
|
|
@@ -4314,7 +4314,7 @@ var string = (() => {
|
|
|
4314
4314
|
object = Object2(object);
|
|
4315
4315
|
var index = -1;
|
|
4316
4316
|
var length = sources.length;
|
|
4317
|
-
var guard = length > 2 ? sources[2] :
|
|
4317
|
+
var guard = length > 2 ? sources[2] : undefined2;
|
|
4318
4318
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
4319
4319
|
length = 1;
|
|
4320
4320
|
}
|
|
@@ -4326,7 +4326,7 @@ var string = (() => {
|
|
|
4326
4326
|
while (++propsIndex < propsLength) {
|
|
4327
4327
|
var key = props[propsIndex];
|
|
4328
4328
|
var value = object[key];
|
|
4329
|
-
if (value ===
|
|
4329
|
+
if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
|
|
4330
4330
|
object[key] = source[key];
|
|
4331
4331
|
}
|
|
4332
4332
|
}
|
|
@@ -4334,8 +4334,8 @@ var string = (() => {
|
|
|
4334
4334
|
return object;
|
|
4335
4335
|
});
|
|
4336
4336
|
var defaultsDeep = baseRest(function(args) {
|
|
4337
|
-
args.push(
|
|
4338
|
-
return apply(mergeWith,
|
|
4337
|
+
args.push(undefined2, customDefaultsMerge);
|
|
4338
|
+
return apply(mergeWith, undefined2, args);
|
|
4339
4339
|
});
|
|
4340
4340
|
function findKey(object, predicate) {
|
|
4341
4341
|
return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
|
|
@@ -4362,8 +4362,8 @@ var string = (() => {
|
|
|
4362
4362
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
4363
4363
|
}
|
|
4364
4364
|
function get(object, path, defaultValue) {
|
|
4365
|
-
var result2 = object == null ?
|
|
4366
|
-
return result2 ===
|
|
4365
|
+
var result2 = object == null ? undefined2 : baseGet(object, path);
|
|
4366
|
+
return result2 === undefined2 ? defaultValue : result2;
|
|
4367
4367
|
}
|
|
4368
4368
|
function has(object, path) {
|
|
4369
4369
|
return object != null && hasPath(object, path, baseHas);
|
|
@@ -4460,11 +4460,11 @@ var string = (() => {
|
|
|
4460
4460
|
var index = -1, length = path.length;
|
|
4461
4461
|
if (!length) {
|
|
4462
4462
|
length = 1;
|
|
4463
|
-
object =
|
|
4463
|
+
object = undefined2;
|
|
4464
4464
|
}
|
|
4465
4465
|
while (++index < length) {
|
|
4466
|
-
var value = object == null ?
|
|
4467
|
-
if (value ===
|
|
4466
|
+
var value = object == null ? undefined2 : object[toKey(path[index])];
|
|
4467
|
+
if (value === undefined2) {
|
|
4468
4468
|
index = length;
|
|
4469
4469
|
value = defaultValue;
|
|
4470
4470
|
}
|
|
@@ -4476,7 +4476,7 @@ var string = (() => {
|
|
|
4476
4476
|
return object == null ? object : baseSet(object, path, value);
|
|
4477
4477
|
}
|
|
4478
4478
|
function setWith(object, path, value, customizer) {
|
|
4479
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4479
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4480
4480
|
return object == null ? object : baseSet(object, path, value, customizer);
|
|
4481
4481
|
}
|
|
4482
4482
|
var toPairs = createToPairs(keys);
|
|
@@ -4506,7 +4506,7 @@ var string = (() => {
|
|
|
4506
4506
|
return object == null ? object : baseUpdate(object, path, castFunction(updater));
|
|
4507
4507
|
}
|
|
4508
4508
|
function updateWith(object, path, updater, customizer) {
|
|
4509
|
-
customizer = typeof customizer == "function" ? customizer :
|
|
4509
|
+
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4510
4510
|
return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
|
|
4511
4511
|
}
|
|
4512
4512
|
function values(object) {
|
|
@@ -4516,15 +4516,15 @@ var string = (() => {
|
|
|
4516
4516
|
return object == null ? [] : baseValues(object, keysIn(object));
|
|
4517
4517
|
}
|
|
4518
4518
|
function clamp(number, lower, upper) {
|
|
4519
|
-
if (upper ===
|
|
4519
|
+
if (upper === undefined2) {
|
|
4520
4520
|
upper = lower;
|
|
4521
|
-
lower =
|
|
4521
|
+
lower = undefined2;
|
|
4522
4522
|
}
|
|
4523
|
-
if (upper !==
|
|
4523
|
+
if (upper !== undefined2) {
|
|
4524
4524
|
upper = toNumber(upper);
|
|
4525
4525
|
upper = upper === upper ? upper : 0;
|
|
4526
4526
|
}
|
|
4527
|
-
if (lower !==
|
|
4527
|
+
if (lower !== undefined2) {
|
|
4528
4528
|
lower = toNumber(lower);
|
|
4529
4529
|
lower = lower === lower ? lower : 0;
|
|
4530
4530
|
}
|
|
@@ -4532,7 +4532,7 @@ var string = (() => {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
function inRange(number, start, end) {
|
|
4534
4534
|
start = toFinite(start);
|
|
4535
|
-
if (end ===
|
|
4535
|
+
if (end === undefined2) {
|
|
4536
4536
|
end = start;
|
|
4537
4537
|
start = 0;
|
|
4538
4538
|
} else {
|
|
@@ -4543,23 +4543,23 @@ var string = (() => {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
function random(lower, upper, floating) {
|
|
4545
4545
|
if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) {
|
|
4546
|
-
upper = floating =
|
|
4546
|
+
upper = floating = undefined2;
|
|
4547
4547
|
}
|
|
4548
|
-
if (floating ===
|
|
4548
|
+
if (floating === undefined2) {
|
|
4549
4549
|
if (typeof upper == "boolean") {
|
|
4550
4550
|
floating = upper;
|
|
4551
|
-
upper =
|
|
4551
|
+
upper = undefined2;
|
|
4552
4552
|
} else if (typeof lower == "boolean") {
|
|
4553
4553
|
floating = lower;
|
|
4554
|
-
lower =
|
|
4554
|
+
lower = undefined2;
|
|
4555
4555
|
}
|
|
4556
4556
|
}
|
|
4557
|
-
if (lower ===
|
|
4557
|
+
if (lower === undefined2 && upper === undefined2) {
|
|
4558
4558
|
lower = 0;
|
|
4559
4559
|
upper = 1;
|
|
4560
4560
|
} else {
|
|
4561
4561
|
lower = toFinite(lower);
|
|
4562
|
-
if (upper ===
|
|
4562
|
+
if (upper === undefined2) {
|
|
4563
4563
|
upper = lower;
|
|
4564
4564
|
lower = 0;
|
|
4565
4565
|
} else {
|
|
@@ -4592,7 +4592,7 @@ var string = (() => {
|
|
|
4592
4592
|
string = toString(string);
|
|
4593
4593
|
target = baseToString(target);
|
|
4594
4594
|
var length = string.length;
|
|
4595
|
-
position = position ===
|
|
4595
|
+
position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length);
|
|
4596
4596
|
var end = position;
|
|
4597
4597
|
position -= target.length;
|
|
4598
4598
|
return position >= 0 && string.slice(position, end) == target;
|
|
@@ -4643,7 +4643,7 @@ var string = (() => {
|
|
|
4643
4643
|
return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0);
|
|
4644
4644
|
}
|
|
4645
4645
|
function repeat(string, n, guard) {
|
|
4646
|
-
if (guard ? isIterateeCall(string, n, guard) : n ===
|
|
4646
|
+
if (guard ? isIterateeCall(string, n, guard) : n === undefined2) {
|
|
4647
4647
|
n = 1;
|
|
4648
4648
|
} else {
|
|
4649
4649
|
n = toInteger(n);
|
|
@@ -4659,9 +4659,9 @@ var string = (() => {
|
|
|
4659
4659
|
});
|
|
4660
4660
|
function split(string, separator, limit) {
|
|
4661
4661
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
4662
|
-
separator = limit =
|
|
4662
|
+
separator = limit = undefined2;
|
|
4663
4663
|
}
|
|
4664
|
-
limit = limit ===
|
|
4664
|
+
limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0;
|
|
4665
4665
|
if (!limit) {
|
|
4666
4666
|
return [];
|
|
4667
4667
|
}
|
|
@@ -4686,7 +4686,7 @@ var string = (() => {
|
|
|
4686
4686
|
function template(string, options, guard) {
|
|
4687
4687
|
var settings = lodash2.templateSettings;
|
|
4688
4688
|
if (guard && isIterateeCall(string, options, guard)) {
|
|
4689
|
-
options =
|
|
4689
|
+
options = undefined2;
|
|
4690
4690
|
}
|
|
4691
4691
|
string = toString(string);
|
|
4692
4692
|
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
@@ -4729,7 +4729,7 @@ var string = (() => {
|
|
|
4729
4729
|
source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
|
|
4730
4730
|
source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
|
|
4731
4731
|
var result2 = attempt(function() {
|
|
4732
|
-
return Function2(importsKeys, sourceURL + "return " + source).apply(
|
|
4732
|
+
return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues);
|
|
4733
4733
|
});
|
|
4734
4734
|
result2.source = source;
|
|
4735
4735
|
if (isError(result2)) {
|
|
@@ -4745,7 +4745,7 @@ var string = (() => {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
function trim(string, chars, guard) {
|
|
4747
4747
|
string = toString(string);
|
|
4748
|
-
if (string && (guard || chars ===
|
|
4748
|
+
if (string && (guard || chars === undefined2)) {
|
|
4749
4749
|
return baseTrim(string);
|
|
4750
4750
|
}
|
|
4751
4751
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4756,7 +4756,7 @@ var string = (() => {
|
|
|
4756
4756
|
}
|
|
4757
4757
|
function trimEnd(string, chars, guard) {
|
|
4758
4758
|
string = toString(string);
|
|
4759
|
-
if (string && (guard || chars ===
|
|
4759
|
+
if (string && (guard || chars === undefined2)) {
|
|
4760
4760
|
return string.slice(0, trimmedEndIndex(string) + 1);
|
|
4761
4761
|
}
|
|
4762
4762
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4767,7 +4767,7 @@ var string = (() => {
|
|
|
4767
4767
|
}
|
|
4768
4768
|
function trimStart(string, chars, guard) {
|
|
4769
4769
|
string = toString(string);
|
|
4770
|
-
if (string && (guard || chars ===
|
|
4770
|
+
if (string && (guard || chars === undefined2)) {
|
|
4771
4771
|
return string.replace(reTrimStart, "");
|
|
4772
4772
|
}
|
|
4773
4773
|
if (!string || !(chars = baseToString(chars))) {
|
|
@@ -4797,7 +4797,7 @@ var string = (() => {
|
|
|
4797
4797
|
return omission;
|
|
4798
4798
|
}
|
|
4799
4799
|
var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end);
|
|
4800
|
-
if (separator ===
|
|
4800
|
+
if (separator === undefined2) {
|
|
4801
4801
|
return result2 + omission;
|
|
4802
4802
|
}
|
|
4803
4803
|
if (strSymbols) {
|
|
@@ -4813,7 +4813,7 @@ var string = (() => {
|
|
|
4813
4813
|
while (match = separator.exec(substring)) {
|
|
4814
4814
|
var newEnd = match.index;
|
|
4815
4815
|
}
|
|
4816
|
-
result2 = result2.slice(0, newEnd ===
|
|
4816
|
+
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
|
4817
4817
|
}
|
|
4818
4818
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
4819
4819
|
var index = result2.lastIndexOf(separator);
|
|
@@ -4833,15 +4833,15 @@ var string = (() => {
|
|
|
4833
4833
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
4834
4834
|
function words(string, pattern, guard) {
|
|
4835
4835
|
string = toString(string);
|
|
4836
|
-
pattern = guard ?
|
|
4837
|
-
if (pattern ===
|
|
4836
|
+
pattern = guard ? undefined2 : pattern;
|
|
4837
|
+
if (pattern === undefined2) {
|
|
4838
4838
|
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
4839
4839
|
}
|
|
4840
4840
|
return string.match(pattern) || [];
|
|
4841
4841
|
}
|
|
4842
4842
|
var attempt = baseRest(function(func, args) {
|
|
4843
4843
|
try {
|
|
4844
|
-
return apply(func,
|
|
4844
|
+
return apply(func, undefined2, args);
|
|
4845
4845
|
} catch (e) {
|
|
4846
4846
|
return isError(e) ? e : new Error2(e);
|
|
4847
4847
|
}
|
|
@@ -4955,7 +4955,7 @@ var string = (() => {
|
|
|
4955
4955
|
}
|
|
4956
4956
|
function propertyOf(object) {
|
|
4957
4957
|
return function(path) {
|
|
4958
|
-
return object == null ?
|
|
4958
|
+
return object == null ? undefined2 : baseGet(object, path);
|
|
4959
4959
|
};
|
|
4960
4960
|
}
|
|
4961
4961
|
var range = createRange();
|
|
@@ -5008,10 +5008,10 @@ var string = (() => {
|
|
|
5008
5008
|
}, 1);
|
|
5009
5009
|
var floor = createRound("floor");
|
|
5010
5010
|
function max(array) {
|
|
5011
|
-
return array && array.length ? baseExtremum(array, identity, baseGt) :
|
|
5011
|
+
return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2;
|
|
5012
5012
|
}
|
|
5013
5013
|
function maxBy(array, iteratee2) {
|
|
5014
|
-
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) :
|
|
5014
|
+
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2;
|
|
5015
5015
|
}
|
|
5016
5016
|
function mean(array) {
|
|
5017
5017
|
return baseMean(array, identity);
|
|
@@ -5020,10 +5020,10 @@ var string = (() => {
|
|
|
5020
5020
|
return baseMean(array, getIteratee(iteratee2, 2));
|
|
5021
5021
|
}
|
|
5022
5022
|
function min(array) {
|
|
5023
|
-
return array && array.length ? baseExtremum(array, identity, baseLt) :
|
|
5023
|
+
return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2;
|
|
5024
5024
|
}
|
|
5025
5025
|
function minBy(array, iteratee2) {
|
|
5026
|
-
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) :
|
|
5026
|
+
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2;
|
|
5027
5027
|
}
|
|
5028
5028
|
var multiply = createMathOperation(function(multiplier, multiplicand) {
|
|
5029
5029
|
return multiplier * multiplicand;
|
|
@@ -5359,7 +5359,7 @@ var string = (() => {
|
|
|
5359
5359
|
});
|
|
5360
5360
|
arrayEach(["drop", "take"], function(methodName, index) {
|
|
5361
5361
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
5362
|
-
n = n ===
|
|
5362
|
+
n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0);
|
|
5363
5363
|
var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
|
|
5364
5364
|
if (result2.__filtered__) {
|
|
5365
5365
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
@@ -5430,7 +5430,7 @@ var string = (() => {
|
|
|
5430
5430
|
} else if (start) {
|
|
5431
5431
|
result2 = result2.drop(start);
|
|
5432
5432
|
}
|
|
5433
|
-
if (end !==
|
|
5433
|
+
if (end !== undefined2) {
|
|
5434
5434
|
end = toInteger(end);
|
|
5435
5435
|
result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
|
|
5436
5436
|
}
|
|
@@ -5460,7 +5460,7 @@ var string = (() => {
|
|
|
5460
5460
|
if (!retUnwrapped && useLazy) {
|
|
5461
5461
|
value = onlyLazy ? value : new LazyWrapper(this);
|
|
5462
5462
|
var result2 = func.apply(value, args);
|
|
5463
|
-
result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg":
|
|
5463
|
+
result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 });
|
|
5464
5464
|
return new LodashWrapper(result2, chainAll);
|
|
5465
5465
|
}
|
|
5466
5466
|
if (isUnwrapped && onlyLazy) {
|
|
@@ -5493,9 +5493,9 @@ var string = (() => {
|
|
|
5493
5493
|
realNames[key].push({ "name": methodName, "func": lodashFunc });
|
|
5494
5494
|
}
|
|
5495
5495
|
});
|
|
5496
|
-
realNames[createHybrid(
|
|
5496
|
+
realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{
|
|
5497
5497
|
"name": "wrapper",
|
|
5498
|
-
"func":
|
|
5498
|
+
"func": undefined2
|
|
5499
5499
|
}];
|
|
5500
5500
|
LazyWrapper.prototype.clone = lazyClone;
|
|
5501
5501
|
LazyWrapper.prototype.reverse = lazyReverse;
|
|
@@ -8372,10 +8372,16 @@ var string = (() => {
|
|
|
8372
8372
|
var _ = __toESM(require_lodash());
|
|
8373
8373
|
|
|
8374
8374
|
// src/lib/version.ts
|
|
8375
|
-
var LIBRARY_VERSION = "2.0.0-rc.
|
|
8375
|
+
var LIBRARY_VERSION = "2.0.0-rc.3";
|
|
8376
8376
|
var API_VERSION2 = 2;
|
|
8377
8377
|
|
|
8378
8378
|
// src/lib/processors/cli-string-command-processor.ts
|
|
8379
|
+
var inputText = (value, data) => {
|
|
8380
|
+
const fromValue = joinShellWords(value ?? "");
|
|
8381
|
+
if (fromValue) return fromValue;
|
|
8382
|
+
if (data === void 0 || data === null) return "";
|
|
8383
|
+
return typeof data === "string" ? data : JSON.stringify(data);
|
|
8384
|
+
};
|
|
8379
8385
|
var lodash = _.default || _;
|
|
8380
8386
|
function stringTransform(command, description, transform, options) {
|
|
8381
8387
|
return {
|
|
@@ -8385,7 +8391,7 @@ var string = (() => {
|
|
|
8385
8391
|
acceptsRawInput: true,
|
|
8386
8392
|
valueRequired: true,
|
|
8387
8393
|
processCommand: async (cmd, context) => {
|
|
8388
|
-
const text =
|
|
8394
|
+
const text = inputText(cmd.value, cmd.data);
|
|
8389
8395
|
const result = transform(text);
|
|
8390
8396
|
context.writer.writeln(
|
|
8391
8397
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${result}`
|
|
@@ -8578,7 +8584,7 @@ var string = (() => {
|
|
|
8578
8584
|
}
|
|
8579
8585
|
],
|
|
8580
8586
|
processCommand: async (command, context) => {
|
|
8581
|
-
const text =
|
|
8587
|
+
const text = inputText(command.value, command.data);
|
|
8582
8588
|
const count = Math.min(
|
|
8583
8589
|
parseInt(command.args["count"] || command.args["n"]) || 2,
|
|
8584
8590
|
1e3
|
|
@@ -8631,7 +8637,7 @@ var string = (() => {
|
|
|
8631
8637
|
}
|
|
8632
8638
|
],
|
|
8633
8639
|
processCommand: async (command, context) => {
|
|
8634
|
-
const text =
|
|
8640
|
+
const text = inputText(command.value, command.data);
|
|
8635
8641
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8636
8642
|
const replacement = command.args["with"] || command.args["w"] || "";
|
|
8637
8643
|
if (!find) {
|
|
@@ -8686,7 +8692,7 @@ var string = (() => {
|
|
|
8686
8692
|
}
|
|
8687
8693
|
],
|
|
8688
8694
|
processCommand: async (command, context) => {
|
|
8689
|
-
const text =
|
|
8695
|
+
const text = inputText(command.value, command.data);
|
|
8690
8696
|
const length = parseInt(command.args["length"] || command.args["l"]) || 30;
|
|
8691
8697
|
const suffix = command.args["suffix"] ?? "...";
|
|
8692
8698
|
const result = text.length > length ? text.substring(0, length - suffix.length) + suffix : text;
|
|
@@ -8736,7 +8742,7 @@ var string = (() => {
|
|
|
8736
8742
|
}
|
|
8737
8743
|
],
|
|
8738
8744
|
processCommand: async (command, context) => {
|
|
8739
|
-
const text =
|
|
8745
|
+
const text = inputText(command.value, command.data);
|
|
8740
8746
|
const length = parseInt(
|
|
8741
8747
|
command.args["length"] || command.args["l"]
|
|
8742
8748
|
);
|
|
@@ -8800,7 +8806,7 @@ var string = (() => {
|
|
|
8800
8806
|
}
|
|
8801
8807
|
],
|
|
8802
8808
|
processCommand: async (command, context) => {
|
|
8803
|
-
const text =
|
|
8809
|
+
const text = inputText(command.value, command.data);
|
|
8804
8810
|
const delimiter = command.args["by"] || command.args["d"] || command.args["delimiter"] || " ";
|
|
8805
8811
|
const parts = text.split(delimiter);
|
|
8806
8812
|
const { writer } = context;
|
|
@@ -8833,7 +8839,7 @@ var string = (() => {
|
|
|
8833
8839
|
acceptsRawInput: true,
|
|
8834
8840
|
valueRequired: true,
|
|
8835
8841
|
processCommand: async (command, context) => {
|
|
8836
|
-
const text =
|
|
8842
|
+
const text = inputText(command.value, command.data);
|
|
8837
8843
|
const words = lodash.words(text);
|
|
8838
8844
|
const { writer } = context;
|
|
8839
8845
|
writer.writeln(
|
|
@@ -8867,7 +8873,7 @@ var string = (() => {
|
|
|
8867
8873
|
acceptsRawInput: true,
|
|
8868
8874
|
valueRequired: true,
|
|
8869
8875
|
processCommand: async (command, context) => {
|
|
8870
|
-
const text =
|
|
8876
|
+
const text = inputText(command.value, command.data);
|
|
8871
8877
|
context.writer.writeln(
|
|
8872
8878
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${text.length}`
|
|
8873
8879
|
);
|
|
@@ -8890,7 +8896,7 @@ var string = (() => {
|
|
|
8890
8896
|
acceptsRawInput: true,
|
|
8891
8897
|
valueRequired: true,
|
|
8892
8898
|
processCommand: async (command, context) => {
|
|
8893
|
-
const text =
|
|
8899
|
+
const text = inputText(command.value, command.data);
|
|
8894
8900
|
const { writer } = context;
|
|
8895
8901
|
const lines = text.split(/\r?\n/).length;
|
|
8896
8902
|
const wordCount = text.trim() ? text.trim().split(/\s+/).length : 0;
|
|
@@ -8943,8 +8949,13 @@ var string = (() => {
|
|
|
8943
8949
|
}
|
|
8944
8950
|
],
|
|
8945
8951
|
processCommand: async (command, context) => {
|
|
8946
|
-
const text =
|
|
8952
|
+
const text = inputText(command.value, command.data);
|
|
8947
8953
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8954
|
+
if (!find) {
|
|
8955
|
+
context.writer.writeError("--find is required");
|
|
8956
|
+
context.process.exit(-1);
|
|
8957
|
+
return;
|
|
8958
|
+
}
|
|
8948
8959
|
const result = text.includes(find);
|
|
8949
8960
|
const { writer } = context;
|
|
8950
8961
|
if (result) {
|
|
@@ -8981,8 +8992,13 @@ var string = (() => {
|
|
|
8981
8992
|
}
|
|
8982
8993
|
],
|
|
8983
8994
|
processCommand: async (command, context) => {
|
|
8984
|
-
const text =
|
|
8995
|
+
const text = inputText(command.value, command.data);
|
|
8985
8996
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8997
|
+
if (!find) {
|
|
8998
|
+
context.writer.writeError("--find is required");
|
|
8999
|
+
context.process.exit(-1);
|
|
9000
|
+
return;
|
|
9001
|
+
}
|
|
8986
9002
|
const result = text.startsWith(find);
|
|
8987
9003
|
const { writer } = context;
|
|
8988
9004
|
writer.writeln(
|
|
@@ -9017,8 +9033,13 @@ var string = (() => {
|
|
|
9017
9033
|
}
|
|
9018
9034
|
],
|
|
9019
9035
|
processCommand: async (command, context) => {
|
|
9020
|
-
const text =
|
|
9036
|
+
const text = inputText(command.value, command.data);
|
|
9021
9037
|
const find = command.args["find"] || command.args["f"] || "";
|
|
9038
|
+
if (!find) {
|
|
9039
|
+
context.writer.writeError("--find is required");
|
|
9040
|
+
context.process.exit(-1);
|
|
9041
|
+
return;
|
|
9042
|
+
}
|
|
9022
9043
|
const result = text.endsWith(find);
|
|
9023
9044
|
const { writer } = context;
|
|
9024
9045
|
writer.writeln(
|