decord/source/1619_checkInvalidReadDuringRender.js

250 lines
9.5 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1619
2026-07-25 08:10:48 +00:00
// Function ID: 17985
2026-07-20 16:05:17 +00:00
// Name: checkInvalidReadDuringRender
2026-07-23 10:11:24 +00:00
// Dependencies: [1585, 1586, 1620, 1612, 1589, 1593, 1613]
2026-07-20 16:05:17 +00:00
// Module 1619 (checkInvalidReadDuringRender)
2026-07-23 10:11:24 +00:00
import isJest from "isJest";
import isJest from "isJest";
2026-07-20 16:05:17 +00:00
function checkInvalidReadDuringRender() {
}
function checkInvalidWriteDuringRender() {
}
2026-07-23 10:11:24 +00:00
isJest = isJest.shouldBeUseWeb();
isJest = isJest.isJest();
2026-07-20 16:05:17 +00:00
let closure_3 = { 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}});}" };
2026-07-23 10:11:24 +00:00
let closure_4 = (() => {
2026-07-20 16:05:17 +00:00
function addCompilerSafeGetAndSet(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
obj = { get: obj };
2026-07-20 16:05:17 +00:00
obj = {
value() {
2026-07-23 10:11:24 +00:00
return closure_0.value;
},
configurable: false,
enumerable: false
2026-07-20 16:05:17 +00:00
};
obj = {
2026-07-23 10:11:24 +00:00
value: ((arg0) => {
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
function value(arg0) {
2026-07-23 10:11:24 +00:00
return lib(...arguments);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
value.toString = () => lib.toString();
2026-07-20 16:05:17 +00:00
return value;
2026-07-23 10:11:24 +00:00
})((__isAnimationDefinition) => {
2026-07-20 16:05:17 +00:00
if ("function" === typeof __isAnimationDefinition) {
if (!__isAnimationDefinition.__isAnimationDefinition) {
2026-07-23 10:11:24 +00:00
closure_0.value = __isAnimationDefinition(closure_0.value);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
closure_0.value = __isAnimationDefinition;
}),
configurable: false,
enumerable: false
2026-07-20 16:05:17 +00:00
};
obj.set = obj;
Object.defineProperties(arg0, obj);
}
addCompilerSafeGetAndSet.__closure = {};
addCompilerSafeGetAndSet.__workletHash = 14094096506039;
addCompilerSafeGetAndSet.__initData = closure_3;
return addCompilerSafeGetAndSet;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_5 = { code: "function hideInternalValueProp_Pnpm_mutablesTs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}" };
2026-07-23 10:11:24 +00:00
let closure_6 = (() => {
2026-07-20 16:05:17 +00:00
function hideInternalValueProp(arg0) {
2026-07-23 10:11:24 +00:00
Object.defineProperty(arg0, "_value", { configurable: false, enumerable: false });
2026-07-20 16:05:17 +00:00
}
hideInternalValueProp.__closure = {};
hideInternalValueProp.__workletHash = 3380393180484;
hideInternalValueProp.__initData = closure_5;
return hideInternalValueProp;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_7 = { 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;}" };
2026-07-23 10:11:24 +00:00
const tmp3 = (() => {
export function makeMutableUI(initialValues) {
2026-07-20 16:05:17 +00:00
const map = new Map();
2026-07-23 10:11:24 +00:00
let closure_1 = initialValues;
let obj = {};
2026-07-20 16:05:17 +00:00
Object.defineProperty(obj, "value", {
2026-07-23 10:11:24 +00:00
get: () => closure_1,
2026-07-20 16:05:17 +00:00
set: (value) => {
2026-07-23 10:11:24 +00:00
const obj = outer2_0(outer2_1[2]);
2026-07-20 16:05:17 +00:00
obj.valueSetter(obj, value);
}
});
Object.defineProperty(obj, "_value", {
2026-07-23 10:11:24 +00:00
get: () => closure_1,
2026-07-20 16:05:17 +00:00
set: (arg0) => {
2026-07-23 10:11:24 +00:00
let closure_1 = arg0;
2026-07-20 16:05:17 +00:00
const item = arg0.forEach((arg0) => {
2026-07-23 10:11:24 +00:00
arg0(closure_0);
2026-07-20 16:05:17 +00:00
});
}
});
obj.modify = function modify(arg0) {
const tmp = arguments.length > 1 && undefined !== arguments[1];
let tmp2 = !tmp;
if (tmp) {
tmp2 = arguments[1];
}
2026-07-23 10:11:24 +00:00
const obj = outer2_0(outer2_1[2]);
2026-07-20 16:05:17 +00:00
if (undefined !== arg0) {
2026-07-23 10:11:24 +00:00
let tmp4 = arg0(closure_1);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp4 = closure_1;
2026-07-20 16:05:17 +00:00
}
obj.valueSetter(obj, tmp4, tmp2);
};
obj.addListener = function addListener(arg0, arg1) {
const result = map.set(arg0, arg1);
};
obj.removeListener = function removeListener(arg0) {
map.delete(arg0);
};
obj._animation = null;
obj._isReanimatedSharedValue = true;
2026-07-23 10:11:24 +00:00
outer1_6(obj);
outer1_4(obj);
2026-07-20 16:05:17 +00:00
return obj;
}
2026-07-23 10:11:24 +00:00
makeMutableUI.__closure = { valueSetter: require(1620) /* valueSetter */.valueSetter, hideInternalValueProp: closure_6, addCompilerSafeGetAndSet: closure_4 };
2026-07-20 16:05:17 +00:00
makeMutableUI.__workletHash = 8132940328790;
makeMutableUI.__initData = closure_7;
return makeMutableUI;
2026-07-23 10:11:24 +00:00
})();
let closure_8 = tmp3;
2026-07-20 16:05:17 +00:00
let closure_9 = { code: "function pnpm_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}" };
let closure_10 = { code: "function pnpm_mutablesTs5(sv){return sv.value;}" };
let closure_11 = { code: "function pnpm_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}" };
let closure_12 = { code: "function pnpm_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}" };
2026-07-23 10:11:24 +00:00
export const makeMutable = isJest ? (function makeMutableWeb(arg0) {
let closure_0 = arg0;
const map = new Map();
let obj = {};
2026-07-20 16:05:17 +00:00
Object.defineProperty(obj, "value", {
get: () => {
2026-07-23 10:11:24 +00:00
outer1_13();
return closure_0;
2026-07-20 16:05:17 +00:00
},
set: (value) => {
2026-07-23 10:11:24 +00:00
outer1_14();
const obj = callback(map[2]);
2026-07-20 16:05:17 +00:00
obj.valueSetter(obj, value);
}
});
Object.defineProperty(obj, "_value", {
2026-07-23 10:11:24 +00:00
get: () => closure_0,
2026-07-20 16:05:17 +00:00
set: (arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const item = map.forEach((arg0) => {
2026-07-23 10:11:24 +00:00
arg0(closure_0);
2026-07-20 16:05:17 +00:00
});
}
});
obj.modify = function modify(arg0) {
const tmp = arguments.length > 1 && undefined !== arguments[1];
let tmp2 = !tmp;
if (tmp) {
tmp2 = arguments[1];
}
2026-07-23 10:11:24 +00:00
const obj = callback(map[2]);
2026-07-20 16:05:17 +00:00
if (undefined !== arg0) {
let value = arg0(obj.value);
} else {
value = obj.value;
}
obj.valueSetter(obj, value, tmp2);
};
obj.addListener = function addListener(arg0, arg1) {
const result = map.set(arg0, arg1);
};
obj.removeListener = function removeListener(arg0) {
map.delete(arg0);
};
obj._isReanimatedSharedValue = true;
callback2(obj);
callback(obj);
2026-07-23 10:11:24 +00:00
if (obj) {
obj.toJSON = () => JSON.stringify(closure_0);
2026-07-20 16:05:17 +00:00
}
return obj;
2026-07-23 10:11:24 +00:00
}) : (function makeMutableNative(initial) {
const _require = initial;
obj = _require(obj[3]);
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}
2026-07-23 10:11:24 +00:00
obj = { makeMutableUI: closure_8, initial };
2026-07-20 16:05:17 +00:00
pnpm_mutablesTs4.__closure = obj;
pnpm_mutablesTs4.__workletHash = 38746935544;
pnpm_mutablesTs4.__initData = closure_9;
obj = {};
const shareableCloneRecursive = obj.makeShareableCloneRecursive({ __init: pnpm_mutablesTs4 });
Object.defineProperty(obj, "value", {
get: () => {
2026-07-23 10:11:24 +00:00
outer1_13();
obj = initial(obj[4]);
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm_mutablesTs5(sv){return sv.value;}
pnpm_mutablesTs5.__closure = {};
pnpm_mutablesTs5.__workletHash = 5375306386445;
2026-07-23 10:11:24 +00:00
pnpm_mutablesTs5.__initData = outer1_10;
2026-07-20 16:05:17 +00:00
return obj.executeOnUIRuntimeSync(pnpm_mutablesTs5)(obj);
},
set: (newValue) => {
2026-07-23 10:11:24 +00:00
const initial = newValue;
outer1_14();
obj = initial(obj[4]);
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}
obj = { mutable: obj, newValue };
pnpm_mutablesTs6.__closure = obj;
pnpm_mutablesTs6.__workletHash = 11269088169577;
2026-07-23 10:11:24 +00:00
pnpm_mutablesTs6.__initData = outer1_11;
2026-07-20 16:05:17 +00:00
obj.runOnUI(pnpm_mutablesTs6)();
}
});
Object.defineProperty(obj, "_value", {
get: () => {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial(obj[5]).ReanimatedError("Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?");
2026-07-20 16:05:17 +00:00
throw reanimatedError;
},
set: (arg0) => {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial(obj[5]).ReanimatedError("Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?");
2026-07-20 16:05:17 +00:00
throw reanimatedError;
}
});
obj.modify = function modify(modifier) {
2026-07-23 10:11:24 +00:00
const initial = modifier;
2026-07-20 16:05:17 +00:00
const tmp = arguments.length > 1 && undefined !== arguments[1];
let tmp2 = !tmp;
if (tmp) {
tmp2 = arguments[1];
}
let obj = tmp2;
2026-07-23 10:11:24 +00:00
obj = initial(obj[4]);
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}
obj = { mutable: obj, modifier, forceUpdate: tmp2 };
pnpm_mutablesTs7.__closure = obj;
pnpm_mutablesTs7.__workletHash = 15983399508815;
2026-07-23 10:11:24 +00:00
pnpm_mutablesTs7.__initData = outer1_12;
2026-07-20 16:05:17 +00:00
obj.runOnUI(pnpm_mutablesTs7)();
};
obj.addListener = function addListener() {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial(obj[5]).ReanimatedError("Adding listeners is only possible on the UI runtime.");
2026-07-20 16:05:17 +00:00
throw reanimatedError;
};
obj.removeListener = function removeListener() {
2026-07-23 10:11:24 +00:00
const reanimatedError = new initial(obj[5]).ReanimatedError("Removing listeners is only possible on the UI runtime.");
2026-07-20 16:05:17 +00:00
throw reanimatedError;
};
obj._isReanimatedSharedValue = true;
callback2(obj);
2026-07-23 10:11:24 +00:00
callback(obj);
const shareableMappingCache = _require(obj[6]).shareableMappingCache;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache.set(obj, shareableCloneRecursive);
return obj;
2026-07-23 10:11:24 +00:00
});