Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+293
View File
@@ -0,0 +1,293 @@
/* Metro module 7428; source: unknown; dependencies: [57, 6, 7, 15, 17, 102, 18, 7368, 7383, 7365, 7429, 7393, 7396, 7397, 7369, 7422, 7380, 7430, 7391, 7374, 7405, 7424] */
function _fun59936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:6, offset: 0x016f6e99, size: 242 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_2 = require(57) /* metro dependency 57 */;
const env0_3 = require(6) /* metro dependency 6 */;
const env0_4 = require(7) /* metro dependency 7 */;
const env0_5 = require(15) /* metro dependency 15 */;
const env0_6 = require(17) /* metro dependency 17 */;
const env0_7 = require(102) /* metro dependency 102 */;
const env0_8 = require(18) /* metro dependency 18 */;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
require(7368) /* metro dependency 7368 */;
require(7383) /* metro dependency 7383 */;
const BaseClient = (require(7424) /* metro dependency 7424 */).BaseClient;
exports.ServerRuntimeClient = _fun59942(BaseClient);
}
function _isNativeReflectConstruct_59937() { // fn#59937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:113, offset: 0x016f6f8b, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_59937_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_59940(a0, a1, a2, a3) { // fn#59940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:332, offset: 0x016f6fe9, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env0_7;
value = env0_6(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun59941 : value;
}
function _fun59942(a0) { // fn#59942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:540, offset: 0x016f704c, size: 279 bytes, params: 2, frame: 16
const closure = ServerRuntimeClient_59943;
env0_8(closure, a0);
return env0_4(closure, [{key: 'eventFromException', value: value_59944}, {key: 'eventFromMessage',
value: value_59945}, {key: 'captureException', value: value_59946}, {key: 'captureEvent', value: value_59947},
{key: 'close', value: value_59948}, {key: 'initSessionFlusher', value: value_59949}, {key: 'captureCheckIn',
value: value_59950}, {key: '_captureRequestSession', value: value_59951}, {key: '_prepareEvent',
value: value_59952}, {key: '_getTraceInfoFromScope', value: value_59953}]);
}
function ServerRuntimeClient_59943(a0) { // fn#59943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:565, offset: 0x016f7163, size: 145 bytes, params: 2, frame: 19
const value = environment.__proto__;
env1_3(this, ServerRuntimeClient_59943);
(require(7365) /* metro dependency 7365 */).registerSpanErrorInstrumentation();
const items2 = [a0];
const value3 = env1_6(ServerRuntimeClient_59943);
return env1_5(this, _isNativeReflectConstruct_59937() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
}
function value_59944(a0, a1) { // fn#59944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:925, offset: 0x016f71f4, size: 97 bytes, params: 3, frame: 20
let value = environment.__proto__;
value = Reflect.apply((require(7429) /* metro dependency 7429 */).eventFromUnknownInput, value, [this,
this._options.stackParser, a0, a1]);
value.level = 'error';
return (require(7393) /* metro dependency 7393 */).resolvedSyncPromise(value);
}
function value_59945(a0) { // fn#59945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:1120, offset: 0x016f7255, size: 155 bytes, params: 2, frame: 21
let value = undefined;
const value2 = 'info';
const r8 = arguments.length > 1 ? value === arguments[1] ? value2 : arguments[1] : value2;
const r7 = arguments.length > 2 ? arguments[2] : value;
const moduleValue = require(7393) /* metro dependency 7393 */;
const resolvedSyncPromise = moduleValue.resolvedSyncPromise;
value = require(7429) /* metro dependency 7429 */;
return Reflect.apply(resolvedSyncPromise, moduleValue, [value.eventFromMessage(this._options.stackParser, a0, r8,
r7, this._options.attachStacktrace)]);
}
function value_59946(a0, a1, a2) { // fn#59946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:1419, offset: 0x016f72f0, size: 168 bytes, params: 4, frame: 17
var value;
if (this._options.autoSessionTracking) {
if (this._sessionFlusher) {
value = environment.__proto__;
value = require(7396) /* metro dependency 7396 */;
value = value.getIsolationScope();
value = value.getRequestSession();
if (value && value.status === 'ok') {
value.status = 'errored';
}
}
}
value = environment.__proto__;
return _superPropGet_59940(ServerRuntimeClient_59943, 'captureException', this, 3)([a0, a1, a2]);
}
function value_59947(a0, a1, a2) { // fn#59947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:1714, offset: 0x016f7398, size: 242 bytes, params: 4, frame: 18
var type;
var value;
if (this._options.autoSessionTracking) {
if (this._sessionFlusher) {
type = a0.type;
type = !type ? 'exception' : type;
if (type === 'exception') {
if (a0.exception) {
if (a0.exception.values) {
if (a0.exception.values.length > 0) {
value = environment.__proto__;
value = require(7396) /* metro dependency 7396 */;
value = value.getIsolationScope();
value = value.getRequestSession();
if (value && value.status === 'ok') {
value.status = 'errored';
}
}
}
}
}
}
}
value = environment.__proto__;
return _superPropGet_59940(ServerRuntimeClient_59943, 'captureEvent', this, 3)([a0, a1, a2]);
}
function value_59948(a0) { // fn#59948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:2095, offset: 0x016f748a, size: 78 bytes, params: 2, frame: 17
if (this._sessionFlusher) {
this._sessionFlusher.close();
}
const value = environment.__proto__;
return _superPropGet_59940(ServerRuntimeClient_59943, 'close', this, 3)([a0]);
}
function value_59949() { // fn#59949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:2260, offset: 0x016f74d8, size: 170 bytes, params: 1, frame: 18
var SessionFlusher;
var object;
const {release, environment} = this._options;
const value = environment.__proto__;
if (release) {
SessionFlusher = (require(7422) /* metro dependency 7422 */).SessionFlusher;
object = {release: release, environment: environment};
this._sessionFlusher = new SessionFlusher(this);
} else if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
(require(7369) /* metro dependency 7369 */).logger.warn('Cannot initialize an instance of SessionFlusher if no release is provided!');
}
}
function value_59950(a0, a1, a2) { // fn#59950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:2576, offset: 0x016f7582, size: 540 bytes, params: 4, frame: 26
var r0;
var value;
const DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD;
const logger = (require(7369) /* metro dependency 7369 */).logger;
var release;
var environment;
var tunnel;
var object2;
var value2;
var property;
var property2;
if ('checkInId' in a0) {
if (a0.checkInId) {
r0 = a0.checkInId;
} else {
value = environment.__proto__;
value = require(7380) /* metro dependency 7380 */;
value = value.uuid4();
r0 = value;
}
} else {
value = environment.__proto__;
value = require(7380) /* metro dependency 7380 */;
value = value.uuid4();
r0 = value;
}
if (this._isEnabled()) {
value = this.getOptions();
release = value.release;
environment = value.environment;
tunnel = value.tunnel;
object2 = {check_in_id: r0};
object2.monitor_slug = a0.monitorSlug;
object2.status = a0.status;
object2.release = release;
object2.environment = environment;
if ('duration' in a0) {
object2.duration = a0.duration;
}
if (a1) {
object2.monitor_config = {schedule: a1.schedule, checkin_margin: a1.checkinMargin,
max_runtime: a1.maxRuntime,
timezone: a1.timezone, failure_issue_threshold: a1.failureIssueThreshold,
recovery_threshold: a1.recoveryThreshold};
}
value = this._getTraceInfoFromScope(a2);
value2 = environment.__proto__;
value = env1_2(value, 2);
property = value[0];
property2 = value[1];
if (property2) {
object2.contexts = {trace: property2};
}
value = require(7430) /* metro dependency 7430 */;
value = value.createCheckInEnvelope(object2, property, this.getSdkMetadata(), tunnel, this.getDsn());
if (DEBUG_BUILD) {
logger.info('Sending checkin:', a0.monitorSlug, a0.status);
}
this.sendEnvelope(value);
} else {
value = environment.__proto__;
if (DEBUG_BUILD) {
logger.warn('SDK not enabled, will not capture checkin.');
}
}
return r0;
}
function value_59951() { // fn#59951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:3512, offset: 0x016f779e, size: 112 bytes, params: 1, frame: 13
var value;
if (this._sessionFlusher) {
this._sessionFlusher.incrementSessionStatusCount();
} else {
value = environment.__proto__;
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
(require(7369) /* metro dependency 7369 */).logger.warn('Discarded request mode session because autoSessionTracking option was disabled');
}
}
}
function value_59952(a0, a1, a2, a3) { // fn#59952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:3774, offset: 0x016f780e, size: 246 bytes, params: 5, frame: 19
var Object;
var assign;
var contexts;
let platform = this._options.platform;
if (platform) {
platform = a0.platform;
platform = !platform ? this._options.platform : platform;
a0.platform = platform;
}
let runtime = this._options.runtime;
if (runtime) {
Object = global.Object;
assign = Object.assign;
contexts = a0.contexts;
runtime = (a0.contexts || ({})).runtime;
runtime = !runtime ? this._options.runtime : runtime;
a0.contexts = Reflect.apply(assign, Object, [{}, contexts, {runtime: runtime}]);
}
if (this._options.serverName) {
a0.server_name = a0.server_name || this._options.serverName;
}
const value = environment.__proto__;
return _superPropGet_59940(ServerRuntimeClient_59943, '_prepareEvent', this, 3)([a0, a1, a2, a3]);
}
function value_59953(a0) { // fn#59953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7606:4197, offset: 0x016f7904, size: 182 bytes, params: 2, frame: 17
var r1;
var r2;
var value;
var value2;
if (a0) {
value = environment.__proto__;
value2 = (require(7391) /* metro dependency 7391 */)._getSpanForScope(a0);
r1 = value2 ? (require(7374) /* metro dependency 7374 */).spanToTraceContext(value2) : (require(7396) /* metro dependency 7396 */).getTraceContextFromScope(a0);
value = require(7405) /* metro dependency 7405 */;
if (value2) {
value = value.getDynamicSamplingContextFromSpan(value2);
r2 = value;
} else {
value = value.getDynamicSamplingContextFromScope(this, a0);
r2 = value;
}
return [r2, r1];
}
return [undefined, undefined];
}