346 lines
22 KiB
JavaScript
346 lines
22 KiB
JavaScript
/* Metro module 1647; source: unknown; dependencies: [1613, 1614, 1648, 1640, 1617, 1621, 1641] */
|
|
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
|
|
import * as Module01617Module from './module-01617.js'; /* Metro dependency 1617 */
|
|
import * as Module01621Module from './module-01621.js'; /* Metro dependency 1621 */
|
|
import * as MakeShareableModule from './module-01640-makeShareable.js'; /* Metro dependency 1640 */
|
|
import * as ShareableMappingModule from './module-01641-shareableMapping.js'; /* Metro dependency 1641 */
|
|
import * as ValueSetterModule from './module-01648-valueSetter.js'; /* Metro dependency 1648 */
|
|
|
|
function _fun17981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:6, offset: 0x00e7c87a, size: 295 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const checkInvalidReadDuringRender = function() {
|
|
};
|
|
const checkInvalidWriteDuringRender = function() {
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = Module01613Module;
|
|
value = value.shouldBeUseWeb();
|
|
const env0_2 = (Module01613Module).isJest();
|
|
object = {code: "function addCompilerSafeGetAndSet_Pnpm_mutablesTs1(mutable){Object.defineProperties(mutable,{get:{value:function(){return mutable.value;},configurable:false,enumerable:false},set:{value:function(newValue){if(typeof newValue==='function'&&!newValue.__isAnimationDefinition){mutable.value=newValue(mutable.value);}else{mutable.value=newValue;}},configurable:false,enumerable:false}});}"};
|
|
const env0_4 = _fun17984();
|
|
object = {code: "function hideInternalValueProp_Pnpm_mutablesTs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}"};
|
|
const env0_6 = _fun17991();
|
|
object = {code: 'function makeMutableUI_Pnpm_mutablesTs3(initial){const{valueSetter,hideInternalValueProp,addCompilerSafeGetAndSet}=this.__closure;const listeners=new Map();let value=initial;const mutable={get value(){return value;},set value(newValue){valueSetter(mutable,newValue);},get _value(){return value;},set _value(newValue){value=newValue;listeners.forEach(function(listener){listener(newValue);});},modify:function(modifier,forceUpdate=true){valueSetter(mutable,modifier!==undefined?modifier(value):value,forceUpdate);},addListener:function(id,listener){listeners.set(id,listener);},removeListener:function(id){listeners.delete(id);},_animation:null,_isReanimatedSharedValue:true};hideInternalValueProp(mutable);addCompilerSafeGetAndSet(mutable);return mutable;}'};
|
|
const value3 = _fun17993();
|
|
object = {code: 'function pnpm_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}'};
|
|
object = {code: 'function pnpm_mutablesTs5(sv){return sv.value;}'};
|
|
object = {code: 'function pnpm_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}'};
|
|
object = {code: 'function pnpm_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}'};
|
|
const r1 = value ? makeMutableWeb : makeMutableNative;
|
|
exports.makeMutableUI = value3;
|
|
exports.makeMutable = r1;
|
|
function _fun17984() { // fn#17984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:628, offset: 0x00e7c9a1, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0) {
|
|
var env0_0 = a0;
|
|
var Object = global.Object;
|
|
var object3 = {'value': null, 'configurable': false, 'enumerable': false};
|
|
object3.value = _fun17987(_fun17990);
|
|
Object.defineProperties(a0, {get: {'value': null, 'configurable': false, 'enumerable': false, value: _fun17986},
|
|
set: object3});
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 14094096506039;
|
|
closure.__initData = env0_3;
|
|
return closure;
|
|
function addCompilerSafeGetAndSet(a0) { // fn#17985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:645, offset: 0x00e7c9cf, size: 95 bytes, params: 2, frame: 17
|
|
let env0_0 = a0;
|
|
const Object = global.Object;
|
|
const defineProperties = Object.defineProperties;
|
|
const object = {};
|
|
object.get = {'value': null, 'configurable': false, 'enumerable': false, value: value_17986};
|
|
const object3 = {'value': null, 'configurable': false, 'enumerable': false};
|
|
object3.value = (function(a0) {
|
|
var env0_0 = a0;
|
|
var closure = _fun17988;
|
|
closure.toString = _fun17989;
|
|
return closure;
|
|
})(_fun17990);
|
|
object.set = object3;
|
|
Reflect.apply(defineProperties, Object, [a0, object]);
|
|
function addCompilerSafeGetAndSetValue() { // fn#17986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:720, owner: addCompilerSafeGetAndSet.value, offset: 0x00e7ca2e, size: 14 bytes, params: 1, frame: 1
|
|
return env0_0.value;
|
|
}
|
|
|
|
function _fun17987(a0) { // fn#17987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:795, offset: 0x00e7ca3c, size: 27 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
const value_179882 = value_17988;
|
|
value_179882.toString = toString_17989;
|
|
return value_179882;
|
|
function value_17988(a0) { // fn#17988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:807, offset: 0x00c3945f, size: 30 bytes, params: 2, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function toString_17989() { // fn#17989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:878, offset: 0x00e7ca57, size: 18 bytes, params: 1, frame: 9
|
|
return env0_0.toString();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17990(a0) { // fn#17990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:918, offset: 0x00e7ca69, size: 67 bytes, params: 2, frame: 12
|
|
var binding;
|
|
if (typeof a0 !== 'function') {
|
|
env0_0.value = a0;
|
|
} else if (a0.__isAnimationDefinition) {
|
|
env0_0.value = a0;
|
|
} else {
|
|
binding = env0_0;
|
|
binding.value = a0(binding.value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17991() { // fn#17991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:1266, offset: 0x00e7caac, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0) {
|
|
var Object = global.Object;
|
|
Object.defineProperty(a0, '_value', {'configurable': false, 'enumerable': false});
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 3380393180484;
|
|
closure.__initData = env0_5;
|
|
return closure;
|
|
}
|
|
|
|
function _fun17993() { // fn#17993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2226, offset: 0x00e7cb03, size: 101 bytes, params: 1, frame: 14
|
|
const makeMutableUI2 = makeMutableUI;
|
|
const object = {};
|
|
object.valueSetter = (require(1648) /* metro dependency 1648 */).valueSetter;
|
|
object.hideInternalValueProp = env0_6;
|
|
object.addCompilerSafeGetAndSet = env0_4;
|
|
makeMutableUI2.__closure = object;
|
|
makeMutableUI2.__workletHash = 8132940328790;
|
|
makeMutableUI2.__initData = env0_7;
|
|
return makeMutableUI2;
|
|
function makeMutableUI(a0) { // fn#17994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2243, offset: 0x00e7cb68, size: 156 bytes, params: 2, frame: 13
|
|
var environment;
|
|
const Map = global.Map;
|
|
let map = new Map();
|
|
const env0_1 = a0;
|
|
const object = {};
|
|
Object.defineProperty(object, 'value', {get: _fun17995, set: _fun17996, enumerable: true, configurable: true});
|
|
Object.defineProperty(object, '_value', {get: _fun17997, set: _fun17998, enumerable: true, configurable: true});
|
|
object.modify = modify;
|
|
object.addListener = addListener_18001;
|
|
object.removeListener = removeListener_18002;
|
|
object._animation = null;
|
|
object._isReanimatedSharedValue = true;
|
|
map = environment.__proto__;
|
|
env1_6(object);
|
|
env1_4(object);
|
|
return object;
|
|
function _fun17995() { // fn#17995, offset: 0x00c38205, size: 9 bytes, params: 1, frame: 1
|
|
return env0_1;
|
|
}
|
|
|
|
function _fun17996(a0) { // fn#17996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2312, offset: 0x00e7cc04, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
(ValueSetterModule).valueSetter(env0_2, a0);
|
|
}
|
|
|
|
function _fun17997() { // fn#17997, offset: 0x00c38205, size: 9 bytes, params: 1, frame: 1
|
|
return env0_1;
|
|
}
|
|
|
|
function _fun17998(a0) { // fn#17998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2374, offset: 0x00e7cc35, size: 39 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
env0_1 = a0;
|
|
env0_0.forEach(_fun17999);
|
|
function _fun17999(a0) { // fn#17999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2403, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11
|
|
a0(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function modify(a0) { // fn#18000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2431, owner: makeMutableUI.modify, offset: 0x00e7cc5c, size: 102 bytes, params: 2, frame: 19
|
|
const r3 = arguments.length > 1 && arguments[1] !== undefined;
|
|
const r5 = r3 ? arguments[1] : !r3;
|
|
value = environment.__proto__.__proto__;
|
|
value = require(1648) /* metro dependency 1648 */;
|
|
value.valueSetter(env0_2, a0 !== undefined ? a0(env0_1) : env0_1, r5);
|
|
}
|
|
|
|
function makeMutableUIAddListener(a0, a1) { // fn#18001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2571, owner: makeMutableUI.addListener, offset: 0x00e7ccc2, size: 28 bytes, params: 3, frame: 13
|
|
env0_0.set(a0, a1);
|
|
}
|
|
|
|
function makeMutableUIRemoveListener(a0) { // fn#18002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2624, owner: makeMutableUI.removeListener, offset: 0x00d65ae7, size: 24 bytes, params: 2, frame: 11
|
|
env0_0.delete(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function makeMutableWeb(a0) { // fn#18003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3297, offset: 0x00e7ccde, size: 167 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
const object = {};
|
|
Object.defineProperty(object, 'value', {get: _fun18004, set: _fun18005, enumerable: true, configurable: true});
|
|
Object.defineProperty(object, '_value', {get: _fun18006, set: _fun18007, enumerable: true, configurable: true});
|
|
object.modify = modify;
|
|
object.addListener = addListener_18010;
|
|
object.removeListener = removeListener_18011;
|
|
object._isReanimatedSharedValue = true;
|
|
const object3 = object;
|
|
env0_6(object);
|
|
env0_4(object);
|
|
if (object3) {
|
|
object.toJSON = toJSON_18012;
|
|
}
|
|
return object;
|
|
function _fun18004() { // fn#18004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3345, offset: 0x00e7cd85, size: 22 bytes, params: 1, frame: 9
|
|
checkInvalidReadDuringRender();
|
|
return env0_0;
|
|
}
|
|
|
|
function _fun18005(a0) { // fn#18005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3398, offset: 0x00e7cd9b, size: 57 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
checkInvalidWriteDuringRender();
|
|
(ValueSetterModule).valueSetter(env0_2, a0);
|
|
}
|
|
|
|
function _fun18006() { // fn#18006, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1
|
|
return env0_0;
|
|
}
|
|
|
|
function _fun18007(a0) { // fn#18007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3492, offset: 0x00e7cdd4, size: 39 bytes, params: 2, frame: 11
|
|
let env0_0 = a0;
|
|
env0_0 = a0;
|
|
env0_1.forEach(_fun18008);
|
|
function _fun18008(a0) { // fn#18008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3521, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11
|
|
a0(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function makeMutableWebModify(a0) { // fn#18009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3549, owner: makeMutableWeb.modify, offset: 0x00e7cdfb, size: 112 bytes, params: 2, frame: 19
|
|
const r3 = arguments.length > 1 && arguments[1] !== undefined;
|
|
const r5 = r3 ? arguments[1] : !r3;
|
|
value = environment.__proto__;
|
|
value = require(1648) /* metro dependency 1648 */;
|
|
value.valueSetter(env0_2, a0 !== undefined ? a0(env0_2.value) : env0_2.value, r5);
|
|
}
|
|
|
|
function makeMutableWebAddListener(a0, a1) { // fn#18010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3701, owner: makeMutableWeb.addListener, offset: 0x00de17d1, size: 28 bytes, params: 3, frame: 13
|
|
env0_1.set(a0, a1);
|
|
}
|
|
|
|
function makeMutableWebRemoveListener(a0) { // fn#18011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3754, owner: makeMutableWeb.removeListener, offset: 0x00d6c900, size: 24 bytes, params: 2, frame: 11
|
|
env0_1.delete(a0);
|
|
}
|
|
|
|
function makeMutableWebToJSON() { // fn#18012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3853, owner: makeMutableWeb.toJSON, offset: 0x00e7ce6b, size: 28 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const JSON = global.JSON;
|
|
return JSON.stringify(binding);
|
|
}
|
|
|
|
}
|
|
|
|
function makeMutableNative(a0) { // fn#18013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3931, offset: 0x00e7ce87, size: 237 bytes, params: 2, frame: 21
|
|
const env0_0 = a0;
|
|
const makeShareableCloneRecursive = MakeShareableModule.makeShareableCloneRecursive;
|
|
const __init_180142 = __init_18014;
|
|
__init_180142.__closure = {makeMutableUI: env0_8, initial: a0};
|
|
__init_180142.__workletHash = 38746935544;
|
|
__init_180142.__initData = env0_9;
|
|
const shareableCloneRecursive = Reflect.apply(makeShareableCloneRecursive, MakeShareableModule, [{__init: __init_180142}]);
|
|
object = {};
|
|
Object.defineProperty(object, 'value', {get: _fun18015, set: _fun18017, enumerable: true, configurable: true});
|
|
Object.defineProperty(object, '_value', {get: _fun18019, set: _fun18020, enumerable: true, configurable: true});
|
|
object.modify = modify;
|
|
object.addListener = addListener_18023;
|
|
object.removeListener = removeListener_18024;
|
|
object._isReanimatedSharedValue = true;
|
|
env0_6(object);
|
|
env0_4(object);
|
|
(ShareableMappingModule).shareableMappingCache.set(object, shareableCloneRecursive);
|
|
return object;
|
|
function makeMutableNative__init() { // fn#18014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4016, owner: makeMutableNative.__init, offset: 0x00e7cf74, size: 23 bytes, params: 1, frame: 11
|
|
return env1_8(env0_0);
|
|
}
|
|
|
|
function _fun18015() { // fn#18015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4148, offset: 0x00e7cf8b, size: 99 bytes, params: 1, frame: 14
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
checkInvalidReadDuringRender();
|
|
const executeOnUIRuntimeSync = Module01617Module.executeOnUIRuntimeSync;
|
|
const closure = function(a0) {
|
|
return a0.value;
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 5375306386445;
|
|
closure.__initData = env1_10;
|
|
return Reflect.apply(executeOnUIRuntimeSync, Module01617Module, [closure])(env0_1);
|
|
}
|
|
|
|
function _fun18017(a0) { // fn#18017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4351, offset: 0x00e7cfee, size: 115 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
checkInvalidWriteDuringRender();
|
|
const runOnUI = Module01617Module.runOnUI;
|
|
const pnpm_mutablesTs62 = pnpm_mutablesTs6;
|
|
pnpm_mutablesTs62.__closure = {mutable: env0_1, newValue: a0};
|
|
pnpm_mutablesTs62.__workletHash = 11269088169577;
|
|
pnpm_mutablesTs62.__initData = env1_11;
|
|
Reflect.apply(runOnUI, Module01617Module, [pnpm_mutablesTs62])();
|
|
function pnpm_mutablesTs6() { // fn#18018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4422, offset: 0x00e7d061, size: 24 bytes, params: 1, frame: 2
|
|
env1_1.value = env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun18019() { // fn#18019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4547, offset: 0x00e7d079, size: 59 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const ReanimatedError = (Module01621Module).ReanimatedError;
|
|
throw new ReanimatedError('Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?');
|
|
}
|
|
|
|
function _fun18020(a0) { // fn#18020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4732, offset: 0x00e7d0b4, size: 59 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__;
|
|
const ReanimatedError = (Module01621Module).ReanimatedError;
|
|
throw new ReanimatedError('Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?');
|
|
}
|
|
|
|
function makeMutableNativeModify(a0) { // fn#18021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4901, owner: makeMutableNative.modify, offset: 0x00e7d0ef, size: 151 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const r4 = arguments.length > 1 && arguments[1] !== undefined;
|
|
const r6 = r4 ? arguments[1] : !r4;
|
|
const env0_1 = r6;
|
|
value = environment.__proto__;
|
|
const runOnUI = Module01617Module.runOnUI;
|
|
const pnpm_mutablesTs72 = pnpm_mutablesTs7;
|
|
pnpm_mutablesTs72.__closure = {mutable: env0_1, modifier: a0, forceUpdate: r6};
|
|
pnpm_mutablesTs72.__workletHash = 15983399508815;
|
|
pnpm_mutablesTs72.__initData = env1_12;
|
|
Reflect.apply(runOnUI, Module01617Module, [pnpm_mutablesTs72])();
|
|
function pnpm_mutablesTs7() { // fn#18022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5007, owner: makeMutableNative.modify.pnpm_mutablesTs7, offset: 0x00e7d186, size: 34 bytes, params: 1, frame: 13
|
|
const binding = env1_1;
|
|
binding.modify(env0_0, env0_1);
|
|
}
|
|
|
|
}
|
|
|
|
function makeMutableNativeAddListener() { // fn#18023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5162, owner: makeMutableNative.addListener, offset: 0x00e7d1a8, size: 59 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const ReanimatedError = (Module01621Module).ReanimatedError;
|
|
throw new ReanimatedError('Adding listeners is only possible on the UI runtime.');
|
|
}
|
|
|
|
function makeMutableNativeRemoveListener() { // fn#18024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5292, owner: makeMutableNative.removeListener, offset: 0x00e7d1e3, size: 59 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const ReanimatedError = (Module01621Module).ReanimatedError;
|
|
throw new ReanimatedError('Removing listeners is only possible on the UI runtime.');
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun17981, 1647, [1613, 1614, 1648, 1640, 1617, 1621,
|
|
1641]) /* metro module 1647, dependencies: [1613, 1614, 1648, 1640, 1617, 1621, 1641] */;
|