114 lines
6.0 KiB
JavaScript
114 lines
6.0 KiB
JavaScript
/* Metro module 574; source: unknown; dependencies: [575, 573, 586] */
|
|
import * as Module00586Module from './module-00586.js'; /* Metro dependency 586 */
|
|
|
|
function _fun6943(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:6, offset: 0x00d0c1cf, size: 66 bytes, params: 8, frame: 3
|
|
const env0_0 = require;
|
|
let Math = global.Math;
|
|
const env0_2 = Math.max;
|
|
Math = global.Math;
|
|
const env0_3 = Math.min;
|
|
module.exports = exports_6944;
|
|
function exports_6944(a0, a1, a2) { // fn#6944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:66, offset: 0x00d0c211, size: 329 bytes, params: 4, frame: 20
|
|
var r2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const exports_6944Debounced2 = exports_6944Debounced;
|
|
let value = 0;
|
|
var env0_9;
|
|
const value2 = true;
|
|
if (typeof a0 !== 'function') {
|
|
throw new global.TypeError('Expected a function');
|
|
}
|
|
if ((require(573) /* metro dependency 573 */)(a2)) {
|
|
env0_9 = !!a2.leading;
|
|
if ('maxWait' in a2) {
|
|
value = max(require(dependencyMap[value])(a2.maxWait) || value, require(dependencyMap[value])(a1) || value);
|
|
}
|
|
r2 = 'trailing' in a2 ? !!a2.trailing : value2;
|
|
}
|
|
exports_6944Debounced2.cancel = cancel_6950;
|
|
exports_6944Debounced2.flush = flush_6951;
|
|
return exports_6944Debounced2;
|
|
function exports_6944InvokeFunc(a0) { // fn#6945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:193, owner: exports_6944.invokeFunc, offset: 0x00c47ad0, size: 49 bytes, params: 2, frame: 14
|
|
const binding = env0_2;
|
|
const binding2 = env0_3;
|
|
env0_8 = a0;
|
|
return env0_0.apply(binding2, binding);
|
|
}
|
|
|
|
function exports_6944ShouldInvoke(a0) { // fn#6946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:265, owner: exports_6944.shouldInvoke, offset: 0x00d0c35a, size: 75 bytes, params: 2, frame: 5
|
|
const value2 = a0 - env0_7;
|
|
let r0 = env0_7 === undefined || value2 >= require;
|
|
r0 = !r0 ? value2 < 0 : r0;
|
|
r0 = !r0 ? env0_10 && a0 - env0_8 >= env0_4 : r0;
|
|
return r0;
|
|
}
|
|
|
|
function exports_6944TimerExpired() { // fn#6947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:340, owner: exports_6944.timerExpired, offset: 0x00d0c3a5, size: 131 bytes, params: 1, frame: 19
|
|
const value = environment.__proto__;
|
|
const value2 = (Module00586Module)();
|
|
if (exports_6944ShouldInvoke(value2)) {
|
|
return exports_6944TrailingEdge(value2);
|
|
}
|
|
const setTimeout = global.setTimeout;
|
|
const exports_6944TimerExpiredBinding = exports_6944TimerExpired;
|
|
const value4 = require - (value2 - env0_7);
|
|
env0_6 = setTimeout(exports_6944TimerExpiredBinding, env0_10 ? min(value4, env0_4 - (value2 - env0_8)) : value4);
|
|
}
|
|
|
|
function exports_6944TrailingEdge(a0) { // fn#6948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:517, owner: exports_6944.trailingEdge, offset: 0x00c47bbb, size: 51 bytes, params: 2, frame: 12
|
|
return env0_11 && env0_2 ? exports_6944InvokeFunc(a0) : env0_5;
|
|
}
|
|
|
|
function exports_6944Debounced() { // fn#6949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:592, owner: exports_6944.debounced, offset: 0x00d0c428, size: 231 bytes, params: 1, frame: 15
|
|
var binding;
|
|
let value = environment.__proto__;
|
|
value = (require(586) /* metro dependency 586 */)();
|
|
const value3 = exports_6944ShouldInvoke(value);
|
|
env0_2 = arguments;
|
|
env0_7 = value;
|
|
if (value3) {
|
|
if (env0_6 === undefined) {
|
|
binding = env0_7;
|
|
env0_6 = global.setTimeout(exports_6944TimerExpired, require);
|
|
return env0_9 ? exports_6944InvokeFunc(binding) : env0_5;
|
|
}
|
|
if (env0_10) {
|
|
global.clearTimeout(env0_6);
|
|
env0_6 = global.setTimeout(exports_6944TimerExpired, require);
|
|
return exports_6944InvokeFunc(env0_7);
|
|
}
|
|
}
|
|
if (env0_6 === undefined) {
|
|
env0_6 = global.setTimeout(exports_6944TimerExpired, require);
|
|
}
|
|
return env0_5;
|
|
}
|
|
|
|
function exports_6944Cancel() { // fn#6950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:1055, owner: exports_6944.cancel, offset: 0x00d0c50f, size: 54 bytes, params: 1, frame: 12
|
|
if (env0_6 !== undefined) {
|
|
global.clearTimeout(env0_6);
|
|
}
|
|
}
|
|
|
|
function exports_6944Flush() { // fn#6951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:624:1137, owner: exports_6944.flush, offset: 0x00d0c545, size: 57 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var exports_6944TrailingEdgeBinding;
|
|
var value;
|
|
if (env0_6 === undefined) {
|
|
r0 = env0_5;
|
|
} else {
|
|
exports_6944TrailingEdgeBinding = exports_6944TrailingEdge;
|
|
value = environment.__proto__;
|
|
value = exports_6944TrailingEdgeBinding((require(586) /* metro dependency 586 */)());
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun6943, 574, [575, 573, 586]) /* metro module 574, dependencies: [575, 573, 586] */;
|