Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,220 @@
|
||||
/* Metro module 4878; source: modules/app_analytics/clickstream/Clickstream.tsx; dependencies: [57, 1226, 4294, 21, 683, 4879, 2] */
|
||||
function _fun42756(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5056:6, offset: 0x01141949, size: 230 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_42759 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = drainClickstream;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/clickstream/Clickstream.tsx');
|
||||
exports.trackClickstream = trackClickstream;
|
||||
exports.drainClickstream = closure;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_42757(a0, a1) { // fn#42757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5056:130, offset: 0x01141a2f, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun42758;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_42759(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_42759(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_42759(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun42758;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function isClickstreamEnabled() { // fn#42760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5056:1059, offset: 0x01141ba1, size: 107 bytes, params: 1, frame: 14
|
||||
var defaultImport;
|
||||
var value2;
|
||||
const value = a0;
|
||||
if (!(value !== undefined) || value) {
|
||||
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value2 = defaultImport.extractTimestamp(AuthenticationStore.getId());
|
||||
if (value2 !== env0_7) {
|
||||
drainClickstream(false);
|
||||
env0_7 = value2;
|
||||
}
|
||||
}
|
||||
return env0_7 % 10 === 0;
|
||||
}
|
||||
|
||||
function drainClickstream() { // fn#42761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5056:1192, offset: 0x01141c0c, size: 191 bytes, params: 1, frame: 24
|
||||
var r3;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var value5;
|
||||
var property;
|
||||
var property2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var moduleValue;
|
||||
var getClickstreamDrainEvent;
|
||||
var value6;
|
||||
let value = a0;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value !== undefined) {
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value = true;
|
||||
r3 = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
if (isClickstreamEnabled(r3)) {
|
||||
value2 = _createForOfIteratorHelperLoose_42757(env0_6);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r3 = value3;
|
||||
reducibleLoop5: while (true) {
|
||||
value4 = r3.value;
|
||||
value5 = env0_3(value4, 2);
|
||||
property = value5[0];
|
||||
property2 = value5[1];
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
moduleValue = require(4879) /* metro dependency 4879: ClickstreamEvents */;
|
||||
getClickstreamDrainEvent = moduleValue.getClickstreamDrainEvent;
|
||||
Reflect.apply(track, defaultImport, [property, Reflect.apply(getClickstreamDrainEvent, moduleValue,
|
||||
[property,
|
||||
property2])]);
|
||||
value6 = value2();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break reducibleLoop5;
|
||||
}
|
||||
r3 = value6;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
env0_6.clear();
|
||||
} else {
|
||||
env0_6.clear();
|
||||
}
|
||||
}
|
||||
|
||||
function trackClickstream(a0, a1) { // fn#42762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5056:1537, offset: 0x01141ccb, size: 154 bytes, params: 3, frame: 16
|
||||
var binding;
|
||||
var value2;
|
||||
var push;
|
||||
var object2;
|
||||
var Date;
|
||||
var value3;
|
||||
var date;
|
||||
if (isClickstreamEnabled()) {
|
||||
binding = env0_6;
|
||||
if (!binding.has(a0)) {
|
||||
env0_6.set(a0, []);
|
||||
}
|
||||
binding = env0_6;
|
||||
value2 = binding.get(a0);
|
||||
if (value2 != null) {
|
||||
push = value2.push;
|
||||
object2 = {};
|
||||
Date = global.Date;
|
||||
value3 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
object2.timestamp = date instanceof Object ? date : value3;
|
||||
object2.rtc_state = RTCConnectionStore.getState();
|
||||
copyDataProperties(object2, a1, value3);
|
||||
Reflect.apply(push, value2, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/* Metro module 4879; source: modules/app_analytics/clickstream/ClickstreamEvents.tsx; dependencies: [661, 2] */
|
||||
function _fun42763(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:6, offset: 0x01141d65, size: 107 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/clickstream/ClickstreamEvents.tsx');
|
||||
exports.getClickstreamDrainEvent = getClickstreamDrainEvent;
|
||||
}
|
||||
|
||||
function getClickstreamDrainEvent(a0, a1) { // fn#42764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:237, offset: 0x01141dd0, size: 534 bytes, params: 3, frame: 14
|
||||
var object2;
|
||||
const Date = global.Date;
|
||||
let date = new Date();
|
||||
const GUILD_VIEWED_CLICKSTREAM = AnalyticEvents.GUILD_VIEWED_CLICKSTREAM;
|
||||
if (GUILD_VIEWED_CLICKSTREAM === a0) {
|
||||
object2 = {};
|
||||
object2.time_minus = a1.map(_fun42765);
|
||||
object2.rtc_states = a1.map(function(a0) {
|
||||
return a0.rtc_state;
|
||||
});
|
||||
object2.guild_ids = a1.map(_fun42767);
|
||||
return object2;
|
||||
}
|
||||
const FRIENDS_LIST_VIEWED_CLICKSTREAM = AnalyticEvents.FRIENDS_LIST_VIEWED_CLICKSTREAM;
|
||||
if (FRIENDS_LIST_VIEWED_CLICKSTREAM === a0) {
|
||||
object2 = {};
|
||||
object2.time_minus = a1.map(_fun42768);
|
||||
object2.rtc_states = a1.map(function(a0) {
|
||||
return a0.rtc_state;
|
||||
});
|
||||
object2.tab_opened = a1.map(_fun42770);
|
||||
object2.num_friends = a1.map(_fun42771);
|
||||
object2.now_playing_visible = a1.map(_fun42772);
|
||||
object2.now_playing_num_cards = a1.map(_fun42773);
|
||||
return object2;
|
||||
}
|
||||
const CHANNEL_OPENED_CLICKSTREAM = AnalyticEvents.CHANNEL_OPENED_CLICKSTREAM;
|
||||
if (CHANNEL_OPENED_CLICKSTREAM === a0) {
|
||||
object2 = {};
|
||||
object2.time_minus = a1.map(_fun42774);
|
||||
object2.rtc_states = a1.map(function(a0) {
|
||||
return a0.rtc_state;
|
||||
});
|
||||
object2.channel_ids = a1.map(_fun42776);
|
||||
object2.channel_types = a1.map(_fun42777);
|
||||
return object2;
|
||||
}
|
||||
const CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM = AnalyticEvents.CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM;
|
||||
if (CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM === a0) {
|
||||
object2 = {};
|
||||
object2.time_minus = a1.map(_fun42778);
|
||||
object2.rtc_states = a1.map(function(a0) {
|
||||
return a0.rtc_state;
|
||||
});
|
||||
object2.load_duration_ms = a1.map(_fun42780);
|
||||
object2.were_messages_cached = a1.map(_fun42781);
|
||||
object2.is_first_load = a1.map(_fun42782);
|
||||
return object2;
|
||||
}
|
||||
const Error = global.Error;
|
||||
date = 'getClickstreamDrainEvent: Unknown event: ' + a0;
|
||||
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(date);
|
||||
throw error instanceof Object ? error : value2;
|
||||
}
|
||||
|
||||
function _fun42765({timestamp}) { // fn#42765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:366, offset: 0x01141fe6, size: 42 bytes, params: 2, frame: 10
|
||||
const binding = env0_0;
|
||||
let getTime = binding.getTime;
|
||||
const value = Reflect.apply(getTime, binding, []);
|
||||
getTime = timestamp.getTime;
|
||||
return value - Reflect.apply(getTime, timestamp, []);
|
||||
}
|
||||
|
||||
function _fun42770(a0) { // fn#42770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:638, offset: 0x01142025, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.tab_opened;
|
||||
}
|
||||
|
||||
function _fun42771(a0) { // fn#42771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:675, offset: 0x01142030, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.num_friends;
|
||||
}
|
||||
|
||||
function _fun42772(a0) { // fn#42772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:721, offset: 0x0114203b, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.now_playing_visible;
|
||||
}
|
||||
|
||||
function _fun42773(a0) { // fn#42773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:777, offset: 0x01142046, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.now_playing_num_cards;
|
||||
}
|
||||
|
||||
function _fun42777(a0) { // fn#42777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1006, offset: 0x01142051, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.channel_type;
|
||||
}
|
||||
|
||||
function _fun42780(a0) { // fn#42780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1208, offset: 0x0114205c, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.load_duration_ms;
|
||||
}
|
||||
|
||||
function _fun42781(a0) { // fn#42781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1260, offset: 0x01142067, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.were_messages_cached;
|
||||
}
|
||||
|
||||
function _fun42782(a0) { // fn#42782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1309, offset: 0x01142072, size: 11 bytes, params: 2, frame: 1
|
||||
return a0.is_first_load;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user