56 lines
2.8 KiB
JavaScript
56 lines
2.8 KiB
JavaScript
/* Metro module 840; source: unknown; dependencies: [830] */
|
|
function _fun9099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:6, offset: 0x00d5d1e5, size: 104 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const withRandomSafeContext2 = withRandomSafeContext;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.safeDateNow = function() {
|
|
return withRandomSafeContext(_fun9102);
|
|
};
|
|
exports.safeMathRandom = function() {
|
|
return withRandomSafeContext(_fun9104);
|
|
};
|
|
exports.withRandomSafeContext = withRandomSafeContext2;
|
|
function withRandomSafeContext(a0) { // fn#9100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:36, offset: 0x00d5d24d, size: 139 bytes, params: 2, frame: 15
|
|
var r0;
|
|
if (env0_2 !== undefined) {
|
|
r0 = env0_2 ? env0_2(a0) : a0();
|
|
} else {
|
|
var Symbol = global.Symbol;
|
|
var value2 = Symbol.for('__SENTRY_SAFE_RANDOM_ID_WRAPPER__');
|
|
var GLOBAL_OBJ = (require(830) /* metro dependency 830 */).GLOBAL_OBJ;
|
|
r0 = value2 in GLOBAL_OBJ && typeof GLOBAL_OBJ[value2] === 'function' ? GLOBAL_OBJ[value2](a0) : a0();
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function safeDateNow() { // fn#9101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:316, offset: 0x00d5d2d8, size: 23 bytes, params: 1, frame: 11
|
|
return withRandomSafeContext(function() {
|
|
var Date = global.Date;
|
|
return Date.now();
|
|
});
|
|
}
|
|
|
|
function safeMathRandom() { // fn#9103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:419, offset: 0x00d5d2ef, size: 23 bytes, params: 1, frame: 11
|
|
return withRandomSafeContext(function() {
|
|
var Math = global.Math;
|
|
return Math.random();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun9102() { // fn#9102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:369, offset: 0x00c36b26, size: 19 bytes, params: 1, frame: 9
|
|
const Date = global.Date;
|
|
return Date.now();
|
|
}
|
|
|
|
function _fun9104() { // fn#9104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:967:475, offset: 0x00d5d306, size: 20 bytes, params: 1, frame: 9
|
|
const Math = global.Math;
|
|
return Math.random();
|
|
}
|
|
|
|
global.__d(_fun9099, 840, [830]) /* metro module 840, dependencies: [830] */;
|