decord/source/__polyfill/01xxx/module_1452.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

91 lines
2.6 KiB
JavaScript

// Module ID: 1452
// Function ID: 1453
// Dependencies: [1453]
// Module 1452
import _mod1453 from "module_1453" /* 1453 */;
export default function forEach(str, call, arg2) {
if (_mod1453(call)) {
call = toString.call;
if ("[object Array]" === (typeof call === "unknown" ? toString() : call(str))) {
let num4 = 0;
if (0 < str.length) {
do {
let tmp19 = hasOwnProperty;
let call4 = hasOwnProperty.call;
let tmp20 = num4;
if (typeof call4 === "unknown" ? tmp19(num4) : call4(str, num4)) {
if (null == tmp6) {
let tmp23 = call(str[num4], num4, str);
} else {
let call5 = call.call;
let tmp21 = str[num4];
if (typeof call5 === "unknown") {
let tmp22 = call(tmp21, num4, str);
} else {
let call5Result = call5(tmp6, tmp21, tmp20, str);
}
}
}
num4 = num4 + 1;
} while (num4 < length2);
}
} else if (typeof str === "string") {
let num2 = 0;
if (0 < str.length) {
do {
if (null == tmp6) {
let tmp17 = call(str.charAt(num2), num2, str);
} else {
let call3 = call.call;
let charAtResult = str.charAt(num2);
if (typeof call3 === "unknown") {
let tmp16 = call(charAtResult, num2, str);
} else {
let call3Result = call3(tmp6, charAtResult, tmp14, str);
}
}
num2 = num2 + 1;
} while (num2 < length);
}
} else {
for (const key10024 in arg0) {
let tmp27 = hasOwnProperty;
let call6 = hasOwnProperty.call;
let tmp26 = key10024;
if (typeof call6 === "unknown") {
let call6Result = tmp27(key10024);
} else {
call6Result = call6(arg0, key10024);
}
if (!call6Result) {
continue;
} else {
if (null == tmp6) {
let tmp12 = arg1(arg0[key10024], key10024, arg0);
continue;
} else {
let call2 = arg1.call;
let tmp10 = arg0[key10024];
if (typeof call2 === "unknown") {
let tmp11 = arg1(tmp10, key10024, arg0);
continue;
} else {
let call2Result = call2(tmp6, tmp10, tmp26, arg0);
continue;
}
continue;
}
continue;
}
continue;
}
}
} else {
const _TypeError = TypeError;
const typeError = new TypeError("iterator must be a function");
throw typeError;
}
};