This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,7 @@
/* Metro module 10798; source: modules/go_live/utils/canStreamWithSettings.tsx; dependencies: [4282, 10799, 10800, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
function _fun82947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:6, offset: 0x01f079e0, size: 156 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_82950 = function(a0, a1) {
@@ -46,131 +49,135 @@ function _fun82947(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const streamSettingsConstantsModule = require(4282) /* metro dependency 4282: StreamSettingsConstants */;
const env0_3 = streamSettingsConstantsModule.ApplicationStreamSettingRequirements;
const env0_4 = streamSettingsConstantsModule.ApplicationStreamPresets;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/canStreamWithSettings.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/canStreamWithSettings.tsx');
exports.default = canStreamWithSettings;
}
function _createForOfIteratorHelperLoose_82948(a0, a1) { // fn#82948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:181, offset: 0x01f07a7c, size: 372 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)) {
function _createForOfIteratorHelperLoose_82948(a0, a1) { // fn#82948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:181, offset: 0x01f07a7c, size: 372 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);
}
return _fun82949;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82950(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun82949;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82950(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_82950(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun82949;
}
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 canStreamWithSettings(a0, a1, a2, a3, a4, a5) { // fn#82951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:1184, offset: 0x01f07bf0, size: 231 bytes, params: 7, frame: 26
var r2;
var value4;
var preset;
var resolution;
var fps;
var value5;
var value;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
if (a0 === PRESET_AUTO) {
value = require(10799) /* metro dependency 10799: GoLiveAutoQualityExperiment */;
return value.getGoLiveAutoQualityExperimentConfig({location: 'canStreamWithSettings'}).allowAutoQuality;
}
const value2 = _createForOfIteratorHelperLoose_82948(ApplicationStreamSettingRequirements);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
preset = value4.preset;
if (preset != null) {
preset = value4.preset;
reducibleJoin4: while (true) {
if (a0 !== preset) {
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_82950(a0, value);
r6 = value;
} else {
r6 = value;
}
break reducibleJoin4;
}
r5 = r6;
}
resolution = value4.resolution;
if (a1 === resolution) {
fps = value4.fps;
reducibleJoin7: while (true) {
if (a2 !== fps) {
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun82949;
}
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 _fun82949() { // fn#82949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:752, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function canStreamWithSettings(a0, a1, a2, a3, a4, a5) { // fn#82951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:1184, offset: 0x01f07bf0, size: 231 bytes, params: 7, frame: 26
var r2;
var value4;
var preset;
var resolution;
var fps;
var value5;
var value;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
if (a0 === PRESET_AUTO) {
value = require(10799) /* metro dependency 10799: GoLiveAutoQualityExperiment */;
return value.getGoLiveAutoQualityExperimentConfig({location: 'canStreamWithSettings'}).allowAutoQuality;
}
const value2 = _createForOfIteratorHelperLoose_82948(ApplicationStreamSettingRequirements);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
preset = value4.preset;
if (preset != null) {
preset = value4.preset;
reducibleJoin4: while (true) {
if (a0 !== preset) {
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
break reducibleJoin4;
}
}
resolution = value4.resolution;
if (a1 === resolution) {
fps = value4.fps;
reducibleJoin7: while (true) {
if (a2 !== fps) {
break reducibleJoin7;
}
if ((importDefault(10800) /* metro dependency 10800: canUseStreamSetting */)(value4, a3, a4, a5)) {
return true;
}
break reducibleJoin7;
}
if ((importDefault(10800) /* metro dependency 10800: canUseStreamSetting */)(value4, a3, a4, a5)) {
return true;
}
break reducibleJoin7;
}
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
return false;
}
return false;
}
global.__d(_fun82947, 10798, [4282, 10799, 10800,
2]) /* metro module 10798, dependencies: [4282, 10799, 10800, 2] */;