qidian-shared 1.0.77 → 1.1.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/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +21 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +24 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +45 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +50 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +59 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +50 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +25 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +34 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +14 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +22 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +18 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +6 -0
- package/dist/utils/common.d.ts +3 -1
- package/dist/utils/common.mjs +8 -5
- package/dist/utils/conversion.mjs +2 -2
- package/package.json +4 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import hashClear from "./_hashClear.mjs";
|
|
2
|
+
import hashDelete from "./_hashDelete.mjs";
|
|
3
|
+
import hashGet from "./_hashGet.mjs";
|
|
4
|
+
import hashHas from "./_hashHas.mjs";
|
|
5
|
+
import hashSet from "./_hashSet.mjs";
|
|
6
|
+
function Hash(entries) {
|
|
7
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
8
|
+
this.clear();
|
|
9
|
+
while (++index < length) {
|
|
10
|
+
var entry = entries[index];
|
|
11
|
+
this.set(entry[0], entry[1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
Hash.prototype.clear = hashClear;
|
|
15
|
+
Hash.prototype["delete"] = hashDelete;
|
|
16
|
+
Hash.prototype.get = hashGet;
|
|
17
|
+
Hash.prototype.has = hashHas;
|
|
18
|
+
Hash.prototype.set = hashSet;
|
|
19
|
+
export {
|
|
20
|
+
Hash as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import listCacheClear from "./_listCacheClear.mjs";
|
|
2
|
+
import listCacheDelete from "./_listCacheDelete.mjs";
|
|
3
|
+
import listCacheGet from "./_listCacheGet.mjs";
|
|
4
|
+
import listCacheHas from "./_listCacheHas.mjs";
|
|
5
|
+
import listCacheSet from "./_listCacheSet.mjs";
|
|
6
|
+
function ListCache(entries) {
|
|
7
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
8
|
+
this.clear();
|
|
9
|
+
while (++index < length) {
|
|
10
|
+
var entry = entries[index];
|
|
11
|
+
this.set(entry[0], entry[1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
ListCache.prototype.clear = listCacheClear;
|
|
15
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
16
|
+
ListCache.prototype.get = listCacheGet;
|
|
17
|
+
ListCache.prototype.has = listCacheHas;
|
|
18
|
+
ListCache.prototype.set = listCacheSet;
|
|
19
|
+
export {
|
|
20
|
+
ListCache as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import mapCacheClear from "./_mapCacheClear.mjs";
|
|
2
|
+
import mapCacheDelete from "./_mapCacheDelete.mjs";
|
|
3
|
+
import mapCacheGet from "./_mapCacheGet.mjs";
|
|
4
|
+
import mapCacheHas from "./_mapCacheHas.mjs";
|
|
5
|
+
import mapCacheSet from "./_mapCacheSet.mjs";
|
|
6
|
+
function MapCache(entries) {
|
|
7
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
8
|
+
this.clear();
|
|
9
|
+
while (++index < length) {
|
|
10
|
+
var entry = entries[index];
|
|
11
|
+
this.set(entry[0], entry[1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
15
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
16
|
+
MapCache.prototype.get = mapCacheGet;
|
|
17
|
+
MapCache.prototype.has = mapCacheHas;
|
|
18
|
+
MapCache.prototype.set = mapCacheSet;
|
|
19
|
+
export {
|
|
20
|
+
MapCache as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import MapCache from "./_MapCache.mjs";
|
|
2
|
+
import setCacheAdd from "./_setCacheAdd.mjs";
|
|
3
|
+
import setCacheHas from "./_setCacheHas.mjs";
|
|
4
|
+
function SetCache(values) {
|
|
5
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
6
|
+
this.__data__ = new MapCache();
|
|
7
|
+
while (++index < length) {
|
|
8
|
+
this.add(values[index]);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
12
|
+
SetCache.prototype.has = setCacheHas;
|
|
13
|
+
export {
|
|
14
|
+
SetCache as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import ListCache from "./_ListCache.mjs";
|
|
2
|
+
import stackClear from "./_stackClear.mjs";
|
|
3
|
+
import stackDelete from "./_stackDelete.mjs";
|
|
4
|
+
import stackGet from "./_stackGet.mjs";
|
|
5
|
+
import stackHas from "./_stackHas.mjs";
|
|
6
|
+
import stackSet from "./_stackSet.mjs";
|
|
7
|
+
function Stack(entries) {
|
|
8
|
+
var data = this.__data__ = new ListCache(entries);
|
|
9
|
+
this.size = data.size;
|
|
10
|
+
}
|
|
11
|
+
Stack.prototype.clear = stackClear;
|
|
12
|
+
Stack.prototype["delete"] = stackDelete;
|
|
13
|
+
Stack.prototype.get = stackGet;
|
|
14
|
+
Stack.prototype.has = stackHas;
|
|
15
|
+
Stack.prototype.set = stackSet;
|
|
16
|
+
export {
|
|
17
|
+
Stack as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function arrayFilter(array, predicate) {
|
|
2
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
3
|
+
while (++index < length) {
|
|
4
|
+
var value = array[index];
|
|
5
|
+
if (predicate(value, index, array)) {
|
|
6
|
+
result[resIndex++] = value;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
arrayFilter as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import baseTimes from "./_baseTimes.mjs";
|
|
2
|
+
import isArguments from "./isArguments.mjs";
|
|
3
|
+
import isArray from "./isArray.mjs";
|
|
4
|
+
import isBuffer from "./isBuffer.mjs";
|
|
5
|
+
import isIndex from "./_isIndex.mjs";
|
|
6
|
+
import isTypedArray from "./isTypedArray.mjs";
|
|
7
|
+
var objectProto = Object.prototype;
|
|
8
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
9
|
+
function arrayLikeKeys(value, inherited) {
|
|
10
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
11
|
+
for (var key in value) {
|
|
12
|
+
if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
13
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
14
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
15
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
16
|
+
isIndex(key, length)))) {
|
|
17
|
+
result.push(key);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
arrayLikeKeys as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function arraySome(array, predicate) {
|
|
2
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
3
|
+
while (++index < length) {
|
|
4
|
+
if (predicate(array[index], index, array)) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
arraySome as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import arrayPush from "./_arrayPush.mjs";
|
|
2
|
+
import isArray from "./isArray.mjs";
|
|
3
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
4
|
+
var result = keysFunc(object);
|
|
5
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
baseGetAllKeys as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Symbol$1 from "./_Symbol.mjs";
|
|
2
|
+
import getRawTag from "./_getRawTag.mjs";
|
|
3
|
+
import objectToString from "./_objectToString.mjs";
|
|
4
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
5
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
6
|
+
function baseGetTag(value) {
|
|
7
|
+
if (value == null) {
|
|
8
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
9
|
+
}
|
|
10
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
baseGetTag as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import baseGetTag from "./_baseGetTag.mjs";
|
|
2
|
+
import isObjectLike from "./isObjectLike.mjs";
|
|
3
|
+
var argsTag = "[object Arguments]";
|
|
4
|
+
function baseIsArguments(value) {
|
|
5
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
baseIsArguments as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import baseIsEqualDeep from "./_baseIsEqualDeep.mjs";
|
|
2
|
+
import isObjectLike from "./isObjectLike.mjs";
|
|
3
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
4
|
+
if (value === other) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
8
|
+
return value !== value && other !== other;
|
|
9
|
+
}
|
|
10
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
baseIsEqual as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Stack from "./_Stack.mjs";
|
|
2
|
+
import equalArrays from "./_equalArrays.mjs";
|
|
3
|
+
import equalByTag from "./_equalByTag.mjs";
|
|
4
|
+
import equalObjects from "./_equalObjects.mjs";
|
|
5
|
+
import getTag from "./_getTag.mjs";
|
|
6
|
+
import isArray from "./isArray.mjs";
|
|
7
|
+
import isBuffer from "./isBuffer.mjs";
|
|
8
|
+
import isTypedArray from "./isTypedArray.mjs";
|
|
9
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
10
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
11
|
+
var objectProto = Object.prototype;
|
|
12
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
13
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
14
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
15
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
16
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
17
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
18
|
+
if (isSameTag && isBuffer(object)) {
|
|
19
|
+
if (!isBuffer(other)) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
objIsArr = true;
|
|
23
|
+
objIsObj = false;
|
|
24
|
+
}
|
|
25
|
+
if (isSameTag && !objIsObj) {
|
|
26
|
+
stack || (stack = new Stack());
|
|
27
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
28
|
+
}
|
|
29
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
30
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
31
|
+
if (objIsWrapped || othIsWrapped) {
|
|
32
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
33
|
+
stack || (stack = new Stack());
|
|
34
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (!isSameTag) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
stack || (stack = new Stack());
|
|
41
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
baseIsEqualDeep as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import isFunction from "./isFunction.mjs";
|
|
2
|
+
import isMasked from "./_isMasked.mjs";
|
|
3
|
+
import isObject from "./isObject.mjs";
|
|
4
|
+
import toSource from "./_toSource.mjs";
|
|
5
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
6
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
7
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
8
|
+
var funcToString = funcProto.toString;
|
|
9
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
10
|
+
var reIsNative = RegExp(
|
|
11
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12
|
+
);
|
|
13
|
+
function baseIsNative(value) {
|
|
14
|
+
if (!isObject(value) || isMasked(value)) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
18
|
+
return pattern.test(toSource(value));
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
baseIsNative as default
|
|
22
|
+
};
|
package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import baseGetTag from "./_baseGetTag.mjs";
|
|
2
|
+
import isLength from "./isLength.mjs";
|
|
3
|
+
import isObjectLike from "./isObjectLike.mjs";
|
|
4
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
|
|
5
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
6
|
+
var typedArrayTags = {};
|
|
7
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
8
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
9
|
+
function baseIsTypedArray(value) {
|
|
10
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
baseIsTypedArray as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import isPrototype from "./_isPrototype.mjs";
|
|
2
|
+
import nativeKeys from "./_nativeKeys.mjs";
|
|
3
|
+
var objectProto = Object.prototype;
|
|
4
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5
|
+
function baseKeys(object) {
|
|
6
|
+
if (!isPrototype(object)) {
|
|
7
|
+
return nativeKeys(object);
|
|
8
|
+
}
|
|
9
|
+
var result = [];
|
|
10
|
+
for (var key in Object(object)) {
|
|
11
|
+
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
12
|
+
result.push(key);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
baseKeys as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import SetCache from "./_SetCache.mjs";
|
|
2
|
+
import arraySome from "./_arraySome.mjs";
|
|
3
|
+
import cacheHas from "./_cacheHas.mjs";
|
|
4
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
5
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
6
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
7
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
var arrStacked = stack.get(array);
|
|
11
|
+
var othStacked = stack.get(other);
|
|
12
|
+
if (arrStacked && othStacked) {
|
|
13
|
+
return arrStacked == other && othStacked == array;
|
|
14
|
+
}
|
|
15
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
16
|
+
stack.set(array, other);
|
|
17
|
+
stack.set(other, array);
|
|
18
|
+
while (++index < arrLength) {
|
|
19
|
+
var arrValue = array[index], othValue = other[index];
|
|
20
|
+
if (customizer) {
|
|
21
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
22
|
+
}
|
|
23
|
+
if (compared !== void 0) {
|
|
24
|
+
if (compared) {
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
result = false;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
if (seen) {
|
|
31
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
32
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
33
|
+
return seen.push(othIndex);
|
|
34
|
+
}
|
|
35
|
+
})) {
|
|
36
|
+
result = false;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
40
|
+
result = false;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
stack["delete"](array);
|
|
45
|
+
stack["delete"](other);
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
equalArrays as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Symbol$1 from "./_Symbol.mjs";
|
|
2
|
+
import Uint8Array from "./_Uint8Array.mjs";
|
|
3
|
+
import eq from "./eq.mjs";
|
|
4
|
+
import equalArrays from "./_equalArrays.mjs";
|
|
5
|
+
import mapToArray from "./_mapToArray.mjs";
|
|
6
|
+
import setToArray from "./_setToArray.mjs";
|
|
7
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
8
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
9
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
10
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
11
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
12
|
+
switch (tag) {
|
|
13
|
+
case dataViewTag:
|
|
14
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
object = object.buffer;
|
|
18
|
+
other = other.buffer;
|
|
19
|
+
case arrayBufferTag:
|
|
20
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
case boolTag:
|
|
25
|
+
case dateTag:
|
|
26
|
+
case numberTag:
|
|
27
|
+
return eq(+object, +other);
|
|
28
|
+
case errorTag:
|
|
29
|
+
return object.name == other.name && object.message == other.message;
|
|
30
|
+
case regexpTag:
|
|
31
|
+
case stringTag:
|
|
32
|
+
return object == other + "";
|
|
33
|
+
case mapTag:
|
|
34
|
+
var convert = mapToArray;
|
|
35
|
+
case setTag:
|
|
36
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
37
|
+
convert || (convert = setToArray);
|
|
38
|
+
if (object.size != other.size && !isPartial) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
var stacked = stack.get(object);
|
|
42
|
+
if (stacked) {
|
|
43
|
+
return stacked == other;
|
|
44
|
+
}
|
|
45
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
46
|
+
stack.set(object, other);
|
|
47
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
48
|
+
stack["delete"](object);
|
|
49
|
+
return result;
|
|
50
|
+
case symbolTag:
|
|
51
|
+
if (symbolValueOf) {
|
|
52
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
equalByTag as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import getAllKeys from "./_getAllKeys.mjs";
|
|
2
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
3
|
+
var objectProto = Object.prototype;
|
|
4
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
6
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
7
|
+
if (objLength != othLength && !isPartial) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
var index = objLength;
|
|
11
|
+
while (index--) {
|
|
12
|
+
var key = objProps[index];
|
|
13
|
+
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
var objStacked = stack.get(object);
|
|
18
|
+
var othStacked = stack.get(other);
|
|
19
|
+
if (objStacked && othStacked) {
|
|
20
|
+
return objStacked == other && othStacked == object;
|
|
21
|
+
}
|
|
22
|
+
var result = true;
|
|
23
|
+
stack.set(object, other);
|
|
24
|
+
stack.set(other, object);
|
|
25
|
+
var skipCtor = isPartial;
|
|
26
|
+
while (++index < objLength) {
|
|
27
|
+
key = objProps[index];
|
|
28
|
+
var objValue = object[key], othValue = other[key];
|
|
29
|
+
if (customizer) {
|
|
30
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
31
|
+
}
|
|
32
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
33
|
+
result = false;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
37
|
+
}
|
|
38
|
+
if (result && !skipCtor) {
|
|
39
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
40
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
41
|
+
result = false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
stack["delete"](object);
|
|
45
|
+
stack["delete"](other);
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
equalObjects as default
|
|
50
|
+
};
|