mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-10 20:12:48 +00:00
78 lines
2.2 KiB
JavaScript
78 lines
2.2 KiB
JavaScript
import {
|
|
require_assignValue
|
|
} from "./chunk-7DOMOZW7.js";
|
|
import {
|
|
require_baseGet,
|
|
require_castPath,
|
|
require_toKey
|
|
} from "./chunk-O2RBE7SN.js";
|
|
import {
|
|
require_isIndex
|
|
} from "./chunk-4BX7ITSR.js";
|
|
import {
|
|
require_isObject
|
|
} from "./chunk-3UIITD3Q.js";
|
|
import {
|
|
__commonJS
|
|
} from "./chunk-USJHI7ER.js";
|
|
|
|
// node_modules/lodash/_baseSet.js
|
|
var require_baseSet = __commonJS({
|
|
"node_modules/lodash/_baseSet.js"(exports, module) {
|
|
var assignValue = require_assignValue();
|
|
var castPath = require_castPath();
|
|
var isIndex = require_isIndex();
|
|
var isObject = require_isObject();
|
|
var toKey = require_toKey();
|
|
function baseSet(object, path, value, customizer) {
|
|
if (!isObject(object)) {
|
|
return object;
|
|
}
|
|
path = castPath(path, object);
|
|
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
while (nested != null && ++index < length) {
|
|
var key = toKey(path[index]), newValue = value;
|
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
return object;
|
|
}
|
|
if (index != lastIndex) {
|
|
var objValue = nested[key];
|
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
if (newValue === void 0) {
|
|
newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
}
|
|
}
|
|
assignValue(nested, key, newValue);
|
|
nested = nested[key];
|
|
}
|
|
return object;
|
|
}
|
|
module.exports = baseSet;
|
|
}
|
|
});
|
|
|
|
// node_modules/lodash/_basePickBy.js
|
|
var require_basePickBy = __commonJS({
|
|
"node_modules/lodash/_basePickBy.js"(exports, module) {
|
|
var baseGet = require_baseGet();
|
|
var baseSet = require_baseSet();
|
|
var castPath = require_castPath();
|
|
function basePickBy(object, paths, predicate) {
|
|
var index = -1, length = paths.length, result = {};
|
|
while (++index < length) {
|
|
var path = paths[index], value = baseGet(object, path);
|
|
if (predicate(value, path)) {
|
|
baseSet(result, castPath(path, object), value);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
module.exports = basePickBy;
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_basePickBy
|
|
};
|
|
//# sourceMappingURL=chunk-66UOWAIN.js.map
|