66 lines
1.5 KiB
JavaScript
66 lines
1.5 KiB
JavaScript
// Metro module 831 (f832).
|
|
import { GLOBAL_OBJ } from "./Module821";
|
|
let c672_2;
|
|
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
value: "Module"
|
|
});
|
|
export function safeDateNow() {
|
|
let r19;
|
|
L10: {
|
|
const r5 = () => Date.now();
|
|
const r4 = c672_2;
|
|
if (r4 !== void 0) {
|
|
r19 = r4 ? r4(r5) : Date.now();
|
|
} else {
|
|
const r9 = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");
|
|
if (r9 in GLOBAL_OBJ && typeof GLOBAL_OBJ[r9] === "function") {
|
|
const r20 = GLOBAL_OBJ[r9];
|
|
c672_2 = r20;
|
|
r19 = r20(r5);
|
|
break L10;
|
|
}
|
|
c672_2 = null;
|
|
r19 = Date.now();
|
|
}
|
|
}
|
|
return r19;
|
|
}
|
|
export function safeMathRandom() {
|
|
let r19;
|
|
L10: {
|
|
const r5 = () => Math.random();
|
|
const r4 = c672_2;
|
|
if (r4 !== void 0) {
|
|
r19 = r4 ? r4(r5) : Math.random();
|
|
} else {
|
|
const r9 = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");
|
|
if (r9 in GLOBAL_OBJ && typeof GLOBAL_OBJ[r9] === "function") {
|
|
const r20 = GLOBAL_OBJ[r9];
|
|
c672_2 = r20;
|
|
r19 = r20(r5);
|
|
break L10;
|
|
}
|
|
c672_2 = null;
|
|
r19 = Math.random();
|
|
}
|
|
}
|
|
return r19;
|
|
}
|
|
export function withRandomSafeContext(a0) {
|
|
let r17;
|
|
const r3 = c672_2;
|
|
if (r3 !== void 0) {
|
|
return r3 ? r3(a0) : a0();
|
|
}
|
|
const r9 = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");
|
|
if (r9 in GLOBAL_OBJ && typeof GLOBAL_OBJ[r9] === "function") {
|
|
const r18 = GLOBAL_OBJ[r9];
|
|
c672_2 = r18;
|
|
r17 = r18(a0);
|
|
} else {
|
|
c672_2 = null;
|
|
r17 = a0();
|
|
}
|
|
return r17;
|
|
}
|