/* Metro module 1646; source: unknown; dependencies: [1613, 1635, 1647, 1649, 1617] */ function _fun17967(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:6, offset: 0x00e7c2aa, size: 220 bytes, params: 8, frame: 15 const env0_1 = require; const env0_3 = (require(1613) /* metro dependency 1613 */).isAndroid(); let object = {code: 'function startObservingProgress_Pnpm_animationsManagerTs1(tag,sharedValue,animationType){const{LayoutAnimationType,TAG_OFFSET}=this.__closure;const isSharedTransition=animationType===LayoutAnimationType.SHARED_ELEMENT_TRANSITION;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value,isSharedTransition);});}'}; const env0_5 = _fun17968(); object = {code: 'function stopObservingProgress_Pnpm_animationsManagerTs2(tag,sharedValue,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);}'}; const env0_7 = _fun17971(); object = {code: 'function createLayoutAnimationManager_Pnpm_animationsManagerTs3(){const{LayoutAnimationType,makeMutableUI,stopObservingProgress,withStyleAnimation,startObservingProgress,IS_ANDROID}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();const startActually=function(tag,type,yogaValues,config){if(type===LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS){global.ProgressTransitionRegister.onTransitionStart(tag,yogaValues);return;}const style=config(yogaValues);let currentAnimation=style.animations;const previousAnimation=currentAnimationForTag.get(tag);if(previousAnimation){currentAnimation={...previousAnimation,...style.animations};}currentAnimationForTag.set(tag,currentAnimation);let value=mutableValuesForTag.get(tag);if(value===undefined){value=makeMutableUI(style.initialValues);mutableValuesForTag.set(tag,value);}else{stopObservingProgress(tag,value);value._value=style.initialValues;}const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);const shouldRemoveView=type===LayoutAnimationType.EXITING;stopObservingProgress(tag,value,shouldRemoveView);}style.callback&&style.callback(finished===undefined?false:finished);};startObservingProgress(tag,value,type);value.value=animation;};let start;if(IS_ANDROID){start=function(tag,type,yogaValues,config){return requestAnimationFrame(function(){startActually(tag,type,yogaValues,config);});};}else{start=startActually;}return{start:start,stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}stopObservingProgress(tag,value);}};}'}; value = _fun17973(); const value2 = require(1617) /* metro dependency 1617 */; const runOnUIImmediately = value2.runOnUIImmediately; const closure = pnpm_animationsManagerTs4; closure.__closure = {createLayoutAnimationManager: value}; closure.__workletHash = 11408639565737; closure.__initData = {code: 'function pnpm_animationsManagerTs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}'}; Reflect.apply(runOnUIImmediately, value2, [closure])(); } function _fun17968() { // fn#17968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:444, offset: 0x00e7c386, size: 90 bytes, params: 1, frame: 14 const closure = startObservingProgress; const LayoutAnimationType = (require(1635) /* metro dependency 1635 */).LayoutAnimationType; closure.__closure = {LayoutAnimationType: LayoutAnimationType, TAG_OFFSET: 1000000000}; closure.__workletHash = 15816248532180; closure.__initData = env0_4; return closure; } function _fun17971() { // fn#17971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:987, offset: 0x00e7c469, size: 57 bytes, params: 1, frame: 3 const closure = stopObservingProgress; closure.__closure = {TAG_OFFSET: 1000000000}; closure.__workletHash = 8517596296348; closure.__initData = env0_6; return closure; } function _fun17973() { // fn#17973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2914, offset: 0x00e7c4f2, size: 156 bytes, params: 1, frame: 15 const closure = createLayoutAnimationManager; const object2 = {}; const LayoutAnimationType = (require(1635) /* metro dependency 1635 */).LayoutAnimationType; object2.LayoutAnimationType = LayoutAnimationType; object2.makeMutableUI = (require(1647) /* metro dependency 1647 */).makeMutableUI; object2.stopObservingProgress = env0_7; object2.withStyleAnimation = (require(1649) /* metro dependency 1649 */).withStyleAnimation; object2.startObservingProgress = env0_5; object2.IS_ANDROID = env0_3; closure.__closure = object2; closure.__workletHash = 8526874600063; closure.__initData = env0_8; return closure; } function pnpm_animationsManagerTs4() { // fn#17980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:4166, offset: 0x00e7c85f, size: 27 bytes, params: 1, frame: 10 env0_0.LayoutAnimationsManager = env0_9(); } function startObservingProgress(a0, a1, a2) { // fn#17969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:461, offset: 0x00e7c3e0, size: 93 bytes, params: 4, frame: 15 var environment; const env0_0 = a0; const env0_1 = a1; const value = environment.__proto__; const LayoutAnimationType = (require(1635) /* metro dependency 1635 */).LayoutAnimationType; const SHARED_ELEMENT_TRANSITION = LayoutAnimationType.SHARED_ELEMENT_TRANSITION; const result = a2 === SHARED_ELEMENT_TRANSITION; a1.addListener(a0 + 1000000000, _fun17970); } function stopObservingProgress(a0, a1) { // fn#17972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:1004, offset: 0x00e7c4a2, size: 80 bytes, params: 3, frame: 16 const r3 = arguments.length > 2 && arguments[2] !== undefined && arguments[2]; a1.removeListener(a0 + 1000000000); value = environment.__proto__; env1_0._notifyAboutEnd(a0, r3); } function createLayoutAnimationManager() { // fn#17974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2931, offset: 0x00e7c58e, size: 106 bytes, params: 1, frame: 11 var environment; let Map = global.Map; let map = new Map(); Map = global.Map; map = new Map(); const closure = startActually; map = environment.__proto__; return {start: env1_3 ? function(a0, a1, a2, a3) { var env0_0 = a0; var env0_1 = a1; var env0_2 = a2; var env0_3 = a3; return global.requestAnimationFrame(_fun17978); } : closure, stop: stop_17979}; } function _fun17970() { // fn#17970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:583, offset: 0x00e7c43d, size: 44 bytes, params: 1, frame: 15 const binding = env2_0; binding._notifyAboutProgress(env0_0, require.value, result); } function startActually(a0, a1, a2, a3) { // fn#17975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:2997, owner: createLayoutAnimationManager.startActually, offset: 0x00e7c5f8, size: 334 bytes, params: 5, frame: 23 var r8; var r2; var value2; var animations; var binding; var value4; var value6; var moduleValue; var mutableUI; var value7; const env0_0 = a0; const env0_1 = a1; const LayoutAnimationType = (require(1635) /* metro dependency 1635 */).LayoutAnimationType; const SHARED_ELEMENT_TRANSITION_PROGRESS = LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS; if (a1 !== SHARED_ELEMENT_TRANSITION_PROGRESS) { value2 = a3(a2); animations = value2.animations; binding = env0_0; value4 = binding.get(a0); r8 = value4 ? global.Object.assign({}, value4, value2.animations) : animations; binding = env0_0; binding.set(a0, r8); binding = env0_1; value6 = binding.get(a0); if (value6 === undefined) { moduleValue = require(1647) /* metro dependency 1647 */; mutableUI = moduleValue.makeMutableUI(value2.initialValues); env0_1.set(a0, mutableUI); r2 = mutableUI; } else { env2_7(a0, value6); value6._value = value2.initialValues; r2 = value6; } value7 = (require(1649) /* metro dependency 1649 */).withStyleAnimation(r8); value7.callback = callback_17976; env2_5(a0, r2, a1); r2.value = value7; } else { env2_0.ProgressTransitionRegister.onTransitionStart(a0, a2); } } function createLayoutAnimationManagerStart(a0, a1, a2, a3) { // fn#17977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3577, owner: createLayoutAnimationManager.start, offset: 0x00e7c7dd, size: 52 bytes, params: 5, frame: 11 const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const env0_3 = a3; return global.requestAnimationFrame(_fun17978); } function createLayoutAnimationManagerStop(a0) { // fn#17979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3664, owner: createLayoutAnimationManager.stop, offset: 0x00e7c835, size: 42 bytes, params: 2, frame: 13 var value2; const value = env0_1.get(a0); if (value) { value2 = environment.__proto__.__proto__; env2_7(a0, value); } } function startActuallyCallback(a0) { // fn#17976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3349, owner: createLayoutAnimationManager.startActually.callback, offset: 0x00e7c746, size: 151 bytes, params: 2, frame: 18 var value2; var binding; var binding2; var value4; var EXITING; const value = a0; if (value) { value2 = environment.__proto__; binding = env1_0; binding2 = env0_0; binding.delete(binding2); binding = env1_1; binding.delete(binding2); value4 = environment.__proto__.__proto__.__proto__; EXITING = (require(1635) /* metro dependency 1635 */).LayoutAnimationType.EXITING; binding = env3_7; binding(binding2, env0_3, require === EXITING); } if (env0_2.callback) { binding = env0_2; binding.callback(value !== undefined && value); } } function _fun17978() { // fn#17978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1773:3631, offset: 0x00e7c811, size: 36 bytes, params: 1, frame: 17 startActually(env0_0, require, importDefault, importAll); }