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

132 lines
6.7 KiB
JavaScript

/* Metro module 7471; source: unknown; dependencies: [77, 6, 7, 7470, 7466] */
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
import * as Module07466Module from './module-07466.js'; /* Metro dependency 7466 */
function _fun60254(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:6, offset: 0x016ff73d, size: 265 bytes, params: 8, frame: 22
const env0_0 = require;
let value = Module00077Module;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value2 = _fun60255();
const value3 = _fun60260();
const value4 = _fun60265();
const value5 = _fun60270();
const COUNTER_METRIC_TYPE = (Module07466Module).COUNTER_METRIC_TYPE;
const value6 = value({}, COUNTER_METRIC_TYPE, value2);
const GAUGE_METRIC_TYPE = (Module07466Module).GAUGE_METRIC_TYPE;
const value7 = value(value6, GAUGE_METRIC_TYPE, value3);
const DISTRIBUTION_METRIC_TYPE = (Module07466Module).DISTRIBUTION_METRIC_TYPE;
const value8 = value(value7, DISTRIBUTION_METRIC_TYPE, value4);
const SET_METRIC_TYPE = (Module07466Module).SET_METRIC_TYPE;
value = value(value8, SET_METRIC_TYPE, value5);
exports.CounterMetric = value2;
exports.DistributionMetric = value4;
exports.GaugeMetric = value3;
exports.METRIC_MAP = value;
exports.SetMetric = value5;
function _fun60255() { // fn#60255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:119, offset: 0x016ff846, size: 101 bytes, params: 1, frame: 15
return CreateClassModule(CounterMetric, [{key: 'weight', get: function() {
return 1;
}}, {key: 'add', value: function(a0) {
this._value += a0;
}}, {key: 'toString', value: function() {
return '' + this._value;
}}]);
function CounterMetric(a0) { // fn#60256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:153, offset: 0x016ff8ab, size: 36 bytes, params: 2, frame: 13
env1_2(this, CounterMetric);
this._value = a0;
}
}
function _fun60260() { // fn#60260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:386, offset: 0x016ff90a, size: 101 bytes, params: 1, frame: 15
return CreateClassModule(GaugeMetric, [{key: 'weight', get: function() {
return 5;
}}, {key: 'add', value: function(a0) {
this._last = a0;
if (a0 < this._min) {
this._min = a0;
}
if (a0 > this._max) {
this._max = a0;
}
this._sum += a0;
var _count = this._count;
this._count = typeof _count === 'bigint' ? _count + 1n : +_count + 1;
}}, {key: 'toString', value: function() {
return '' + this._last + ':' + this._min + ':' + this._max + ':' + this._sum + ':' + this._count;
}}]);
function GaugeMetric(a0) { // fn#60261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:420, offset: 0x016ff96f, size: 63 bytes, params: 2, frame: 14
env1_2(this, GaugeMetric);
this._last = a0;
this._min = a0;
this._max = a0;
this._sum = a0;
this._count = 1;
}
}
function _fun60265() { // fn#60265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:830, offset: 0x016ffa4a, size: 101 bytes, params: 1, frame: 15
return CreateClassModule(DistributionMetric, [{key: 'weight', get: function() {
return this._value.length;
}}, {key: 'add', value: function(a0) {
this._value.push(a0);
}}, {key: 'toString', value: function() {
return this._value.join(':');
}}]);
function DistributionMetric(a0) { // fn#60266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:864, offset: 0x016ffaaf, size: 44 bytes, params: 2, frame: 13
env1_2(this, DistributionMetric);
this._value = [a0];
}
}
function _fun60270() { // fn#60270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:1137, offset: 0x016ffb1e, size: 101 bytes, params: 1, frame: 15
return CreateClassModule(SetMetric, [{key: 'weight', get: function() {
return this._value.size;
}}, {key: 'add', value: function(a0) {
this._value.add(a0);
}}, {key: 'toString', value: function() {
var Array = global.Array;
var value = Array.from(this._value);
value = value.map(_fun60275);
return value.join(':');
}}]);
function SetMetric(a0) { // fn#60271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:1171, offset: 0x016ffb83, size: 81 bytes, params: 2, frame: 14
const value = environment.__proto__;
env1_2(this, SetMetric);
this.first = a0;
const Set = global.Set;
this._value = new Set([a0]);
}
function value_60274() { // fn#60274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:1387, offset: 0x016ffbfe, size: 60 bytes, params: 1, frame: 11
const Array = global.Array;
let value = Array.from(this._value);
value = value.map(_fun60275);
return value.join(':');
function _fun60275(a0) { // fn#60275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7649:1443, offset: 0x016ffc3a, size: 55 bytes, params: 2, frame: 13
var r0;
var value2;
let value = a0;
if (typeof value !== 'string') {
r0 = value;
} else {
value2 = environment.__proto__.__proto__;
value = (require(7470) /* metro dependency 7470 */).simpleHash(value);
r0 = value;
}
return r0;
}
}
}
}
global.__d(_fun60254, 7471, [77, 6, 7, 7470, 7466]) /* metro module 7471, dependencies: [77, 6, 7, 7470, 7466] */;