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

92 lines
5.0 KiB
TypeScript

/* Metro module 4268; source: lib/CachedEntriesMap.tsx; dependencies: [6, 7, 1944, 2] */
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun36126(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:6, offset: 0x01083718, size: 132 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = _fun36127();
(FileImportTrackerModule).fileFinishedImporting('lib/CachedEntriesMap.tsx');
exports.default = value;
function _fun36127() { // fn#36127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:118, offset: 0x0108379c, size: 216 bytes, params: 1, frame: 15
return CreateClass(CachedEntriesMap, [{key: 'keys', value: function() {
return this.cachedKeys(this.version);
}}, {key: 'values', value: function() {
return this.cachedValues(this.version);
}}, {key: 'entries', value: function() {
return this.cachedEntries(this.version);
}}, {key: 'size', value: function() {
return this.data.size;
}}, {key: 'get', value: function(a0) {
return this.data.get(a0);
}}, {key: 'set', value: function(a0, a1) {
var property = this.data;
if (property.get(a0) !== a1) {
property = this.data;
property.set(a0, a1);
property = this.version;
this.version = typeof property === 'bigint' ? property + 1n : +property + 1;
}
}}, {key: 'delete', value: function(a0) {
var property = this.data;
var value = property.delete(a0);
if (value) {
property = this.version;
this.version = typeof property === 'bigint' ? property + 1n : +property + 1;
}
return value;
}}, {key: 'clear', value: function() {
var property;
if (this.data.size !== 0) {
property = this.data;
property.clear();
property = this.version;
this.version = typeof property === 'bigint' ? property + 1n : +property + 1;
}
}}]);
function CachedEntriesMap() { // fn#36128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:139, offset: 0x01083874, size: 179 bytes, params: 1, frame: 18
var environment;
let value = environment.__proto__;
env1_2(this, CachedEntriesMap);
this.version = 0;
const Map = global.Map;
const value3 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
this.data = map instanceof Object ? map : value3;
value = require(1944) /* metro dependency 1944: FunctionUtils */;
this.cachedValues = value.cachedFunction(_fun36129);
value = require(1944) /* metro dependency 1944: FunctionUtils */;
this.cachedKeys = value.cachedFunction(_fun36130);
value = require(1944) /* metro dependency 1944: FunctionUtils */;
this.cachedEntries = value.cachedFunction(_fun36131);
function _fun36129() { // fn#36129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:267, offset: 0x01083927, size: 41 bytes, params: 1, frame: 12
const Array = global.Array;
const from = Array.from;
const data = env0_0.data;
return Reflect.apply(from, Array, [data.values()]);
}
function _fun36130() { // fn#36130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:344, offset: 0x01083950, size: 41 bytes, params: 1, frame: 12
const Array = global.Array;
const from = Array.from;
const data = env0_0.data;
return Reflect.apply(from, Array, [data.keys()]);
}
function _fun36131() { // fn#36131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4440:422, offset: 0x01083979, size: 42 bytes, params: 1, frame: 12
const Array = global.Array;
const from = Array.from;
const data = env0_0.data;
return Reflect.apply(from, Array, [data.entries()]);
}
}
}
}
global.__d(_fun36126, 4268, [6, 7, 1944, 2]) /* metro module 4268, dependencies: [6, 7, 1944, 2] */;