/* Metro module 14348; source: modules/remote_auth/RemoteAuthCrypto.android.tsx; dependencies: [5, 6, 7, 14349, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import NativeRemoteAuthCryptoModule from '../../external/discord_common/js/packages/rtn-codegen/js/NativeRemoteAuthCryptoModule.tsx'; /* Metro dependency 14349 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun108596(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:6, offset: 0x02326f8d, size: 176 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_5 = {}; let value = _fun108597(); value = new value(); (FileImportTrackerModule).fileFinishedImporting('modules/remote_auth/RemoteAuthCrypto.android.tsx'); exports.default = value; function _fun108597() { // fn#108597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:133, offset: 0x0232703d, size: 242 bytes, params: 1, frame: 17 const AndroidRemoteAuthCrypto2 = AndroidRemoteAuthCrypto; const binding2 = env0_2; var env0_2 = binding2(_fun108600); const items2 = [{key: 'generateRsaKeyPair', value: value_108601}]; items2[1] = {key: 'serializePublicKey', value: value_108602}; items2[2] = {key: 'publicKeyFingerprint', value: value_108603}; const env0_1 = binding2(_fun108605); items2[3] = {key: 'decryptEncodedCiphertext', value: value_108607}; const env0_0 = binding2(_fun108609); items2[4] = {key: 'decryptNonce', value: value_108611}; items2[5] = {key: 'release', value: value_108612}; return CreateClass(AndroidRemoteAuthCrypto2, items2); function AndroidRemoteAuthCrypto() { // fn#108598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:154, offset: 0x011695d4, size: 27 bytes, params: 1, frame: 13 env1_3(this, AndroidRemoteAuthCrypto); } function* _fun108600() { // fn#108600, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:262, offset: 0x0232713a, size: 67 bytes, params: 1, frame: 13 if (false) { return undefined; } value = environment.__proto__.__proto__; const value3 = env2_0(env2_1[3]); yield value3.generateKeyPair(); if (false) { return undefined; } return env2_5; } function value_108601() { // fn#108601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:318, offset: 0x00d6b059, size: 30 bytes, params: 1, frame: 13 return env0_2.apply(this, arguments); } function value_108602() { // fn#108602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:414, offset: 0x0232717d, size: 39 bytes, params: 1, frame: 11 const value = environment.__proto__; return (NativeRemoteAuthCryptoModule).getEncodedPublicKey(); } function value_108603() { // fn#108603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:498, offset: 0x023271a4, size: 39 bytes, params: 1, frame: 11 const value = environment.__proto__; return (NativeRemoteAuthCryptoModule).getPublicKeyFingerprint(); } function* _fun108605(a0, a1) { // fn#108605, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:596, offset: 0x023271d6, size: 144 bytes, params: 3, frame: 16 var environment; if (false) { return undefined; } value = environment.__proto__.__proto__; value = env2_0(env2_1[3]); yield value.decrypt(a1); if (false) { return undefined; } const Uint8Array = global.Uint8Array; const from = Uint8Array.from; value = global.atob(value); value = Reflect.apply(from, Uint8Array, [value, function(a0) { return a0.charCodeAt(0); }]); const TextDecoder = global.TextDecoder; const value4 = Object.create(TextDecoder.prototype, {constructor: {value: TextDecoder}}); const textDecoder = new TextDecoder(); return (textDecoder instanceof Object ? textDecoder : value4).decode(value); } function value_108607() { // fn#108607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:727, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13 return env0_1.apply(this, arguments); } function* _fun108609(a0, a1) { // fn#108609, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:829, offset: 0x02327271, size: 84 bytes, params: 3, frame: 12 var environment; if (true) { value = environment.__proto__.__proto__; value = env2_0(env2_1[3]); value = value.decrypt(a1); yield value.then(function(a0) { return a0.replace(RegExp('\\/', 'g'), '_').replace(RegExp('\\+', 'g'), '-'); }); } } function value_108611() { // fn#108611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:930, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } function value_108612() { // fn#108612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14545:1009, offset: 0x02327304, size: 39 bytes, params: 1, frame: 11 const value = environment.__proto__; (NativeRemoteAuthCryptoModule).releaseKeyPair(); } } } global.__d(_fun108596, 14348, [5, 6, 7, 14349, 2]) /* metro module 14348, dependencies: [5, 6, 7, 14349, 2] */;