51 lines
2.2 KiB
React
51 lines
2.2 KiB
React
/* Metro module 7488; source: unknown; dependencies: [153, 6, 7] */
|
|
function _fun60387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7666:6, offset: 0x01702494, size: 105 bytes, params: 8, frame: 17
|
|
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;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.LRUMap = _fun60388();
|
|
}
|
|
|
|
function _fun60388() { // fn#60388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7666:117, offset: 0x017024fd, size: 193 bytes, params: 1, frame: 15
|
|
return env0_1(LRUMap_60389, [{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) {
|
|
if (this._cache.size >= this._maxSize) {
|
|
this._cache.delete(this._cache.keys().next().value);
|
|
}
|
|
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(_fun60397);
|
|
return [];
|
|
}}]);
|
|
}
|
|
|
|
function value_60396() { // fn#60396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7666:802, offset: 0x0170261e, size: 36 bytes, params: 1, frame: 12
|
|
this._cache.forEach(_fun60397);
|
|
return [];
|
|
}
|
|
|