/* Metro module 1616; source: unknown; dependencies: [1615] */ function _fun17719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:6, offset: 0x00e74bd5, size: 484 bytes, params: 8, frame: 25 var object2; const env0_1 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object2 = {warn: 1}; object2[1] = 'warn'; object2.error = 2; object2[2] = 'error'; const env0_4 = {code: "function logToConsole_Pnpm_loggerTs1(data){switch(data.level){case'warn':console.warn(data.message.content);break;case'error':case'fatal':case'syntax':console.error(data.message.content);break;}}"}; const object4 = {logFunction: _fun17720()}; object4.level = object2.warn; object4.strict = true; const env0_7 = {code: 'function formatMessage_Pnpm_loggerTs2(message){return"[Reanimated] "+message;}'}; const env0_8 = _fun17722(); const env0_9 = {code: 'function createLog_Pnpm_loggerTs3(level,message){const{formatMessage}=this.__closure;const formattedMessage=formatMessage(message);return{level:level,message:{content:formattedMessage,substitutions:[]},category:formattedMessage,componentStack:[],componentStackType:null,stack:new Error().stack};}'}; const env0_10 = _fun17724(); const env0_11 = {code: 'function registerLoggerConfig_Pnpm_loggerTs4(config){global.__reanimatedLoggerConfig=config;}'}; value = _fun17726(); const env0_13 = {code: 'function replaceLoggerImplementation_Pnpm_loggerTs5(logFunction){const{registerLoggerConfig}=this.__closure;registerLoggerConfig({...global.__reanimatedLoggerConfig,logFunction:logFunction});}'}; const value2 = _fun17728(); const env0_14 = {code: 'function updateLoggerConfig_Pnpm_loggerTs6(options){const{registerLoggerConfig,DEFAULT_LOGGER_CONFIG}=this.__closure;var _options$level,_options$strict;registerLoggerConfig({...global.__reanimatedLoggerConfig,level:(_options$level=options===null||options===void 0?void 0:options.level)!==null&&_options$level!==void 0?_options$level:DEFAULT_LOGGER_CONFIG.level,strict:(_options$strict=options===null||options===void 0?void 0:options.strict)!==null&&_options$strict!==void 0?_options$strict:DEFAULT_LOGGER_CONFIG.strict});}'}; const value3 = _fun17730(); const env0_15 = {code: 'function handleLog_Pnpm_loggerTs7(level,message,options){const{LogLevel,DOCS_REFERENCE,createLog}=this.__closure;const config=global.__reanimatedLoggerConfig;if(options.strict&&!config.strict||LogLevel[level] 1 && arguments[1] !== undefined ? arguments[1] : {}); } function error_17735(a0) { // fn#17735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:4281, offset: 0x00e751be, size: 53 bytes, params: 2, frame: 16 env0_16('error', a0, arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}); } function logToLogBoxAndConsole(a0) { // fn#17736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:4509, offset: 0x00e751f3, size: 49 bytes, params: 2, frame: 13 (require(1615) /* metro dependency 1615 */).addLogBoxLog(a0); env0_5(a0); } function createLog(a0, a1) { // fn#17725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:1420, offset: 0x00e74ed4, size: 111 bytes, params: 3, frame: 12 let value = environment.__proto__; value = env1_8(a1); const object2 = {level: a0}; object2.message = {content: value, substitutions: []}; object2.category = value; object2.componentStack = []; object2.componentStackType = null; const Error = global.Error; object2.stack = new Error().stack; return object2; } function registerLoggerConfig(a0) { // fn#17727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:1805, offset: 0x00e74f71, size: 20 bytes, params: 2, frame: 2 env1_0.__reanimatedLoggerConfig = a0; } function replaceLoggerImplementation(a0) { // fn#17729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:2163, offset: 0x00e74fbc, size: 58 bytes, params: 2, frame: 16 const value = environment.__proto__; const binding = env1_12; const Object = global.Object; binding(Object.assign({}, env1_0.__reanimatedLoggerConfig, {logFunction: a0})); } function updateLoggerConfig(a0) { // fn#17731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:2915, offset: 0x00e75036, size: 123 bytes, params: 2, frame: 21 const binding = env1_12; const Object = global.Object; const assign = Object.assign; const __reanimatedLoggerConfig = env1_0.__reanimatedLoggerConfig; const value2 = undefined; let level = a0 == null ? value2 : a0.level; level = level ?? env1_6.level; let strict = a0 == null ? value2 : a0.strict; strict = strict ?? env1_6.strict; binding(Reflect.apply(assign, Object, [{}, __reanimatedLoggerConfig, {level: level, strict: strict}])); return value2; } function handleLog(a0, a1, a2) { // fn#17733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1743:3585, offset: 0x00e75100, size: 137 bytes, params: 4, frame: 17 let value = a1; const __reanimatedLoggerConfig = env1_0.__reanimatedLoggerConfig; let r4 = a2.strict && !__reanimatedLoggerConfig.strict; r4 = !r4 ? env1_3[a0] < __reanimatedLoggerConfig.level : r4; if (!r4) { if (a2.strict) { value += '\n\n' + "If you don't want to see this message, you can disable the `strict` mode. Refer to:\nhttps://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration for more details."; r4 = value; } else { r4 = value; } __reanimatedLoggerConfig.logFunction(env1_10(a0, r4)); } }