572 lines
14 KiB
TypeScript
572 lines
14 KiB
TypeScript
// Metro module 4244 (f4245).
|
|
import { BoostedGuildTiers } from "../../Constants";
|
|
import { StreamQualities } from "../premium/PremiumConstants";
|
|
import { intl, t } from "../../intl/index.native";
|
|
function $mk74013($env) {
|
|
return function() {
|
|
const r1 = $env;
|
|
const r2 = r1[1];
|
|
return r2 != null ? r2() : String(r1[0]);
|
|
};
|
|
}
|
|
function $mk74014() {
|
|
return function() {};
|
|
}
|
|
let c2471_1, c2472_1, c2473_1, RESOLUTION_7202, c2475_1, RESOLUTION_10802, c2476_1, RESOLUTION_14402, c2477_1, RESOLUTION_480, c2478_1, RESOLUTION_7203, c2479_1, RESOLUTION_10803, c2480_1, RESOLUTION_14403, c2481_1, RESOLUTION_SOURCE2, c2482_1, FPS_15, c2483_1, FPS_30, c2484_1, FPS_60, c2485_1, FPS_152, c2486_1, FPS_302, c2487_1, FPS_602, c2488_1;
|
|
let env2471;
|
|
let env2472;
|
|
let env2473;
|
|
let env2474;
|
|
let env2475;
|
|
let env2476;
|
|
let env2477;
|
|
let env2478;
|
|
let env2479;
|
|
let env2480;
|
|
let env2481;
|
|
let env2482;
|
|
let env2483;
|
|
let env2484;
|
|
let env2485;
|
|
let env2486;
|
|
let env2487;
|
|
let env2488;
|
|
let c2470_2 = {
|
|
RESOLUTION_480: 480,
|
|
480: "RESOLUTION_480",
|
|
RESOLUTION_720: 720,
|
|
720: "RESOLUTION_720",
|
|
RESOLUTION_1080: 1080,
|
|
1080: "RESOLUTION_1080",
|
|
RESOLUTION_1440: 1440,
|
|
1440: "RESOLUTION_1440",
|
|
RESOLUTION_SOURCE: 0,
|
|
0: "RESOLUTION_SOURCE"
|
|
};
|
|
let c2470_3 = {
|
|
FPS_5: 5,
|
|
5: "FPS_5",
|
|
FPS_15: 15,
|
|
15: "FPS_15",
|
|
FPS_30: 30,
|
|
30: "FPS_30",
|
|
FPS_60: 60,
|
|
60: "FPS_60"
|
|
};
|
|
const r11 = {
|
|
PRESET_VIDEO: 1,
|
|
1: "PRESET_VIDEO",
|
|
PRESET_DOCUMENTS: 2,
|
|
2: "PRESET_DOCUMENTS",
|
|
PRESET_CUSTOM: 3,
|
|
3: "PRESET_CUSTOM",
|
|
PRESET_AUTO: 4,
|
|
4: "PRESET_AUTO",
|
|
PRESET_MOBILE_DEFAULT: 5,
|
|
5: "PRESET_MOBILE_DEFAULT",
|
|
PRESET_MOBILE_PERFORMANCE: 6,
|
|
6: "PRESET_MOBILE_PERFORMANCE",
|
|
PRESET_MOBILE_HIGH_QUALITY: 7,
|
|
7: "PRESET_MOBILE_HIGH_QUALITY"
|
|
};
|
|
const r10 = [{
|
|
resolution: c2470_2.RESOLUTION_SOURCE,
|
|
fps: c2470_3.FPS_60,
|
|
quality: StreamQualities.HIGH_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_SOURCE,
|
|
fps: c2470_3.FPS_30,
|
|
quality: StreamQualities.HIGH_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_SOURCE,
|
|
fps: c2470_3.FPS_15,
|
|
quality: StreamQualities.HIGH_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_SOURCE,
|
|
fps: c2470_3.FPS_5,
|
|
preset: r11.PRESET_DOCUMENTS
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1440,
|
|
fps: c2470_3.FPS_60,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1440,
|
|
fps: c2470_3.FPS_30,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1440,
|
|
fps: c2470_3.FPS_15,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1080,
|
|
fps: c2470_3.FPS_60,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1080,
|
|
fps: c2470_3.FPS_30,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_1080,
|
|
fps: c2470_3.FPS_15,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_2,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_720,
|
|
fps: c2470_3.FPS_60,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_1,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_720,
|
|
fps: c2470_3.FPS_30
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_720,
|
|
fps: c2470_3.FPS_15
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_720,
|
|
fps: c2470_3.FPS_5
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_480,
|
|
fps: c2470_3.FPS_60,
|
|
guildPremiumTier: BoostedGuildTiers.TIER_1,
|
|
quality: StreamQualities.MID_STREAMING_QUALITY
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_480,
|
|
fps: c2470_3.FPS_30
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_480,
|
|
fps: c2470_3.FPS_15
|
|
}, {
|
|
resolution: c2470_2.RESOLUTION_480,
|
|
fps: c2470_3.FPS_5
|
|
}];
|
|
const RESOLUTION_7205 = c2470_2.RESOLUTION_720;
|
|
const r133 = env2471 = {};
|
|
const RESOLUTION_720 = RESOLUTION_7205;
|
|
c2471_1 = void 0;
|
|
const r134 = {
|
|
value: RESOLUTION_7205
|
|
};
|
|
Object.defineProperty(r134, "label", {
|
|
get: $mk74013(r133),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r134, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_10804 = c2470_2.RESOLUTION_1080;
|
|
const r138 = env2472 = {};
|
|
const RESOLUTION_1080 = RESOLUTION_10804;
|
|
c2472_1 = void 0;
|
|
const r139 = {
|
|
value: RESOLUTION_10804
|
|
};
|
|
Object.defineProperty(r139, "label", {
|
|
get: $mk74013(r138),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r139, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_14404 = c2470_2.RESOLUTION_1440;
|
|
const r143 = env2473 = {};
|
|
const RESOLUTION_1440 = RESOLUTION_14404;
|
|
c2473_1 = void 0;
|
|
const r144 = {
|
|
value: RESOLUTION_14404
|
|
};
|
|
Object.defineProperty(r144, "label", {
|
|
get: $mk74013(r143),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r144, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_SOURCE3 = c2470_2.RESOLUTION_SOURCE;
|
|
const r148 = env2474 = {};
|
|
const RESOLUTION_SOURCE = RESOLUTION_SOURCE3;
|
|
const c2474_1 = () => intl.string(t.XjXqzh);
|
|
const r150 = {
|
|
value: RESOLUTION_SOURCE3
|
|
};
|
|
Object.defineProperty(r150, "label", {
|
|
get: $mk74013(r148),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r150, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const r9 = [r134, r139, r144, r150];
|
|
const RESOLUTION_7206 = c2470_2.RESOLUTION_720;
|
|
const r154 = env2475 = {};
|
|
RESOLUTION_7202 = RESOLUTION_7206;
|
|
c2475_1 = void 0;
|
|
const r155 = {
|
|
value: RESOLUTION_7206
|
|
};
|
|
Object.defineProperty(r155, "label", {
|
|
get: $mk74013(r154),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r155, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_10805 = c2470_2.RESOLUTION_1080;
|
|
const r160 = env2476 = {};
|
|
RESOLUTION_10802 = RESOLUTION_10805;
|
|
c2476_1 = void 0;
|
|
const r161 = {
|
|
value: RESOLUTION_10805
|
|
};
|
|
Object.defineProperty(r161, "label", {
|
|
get: $mk74013(r160),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r161, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_14405 = c2470_2.RESOLUTION_1440;
|
|
const r165 = env2477 = {};
|
|
RESOLUTION_14402 = RESOLUTION_14405;
|
|
c2477_1 = void 0;
|
|
const r166 = {
|
|
value: RESOLUTION_14405
|
|
};
|
|
Object.defineProperty(r166, "label", {
|
|
get: $mk74013(r165),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r166, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const r158 = [r155, r161, r166];
|
|
const RESOLUTION_4802 = c2470_2.RESOLUTION_480;
|
|
const r170 = env2478 = {};
|
|
RESOLUTION_480 = RESOLUTION_4802;
|
|
c2478_1 = () => {
|
|
const RESOLUTION_4802 = c2470_2.RESOLUTION_480;
|
|
return RESOLUTION_4802 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: RESOLUTION_4802
|
|
});
|
|
};
|
|
const r172 = {
|
|
value: RESOLUTION_4802
|
|
};
|
|
Object.defineProperty(r172, "label", {
|
|
get: $mk74013(r170),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r172, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_7204 = c2470_2.RESOLUTION_720;
|
|
const r176 = env2479 = {};
|
|
RESOLUTION_7203 = RESOLUTION_7204;
|
|
c2479_1 = () => {
|
|
const RESOLUTION_7204 = c2470_2.RESOLUTION_720;
|
|
return RESOLUTION_7204 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: RESOLUTION_7204
|
|
});
|
|
};
|
|
const r178 = {
|
|
value: RESOLUTION_7204
|
|
};
|
|
Object.defineProperty(r178, "label", {
|
|
get: $mk74013(r176),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r178, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_10806 = c2470_2.RESOLUTION_1080;
|
|
const r182 = env2480 = {};
|
|
RESOLUTION_10803 = RESOLUTION_10806;
|
|
c2480_1 = () => {
|
|
const RESOLUTION_10804 = c2470_2.RESOLUTION_1080;
|
|
return RESOLUTION_10804 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: RESOLUTION_10804
|
|
});
|
|
};
|
|
const r184 = {
|
|
value: RESOLUTION_10806
|
|
};
|
|
Object.defineProperty(r184, "label", {
|
|
get: $mk74013(r182),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r184, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_14406 = c2470_2.RESOLUTION_1440;
|
|
const r188 = env2481 = {};
|
|
RESOLUTION_14403 = RESOLUTION_14406;
|
|
c2481_1 = () => {
|
|
const RESOLUTION_14404 = c2470_2.RESOLUTION_1440;
|
|
return RESOLUTION_14404 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: RESOLUTION_14404
|
|
});
|
|
};
|
|
const r190 = {
|
|
value: RESOLUTION_14406
|
|
};
|
|
Object.defineProperty(r190, "label", {
|
|
get: $mk74013(r188),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r190, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const RESOLUTION_SOURCE4 = c2470_2.RESOLUTION_SOURCE;
|
|
const r194 = env2482 = {};
|
|
RESOLUTION_SOURCE2 = RESOLUTION_SOURCE4;
|
|
c2482_1 = () => {
|
|
const RESOLUTION_SOURCE3 = c2470_2.RESOLUTION_SOURCE;
|
|
return RESOLUTION_SOURCE3 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: RESOLUTION_SOURCE3
|
|
});
|
|
};
|
|
const r196 = {
|
|
value: RESOLUTION_SOURCE4
|
|
};
|
|
Object.defineProperty(r196, "label", {
|
|
get: $mk74013(r194),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r196, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const r175 = [r172, r178, r184, r190, r196];
|
|
const FPS_153 = c2470_3.FPS_15;
|
|
const r200 = env2483 = {};
|
|
FPS_15 = FPS_153;
|
|
c2483_1 = void 0;
|
|
const r201 = {
|
|
value: FPS_153
|
|
};
|
|
Object.defineProperty(r201, "label", {
|
|
get: $mk74013(r200),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r201, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const FPS_303 = c2470_3.FPS_30;
|
|
const r205 = env2484 = {};
|
|
FPS_30 = FPS_303;
|
|
c2484_1 = void 0;
|
|
const r206 = {
|
|
value: FPS_303
|
|
};
|
|
Object.defineProperty(r206, "label", {
|
|
get: $mk74013(r205),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r206, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const FPS_603 = c2470_3.FPS_60;
|
|
const r210 = env2485 = {};
|
|
FPS_60 = FPS_603;
|
|
c2485_1 = void 0;
|
|
const r211 = {
|
|
value: FPS_603
|
|
};
|
|
Object.defineProperty(r211, "label", {
|
|
get: $mk74013(r210),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r211, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const r204 = [r201, r206, r211];
|
|
const FPS_154 = c2470_3.FPS_15;
|
|
const r215 = env2486 = {};
|
|
FPS_152 = FPS_154;
|
|
c2486_1 = () => intl.formatToPlainString(t["bW+JCW"], {
|
|
value: c2470_3.FPS_15
|
|
});
|
|
const r217 = {
|
|
value: FPS_154
|
|
};
|
|
Object.defineProperty(r217, "label", {
|
|
get: $mk74013(r215),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r217, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const FPS_304 = c2470_3.FPS_30;
|
|
const r221 = env2487 = {};
|
|
FPS_302 = FPS_304;
|
|
c2487_1 = () => intl.formatToPlainString(t["bW+JCW"], {
|
|
value: c2470_3.FPS_30
|
|
});
|
|
const r223 = {
|
|
value: FPS_304
|
|
};
|
|
Object.defineProperty(r223, "label", {
|
|
get: $mk74013(r221),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r223, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const FPS_604 = c2470_3.FPS_60;
|
|
const r227 = env2488 = {};
|
|
FPS_602 = FPS_604;
|
|
c2488_1 = () => intl.formatToPlainString(t["bW+JCW"], {
|
|
value: c2470_3.FPS_60
|
|
});
|
|
const r229 = {
|
|
value: FPS_604
|
|
};
|
|
Object.defineProperty(r229, "label", {
|
|
get: $mk74013(r227),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(r229, "subtext", {
|
|
get: $mk74014(),
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
const r220 = [r217, r223, r229];
|
|
export { c2470_2 as ApplicationStreamResolutions };
|
|
export function getApplicationResolution(a0) {
|
|
if (c2470_2.RESOLUTION_480 === a0) {
|
|
return c2470_2.RESOLUTION_480;
|
|
}
|
|
if (c2470_2.RESOLUTION_720 === a0) {
|
|
return c2470_2.RESOLUTION_720;
|
|
}
|
|
if (c2470_2.RESOLUTION_1080 === a0) {
|
|
return c2470_2.RESOLUTION_1080;
|
|
}
|
|
if (c2470_2.RESOLUTION_1440 === a0) {
|
|
return c2470_2.RESOLUTION_1440;
|
|
}
|
|
if (c2470_2.RESOLUTION_SOURCE === a0) {
|
|
return c2470_2.RESOLUTION_SOURCE;
|
|
}
|
|
throw new Error(`Unknown resolution: ${a0}`);
|
|
}
|
|
export { c2470_3 as ApplicationStreamFPS };
|
|
export { r11 as ApplicationStreamPresets };
|
|
export function getApplicationFramerate(a0) {
|
|
if (c2470_3.FPS_5 === a0) {
|
|
return c2470_3.FPS_5;
|
|
}
|
|
if (c2470_3.FPS_15 === a0) {
|
|
return c2470_3.FPS_15;
|
|
}
|
|
if (c2470_3.FPS_30 === a0) {
|
|
return c2470_3.FPS_30;
|
|
}
|
|
if (c2470_3.FPS_60 === a0) {
|
|
return c2470_3.FPS_60;
|
|
}
|
|
throw new Error(`Unknown frame rate: ${a0}`);
|
|
}
|
|
export { r10 as ApplicationStreamSettingRequirements };
|
|
export { r9 as ApplicationStreamResolutionButtons };
|
|
export { r158 as GoLiveDeviceResolutionButtons };
|
|
export function makeResolutionLabel(a0) {
|
|
return a0 === c2470_2.RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {
|
|
resolution: a0
|
|
});
|
|
}
|
|
export { r175 as ApplicationStreamResolutionButtonsWithSuffixLabel };
|
|
export { r204 as ApplicationStreamFPSButtons };
|
|
export { r220 as ApplicationStreamFPSButtonsWithSuffixLabel };
|