paradiego

This commit is contained in:
2024-09-18 13:34:19 -03:00
commit 3f0e204289
12510 changed files with 1486101 additions and 0 deletions

5
node_modules/@mui/utils/deepmerge/deepmerge.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
export interface DeepmergeOptions {
clone?: boolean;
}
export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;

47
node_modules/@mui/utils/deepmerge/deepmerge.js generated vendored Normal file
View File

@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = deepmerge;
exports.isPlainObject = isPlainObject;
// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
function isPlainObject(item) {
if (typeof item !== 'object' || item === null) {
return false;
}
const prototype = Object.getPrototypeOf(item);
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
}
function deepClone(source) {
if (!isPlainObject(source)) {
return source;
}
const output = {};
Object.keys(source).forEach(key => {
output[key] = deepClone(source[key]);
});
return output;
}
function deepmerge(target, source, options = {
clone: true
}) {
const output = options.clone ? {
...target
} : target;
if (isPlainObject(target) && isPlainObject(source)) {
Object.keys(source).forEach(key => {
if (isPlainObject(source[key]) &&
// Avoid prototype pollution
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
output[key] = deepmerge(target[key], source[key], options);
} else if (options.clone) {
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
} else {
output[key] = source[key];
}
});
}
return output;
}

2
node_modules/@mui/utils/deepmerge/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export { default } from './deepmerge';
export * from './deepmerge';

25
node_modules/@mui/utils/deepmerge/index.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _deepmerge.default;
}
});
var _deepmerge = _interopRequireWildcard(require("./deepmerge"));
Object.keys(_deepmerge).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _deepmerge[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _deepmerge[key];
}
});
});

6
node_modules/@mui/utils/deepmerge/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "../esm/deepmerge/index.js",
"main": "./index.js",
"types": "./index.d.ts"
}