Files
discord-decomp/sources/by-id/module-01001.jsx
T
2026-07-27 16:20:00 +03:00

56 lines
2.4 KiB
React

/* Metro module 1001; source: unknown; dependencies: [153, 6, 7] */
function _fun10486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1128:6, offset: 0x00d8f349, size: 117 bytes, params: 8, frame: 18
require(153) /* metro dependency 153 */;
const env0_0 = require(6) /* metro dependency 6 */;
const env0_1 = require(7) /* metro dependency 7 */;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.LRUMap = _fun10487();
}
function _fun10487() { // fn#10487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1128:129, offset: 0x00d8f3be, size: 193 bytes, params: 1, frame: 15
return env0_1(LRUMap, [{key: 'size', get: function() {
return this._cache.size;
}}, {key: 'get', value: function(a0) {
var _cache = this._cache;
var value = _cache.get(a0);
if (value !== undefined) {
_cache = this._cache;
_cache.delete(a0);
_cache = this._cache;
_cache.set(a0, value);
return value;
}
}}, {key: 'set', value: function(a0, a1) {
var property = this._cache.size;
if (property >= this._maxSize) {
property = this._cache;
property = property.keys().next().value;
this._cache.delete(property);
}
this._cache.set(a0, a1);
}}, {key: 'remove', value: function(a0) {
var value = this._cache.get(a0);
if (value) {
this._cache.delete(a0);
}
return value;
}}, {key: 'clear', value: function() {
this._cache.clear();
}}, {key: 'keys', value: function() {
var Array = global.Array;
return Array.from(this._cache.keys());
}}, {key: 'values', value: function() {
this._cache.forEach(_fun10496);
return [];
}}]);
}
function value_10495() { // fn#10495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1128:825, offset: 0x00d8f5de, size: 36 bytes, params: 1, frame: 12
this._cache.forEach(_fun10496);
return [];
}