// Module ID: 13044 // Function ID: 13045 // Dependencies: [12932, 12929, 13042] // Exports: callFrameToStackFrame, watchdogTimer // Module 13044 import stackParserFromStackParserOptions from "stackParserFromStackParserOptions" /* 12929 */; import _mod12932 from "module_12932" /* 12932 */; 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 = _mod12932; obj2.function = location.functionName || stackParserFromStackParserOptions.UNKNOWN_FUNCTION; obj2.colno = sum; obj2.lineno = sum1; let filenameIsInAppResult; if (replaced) { filenameIsInAppResult = tmp4(13042).filenameIsInApp(replaced); const tmp4Result = tmp4(13042); } 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; } }; };