/* Metro module 5120; source: modules/collectibles/CollectiblesActionCreators.tsx; dependencies: [5, 4649, 1949, 5121, 5144, 5145, 5146, 5147, 5152, 5123, 5158, 5159, 663, 661, 5174, 5175, 4008, 5176, 694, 5177, 5178, 5183, 507, 4131, 5184, 5179, 5134, 5185, 5186, 2] */ function _fun44893(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6, offset: 0x0117b3b3, size: 774 bytes, params: 8, frame: 32 var object2; let env0_0 = require; const _arrayLikeToArray_44896 = function(a0, a1) { var r0; var r1; var r2; var value3; var length; var value5; var value = undefined; var value2 = value == null; reducibleJoin2: while (true) { if (value2) { r0 = value2; break reducibleJoin2; } value3 = value > a0.length; r0 = value3; break reducibleJoin2; } reducibleJoin4: while (true) { if (r0) { length = a0.length; r1 = length; break reducibleJoin4; } r1 = value; break reducibleJoin4; } value = (0, global.Array)(r1); var value4 = 0; if (value4 < r1) { r2 = value4; reducibleLoop5: while (true) { value[r2] = a0[r2]; value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value5 < r1) { r2 = value5; continue reducibleLoop5; } break reducibleLoop5; } } return value; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const devSettingsStore = importDefault(4649) /* metro dependency 4649: DevSettingsStore */; const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */; const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */; const env0_7 = (require(5144) /* metro dependency 5144: CollectiblesDebugStore */).addDebugLog; const collectiblesPurchaseStore = importDefault(5145) /* metro dependency 5145: CollectiblesPurchaseStore */; const collectiblesShopStore = importDefault(5146) /* metro dependency 5146: CollectiblesShopStore */; const env0_10 = (require(5147) /* metro dependency 5147: CollectiblesCategoriesRecord */).CollectiblesCategoriesRecord; const env0_11 = (require(5152) /* metro dependency 5152: CollectiblesMarketingRecord */).CollectiblesMarketingsRecord; const collectiblesProductRecord = importDefault(5123) /* metro dependency 5123: CollectiblesProductRecord */; const collectiblesPurchaseRecord = importDefault(5158) /* metro dependency 5158: CollectiblesPurchaseRecord */; const env0_14 = (require(5159) /* metro dependency 5159: CollectiblesShopHomeRecord */).CollectiblesShopHomeRecord; const env0_15 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).CollectiblesMobileShopScreen; let value = require(661) /* metro dependency 661: Constants */; const env0_16 = value.Endpoints; value.Routes; const env0_17 = value.UserSettingsSections; require(5174) /* metro dependency 5174: CollectiblesMarketingsStore */; require(5175) /* metro dependency 5175: CollectiblesShopHomeStore */; let closure = function(a0) { a0.tab; var value = Object.create(null); value.tab = 0; value = copyDataProperties({}, a0, value, a0); openCollectiblesShopMobile(value); }; const closure2 = openCollectiblesShopMobile; const findExistingCollectiblesShopRoute = function(a0, a1) { var closure; var env0_0 = a1; var value = a0.getRootState(); if (value != null) { if (value.routes) { var env0_1 = _fun44900; closure = _fun44901; var env0_2 = closure; return closure(value.routes); } } return null; }; const closure3 = dispatchOpenCollectiblesShop; const closure4 = closeCollectiblesShop; const areOptionalBooleansEqual = function(a0, a1) { return (0, global.Boolean)(a0) === (0, global.Boolean)(a1); }; value = _fun44905(); let value2 = _fun44909(); let value3 = _fun44913(); let value4 = _fun44917(); let value5 = _fun44921(); const value6 = _fun44925(); const value7 = _fun44929(); const value8 = _fun44933(); const value9 = _fun44937(); const value10 = _fun44941(); const value11 = _fun44945(); object2 = {openCollectiblesShop: closure, closeCollectiblesShop: closure4, fetchCollectiblesPurchases: value2, fetchCollectiblesProduct: value3, claimPremiumCollectiblesProduct: value5}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/CollectiblesActionCreators.tsx'); exports.default = object2; exports.openCollectiblesShop = closure; exports.openCollectiblesShopMobile = closure2; exports.isCollectiblesShopOpen = isCollectiblesShopOpen; exports.dispatchOpenCollectiblesShop = closure3; exports.closeCollectiblesShop = closure4; exports.productDetailsOpened = productDetailsOpened; exports.areRequestOptionsEqual = areRequestOptionsEqual; exports.fetchCollectiblesCategories = value; exports.fetchCollectiblesPurchases = value2; exports.fetchCollectiblesProduct = value3; exports.maybeFetchCollectiblesProduct = value4; exports.seedCollectiblesProductFromStandaloneLoad = seedCollectiblesProductFromStandaloneLoad; exports.claimPremiumCollectiblesProduct = value5; exports.validateCollectiblesRecipient = value6; exports.validateCollectiblesRecipientsBatch = value7; exports.fetchCollectiblesMarketings = value8; exports.fetchCollectiblesShopHome = value9; exports.setShopHomeConfigOverride = setShopHomeConfigOverride; exports.setShopLayoutUrlOverride = setShopLayoutUrlOverride; exports.setSkipNumCategories = setSkipNumCategories; exports.claimCollectiblesCategoryReward = value10; exports.maybeFetchCollectiblesShopTabLayout = value11; } function _createForOfIteratorHelperLoose_44894(a0, a1) { // fn#44894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:426, offset: 0x0117b6b9, size: 370 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)) { if (r1) { } return _fun44895; } value = undefined; if (a0) { if (typeof a0 === 'string') { value = _arrayLikeToArray_44896(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') { value = _arrayLikeToArray_44896(a0, value); r6 = value; } else { regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); if (regexp.test(r9)) { value = _arrayLikeToArray_44896(a0, value); r6 = value; } else { r6 = value; } } r5 = r6; } } else { r5 = value; } if (r5) { if (r5) { } return _fun44895; } 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 openCollectiblesShopMobile(a0) { // fn#44898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:1460, offset: 0x0117b85c, size: 394 bytes, params: 2, frame: 19 var r2; var screen; var currentRoute; var object2; var existingCollectiblesShopRoute; var YouBarExperiment; var enabled; var navigate; const dispatchOpenCollectiblesShopBinding = dispatchOpenCollectiblesShop; const value2 = undefined; dispatchOpenCollectiblesShopBinding(a0); const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef(); if (rootNavigationRef != null) { if (rootNavigationRef.isReady()) { screen = a0.screen; r2 = screen ?? (a0.initialProductSkuId != null ? CollectiblesMobileShopScreen.SHOP_ALL : CollectiblesMobileShopScreen.FEATURED_PAGE); currentRoute = rootNavigationRef.getCurrentRoute(); screen = currentRoute == null || currentRoute.params == null ? value2 : currentRoute.params.screen; if (screen !== r2) { object2 = {}; object2.screen = UserSettingsSections.COLLECTIBLES_SHOP; object2.params = {analyticsSource: a0.analyticsSource, screen: r2, onNavigateAway: a0.onNavigateAway}; existingCollectiblesShopRoute = findExistingCollectiblesShopRoute(rootNavigationRef, r2); YouBarExperiment = (require(5176) /* metro dependency 5176: YouBarExperiment */).YouBarExperiment; enabled = YouBarExperiment.getConfig({location: 'CollectiblesShop'}).enabled; navigate = rootNavigationRef.navigate; if (enabled) { Reflect.apply(navigate, rootNavigationRef, [{name: 'settings', params: object2}]); } else { Reflect.apply(navigate, rootNavigationRef, [{name: 'settings', key: (existingCollectiblesShopRoute == null ? value2 : existingCollectiblesShopRoute.key) ?? 'collectibles-shop-' + (typeof env0_18 === 'bigint' ? env0_18 + 1n : +env0_18 + 1), params: object2}]); } } } } return value2; } function findExistingCollectiblesShopRoute(a0, a1) { // fn#44899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2157, offset: 0x0117b9e6, size: 72 bytes, params: 3, frame: 12 const env0_0 = a1; const rootState = a0.getRootState(); if (rootState != null) { if (rootState.routes) { return searchRoutes(rootState.routes); } } return null; } function dispatchOpenCollectiblesShop(a0) { // fn#44902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2712, offset: 0x0117bb31, size: 57 bytes, params: 2, frame: 14 const value = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = value.dispatch; const object2 = {type: 'COLLECTIBLES_SHOP_OPEN'}; copyDataProperties(object2, a0, 'COLLECTIBLES_SHOP_OPEN'); Reflect.apply(dispatch, value, [object2]); } function closeCollectiblesShop() { // fn#44903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2795, offset: 0x0117bb6a, size: 75 bytes, params: 1, frame: 15 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'COLLECTIBLES_SHOP_CLOSE'}); (require(5177) /* metro dependency 5177: LayerActionCreators */).popLayer(); } function _fun44905() { // fn#44905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2932, offset: 0x0117bbdb, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44907); return _fun44908; } function _fun44909() { // fn#44909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:4345, offset: 0x0117bfd9, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44911); return _fun44912; } function _fun44913() { // fn#44913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:5232, offset: 0x0117c26a, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44915); return _fun44916; } function _fun44917() { // fn#44917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6099, offset: 0x0117c4eb, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44919); return _fun44920; } function _fun44921() { // fn#44921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6231, offset: 0x0117c559, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44923); return _fun44924; } function _fun44925() { // fn#44925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6716, offset: 0x0117c6dd, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44927); return _fun44928; } function _fun44929() { // fn#44929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:7033, offset: 0x0117c7d7, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44931); return _fun44932; } function _fun44933() { // fn#44933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:7352, offset: 0x0117c8cb, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44935); return _fun44936; } function _fun44937() { // fn#44937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:8017, offset: 0x0117cac3, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44939); return _fun44940; } function _fun44941() { // fn#44941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:9177, offset: 0x0117ce0b, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44943); return _fun44944; } function _fun44945() { // fn#44945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:9685, offset: 0x0117cf8f, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun44947); return _fun44948; } function isCollectiblesShopOpen() { // fn#44949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:10744, offset: 0x0117d181, size: 78 bytes, params: 1, frame: 14 const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef(); return !(rootNavigationRef == null || !rootNavigationRef.isReady()) && findExistingCollectiblesShopRoute(rootNavigationRef) != null; } function productDetailsOpened(a0) { // fn#44950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:10996, offset: 0x0117d1cf, size: 56 bytes, params: 2, frame: 13 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'COLLECTIBLES_PRODUCT_DETAILS_OPEN', skuId: a0}); } function areRequestOptionsEqual(a0, a1) { // fn#44951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:11097, offset: 0x0117d207, size: 332 bytes, params: 3, frame: 19 const areOptionalBooleansEqualBinding = areOptionalBooleansEqual; const value2 = undefined; let r0 = areOptionalBooleansEqualBinding(a0 == null ? value2 : a0.noCache, a1 == null ? value2 : a1.noCache) && areOptionalBooleansEqual(a0 == null ? value2 : a0.includeUnpublished, a1 == null ? value2 : a1.includeUnpublished) && areOptionalBooleansEqual(a0 == null ? value2 : a0.includeBundles, a1 == null ? value2 : a1.includeBundles); r0 = r0 && areOptionalBooleansEqual(a0 == null ? value2 : a0.includeDynamicBlocks, a1 == null ? value2 : a1.includeDynamicBlocks) && (a0 == null ? value2 : a0.countryCode) === (a1 == null ? value2 : a1.countryCode); r0 = r0 && (a0 == null ? value2 : a0.paymentGateway) === (a1 == null ? value2 : a1.paymentGateway) && (a0 == null ? value2 : a0.shopHomeConfig) === (a1 == null ? value2 : a1.shopHomeConfig) && (a0 == null ? value2 : a0.skipNumCategories) === (a1 == null ? value2 : a1.skipNumCategories); return r0; } function seedCollectiblesProductFromStandaloneLoad(a0) { // fn#44952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:11932, offset: 0x0117d353, size: 194 bytes, params: 2, frame: 21 var r2; var value5; var getProduct; var skuId; var defaultImport; var dispatch; var value6; const Date = global.Date; const value = Date.now(); const _createForOfIteratorHelperLoose_44894Binding = _createForOfIteratorHelperLoose_44894; const collectiblesUtilsModule = require(5134) /* metro dependency 5134: CollectiblesUtils */; const value3 = _createForOfIteratorHelperLoose_44894Binding(collectiblesUtilsModule.extendVariantsProducts([a0])); const value4 = value3(); let done = value4.done; if (!done) { r2 = value4; while (true) { value5 = r2.value; getProduct = CollectiblesCategoryStore.getProduct; skuId = value5.skuId; if (Reflect.apply(getProduct, CollectiblesCategoryStore, [skuId]) == null) { defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; dispatch = defaultImport.dispatch; skuId = value5.skuId; Reflect.apply(dispatch, defaultImport, [{type: 'COLLECTIBLES_PRODUCT_FETCH_SUCCESS', skuId: skuId, product: value5, endedAt: value}]); } value6 = value3(); done = value6.done; if (done) { break; } r2 = value6; continue; } } } function setShopHomeConfigOverride(a0) { // fn#44953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:12396, offset: 0x0117d415, size: 57 bytes, params: 2, frame: 13 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'COLLECTIBLES_SET_SHOP_HOME_CONFIG_OVERRIDE', shopHomeConfigOverride: a0}); } function setShopLayoutUrlOverride(a0) { // fn#44954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:12525, offset: 0x0117d44e, size: 57 bytes, params: 2, frame: 13 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'COLLECTIBLES_SET_SHOP_LAYOUT_URL_OVERRIDE', shopLayoutUrlOverride: a0}); } function setSkipNumCategories(a0) { // fn#44955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:12648, offset: 0x0117d487, size: 57 bytes, params: 2, frame: 13 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'COLLECTIBLES_SKIP_NUM_CATEGORIES', skipNumCategories: a0}); } function isCollectiblesShopRoute(a0) { // fn#44900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2250, owner: findExistingCollectiblesShopRoute.isCollectiblesShopRoute, offset: 0x0117ba2e, size: 127 bytes, params: 2, frame: 8 var screen; var r0; var params; let value = a0.name === 'settings'; if (value) { params = a0.params; value = undefined; screen = params == null ? value : params.screen; value = environment.__proto__; value = screen === UserSettingsSections.COLLECTIBLES_SHOP; r0 = value; } else { r0 = value; } r0 = r0 && (require == null || (a0.params == null || a0.params.params == null ? undefined : a0.params.params.screen) === require); return r0; } function searchRoutes(a0) { // fn#44901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2435, owner: findExistingCollectiblesShopRoute.searchRoutes, offset: 0x0117baad, size: 132 bytes, params: 2, frame: 19 var r5; var value4; var state; var routes; var searchRoutesBinding; var value5; var value6; let value = environment.__proto__; value = _createForOfIteratorHelperLoose_44894(a0); const value2 = value(); let done = value2.done; if (!done) { r5 = value2; reducibleLoop1: while (true) { value4 = r5.value; if (isCollectiblesShopRoute(value4)) { return value4; } state = value4.state; if (state != null) { routes = state.routes; reducibleJoin5: while (true) { if (routes) { searchRoutesBinding = searchRoutes; state = value4.state; routes = state.routes; value5 = searchRoutesBinding(routes); if (value5) { return value5; } break reducibleJoin5; } break reducibleJoin5; } } value6 = value(); done = value6.done; if (done) { return null; } r5 = value6; continue reducibleLoop1; } } return null; } function* _fun44907(a0, a1, a2) { // fn#44907, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:2952, offset: 0x0117bc04, size: 981 bytes, params: 4, frame: 28 var r12; var r5; var sessionId; var tab; var includeUnpublished; var noCache; var r6; var logPerf; var value10; var trackShopPerf; var CollectiblesShopPerfCheckpoint; var CATEGORIES_FETCH_STARTED; var JSON; var stringify; var value11; var HermesInternal; var concat; var binding2; var property; var value12; var HTTP; var COLLECTIBLES_CATEGORIES_V2; var value13; var value14; var value15; var value16; var binding3; var value17; var value18; var binding4; var value19; var CATEGORIES_FETCH_COMPLETED; var value20; var value21; var value22; var body; var categories; var length; var binding5; var fromServer; var value23; var error; var binding6; var APIError; var prototype; var aPIError; var value24; var captureOrIgnoreApiError; var value25; var message; let value = a0; if (false) { return undefined; } const value4 = undefined; let binding = env2_1; const value6 = binding(env2_2[18]); let dispatch = value6.dispatch; let object2 = {type: 'COLLECTIBLES_CATEGORIES_FETCH'}; reducibleJoin3: while (true) { if (value != null) { r12 = value; break reducibleJoin3; } r12 = {}; break reducibleJoin3; } object2.options = r12; Reflect.apply(dispatch, value6, [object2]); const fetchCollectiblesOptionsQuery = env2_0(env2_2[20]).buildFetchCollectiblesOptionsQuery(value); const value8 = env2_4.get('shop_show_debug_overlay'); const value9 = value != null; reducibleJoin5: while (true) { if (value9) { logPerf = value.logPerf; r5 = logPerf; break reducibleJoin5; } r5 = value9; break reducibleJoin5; } reducibleJoin15: while (true) { if (r5) { binding = env2_0; value10 = binding(env2_2[21]); trackShopPerf = value10.trackShopPerf; object2 = {}; reducibleJoin8: while (true) { if (a2 == null) { sessionId = value4; break reducibleJoin8; } sessionId = a2.sessionId; break reducibleJoin8; } object2.sessionId = sessionId; binding = env2_0; CollectiblesShopPerfCheckpoint = binding(env2_2[21]).CollectiblesShopPerfCheckpoint; CATEGORIES_FETCH_STARTED = CollectiblesShopPerfCheckpoint.CATEGORIES_FETCH_STARTED; object2.checkpoint = CATEGORIES_FETCH_STARTED; reducibleJoin10: while (true) { if (a2 == null) { tab = value4; break reducibleJoin10; } tab = a2.tab; break reducibleJoin10; } object2.tab = tab; reducibleJoin12: while (true) { if (value == null) { includeUnpublished = value4; break reducibleJoin12; } includeUnpublished = value.includeUnpublished; break reducibleJoin12; } object2.unpublishedCategoriesShown = includeUnpublished; reducibleJoin14: while (true) { if (value == null) { noCache = value4; break reducibleJoin14; } noCache = value.noCache; break reducibleJoin14; } object2.cacheDisabled = noCache; Reflect.apply(trackShopPerf, value10, [object2]); break reducibleJoin15; } break reducibleJoin15; } reducibleJoin17: while (true) { if (value8) { binding = env2_7; JSON = global.JSON; stringify = JSON.stringify; value11 = Reflect.apply(stringify, JSON, [fetchCollectiblesOptionsQuery, null, 2]); HermesInternal = global.HermesInternal; concat = HermesInternal.concat; binding('fetchCollectiblesCategories started: ' + value11); break reducibleJoin17; } break reducibleJoin17; } reducibleJoin18: while (true) { reduciblePort108: while (true) { exceptionLanding106: while (true) { try { binding = env2_0; } catch (error) { break exceptionLanding106; } break reducibleJoin18; } binding = env2_0; binding6 = env2_2; APIError = binding(binding6[23]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; value24 = binding(binding6[24]); captureOrIgnoreApiError = value24.captureOrIgnoreApiError; Reflect.apply(captureOrIgnoreApiError, value24, [value]); binding = env2_1; value25 = binding(binding6[18]); dispatch = value25.dispatch; Reflect.apply(dispatch, value25, [{type: 'COLLECTIBLES_CATEGORIES_FETCH_FAILURE', error: value}]); reducibleJoin108: while (true) { if (value8) { binding = env2_7; message = value.message; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; binding('fetchCollectiblesCategories failed: ' + message); break reducibleJoin108; } break reducibleJoin108; } break reduciblePort108; } return value4; } try { binding2 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding2[22]; } catch (error) { break exceptionLanding106; } try { value12 = binding(property); } catch (error) { break exceptionLanding106; } try { HTTP = value12.HTTP; } catch (error) { break exceptionLanding106; } try { get = HTTP.get; } catch (error) { break exceptionLanding106; } try { object2 = {}; } catch (error) { break exceptionLanding106; } try { binding = env2_16; } catch (error) { break exceptionLanding106; } try { COLLECTIBLES_CATEGORIES_V2 = binding.COLLECTIBLES_CATEGORIES_V2; } catch (error) { break exceptionLanding106; } try { object2.url = COLLECTIBLES_CATEGORIES_V2; } catch (error) { break exceptionLanding106; } try { object2.query = fetchCollectiblesOptionsQuery; } catch (error) { break exceptionLanding106; } try { object2.rejectWithError = true; } catch (error) { break exceptionLanding106; } try { value13 = Reflect.apply(get, HTTP, [object2]); } catch (error) { break exceptionLanding106; } yield value13; try { value14 = undefined; value15 = false; } catch (error) { break exceptionLanding106; } if (value15) { return value14; } try { value16 = value != null; } catch (error) { break exceptionLanding106; } reducibleJoin40: while (true) { if (value16) { try { logPerf = value.logPerf; } catch (error) { break exceptionLanding106; } r6 = logPerf; break reducibleJoin40; } r6 = value16; break reducibleJoin40; } reducibleJoin78: while (true) { if (r6) { try { binding = env2_0; } catch (error) { break exceptionLanding106; } try { binding3 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding3[21]; } catch (error) { break exceptionLanding106; } try { value17 = binding(property); } catch (error) { break exceptionLanding106; } try { trackShopPerf = value17.trackShopPerf; } catch (error) { break exceptionLanding106; } try { object2 = {}; } catch (error) { break exceptionLanding106; } try { value18 = a2 == null; } catch (error) { break exceptionLanding106; } reducibleJoin53: while (true) { if (value18) { sessionId = value4; break reducibleJoin53; } try { sessionId = a2.sessionId; } catch (error) { break exceptionLanding106; } break reducibleJoin53; } try { object2.sessionId = sessionId; } catch (error) { break exceptionLanding106; } try { binding = env2_0; } catch (error) { break exceptionLanding106; } try { binding4 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding4[21]; } catch (error) { break exceptionLanding106; } try { value19 = binding(property); } catch (error) { break exceptionLanding106; } try { CollectiblesShopPerfCheckpoint = value19.CollectiblesShopPerfCheckpoint; } catch (error) { break exceptionLanding106; } try { CATEGORIES_FETCH_COMPLETED = CollectiblesShopPerfCheckpoint.CATEGORIES_FETCH_COMPLETED; } catch (error) { break exceptionLanding106; } try { object2.checkpoint = CATEGORIES_FETCH_COMPLETED; } catch (error) { break exceptionLanding106; } try { value20 = a2 == null; } catch (error) { break exceptionLanding106; } reducibleJoin65: while (true) { if (value20) { tab = value4; break reducibleJoin65; } try { tab = a2.tab; } catch (error) { break exceptionLanding106; } break reducibleJoin65; } try { object2.tab = tab; } catch (error) { break exceptionLanding106; } try { value21 = value == null; } catch (error) { break exceptionLanding106; } reducibleJoin71: while (true) { if (value21) { includeUnpublished = value4; break reducibleJoin71; } try { includeUnpublished = value.includeUnpublished; } catch (error) { break exceptionLanding106; } break reducibleJoin71; } try { object2.unpublishedCategoriesShown = includeUnpublished; } catch (error) { break exceptionLanding106; } try { value22 = value == null; } catch (error) { break exceptionLanding106; } reducibleJoin76: while (true) { if (value22) { noCache = value4; break reducibleJoin76; } try { noCache = value.noCache; } catch (error) { break exceptionLanding106; } break reducibleJoin76; } try { object2.cacheDisabled = noCache; } catch (error) { break exceptionLanding106; } try { Reflect.apply(trackShopPerf, value17, [object2]); } catch (error) { break exceptionLanding106; } break reducibleJoin78; } break reducibleJoin78; } reducibleJoin90: while (true) { if (value8) { try { binding = env2_7; } catch (error) { break exceptionLanding106; } try { body = value14.body; } catch (error) { break exceptionLanding106; } try { categories = body.categories; } catch (error) { break exceptionLanding106; } try { length = categories.length; } catch (error) { break exceptionLanding106; } try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding106; } try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding106; } try { value = 'fetchCollectiblesCategories completed ' + length + ' categories'; } catch (error) { break exceptionLanding106; } try { binding(value); } catch (error) { break exceptionLanding106; } break reducibleJoin90; } break reducibleJoin90; } try { binding = env2_1; } catch (error) { break exceptionLanding106; } try { binding5 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding5[18]; } catch (error) { break exceptionLanding106; } try { value = binding(property); } catch (error) { break exceptionLanding106; } try { dispatch = value.dispatch; } catch (error) { break exceptionLanding106; } try { object2 = {}; } catch (error) { break exceptionLanding106; } try { object2.type = 'COLLECTIBLES_CATEGORIES_FETCH_SUCCESS'; } catch (error) { break exceptionLanding106; } try { binding = env2_10; } catch (error) { break exceptionLanding106; } try { fromServer = binding.fromServer; } catch (error) { break exceptionLanding106; } try { body = value14.body; } catch (error) { break exceptionLanding106; } try { value23 = Reflect.apply(fromServer, binding, [body]); } catch (error) { break exceptionLanding106; } try { object2.categories = value23; } catch (error) { break exceptionLanding106; } try { object2.noOp = a1; } catch (error) { break exceptionLanding106; } try { Reflect.apply(dispatch, value, [object2]); } catch (error) { break exceptionLanding106; } return value4; } function* _fun44911() { // fn#44911, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:4365, offset: 0x0117c002, size: 616 bytes, params: 1, frame: 25 var object4; var COLLECTIBLES_PURCHASES; var object3; var binding2; var property; var value5; var ShopVariantsReturnStyle; var VARIANTS_GROUP; var JSON; var stringify; var value6; var concat; var value7; var binding3; var value8; var HTTP; var value9; var value10; var value11; var body; var length; var value12; var binding4; var value13; var map; var fromServer; var value14; var error; var binding5; var APIError; var prototype; var value15; var aPIError; var value16; var value17; var message; if (true) { value = environment.__proto__.__proto__; if (!env2_8.isFetching) { var binding = env2_1; binding(env2_2[18]).dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH'}); binding = env2_4; var value4 = binding.get('shop_show_debug_overlay'); if (value4) { env2_7('fetchCollectiblesPurchases started'); } try { object4 = {}; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding = env2_16; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { COLLECTIBLES_PURCHASES = binding.COLLECTIBLES_PURCHASES; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4.url = COLLECTIBLES_PURCHASES; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4.rejectWithError = true; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object3 = {}; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding = env2_0; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { property = binding2[25]; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value5 = binding(property); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { ShopVariantsReturnStyle = value5.ShopVariantsReturnStyle; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { VARIANTS_GROUP = ShopVariantsReturnStyle.VARIANTS_GROUP; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object3.variants_return_style = VARIANTS_GROUP; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4.query = object3; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } if (value4) { try { binding = env2_7; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { JSON = global.JSON; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { stringify = JSON.stringify; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value6 = Reflect.apply(stringify, JSON, [object4, null, 2]); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value7 = Reflect.apply(concat, 'fetchCollectiblesPurchases request: ', [value6]); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding(value7); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } } try { binding = env2_0; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding3 = env2_2; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { property = binding3[22]; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value8 = binding(property); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { HTTP = value8.HTTP; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { get = HTTP.get; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value9 = Reflect.apply(get, HTTP, [object4]); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } yield value9; try { value10 = undefined; value11 = false; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } if (value11) { return value10; } if (value4) { try { binding = env2_7; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { body = value10.body; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { length = body.length; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value12 = Reflect.apply(concat, 'fetchCollectiblesPurchases completed with ', [length, ' purchases']); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding(value12); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } } try { binding = env2_1; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding4 = env2_2; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { property = binding4[18]; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value13 = binding(property); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { dispatch = value13.dispatch; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4 = {}; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4.type = 'COLLECTIBLES_PURCHASES_FETCH_SUCCESS'; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { body = value10.body; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { map = body.map; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { binding = env2_13; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { fromServer = binding.fromServer; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { value14 = Reflect.apply(map, body, [fromServer]); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { object4.purchases = value14; } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } try { Reflect.apply(dispatch, value13, [object4]); } catch (error) { binding = env2_0; binding5 = env2_2; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value15 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value16 = aPIError instanceof Object ? aPIError : value15; value17 = binding(binding5[24]); value17.captureOrIgnoreApiError(value16); if (value4) { binding = env2_7; message = value16.message; binding('fetchCollectiblesPurchases failed: ' + message); binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } binding = env2_1; value = binding(env2_2[18]); value.dispatch({type: 'COLLECTIBLES_PURCHASES_FETCH_FAILURE', error: value16}); throw value16; } } } } function* _fun44915(a0, a1) { // fn#44915, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:5252, offset: 0x0117c293, size: 600 bytes, params: 3, frame: 21 var object4; var countryCode; var paymentGateway; var includeBundles; var locale; var value5; var value6; var value7; var value8; var value9; var value10; var value11; var value12; var value13; var binding2; var property; var value14; var HTTP; var get; var object3; var COLLECTIBLES_PRODUCTS; var value15; var value16; var value17; var value18; var binding3; var value19; var fromServer; var body; var value20; var value21; var error; var binding4; var APIError; var prototype; var value22; var aPIError; var value23; var value24; var captureOrIgnoreApiError; var value25; if (false) { return undefined; } value = undefined; let binding = env2_1; const value4 = binding(env2_2[18]); let dispatch = value4.dispatch; let Date = global.Date; let now = Date.now; Reflect.apply(dispatch, value4, [{type: 'COLLECTIBLES_PRODUCT_FETCH', skuId: a0, startedAt: Reflect.apply(now, Date, [])}]); reducibleJoin3: while (true) { reduciblePort83: while (true) { exceptionLanding82: while (true) { try { object4 = {}; } catch (error) { break exceptionLanding82; } break reducibleJoin3; } binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value22 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value23 = aPIError instanceof Object ? aPIError : value22; value24 = binding(binding4[24]); captureOrIgnoreApiError = value24.captureOrIgnoreApiError; Reflect.apply(captureOrIgnoreApiError, value24, [value23]); binding = env2_1; value25 = binding(binding4[18]); dispatch = value25.dispatch; Date = global.Date; now = Date.now; Reflect.apply(dispatch, value25, [{type: 'COLLECTIBLES_PRODUCT_FETCH_FAILURE', skuId: a0, error: value23, endedAt: Reflect.apply(now, Date, [])}]); break reduciblePort83; } return value; } try { binding = env2_5; } catch (error) { break exceptionLanding82; } try { locale = binding.locale; } catch (error) { break exceptionLanding82; } try { object4.locale = locale; } catch (error) { break exceptionLanding82; } try { value5 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin11: while (true) { if (value5) { countryCode = value; break reducibleJoin11; } try { countryCode = a1.countryCode; } catch (error) { break exceptionLanding82; } break reducibleJoin11; } try { value6 = countryCode === null; } catch (error) { break exceptionLanding82; } reducibleJoin18: while (true) { if (value6) { break reducibleJoin18; } try { value7 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin17: while (true) { if (value7) { countryCode = value; break reducibleJoin17; } try { countryCode = a1.countryCode; } catch (error) { break exceptionLanding82; } break reducibleJoin17; } try { object4.country_code = countryCode; } catch (error) { break exceptionLanding82; } break reducibleJoin18; } try { value8 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin23: while (true) { if (value8) { paymentGateway = value; break reducibleJoin23; } try { paymentGateway = a1.paymentGateway; } catch (error) { break exceptionLanding82; } break reducibleJoin23; } try { value9 = paymentGateway === null; } catch (error) { break exceptionLanding82; } reducibleJoin30: while (true) { if (value9) { break reducibleJoin30; } try { value10 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin29: while (true) { if (value10) { paymentGateway = value; break reducibleJoin29; } try { paymentGateway = a1.paymentGateway; } catch (error) { break exceptionLanding82; } break reducibleJoin29; } try { object4.payment_gateway = paymentGateway; } catch (error) { break exceptionLanding82; } break reducibleJoin30; } try { value11 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin35: while (true) { if (value11) { includeBundles = value; break reducibleJoin35; } try { includeBundles = a1.includeBundles; } catch (error) { break exceptionLanding82; } break reducibleJoin35; } try { value12 = includeBundles === null; } catch (error) { break exceptionLanding82; } reducibleJoin41: while (true) { if (value12) { break reducibleJoin41; } try { value13 = a1 == null; } catch (error) { break exceptionLanding82; } reducibleJoin40: while (true) { if (value13) { includeBundles = value; break reducibleJoin40; } try { includeBundles = a1.includeBundles; } catch (error) { break exceptionLanding82; } break reducibleJoin40; } try { object4.include_bundles = includeBundles; } catch (error) { break exceptionLanding82; } break reducibleJoin41; } try { binding = env2_0; } catch (error) { break exceptionLanding82; } try { binding2 = env2_2; } catch (error) { break exceptionLanding82; } try { property = binding2[22]; } catch (error) { break exceptionLanding82; } try { value14 = binding(property); } catch (error) { break exceptionLanding82; } try { HTTP = value14.HTTP; } catch (error) { break exceptionLanding82; } try { get = HTTP.get; } catch (error) { break exceptionLanding82; } try { object3 = {}; } catch (error) { break exceptionLanding82; } try { binding = env2_16; } catch (error) { break exceptionLanding82; } try { COLLECTIBLES_PRODUCTS = binding.COLLECTIBLES_PRODUCTS; } catch (error) { break exceptionLanding82; } try { value15 = Reflect.apply(COLLECTIBLES_PRODUCTS, binding, [a0]); } catch (error) { break exceptionLanding82; } try { object3.url = value15; } catch (error) { break exceptionLanding82; } try { object3.rejectWithError = true; } catch (error) { break exceptionLanding82; } try { object3.query = object4; } catch (error) { break exceptionLanding82; } try { value16 = Reflect.apply(get, HTTP, [object3]); } catch (error) { break exceptionLanding82; } yield value16; try { value17 = undefined; value18 = false; } catch (error) { break exceptionLanding82; } if (value18) { return value17; } try { binding = env2_1; } catch (error) { break exceptionLanding82; } try { binding3 = env2_2; } catch (error) { break exceptionLanding82; } try { property = binding3[18]; } catch (error) { break exceptionLanding82; } try { value19 = binding(property); } catch (error) { break exceptionLanding82; } try { dispatch = value19.dispatch; } catch (error) { break exceptionLanding82; } try { object4 = {}; } catch (error) { break exceptionLanding82; } try { object4.type = 'COLLECTIBLES_PRODUCT_FETCH_SUCCESS'; } catch (error) { break exceptionLanding82; } try { object4.skuId = a0; } catch (error) { break exceptionLanding82; } try { binding = env2_12; } catch (error) { break exceptionLanding82; } try { fromServer = binding.fromServer; } catch (error) { break exceptionLanding82; } try { body = value17.body; } catch (error) { break exceptionLanding82; } try { value20 = Reflect.apply(fromServer, binding, [body]); } catch (error) { break exceptionLanding82; } try { object4.product = value20; } catch (error) { break exceptionLanding82; } try { Date = global.Date; } catch (error) { break exceptionLanding82; } try { now = Date.now; } catch (error) { break exceptionLanding82; } try { value21 = Reflect.apply(now, Date, []); } catch (error) { break exceptionLanding82; } try { object4.endedAt = value21; } catch (error) { break exceptionLanding82; } try { Reflect.apply(dispatch, value19, [object4]); } catch (error) { break exceptionLanding82; } return value; } function* _fun44919(a0, a1) { // fn#44919, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6119, offset: 0x0117c514, size: 69 bytes, params: 3, frame: 14 if (true) { value = environment.__proto__.__proto__; var binding = env2_6; if (!binding.isFetchingProduct(a0)) { yield env2_23(a0, a1); if (false) { return undefined; } } } } function* _fun44923(a0) { // fn#44923, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6251, offset: 0x0117c582, size: 347 bytes, params: 2, frame: 21 var object4; var r9; var binding2; var property; var value5; var HTTP; var put; var COLLECTIBLES_CLAIM; var object3; var value6; var value7; var value8; var binding3; var value9; var body; var value10; var map; var fromServer; var value11; var error; var binding4; var APIError; var prototype; var value12; var aPIError; var value13; if (false) { return undefined; } value = undefined; let binding = env2_1; binding(env2_2[18]).dispatch({type: 'COLLECTIBLES_CLAIM', skuId: a0}); try { binding = env2_0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { property = binding2[22]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { value5 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { HTTP = value5.HTTP; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { put = HTTP.put; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { binding = env2_16; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { COLLECTIBLES_CLAIM = binding.COLLECTIBLES_CLAIM; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4.url = COLLECTIBLES_CLAIM; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object3 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object3.sku_id = a0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4.body = object3; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4.rejectWithError = true; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { value6 = Reflect.apply(put, HTTP, [object4]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } yield value6; try { value7 = undefined; value8 = false; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } if (value8) { return value7; } try { binding = env2_1; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { binding3 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { property = binding3[18]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { value9 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { dispatch = value9.dispatch; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4.type = 'COLLECTIBLES_CLAIM_SUCCESS'; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { object4.skuId = a0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { body = value7.body; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { value10 = body == null; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } if (value10) { r9 = value; } else { try { map = body.map; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { binding = env2_13; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { fromServer = binding.fromServer; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { value11 = Reflect.apply(map, body, [fromServer]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } r9 = value11; } try { object4.purchases = r9; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } try { Reflect.apply(dispatch, value9, [object4]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a0, error: value13}); throw value13; } return value; } function* _fun44927(a0, a1) { // fn#44927, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:6736, offset: 0x0117c706, size: 209 bytes, params: 3, frame: 16 var binding; var binding2; var property; var value3; var HTTP; var get; var object3; var COLLECTIBLES_VALID_GIFT_RECIPIENT; var object4; var value4; var value5; var value6; var body; var valid; var error; var binding3; var captureOrIgnoreApiError; var APIError; var prototype; var value7; var aPIError; var value8; if (false) { return undefined; } value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { property = binding2[22]; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { value3 = binding(property); } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { HTTP = value3.HTTP; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { get = HTTP.get; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object3 = {}; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { binding = env2_16; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { COLLECTIBLES_VALID_GIFT_RECIPIENT = binding.COLLECTIBLES_VALID_GIFT_RECIPIENT; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object3.url = COLLECTIBLES_VALID_GIFT_RECIPIENT; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object4 = {}; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object4.sku_id = a1; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object4.recipient_id = a0; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object3.query = object4; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { object3.rejectWithError = true; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { value4 = Reflect.apply(get, HTTP, [object3]); } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } yield value4; try { value5 = undefined; value6 = false; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } if (value6) { return value5; } try { body = value5.body; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } try { valid = body.valid; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return false; } return valid; } function* _fun44931(a0, a1) { // fn#44931, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:7053, offset: 0x0117c800, size: 203 bytes, params: 3, frame: 16 var binding; var binding2; var property; var value3; var HTTP; var get; var object3; var COLLECTIBLES_VALID_GIFT_RECIPIENTS_BATCH; var object4; var value4; var value5; var value6; var body; var error; var binding3; var captureOrIgnoreApiError; var APIError; var prototype; var value7; var aPIError; var value8; if (false) { return undefined; } value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { property = binding2[22]; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { value3 = binding(property); } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { HTTP = value3.HTTP; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { get = HTTP.get; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object3 = {}; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { binding = env2_16; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { COLLECTIBLES_VALID_GIFT_RECIPIENTS_BATCH = binding.COLLECTIBLES_VALID_GIFT_RECIPIENTS_BATCH; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object3.url = COLLECTIBLES_VALID_GIFT_RECIPIENTS_BATCH; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object4 = {}; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object4.sku_ids = a1; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object4.recipient_id = a0; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object3.query = object4; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { object3.rejectWithError = true; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } try { value4 = Reflect.apply(get, HTTP, [object3]); } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } yield value4; try { value5 = undefined; value6 = false; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } if (value6) { return value5; } try { body = value5.body; } catch (error) { binding = env2_0; binding3 = env2_2; value = binding(binding3[24]); captureOrIgnoreApiError = value.captureOrIgnoreApiError; APIError = binding(binding3[23]).APIError; prototype = APIError.prototype; value7 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value8 = aPIError instanceof Object ? aPIError : value7; Reflect.apply(captureOrIgnoreApiError, value, [value8]); return {}; } return body; } async function _fun44935({release}) { // fn#44935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:7372, offset: 0x0117c8fd, size: 454 bytes, params: 2, frame: 20 var object4; var r6; var binding; var CollectiblesMarketingReleaseType; var PROD; var binding3; var property; var value5; var HTTP; var get; var object3; var COLLECTIBLES_MARKETING; var value6; var value7; var value8; var binding4; var value9; var fromServer; var body; var value10; var error; var binding5; var value11; var captureOrIgnoreApiError; var APIError; var prototype; var value12; var aPIError; var value13; if (true) { reducibleJoin3: while (true) { if (release !== undefined) { r6 = release; break reducibleJoin3; } value = environment.__proto__.__proto__; binding = env2_0; CollectiblesMarketingReleaseType = binding(env2_2[27]).CollectiblesMarketingReleaseType; PROD = CollectiblesMarketingReleaseType.PROD; r6 = PROD; break reducibleJoin3; } await undefined; if (false) { return undefined; } value = environment.__proto__.__proto__; binding = env2_1; var binding2 = env2_2; var value4 = binding(binding2[18]); var dispatch = value4.dispatch; Reflect.apply(dispatch, value4, [{type: 'COLLECTIBLES_MARKETING_FETCH'}]); object4 = {}; binding = env2_0; var CollectiblesMarketingPlatform = binding(binding2[28]).CollectiblesMarketingPlatform; var MOBILE = CollectiblesMarketingPlatform.MOBILE; object4.platform = MOBILE; CollectiblesMarketingReleaseType = binding(binding2[27]).CollectiblesMarketingReleaseType; PROD = CollectiblesMarketingReleaseType.PROD; reducibleJoin7: while (true) { if (r6 === PROD) { break reducibleJoin7; } object4.release = r6; break reducibleJoin7; } reducibleJoin8: while (true) { reduciblePort41: while (true) { exceptionLanding40: while (true) { try { binding = env2_0; } catch (error) { break exceptionLanding40; } break reducibleJoin8; } binding = env2_0; binding5 = env2_2; value11 = binding(binding5[24]); captureOrIgnoreApiError = value11.captureOrIgnoreApiError; APIError = binding(binding5[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; Reflect.apply(captureOrIgnoreApiError, value11, [value13]); binding = env2_1; value = binding(binding5[18]); dispatch = value.dispatch; Reflect.apply(dispatch, value, [{type: 'COLLECTIBLES_MARKETING_FETCH_FAILURE'}]); break reduciblePort41; } return undefined; } try { binding3 = env2_2; } catch (error) { break exceptionLanding40; } try { property = binding3[22]; } catch (error) { break exceptionLanding40; } try { value5 = binding(property); } catch (error) { break exceptionLanding40; } try { HTTP = value5.HTTP; } catch (error) { break exceptionLanding40; } try { get = HTTP.get; } catch (error) { break exceptionLanding40; } try { object3 = {}; } catch (error) { break exceptionLanding40; } try { binding = env2_16; } catch (error) { break exceptionLanding40; } try { COLLECTIBLES_MARKETING = binding.COLLECTIBLES_MARKETING; } catch (error) { break exceptionLanding40; } try { object3.url = COLLECTIBLES_MARKETING; } catch (error) { break exceptionLanding40; } try { object3.query = object4; } catch (error) { break exceptionLanding40; } try { object3.rejectWithError = true; } catch (error) { break exceptionLanding40; } try { value6 = Reflect.apply(get, HTTP, [object3]); } catch (error) { break exceptionLanding40; } await value6; try { value7 = undefined; value8 = false; } catch (error) { break exceptionLanding40; } if (value8) { return value7; } try { binding = env2_1; } catch (error) { break exceptionLanding40; } try { binding4 = env2_2; } catch (error) { break exceptionLanding40; } try { property = binding4[18]; } catch (error) { break exceptionLanding40; } try { value9 = binding(property); } catch (error) { break exceptionLanding40; } try { dispatch = value9.dispatch; } catch (error) { break exceptionLanding40; } try { object4 = {}; } catch (error) { break exceptionLanding40; } try { object4.type = 'COLLECTIBLES_MARKETING_FETCH_SUCCESS'; } catch (error) { break exceptionLanding40; } try { binding = env2_11; } catch (error) { break exceptionLanding40; } try { fromServer = binding.fromServer; } catch (error) { break exceptionLanding40; } try { body = value7.body; } catch (error) { break exceptionLanding40; } try { value10 = Reflect.apply(fromServer, binding, [body]); } catch (error) { break exceptionLanding40; } try { object4.marketings = value10; } catch (error) { break exceptionLanding40; } try { Reflect.apply(dispatch, value9, [object4]); } catch (error) { break exceptionLanding40; } } } function* _fun44939(a0, a1, a2) { // fn#44939, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:8037, offset: 0x0117caec, size: 799 bytes, params: 4, frame: 25 var r10; var r2; var sessionId; var tab; var includeUnpublished; var noCache; var r5; var logPerf; var value9; var trackShopPerf; var CollectiblesShopPerfCheckpoint; var SHOP_HOME_FETCH_STARTED; var binding2; var property; var value10; var HTTP; var get; var COLLECTIBLES_SHOP; var value11; var value12; var value13; var value14; var binding3; var value15; var value16; var binding4; var value17; var SHOP_HOME_FETCH_COMPLETED; var value18; var value19; var value20; var binding5; var fromServer; var body; var value21; var error; var binding6; var APIError; var prototype; var aPIError; var value22; var captureOrIgnoreApiError; var value23; let value = a1; if (false) { return undefined; } const value4 = undefined; let binding = env2_1; const value6 = binding(env2_2[18]); let dispatch = value6.dispatch; let object2 = {type: 'COLLECTIBLES_SHOP_HOME_FETCH', tab: a0}; reducibleJoin3: while (true) { if (value != null) { r10 = value; break reducibleJoin3; } r10 = {}; break reducibleJoin3; } object2.options = r10; Reflect.apply(dispatch, value6, [object2]); const fetchCollectiblesOptionsQuery = env2_0(env2_2[20]).buildFetchCollectiblesOptionsQuery(value, a0); const value8 = value != null; reducibleJoin5: while (true) { if (value8) { logPerf = value.logPerf; r2 = logPerf; break reducibleJoin5; } r2 = value8; break reducibleJoin5; } reducibleJoin15: while (true) { if (r2) { binding = env2_0; value9 = binding(env2_2[21]); trackShopPerf = value9.trackShopPerf; object2 = {}; reducibleJoin8: while (true) { if (a2 == null) { sessionId = value4; break reducibleJoin8; } sessionId = a2.sessionId; break reducibleJoin8; } object2.sessionId = sessionId; binding = env2_0; CollectiblesShopPerfCheckpoint = binding(env2_2[21]).CollectiblesShopPerfCheckpoint; SHOP_HOME_FETCH_STARTED = CollectiblesShopPerfCheckpoint.SHOP_HOME_FETCH_STARTED; object2.checkpoint = SHOP_HOME_FETCH_STARTED; reducibleJoin10: while (true) { if (a2 == null) { tab = value4; break reducibleJoin10; } tab = a2.tab; break reducibleJoin10; } object2.tab = tab; reducibleJoin12: while (true) { if (value == null) { includeUnpublished = value4; break reducibleJoin12; } includeUnpublished = value.includeUnpublished; break reducibleJoin12; } object2.unpublishedCategoriesShown = includeUnpublished; reducibleJoin14: while (true) { if (value == null) { noCache = value4; break reducibleJoin14; } noCache = value.noCache; break reducibleJoin14; } object2.cacheDisabled = noCache; Reflect.apply(trackShopPerf, value9, [object2]); break reducibleJoin15; } break reducibleJoin15; } reducibleJoin16: while (true) { reduciblePort94: while (true) { exceptionLanding93: while (true) { try { binding = env2_0; } catch (error) { break exceptionLanding93; } break reducibleJoin16; } binding = env2_0; binding6 = env2_2; APIError = binding(binding6[23]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; value22 = binding(binding6[24]); captureOrIgnoreApiError = value22.captureOrIgnoreApiError; Reflect.apply(captureOrIgnoreApiError, value22, [value]); binding = env2_1; value23 = binding(binding6[18]); dispatch = value23.dispatch; Reflect.apply(dispatch, value23, [{type: 'COLLECTIBLES_SHOP_HOME_FETCH_FAILURE', tab: a0, error: value}]); break reduciblePort94; } return value4; } try { binding2 = env2_2; } catch (error) { break exceptionLanding93; } try { property = binding2[22]; } catch (error) { break exceptionLanding93; } try { value10 = binding(property); } catch (error) { break exceptionLanding93; } try { HTTP = value10.HTTP; } catch (error) { break exceptionLanding93; } try { get = HTTP.get; } catch (error) { break exceptionLanding93; } try { object2 = {}; } catch (error) { break exceptionLanding93; } try { binding = env2_16; } catch (error) { break exceptionLanding93; } try { COLLECTIBLES_SHOP = binding.COLLECTIBLES_SHOP; } catch (error) { break exceptionLanding93; } try { object2.url = COLLECTIBLES_SHOP; } catch (error) { break exceptionLanding93; } try { object2.query = fetchCollectiblesOptionsQuery; } catch (error) { break exceptionLanding93; } try { object2.rejectWithError = true; } catch (error) { break exceptionLanding93; } try { value11 = Reflect.apply(get, HTTP, [object2]); } catch (error) { break exceptionLanding93; } yield value11; try { value12 = undefined; value13 = false; } catch (error) { break exceptionLanding93; } if (value13) { return value12; } try { value14 = value != null; } catch (error) { break exceptionLanding93; } reducibleJoin38: while (true) { if (value14) { try { logPerf = value.logPerf; } catch (error) { break exceptionLanding93; } r5 = logPerf; break reducibleJoin38; } r5 = value14; break reducibleJoin38; } reducibleJoin76: while (true) { if (r5) { try { binding = env2_0; } catch (error) { break exceptionLanding93; } try { binding3 = env2_2; } catch (error) { break exceptionLanding93; } try { property = binding3[21]; } catch (error) { break exceptionLanding93; } try { value15 = binding(property); } catch (error) { break exceptionLanding93; } try { trackShopPerf = value15.trackShopPerf; } catch (error) { break exceptionLanding93; } try { object2 = {}; } catch (error) { break exceptionLanding93; } try { value16 = a2 == null; } catch (error) { break exceptionLanding93; } reducibleJoin51: while (true) { if (value16) { sessionId = value4; break reducibleJoin51; } try { sessionId = a2.sessionId; } catch (error) { break exceptionLanding93; } break reducibleJoin51; } try { object2.sessionId = sessionId; } catch (error) { break exceptionLanding93; } try { binding = env2_0; } catch (error) { break exceptionLanding93; } try { binding4 = env2_2; } catch (error) { break exceptionLanding93; } try { property = binding4[21]; } catch (error) { break exceptionLanding93; } try { value17 = binding(property); } catch (error) { break exceptionLanding93; } try { CollectiblesShopPerfCheckpoint = value17.CollectiblesShopPerfCheckpoint; } catch (error) { break exceptionLanding93; } try { SHOP_HOME_FETCH_COMPLETED = CollectiblesShopPerfCheckpoint.SHOP_HOME_FETCH_COMPLETED; } catch (error) { break exceptionLanding93; } try { object2.checkpoint = SHOP_HOME_FETCH_COMPLETED; } catch (error) { break exceptionLanding93; } try { value18 = a2 == null; } catch (error) { break exceptionLanding93; } reducibleJoin63: while (true) { if (value18) { tab = value4; break reducibleJoin63; } try { tab = a2.tab; } catch (error) { break exceptionLanding93; } break reducibleJoin63; } try { object2.tab = tab; } catch (error) { break exceptionLanding93; } try { value19 = value == null; } catch (error) { break exceptionLanding93; } reducibleJoin69: while (true) { if (value19) { includeUnpublished = value4; break reducibleJoin69; } try { includeUnpublished = value.includeUnpublished; } catch (error) { break exceptionLanding93; } break reducibleJoin69; } try { object2.unpublishedCategoriesShown = includeUnpublished; } catch (error) { break exceptionLanding93; } try { value20 = value == null; } catch (error) { break exceptionLanding93; } reducibleJoin74: while (true) { if (value20) { noCache = value4; break reducibleJoin74; } try { noCache = value.noCache; } catch (error) { break exceptionLanding93; } break reducibleJoin74; } try { object2.cacheDisabled = noCache; } catch (error) { break exceptionLanding93; } try { Reflect.apply(trackShopPerf, value15, [object2]); } catch (error) { break exceptionLanding93; } break reducibleJoin76; } break reducibleJoin76; } try { binding = env2_1; } catch (error) { break exceptionLanding93; } try { binding5 = env2_2; } catch (error) { break exceptionLanding93; } try { property = binding5[18]; } catch (error) { break exceptionLanding93; } try { value = binding(property); } catch (error) { break exceptionLanding93; } try { dispatch = value.dispatch; } catch (error) { break exceptionLanding93; } try { object2 = {}; } catch (error) { break exceptionLanding93; } try { object2.type = 'COLLECTIBLES_SHOP_HOME_FETCH_SUCCESS'; } catch (error) { break exceptionLanding93; } try { object2.tab = a0; } catch (error) { break exceptionLanding93; } try { binding = env2_14; } catch (error) { break exceptionLanding93; } try { fromServer = binding.fromServer; } catch (error) { break exceptionLanding93; } try { body = value12.body; } catch (error) { break exceptionLanding93; } try { value21 = Reflect.apply(fromServer, binding, [body]); } catch (error) { break exceptionLanding93; } try { object2.shopHome = value21; } catch (error) { break exceptionLanding93; } try { Reflect.apply(dispatch, value, [object2]); } catch (error) { break exceptionLanding93; } return value4; } function* _fun44943(a0, a1) { // fn#44943, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:9197, offset: 0x0117ce34, size: 347 bytes, params: 3, frame: 21 var object4; var r9; var binding2; var property; var value5; var HTTP; var put; var COLLECTIBLES_CLAIM_CATEGORY_REWARD; var object3; var value6; var value7; var value8; var binding3; var value9; var body; var value10; var map; var fromServer; var value11; var error; var binding4; var APIError; var prototype; var value12; var aPIError; var value13; if (false) { return undefined; } value = undefined; let binding = env2_1; binding(env2_2[18]).dispatch({type: 'COLLECTIBLES_CLAIM', skuId: a1}); try { binding = env2_0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { property = binding2[22]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { value5 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { HTTP = value5.HTTP; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { put = HTTP.put; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { binding = env2_16; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { COLLECTIBLES_CLAIM_CATEGORY_REWARD = binding.COLLECTIBLES_CLAIM_CATEGORY_REWARD; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4.url = COLLECTIBLES_CLAIM_CATEGORY_REWARD; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object3 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object3.category_id = a0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4.body = object3; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4.rejectWithError = true; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { value6 = Reflect.apply(put, HTTP, [object4]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } yield value6; try { value7 = undefined; value8 = false; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } if (value8) { return value7; } try { binding = env2_1; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { binding3 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { property = binding3[18]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { value9 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { dispatch = value9.dispatch; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4.type = 'COLLECTIBLES_CLAIM_SUCCESS'; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { object4.skuId = a1; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { body = value7.body; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { value10 = body == null; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } if (value10) { r9 = value; } else { try { map = body.map; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { binding = env2_13; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { fromServer = binding.fromServer; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { value11 = Reflect.apply(map, body, [fromServer]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } r9 = value11; } try { object4.purchases = r9; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } try { Reflect.apply(dispatch, value9, [object4]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value12 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value13 = aPIError instanceof Object ? aPIError : value12; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_CLAIM_FAILURE', skuId: a1, error: value13}); throw value13; } return value; } async function _fun44947({tab, abortSignal}) { // fn#44947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5298:9705, offset: 0x0117cfc1, size: 448 bytes, params: 2, frame: 21 var binding2; var property; var value7; var dispatch; var object2; var value8; var HTTP; var get; var COLLECTIBLES_SHOP_TAB_LAYOUT; var value9; var value10; var value11; var value12; var binding3; var value13; var body; var layout_id; var error; var binding4; var APIError; var prototype; var value14; var aPIError; var value15; if (false) { return undefined; } await undefined; if (false) { return undefined; } let binding = env2_9; if (!binding.isFetchingLayout(tab)) { var layoutFetchError = env2_9.getLayoutFetchError(tab); if ((layoutFetchError == null ? value : layoutFetchError.status) === 404) { return value; } if ((layoutFetchError == null ? value : layoutFetchError.status) === 429) { return value; } try { binding = env2_1; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { binding2 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { property = binding2[18]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { value7 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { dispatch = value7.dispatch; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.type = 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH'; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.tab = tab; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { Reflect.apply(dispatch, value7, [object2]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { binding = env2_0; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { property = binding2[22]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { value8 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { HTTP = value8.HTTP; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { get = HTTP.get; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { binding = env2_16; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { COLLECTIBLES_SHOP_TAB_LAYOUT = binding.COLLECTIBLES_SHOP_TAB_LAYOUT; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { value9 = Reflect.apply(COLLECTIBLES_SHOP_TAB_LAYOUT, binding, [tab]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.url = value9; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.rejectWithError = true; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.signal = abortSignal; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { value10 = Reflect.apply(get, HTTP, [object2]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } await value10; try { value11 = undefined; value12 = false; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } if (value12) { return value11; } try { binding = env2_1; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { binding3 = env2_2; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { property = binding3[18]; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { value13 = binding(property); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { dispatch = value13.dispatch; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2 = {}; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.type = 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_SUCCESS'; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.tab = tab; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { body = value11.body; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { layout_id = body.layout_id; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { object2.layoutId = layout_id; } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } try { Reflect.apply(dispatch, value13, [object2]); } catch (error) { binding = env2_0; binding4 = env2_2; APIError = binding(binding4[23]).APIError; prototype = APIError.prototype; value14 = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value15 = aPIError instanceof Object ? aPIError : value14; binding = env2_1; value = binding(binding4[18]); value.dispatch({type: 'COLLECTIBLES_SHOP_TAB_LAYOUT_FETCH_FAILURE', tab: tab, apiError: value15}); throw value15; } } return value; }