Files
discord-decomp/_bundle/Module6382.js
T
2026-11-01 12:12:55 +02:00

50 lines
1.5 KiB
JavaScript

// Metro module 6382 (f6383).
import { GLOBAL_OBJ } from "./Module6369";
let r35;
let performance2, timeOrigin;
export function dateTimestampInSeconds() {
return Date.now() / 1000;
}
performance2 = void 0;
timeOrigin = void 0;
performance2 = GLOBAL_OBJ.performance;
let r21 = dateTimestampInSeconds;
if (performance2) {
const now = performance2.now;
r21 = dateTimestampInSeconds;
if (now) {
let r27 = Date.now() - performance2.now();
if (performance2.timeOrigin != null) {
r27 = performance2.timeOrigin;
}
timeOrigin = r27;
r21 = () => (timeOrigin + performance2.now()) / 1000;
}
}
const performance3 = GLOBAL_OBJ.performance;
if (performance3 && performance3.now) {
const r12 = performance3.now();
let r39 = Date.now();
const r41 = performance3.timeOrigin ? Math.abs(performance3.timeOrigin + r12 - r39) : 3600000;
const r46 = r41 < 3600000;
let r47 = performance3.timing && performance3.timing.navigationStart;
const r49 = typeof r47 === "number" ? Math.abs(r47 + r12 - r39) : 3600000;
if (!r46 && !(r49 < 3600000)) {
exports._browserPerformanceTimeOriginMode = "dateNow";
} else {
if (r41 <= r49) {
exports._browserPerformanceTimeOriginMode = "timeOrigin";
r47 = performance3.timeOrigin;
} else {
exports._browserPerformanceTimeOriginMode = "navigationStart";
}
r39 = r47;
}
r35 = r39;
} else {
exports._browserPerformanceTimeOriginMode = "none";
r35 = void 0;
}
export { r35 as browserPerformanceTimeOrigin };
export { r21 as timestampInSeconds };