150 lines
8.8 KiB
JavaScript
150 lines
8.8 KiB
JavaScript
/* Metro module 194; source: unknown; dependencies: [6, 7, 44, 195, 197, 198] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import Module00044 from './module-00044.js'; /* Metro dependency 44 */
|
|
import Module00195 from './module-00195.js'; /* Metro dependency 195 */
|
|
import * as Module00197Module from './module-00197.js'; /* Metro dependency 197 */
|
|
import * as moduleValue2 from './module-00198.js'; /* Metro dependency 198 */
|
|
|
|
function _fun2801(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:6, offset: 0x00c89923, size: 139 bytes, params: 8, frame: 18
|
|
const env0_1 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = _fun2802();
|
|
value.isAvailable = !!(importDefault(195) /* metro dependency 195 */);
|
|
exports.default = value;
|
|
function _fun2802() { // fn#2802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:123, offset: 0x00c899ae, size: 196 bytes, params: 1, frame: 16
|
|
return CreateClass(BlobManager, null, [{key: 'createFromParts', value: value_2804}, {key: 'createFromOptions',
|
|
value: value_2809}, {key: 'release', value: value_2810}, {key: 'addNetworkingHandler', value: value_2811},
|
|
{key: 'addWebSocketHandler', value: value_2812}, {key: 'removeWebSocketHandler', value: value_2813},
|
|
{key: 'sendOverSocket', value: value_2814}]);
|
|
function BlobManager() { // fn#2803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:134, offset: 0x00c8063e, size: 27 bytes, params: 1, frame: 13
|
|
env1_4(this, BlobManager);
|
|
}
|
|
|
|
function value_2804(a0, a1) { // fn#2804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:233, offset: 0x00c89a72, size: 206 bytes, params: 3, frame: 19
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
(Module00044)(Module00195,
|
|
'NativeBlobModule is available.');
|
|
value = (() => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(RegExp('[xy]', 'g'), _fun2806))();
|
|
const value2 = a0.map(_fun2807);
|
|
const value3 = value2.reduce(_fun2808, 0);
|
|
(Module00195).createFromParts(value2, value);
|
|
const createFromOptions = BlobManager.createFromOptions;
|
|
const object = {blobId: value, offset: 0, size: value3};
|
|
object.type = a1 ? a1.type : '';
|
|
object.lastModified = a1 ? a1.lastModified : global.Date.now();
|
|
return Reflect.apply(createFromOptions, BlobManager, [object]);
|
|
function uuidv4() { // fn#2805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:319, owner: value_2804.uuidv4, offset: 0x00c89b40, size: 40 bytes, params: 1, frame: 13
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(RegExp('[xy]', 'g'), function(a0) {
|
|
var Math = global.Math;
|
|
var value = Math.random();
|
|
value = 16 * value | 0;
|
|
return (a0 == 'x' ? value : 3 & value | 8).toString(16);
|
|
});
|
|
}
|
|
|
|
function _fun2807(a0) { // fn#2807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:487, offset: 0x00c89bac, size: 161 bytes, params: 2, frame: 13
|
|
let ArrayBuffer = global.ArrayBuffer;
|
|
if (a0 instanceof ArrayBuffer) {
|
|
throw new global.Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");
|
|
}
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
if (ArrayBuffer.isView(a0)) {
|
|
throw new global.Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");
|
|
}
|
|
let value = environment.__proto__.__proto__;
|
|
value = a0 instanceof (require(197) /* metro dependency 197 */).default;
|
|
const object = {};
|
|
if (value) {
|
|
object.data = a0.data;
|
|
object.type = 'blob';
|
|
} else {
|
|
object.data = global.String(a0);
|
|
object.type = 'string';
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function _fun2808(a0, a1) { // fn#2808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:752, offset: 0x00c89c4d, size: 84 bytes, params: 3, frame: 15
|
|
var r0;
|
|
var value;
|
|
var binding;
|
|
if (a1.type === 'string') {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = a0 + binding.unescape(global.encodeURI(a1.data)).length;
|
|
r0 = value;
|
|
} else {
|
|
r0 = a0 + a1.data.size;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_2809(a0) { // fn#2809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1033, offset: 0x00c89ca1, size: 192 bytes, params: 2, frame: 23
|
|
const value = a0;
|
|
moduleValue2.register(value.blobId);
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
const value3 = Object2.create((Module00197Module).default.prototype);
|
|
const __collector = value.__collector;
|
|
const value4 = null;
|
|
return Reflect.apply(assign, Object, [value3, {data: value4 != __collector ? value : global.Object.assign({}, value,
|
|
{__collector: value4 == env1_0.__blobCollectorProvider ? value4 : env1_0.__blobCollectorProvider(value.blobId)})}]);
|
|
}
|
|
|
|
function value_2810(a0) { // fn#2810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1326, offset: 0x00c89d61, size: 131 bytes, params: 2, frame: 18
|
|
const value = environment.__proto__;
|
|
(Module00044)(importDefault(195) /* metro dependency 195 */,
|
|
'NativeBlobModule is available.');
|
|
(moduleValue2).unregister(a0);
|
|
if (!moduleValue2.has(a0)) {
|
|
(importDefault(195) /* metro dependency 195 */).release(a0);
|
|
}
|
|
}
|
|
|
|
function value_2811() { // fn#2811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1491, offset: 0x00c89de4, size: 70 bytes, params: 1, frame: 16
|
|
const value = environment.__proto__;
|
|
(Module00044)(Module00195,
|
|
'NativeBlobModule is available.');
|
|
(Module00195).addNetworkingHandler();
|
|
}
|
|
|
|
function value_2812(a0) { // fn#2812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1639, offset: 0x00c89e2a, size: 74 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__;
|
|
(Module00044)(Module00195,
|
|
'NativeBlobModule is available.');
|
|
(Module00195).addWebSocketHandler(a0);
|
|
}
|
|
|
|
function value_2813(a0) { // fn#2813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1790, offset: 0x00c89e74, size: 74 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__;
|
|
(Module00044)(Module00195,
|
|
'NativeBlobModule is available.');
|
|
(Module00195).removeWebSocketHandler(a0);
|
|
}
|
|
|
|
function value_2814({data}, a1) { // fn#2814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:1939, offset: 0x00c89ebe, size: 83 bytes, params: 3, frame: 16
|
|
const value = environment.__proto__;
|
|
(Module00044)(Module00195,
|
|
'NativeBlobModule is available.');
|
|
(Module00195).sendOverSocket(data, a1);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun2806(a0) { // fn#2806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:219:399, offset: 0x00c89b68, size: 68 bytes, params: 2, frame: 13
|
|
const Math = global.Math;
|
|
let value = Math.random();
|
|
value = 16 * value | 0;
|
|
return (a0 == 'x' ? value : 3 & value | 8).toString(16);
|
|
}
|
|
|
|
global.__d(_fun2801, 194, [6, 7, 44, 195, 197, 198]) /* metro module 194, dependencies: [6, 7, 44, 195, 197, 198] */;
|