decord/source/__polyfill/13xxx/module_13066.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

70 lines
1.8 KiB
JavaScript

// Module ID: 13066
// Function ID: 13067
// Dependencies: [12954, 12951, 13064]
// Exports: callFrameToStackFrame, watchdogTimer
// Module 13066
import stackParserFromStackParserOptions from "stackParserFromStackParserOptions" /* 12951 */;
import _mod12954 from "module_12954" /* 12954 */;
require = arg1;
const dependencyMap = arg6;
export const callFrameToStackFrame = function callFrameToStackFrame(location, str, fn) {
let replaced;
if (str) {
replaced = str.replace(/^file:\/\//, "");
}
let sum;
if (location.location.columnNumber) {
sum = location.location.columnNumber + 1;
}
let sum1;
if (location.location.lineNumber) {
sum1 = location.location.lineNumber + 1;
}
const obj2 = { filename: replaced, module: fn(replaced), function: null, colno: null, lineno: null, in_app: null };
const obj = _mod12954;
obj2.function = location.functionName || stackParserFromStackParserOptions.UNKNOWN_FUNCTION;
obj2.colno = sum;
obj2.lineno = sum1;
let filenameIsInAppResult;
if (replaced) {
filenameIsInAppResult = tmp4(13064).filenameIsInApp(replaced);
const tmp4Result = tmp4(13064);
}
obj2.in_app = filenameIsInAppResult;
return obj.dropUndefinedKeys(obj2);
};
export const watchdogTimer = function watchdogTimer(fn, arg1, arg2, arg3) {
closure_0 = arg1;
closure_1 = arg2;
closure_2 = arg3;
const navigation = fn();
c4 = false;
closure_5 = true;
const timerId = setInterval(() => {
const timeMs = navigation.getTimeMs();
let tmp2 = false === c4;
if (tmp2) {
tmp2 = timeMs > closure_0 + closure_1;
}
if (tmp2) {
c4 = true;
if (closure_5) {
closure_2();
}
}
if (timeMs < closure_0 + closure_1) {
c4 = false;
}
}, 20);
return {
poll() {
navigation.reset();
},
enabled(arg0) {
closure_5 = arg0;
}
};
};