Files
2026-07-28 01:06:53 +03:00

144 lines
7.2 KiB
JavaScript

/* Metro module 1044; source: unknown; dependencies: [1045, 1056, 1052, 1048, 1057, 1058, 1054, 1055, 1047] */
import * as Module01045Module from './module-01045.js'; /* Metro dependency 1045 */
import * as GetVisibilityWatcherModule from './module-01048-getVisibilityWatcher.js'; /* Metro dependency 1048 */
import * as InitMetricModule from './module-01052-initMetric.js'; /* Metro dependency 1052 */
import * as RunOnceModule from './module-01056-runOnce.js'; /* Metro dependency 1056 */
import * as moduleValue3 from './module-01057-initUnique.js'; /* Metro dependency 1057 */
import * as LayoutShiftManagerModule from './module-01058-LayoutShiftManager.js'; /* Metro dependency 1058 */
function _fun11073(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1171:6, offset: 0x00da036f, size: 100 bytes, params: 8, frame: 17
const env0_0 = require;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.CLSThresholds = [0.1, 0.25];
exports.onCLS = onCLS;
function onCLS(a0) { // fn#11074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1171:132, offset: 0x00da03d3, size: 103 bytes, params: 2, frame: 15
const env0_0 = a0;
const env0_1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
const onFCP = Module01045Module.onFCP;
Reflect.apply(onFCP, Module01045Module, [RunOnceModule.runOnce(_fun11075)]);
function _fun11075() { // fn#11075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1171:245, offset: 0x00da043a, size: 300 bytes, params: 1, frame: 23
var environment;
var moduleValue5;
var WINDOW;
let value = environment.__proto__;
const value2 = (InitMetricModule).initMetric('CLS', 0);
const env0_1 = value2;
const visibilityWatcher = (GetVisibilityWatcherModule).getVisibilityWatcher();
const initUnique = moduleValue3.initUnique;
const binding = env0_1;
const LayoutShiftManager = (LayoutShiftManagerModule).LayoutShiftManager;
const env0_2 = Reflect.apply(initUnique, moduleValue3, [binding, LayoutShiftManager]);
if ((require(1054) /* metro dependency 1054 */).observe('layout-shift', handleEntries)) {
moduleValue5 = require(1055) /* metro dependency 1055 */;
value = moduleValue5.bindReporter(env0_0, value2, env1_2, env0_1.reportAllChanges);
visibilityWatcher.onHidden(_fun11077);
WINDOW = (require(1047) /* metro dependency 1047 */).WINDOW;
if (!(WINDOW == null || WINDOW.setTimeout == null)) {
WINDOW.setTimeout(value);
}
}
function handleEntries(a0) { // fn#11076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1171:380, offset: 0x00da0566, size: 111 bytes, params: 2, frame: 15
var binding;
var _processEntry;
var error;
var _sessionValue;
var value2;
var binding2;
var _sessionEntries;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let r3 = iterator;
let item2 = Reflect.apply(iterator2, r3, []);
let item = item2.value;
item2 = item2.done ? undefined : r3;
reducibleJoin2: while (true) {
if (item2 === undefined) {
_sessionValue = env0_2._sessionValue;
value2 = env0_1.value;
reducibleJoin8: while (true) {
if (_sessionValue > value2) {
binding = env0_1;
binding2 = env0_2;
_sessionValue = binding2._sessionValue;
binding.value = _sessionValue;
_sessionEntries = binding2._sessionEntries;
binding.entries = _sessionEntries;
env0_0();
break reducibleJoin8;
}
break reducibleJoin8;
}
return undefined;
}
break reducibleJoin2;
}
reducibleLoop2: while (true) {
try {
binding = env0_2;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
_processEntry = binding._processEntry;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
Reflect.apply(_processEntry, binding, [item]);
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
r3 = item2;
item2 = Reflect.apply(iterator2, r3, []);
item = item2.value;
item2 = item2.done ? undefined : r3;
if (item2 === undefined) {
break reducibleLoop2;
}
continue reducibleLoop2;
}
_sessionValue = env0_2._sessionValue;
reducibleJoin8: while (true) {
if (_sessionValue > env0_1.value) {
binding = env0_1;
binding2 = env0_2;
_sessionValue = binding2._sessionValue;
binding.value = _sessionValue;
_sessionEntries = binding2._sessionEntries;
binding.entries = _sessionEntries;
env0_0();
break reducibleJoin8;
}
break reducibleJoin8;
}
}
function _fun11077() { // fn#11077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1171:625, offset: 0x00da05d5, size: 41 bytes, params: 1, frame: 12
handleEntries(env0_4.takeRecords());
env0_0(true);
}
}
}
}
global.__d(_fun11073, 1044, [1045, 1056, 1052, 1048, 1057, 1058, 1054, 1055,
1047]) /* metro module 1044, dependencies: [1045, 1056, 1052, 1048, 1057, 1058, 1054, 1055, 1047] */;