decord/source/__polyfill/12xxx/module_12951.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

48 lines
1.1 KiB
JavaScript

// Module ID: 12951
// Function ID: 12952
// Dependencies: []
// Module 12951
function merge(arg0, obj) {
let num = arg2;
if (arg2 === undefined) {
num = 2;
}
if (obj) {
if (typeof obj === "object") {
if (num > 0) {
if (arg0) {
if (obj) {
const _Object = Object;
if (0 === Object.keys(obj).length) {
return arg0;
}
}
}
obj = {};
const merged = Object.assign(arg0);
for (const key10016 in arg1) {
let _Object2 = Object;
hasOwnProperty = Object.prototype.hasOwnProperty;
let call = hasOwnProperty.call;
if (typeof call === "unknown") {
let hasOwnPropertyResult = hasOwnProperty(key10016);
} else {
hasOwnPropertyResult = call(arg1, key10016);
}
if (!hasOwnPropertyResult) {
continue;
} else {
obj[key10016] = merge(obj[key10016], arg1[key10016], num - 1);
continue;
}
continue;
}
return obj;
}
}
}
return obj;
}
export { merge };