136 lines
6.0 KiB
JavaScript
136 lines
6.0 KiB
JavaScript
/* Metro module 1296; source: unknown; dependencies: [6, 7, 15, 17, 18, 1286] */
|
|
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import * as PossibleConstructorReturnModule from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import * as Module00017Module from './module-00017.js'; /* Metro dependency 17 */
|
|
import * as InheritsModule from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import * as Module01286Module from './module-01286.js'; /* Metro dependency 1286 */
|
|
|
|
function _fun14305(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1423:6, offset: 0x00e016c1, size: 213 bytes, params: 8, frame: 20
|
|
const formatToPlainString2 = formatToPlainString;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.StringBuilder = undefined;
|
|
exports.stringFormatter = undefined;
|
|
exports.formatToPlainString = formatToPlainString2;
|
|
const FormatBuilder = (Module01286Module).FormatBuilder;
|
|
const value = _fun14310(FormatBuilder);
|
|
exports.StringBuilder = value;
|
|
exports.stringFormatter = {format: formatToPlainString2, builder: value};
|
|
function _isNativeReflectConstruct_14306() { // fn#14306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1423:98, offset: 0x00e01796, 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_14306_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function format_14309(a0, a1) { // fn#14309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1423:1107, offset: 0x00e017f4, size: 51 bytes, params: 3, frame: 16
|
|
const value = a0;
|
|
return typeof value === 'string' ? value : this.bindFormatValues(env0_5, value, a1)[0];
|
|
}
|
|
|
|
function _fun14310(a0) { // fn#14310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1423:459, offset: 0x00e01827, size: 139 bytes, params: 2, frame: 16
|
|
const StringBuilder2 = StringBuilder;
|
|
InheritsModule(StringBuilder2, a0);
|
|
return CreateClassModule(StringBuilder2, [{key: 'pushRichTextTag', value: function(a0, a1, a2) {
|
|
var result;
|
|
var value;
|
|
var error;
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var r2 = iterator;
|
|
var item2 = Reflect.apply(iterator2, r2, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === undefined) {
|
|
return undefined;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
result = this.result;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = result + item;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
this.result = value;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
}}, {key: 'pushLiteralText', value: function(a0) {
|
|
this.result += a0;
|
|
}}, {key: 'pushObject', value: function(a0) {
|
|
if (a0 != null && 'toString' in a0) {
|
|
this.result = this.result + a0.toString();
|
|
}
|
|
}}, {key: 'finish', value: function() {
|
|
return [this.result];
|
|
}}]);
|
|
function StringBuilder() { // fn#14311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1423:471, offset: 0x00e018b2, size: 123 bytes, params: 1, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_0(this, StringBuilder);
|
|
const value3 = env1_3(StringBuilder);
|
|
value = env1_2(this, _isNativeReflectConstruct_14306() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
value.result = '';
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun14305, 1296, [6, 7, 15, 17, 18,
|
|
1286]) /* metro module 1296, dependencies: [6, 7, 15, 17, 18, 1286] */;
|