2026-08-15 05:55:55 +00:00
// Module ID: 1694
// Function ID: 1695
2026-07-29 08:29:29 +00:00
// Name: isValidLayoutAnimationProp
2026-08-15 05:55:55 +00:00
// Dependencies: [1657, 1679, 1665, 1695, 1696, 1697, 1661]
2026-07-29 08:29:29 +00:00
// Exports: assertEasingIsWorklet, cancelAnimation, defineAnimation, getReduceMotionForAnimation, initialUpdaterRun, isValidLayoutAnimationProp
2026-08-15 05:55:55 +00:00
// Module 1694 (isValidLayoutAnimationProp)
2026-08-24 06:08:38 +00:00
import runWorkletOnJS from "runWorkletOnJS" /* 1661 */ ;
import t from "t" /* 1665 */ ;
import isWorkletFunction from "isWorkletFunction" /* 1679 */ ;
import isReducedMotionEnabledInSystem from "isReducedMotionEnabledInSystem" /* 1695 */ ;
import isAffineMatrixFlat from "isAffineMatrixFlat" /* 1696 */ ;
import call from "call" /* 1697 */ ;
import isJest from "isJest" /* 1657 */ ;
2026-07-29 08:29:29 +00:00
let c2 = false ;
isJest = isJest . shouldBeUseWeb ( ) ;
let obj = { originX : true , originY : true , width : true , height : true , borderRadius : true , globalOriginX : true , globalOriginY : true , opacity : true , transform : true , backgroundColor : true } ;
function isValidLayoutAnimationProp ( arg0 ) {
return arg0 in obj ;
}
isValidLayoutAnimationProp . _ _closure = { LAYOUT _ANIMATION _SUPPORTED _PROPS : obj } ;
isValidLayoutAnimationProp . _ _workletHash = 13235833688548 ;
isValidLayoutAnimationProp . _ _initData = { code : "function isValidLayoutAnimationProp_Pnpm_utilTs1(prop){const{LAYOUT_ANIMATION_SUPPORTED_PROPS}=this.__closure;return prop in LAYOUT_ANIMATION_SUPPORTED_PROPS;}" } ;
function assertEasingIsWorklet ( factory ) {
if ( ! globalThis . _WORKLET ) {
if ( ! isJest ) {
factory = undefined ;
if ( factory != null ) {
factory = factory . factory ;
}
if ( ! factory ) {
if ( ! obj . isWorkletFunction ( factory ) ) {
2026-08-15 05:55:55 +00:00
const reanimatedError = new tmp5 ( 1665 ) . ReanimatedError ( "The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError ;
}
2026-08-24 06:08:38 +00:00
obj = isWorkletFunction ;
2026-07-29 08:29:29 +00:00
tmp5 = require ;
}
}
}
}
2026-08-24 06:08:38 +00:00
obj = { SHOULD _BE _USE _WEB : isJest , isWorkletFunction : isWorkletFunction . isWorkletFunction } ;
2026-07-29 08:29:29 +00:00
assertEasingIsWorklet . _ _closure = obj ;
assertEasingIsWorklet . _ _workletHash = 8431488219943 ;
assertEasingIsWorklet . _ _initData = { code : "function assertEasingIsWorklet_Pnpm_utilTs2(easing){const{SHOULD_BE_USE_WEB,isWorkletFunction}=this.__closure;if(_WORKLET){return;}if(SHOULD_BE_USE_WEB){return;}if(easing!==null&&easing!==void 0&&easing.factory){return;}if(!isWorkletFunction(easing)){throw new ReanimatedError('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.');}}" } ;
function recognizePrefixSuffix ( current ) {
2026-08-04 21:03:28 +00:00
if ( typeof current === "string" ) {
2026-07-29 08:29:29 +00:00
const match = current . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match ) {
let str2 = match [ 3 ] ;
if ( str2 == null ) {
str2 = "" ;
}
2026-08-24 06:08:38 +00:00
obj = { prefix : null , suffix : null , strippedValue : null } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = match [ 1 ] ;
obj [ 1 ] = match [ 4 ] ;
const _parseFloat = parseFloat ;
obj [ 2 ] = parseFloat ( match [ 2 ] + str2 ) ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
const reanimatedError = new t . ReanimatedError ( "Couldn't parse animation value." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError ;
}
} else {
obj = { strippedValue : null } ;
obj [ 0 ] = current ;
return obj ;
}
}
recognizePrefixSuffix . _ _closure = { } ;
recognizePrefixSuffix . _ _workletHash = 11076682371077 ;
recognizePrefixSuffix . _ _initData = { code : "function recognizePrefixSuffix_Pnpm_utilTs3(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw new ReanimatedError(\"Couldn't parse animation value.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}" } ;
2026-08-24 06:08:38 +00:00
const uiValue = isReducedMotionEnabledInSystem . ReducedMotionManager . uiValue ;
2026-07-29 08:29:29 +00:00
function getReduceMotionFromConfig ( reduceMotion ) {
if ( reduceMotion ) {
2026-08-24 06:08:38 +00:00
if ( reduceMotion !== isWorkletFunction . ReduceMotion . System ) {
let value = reduceMotion === isWorkletFunction . ReduceMotion . Always ;
2026-07-29 08:29:29 +00:00
}
return value ;
}
value = uiValue . value ;
}
2026-08-24 06:08:38 +00:00
getReduceMotionFromConfig . _ _closure = { ReduceMotion : isWorkletFunction . ReduceMotion , isReduceMotionOnUI : uiValue } ;
2026-07-29 08:29:29 +00:00
getReduceMotionFromConfig . _ _workletHash = 7977910521960 ;
getReduceMotionFromConfig . _ _initData = { code : "function getReduceMotionFromConfig_Pnpm_utilTs4(config){const{ReduceMotion,isReduceMotionOnUI}=this.__closure;return!config||config===ReduceMotion.System?isReduceMotionOnUI.value:config===ReduceMotion.Always;}" } ;
function getReduceMotionForAnimation ( reduceMotion ) {
if ( reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof getReduceMotionFromConfig !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( reduceMotion ) {
2026-08-24 06:08:38 +00:00
if ( reduceMotion !== isWorkletFunction . ReduceMotion . System ) {
let value = reduceMotion === isWorkletFunction . ReduceMotion . Always ;
2026-07-29 08:29:29 +00:00
}
return value ;
}
value = uiValue . value ;
}
}
getReduceMotionForAnimation . _ _closure = { getReduceMotionFromConfig } ;
getReduceMotionForAnimation . _ _workletHash = 10866808344662 ;
getReduceMotionForAnimation . _ _initData = { code : "function getReduceMotionForAnimation_Pnpm_utilTs5(config){const{getReduceMotionFromConfig}=this.__closure;if(!config){return undefined;}return getReduceMotionFromConfig(config);}" } ;
function applyProgressToMatrix ( arg0 , arr , arr ) {
2026-08-24 06:08:38 +00:00
obj = isAffineMatrixFlat ;
const obj2 = isAffineMatrixFlat ;
return obj . addMatrices ( arr , obj2 . scaleMatrix ( isAffineMatrixFlat . subtractMatrices ( arr , arr ) , arg0 ) ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
let obj1 = { ReduceMotion : isWorkletFunction . ReduceMotion , isReduceMotionOnUI : uiValue } ;
applyProgressToMatrix . _ _closure = { addMatrices : isAffineMatrixFlat . addMatrices , scaleMatrix : isAffineMatrixFlat . scaleMatrix , subtractMatrices : isAffineMatrixFlat . subtractMatrices } ;
2026-07-29 08:29:29 +00:00
applyProgressToMatrix . _ _workletHash = 4822273347900 ;
applyProgressToMatrix . _ _initData = { code : "function applyProgressToMatrix_Pnpm_utilTs6(progress,a,b){const{addMatrices,scaleMatrix,subtractMatrices}=this.__closure;return addMatrices(a,scaleMatrix(subtractMatrices(b,a),progress));}" } ;
function applyProgressToNumber ( arg0 , arg1 , arg2 ) {
return arg1 + arg0 * ( arg2 - arg1 ) ;
}
applyProgressToNumber . _ _closure = { } ;
applyProgressToNumber . _ _workletHash = 954128472665 ;
applyProgressToNumber . _ _initData = { code : "function applyProgressToNumber_Pnpm_utilTs7(progress,a,b){return a+progress*(b-a);}" } ;
function decorateAnimation ( isHigherOrder ) {
( { onStart : require , onFrame : dependencyMap } = isHigherOrder ) ;
if ( isHigherOrder . isHigherOrder ) {
isHigherOrder . onStart = ( reduceMotion ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
return callback ( reduceMotion , arg1 , arg2 , arg3 ) ;
} ;
} else {
const _Object = Object ;
2026-08-24 06:08:38 +00:00
closure _2 = Object . assign ( { } , isHigherOrder ) ;
2026-07-29 08:29:29 +00:00
delete tmp2 [ tmp ] ;
function prefNumberSuffOnFrame ( strippedCurrent ) {
strippedCurrent . current = strippedCurrent . strippedCurrent ;
( { current : strippedCurrent . strippedCurrent , _ _prefix } = strippedCurrent ) ;
if ( _ _prefix == null ) {
_ _prefix = "" ;
}
let str = strippedCurrent . _ _suffix ;
const sum = _ _prefix + strippedCurrent . current ;
if ( str == null ) {
str = "" ;
}
strippedCurrent . current = sum + str ;
return dependencyMap ( strippedCurrent , arg1 ) ;
}
2026-08-24 06:08:38 +00:00
closure _4 = [ "R" , "G" , "B" , "A" ] ;
2026-07-29 08:29:29 +00:00
function colorOnFrame ( nonscaledCurrent ) {
2026-08-24 06:08:38 +00:00
closure _0 = nonscaledCurrent ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
2026-08-24 06:08:38 +00:00
c3 = true ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . current = nonscaledCurrent . nonscaledCurrent ;
const item = closure _4 . forEach ( ( arg0 ) => {
let onFrameResult = c3 ;
if ( c3 ) {
onFrameResult = obj . onFrame ( nonscaledCurrent [ arg0 ] , closure _1 ) ;
}
c3 = onFrameResult ;
items . push ( nonscaledCurrent [ arg0 ] . current ) ;
} ) ;
2026-08-24 06:08:38 +00:00
closure _1 _0 ( closure _1 _1 [ 5 ] ) . clampRGBA ( items ) ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . nonscaledCurrent = items ;
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
const obj2 = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
nonscaledCurrent . current = obj2 . rgbaArrayToRGBAColor ( closure _1 _0 ( closure _1 _1 [ 5 ] ) . toGammaSpace ( items ) ) ;
2026-07-29 08:29:29 +00:00
return c3 ;
}
function transformationMatrixOnFrame ( arg0 , arg1 ) {
const callback = arg0 ;
const first = arg0 [ 0 ] ;
2026-08-24 06:08:38 +00:00
dependencyMap = arg0 [ 0 ] . current / 100 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
const items1 = [ "translationMatrix" , "scaleMatrix" , "skewMatrix" ] ;
const item = items1 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-24 06:08:38 +00:00
obj = lib ( 1696 ) ;
2026-07-29 08:29:29 +00:00
const tmp2 = dependencyMap ;
2026-08-15 05:55:55 +00:00
const obj2 = lib ( 1696 ) ;
return items . push ( obj . addMatrices ( lib . startMatrices [ arg0 ] , obj2 . scaleMatrix ( lib ( 1696 ) . subtractMatrices ( lib . stopMatrices [ arg0 ] , lib . startMatrices [ arg0 ] ) , tmp2 ) ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
const items2 = [ ] ;
const items3 = [ "x" , "y" , "z" ] ;
[ tmp3 , tmp4 , tmp5 ] = items ;
const item1 = items3 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _9 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const sum = tmp2 + dependencyMap * ( lib . stopMatrices [ "r" + arg0 ] - tmp2 ) ;
2026-08-15 05:55:55 +00:00
items2 . push ( lib ( 1696 ) . getRotationMatrix ( sum , arg0 ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
[ tmp7 , tmp8 , tmp9 ] = items2 ;
const onFrameResult = first . onFrame ( arg0 [ 0 ] , arg1 ) ;
2026-08-15 05:55:55 +00:00
let obj2 = callback ( 1696 ) ;
const obj3 = callback ( 1696 ) ;
const multiplyMatricesResult = obj2 . multiplyMatrices ( tmp7 , callback ( 1696 ) . multiplyMatrices ( tmp8 , tmp9 ) ) ;
const obj4 = callback ( 1696 ) ;
const obj5 = callback ( 1696 ) ;
const obj6 = callback ( 1696 ) ;
arg0 . current = obj4 . flatten ( obj5 . multiplyMatrices ( obj6 . multiplyMatrices ( tmp4 , callback ( 1696 ) . multiplyMatrices ( tmp5 , multiplyMatricesResult ) ) , tmp3 ) ) ;
2026-07-29 08:29:29 +00:00
return onFrameResult ;
}
function arrayOnFrame ( current ) {
2026-08-24 06:08:38 +00:00
closure _0 = current ;
closure _1 = arg1 ;
c2 = true ;
2026-07-29 08:29:29 +00:00
current = current . current ;
const item = current . forEach ( ( arg0 , arg1 ) => {
let onFrameResult = c2 ;
if ( c2 ) {
onFrameResult = obj . onFrame ( dependencyMap [ arg1 ] , closure _1 ) ;
}
c2 = onFrameResult ;
dependencyMap . current [ arg1 ] = dependencyMap [ arg1 ] . current ;
} ) ;
return c2 ;
}
function objectOnFrame ( current ) {
2026-08-24 06:08:38 +00:00
obj = { } ;
2026-07-29 08:29:29 +00:00
let flag = true ;
let flag2 = true ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
flag2 = flag ;
while ( keys [ tmp ] !== undefined ) {
let tmp6 = tmp4 ;
let obj2 = current [ tmp4 ] ;
let onFrameResult = flag ;
if ( flag ) {
onFrameResult = obj2 . onFrame ( current [ tmp4 ] , arg1 ) ;
}
obj [ tmp4 ] = current [ tmp4 ] . current ;
flag = onFrameResult ;
continue ;
}
}
current . current = obj ;
return flag2 ;
}
isHigherOrder . onStart = ( reduceMotion , current , arg2 , current2 ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
if ( reduceMotion . reduceMotion ) {
if ( undefined !== reduceMotion . toValue ) {
reduceMotion . current = reduceMotion . toValue ;
} else {
callback ( reduceMotion , current , arg2 , current2 ) ;
}
reduceMotion . startTime = 0 ;
reduceMotion . onFrame = ( ) => true ;
} else {
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
2026-07-29 08:29:29 +00:00
if ( obj . isColor ( current ) ) {
callback = reduceMotion ;
2026-08-24 06:08:38 +00:00
closure _1 = arg2 ;
closure _2 = current2 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
let tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
if ( tmp3Result . isColor ( current ) ) {
tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _4 = tmp3Result . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . current ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result1 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result2 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _3 = tmp3Result2 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( current ) ) ;
2026-07-29 08:29:29 +00:00
if ( reduceMotion . toValue ) {
const tmp3Result4 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _5 = tmp3Result4 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . toValue ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result5 = tmp3 ( tmp4 [ 5 ] ) ;
}
const tmp3Result3 = tmp3 ( tmp4 [ 5 ] ) ;
}
const item = closure _4 . forEach ( ( arg0 , arg1 ) => {
toValue [ arg0 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg0 ] . current = table2 [ arg1 ] ;
let tmp2 ;
if ( table3 ) {
tmp2 = table3 [ arg1 ] ;
}
toValue [ arg0 ] . toValue = tmp2 ;
let tmp4 ;
if ( dependencyMap ) {
tmp4 = dependencyMap [ arg0 ] ;
}
toValue [ arg0 ] . onStart ( toValue [ arg0 ] , table [ arg1 ] , closure _1 , tmp4 ) ;
items . push ( toValue [ arg0 ] . current ) ;
} ) ;
reduceMotion . unroundedCurrent = items ;
tmp3 ( tmp4 [ 5 ] ) . clampRGBA ( items ) ;
const tmp3Result6 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result7 = tmp3 ( tmp4 [ 5 ] ) ;
reduceMotion . current = tmp3Result7 . rgbaArrayToRGBAColor ( tmp3 ( tmp4 [ 5 ] ) . toGammaSpace ( items ) ) ;
reduceMotion . onFrame = closure _5 ;
const tmp3Result8 = tmp3 ( tmp4 [ 5 ] ) ;
} else {
if ( tmp3Result9 . isAffineMatrixFlat ( current ) ) {
reduceMotion . startMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( current ) ;
const tmp3Result10 = tmp3 ( tmp4 [ 4 ] ) ;
reduceMotion . stopMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( reduceMotion . toValue ) ;
const _Object = Object ;
reduceMotion [ 0 ] = Object . assign ( { } , closure _2 ) ;
reduceMotion [ 0 ] . current = 0 ;
reduceMotion [ 0 ] . toValue = 100 ;
const first = reduceMotion [ 0 ] ;
const first1 = reduceMotion [ 0 ] ;
let first2 ;
if ( current2 ) {
first2 = current2 [ 0 ] ;
}
first . onStart ( first1 , 0 , arg2 , first2 ) ;
reduceMotion . current = current ;
reduceMotion . onFrame = items ;
const tmp3Result11 = tmp3 ( tmp4 [ 4 ] ) ;
} else {
prefix = globalThis ;
const _Array = Array ;
if ( Array . isArray ( current ) ) {
callback = reduceMotion ;
closure _1 = arg2 ;
closure _2 = current2 ;
const item1 = current . forEach ( ( current ) => {
toValue [ arg1 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg1 ] . current = current ;
toValue [ arg1 ] . toValue = toValue . toValue [ arg1 ] ;
let tmp2 ;
if ( dependencyMap ) {
tmp2 = dependencyMap [ arg1 ] ;
}
toValue [ arg1 ] . onStart ( toValue [ arg1 ] , current , closure _1 , tmp2 ) ;
} ) ;
const items1 = [ ] ;
HermesBuiltin . arraySpread ( current , 0 ) ;
reduceMotion . current = items1 ;
reduceMotion . onFrame = arrayOnFrame ;
2026-08-04 21:03:28 +00:00
} else if ( typeof current === "string" ) {
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current === "string" ) {
2026-07-29 08:29:29 +00:00
const match = current . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match ) {
let str2 = match [ 3 ] ;
if ( str2 == null ) {
str2 = "" ;
}
obj = { prefix : null , suffix : null , strippedValue : null } ;
obj [ 0 ] = match [ 1 ] ;
obj [ 1 ] = match [ 4 ] ;
const _parseFloat = parseFloat ;
obj [ 2 ] = parseFloat ( match [ 2 ] + str2 ) ;
} else {
const reanimatedError = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError ;
}
} else {
obj = { strippedValue : null } ;
obj [ 0 ] = current ;
}
( { strippedValue , prefix : reduceMotion . _ _prefix , suffix : reduceMotion . _ _suffix } = obj ) ;
reduceMotion . strippedCurrent = strippedValue ;
2026-08-04 21:03:28 +00:00
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof reduceMotion . toValue === "string" ) {
2026-07-29 08:29:29 +00:00
const match1 = str3 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match1 ) {
let str5 = match1 [ 3 ] ;
if ( str5 == null ) {
str5 = "" ;
}
2026-08-24 06:08:38 +00:00
obj1 = { prefix : null , suffix : null , strippedValue : null } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = match1 [ 1 ] ;
obj1 [ 1 ] = match1 [ 4 ] ;
const _parseFloat2 = parseFloat ;
obj1 [ 2 ] = parseFloat ( match1 [ 2 ] + str5 ) ;
let obj2 = obj1 ;
} else {
const reanimatedError1 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError1 ;
}
} else {
obj2 = { strippedValue : null } ;
obj2 [ 0 ] = str3 ;
}
reduceMotion . current = strippedValue ;
reduceMotion . startValue = strippedValue ;
reduceMotion . toValue = obj2 . strippedValue ;
if ( current2 ) {
if ( current2 !== reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof tmp21 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current2 . current === "string" ) {
2026-07-29 08:29:29 +00:00
const match2 = str7 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match2 ) {
let str8 = match2 [ 3 ] ;
if ( str8 == null ) {
str8 = "" ;
}
const obj3 = { prefix : null , suffix : null , strippedValue : null } ;
obj3 [ 0 ] = match2 [ 1 ] ;
obj3 [ 1 ] = match2 [ 4 ] ;
obj3 [ 2 ] = prefix . parseFloat ( match2 [ 2 ] + str8 ) ;
let obj4 = obj3 ;
} else {
const reanimatedError2 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError2 ;
}
} else {
obj4 = { strippedValue : null } ;
obj4 [ 0 ] = str7 ;
}
( { prefix , strippedValue : current2 . current } = obj4 ) ;
current2 . _ _prefix = prefix ;
current2 . _ _suffix = obj4 . suffix ;
}
}
callback ( reduceMotion , strippedValue , arg2 , current2 ) ;
let str9 = reduceMotion . _ _prefix ;
if ( str9 == null ) {
str9 = "" ;
}
let str10 = reduceMotion . _ _suffix ;
const sum = str9 + reduceMotion . current ;
if ( str10 == null ) {
str10 = "" ;
}
reduceMotion . current = sum + str10 ;
let tmp48 = current2 ;
if ( current2 ) {
tmp48 = current2 !== reduceMotion ;
}
if ( tmp48 ) {
let str11 = current2 . _ _prefix ;
if ( str11 == null ) {
str11 = "" ;
}
let str12 = current2 . _ _suffix ;
const sum1 = str11 + current2 . current ;
if ( str12 == null ) {
str12 = "" ;
}
current2 . current = sum1 + str12 ;
}
reduceMotion . onFrame = closure _3 ;
} else {
2026-08-04 21:03:28 +00:00
if ( typeof current === "object" ) {
2026-07-29 08:29:29 +00:00
if ( null !== current ) {
for ( const key10034 in arg1 ) {
let tmp78 = key10034 ;
let _Object2 = Object ;
let tmp79 = closure _2 ;
arg0 [ key10034 ] = Object . assign ( { } , closure _2 ) ;
arg0 [ key10034 ] . onStart = arg0 . onStart ;
arg0 [ key10034 ] . current = arg1 [ key10034 ] ;
arg0 [ key10034 ] . toValue = arg0 . toValue [ key10034 ] ;
let obj22 = arg0 [ key10034 ] ;
let tmp80 = arg0 [ key10034 ] ;
let tmp81 = arg1 [ key10034 ] ;
let tmp13 ;
if ( arg3 ) {
tmp13 = arg3 [ key10034 ] ;
}
let tmp14 = obj22 ;
let tmp15 = tmp80 ;
let tmp16 = tmp81 ;
let tmp17 = arg2 ;
let tmp18 = tmp13 ;
let onStartResult1 = obj22 . onStart ( tmp80 , tmp81 , arg2 , tmp13 ) ;
continue ;
}
reduceMotion . current = current ;
reduceMotion . onFrame = objectOnFrame ;
}
}
callback ( reduceMotion , current , arg2 , current2 ) ;
}
}
tmp3Result9 = tmp3 ( tmp4 [ 4 ] ) ;
}
return tmp11 ;
}
} ;
}
}
2026-08-24 06:08:38 +00:00
let obj2 = { addMatrices : isAffineMatrixFlat . addMatrices , scaleMatrix : isAffineMatrixFlat . scaleMatrix , subtractMatrices : isAffineMatrixFlat . subtractMatrices } ;
decorateAnimation . _ _closure = { getReduceMotionFromConfig , recognizePrefixSuffix , isColor : call . isColor , toLinearSpace : call . toLinearSpace , convertToRGBA : call . convertToRGBA , clampRGBA : call . clampRGBA , rgbaArrayToRGBAColor : call . rgbaArrayToRGBAColor , toGammaSpace : call . toGammaSpace , decomposeMatrixIntoMatricesAndAngles : isAffineMatrixFlat . decomposeMatrixIntoMatricesAndAngles , applyProgressToMatrix , applyProgressToNumber , getRotationMatrix : isAffineMatrixFlat . getRotationMatrix , multiplyMatrices : isAffineMatrixFlat . multiplyMatrices , flatten : isAffineMatrixFlat . flatten , isAffineMatrixFlat : isAffineMatrixFlat . isAffineMatrixFlat } ;
2026-07-29 08:29:29 +00:00
decorateAnimation . _ _workletHash = 6240615473022 ;
decorateAnimation . _ _initData = { code : " function decorateAnimation _Pnpm _utilTs8 ( animation ) { const { getReduceMotionFromConfig , recognizePrefixSuffix , isColor , toLinearSpace , convertToRGBA , clampRGBA , rgbaArrayToRGBAColor , toGammaSpace , decomposeMatrixIntoMatricesAndAngles , applyProgressToMatrix , applyProgressToNumber , getRotationMatrix , multiplyMatrices , flatten , isAffineMatrixFlat } = this . _ _closure ; const baseOnStart = animation . onStart ; const baseOnFrame = animation . onFrame ; if ( animation . isHigherOrder ) { animation . onStart = function ( animation , value , timestamp , previousAnimation ) { if ( animation . reduceMotion === undefined ) { animation . reduceMotion = getReduceMotionFromConfig ( ) ; } return baseOnStart ( animation , value , timestamp , previousAnimation ) ; } ; return ; } const animationCopy = Object . assign ( { } , animation ) ; delete animationCopy . callback ; const prefNumberSuffOnStart = function ( animation , value , timestamp , previousAnimation ) { var _animation$ _ _prefix , _animation$ _ _suffix ; const { prefix : prefix , suffix : suffix , strippedValue : strippedValue } = recognizePrefixSuffix ( value ) ; animation . _ _prefix = prefix ; animation . _ _suffix = suffix ; animation . strippedCurrent = strippedValue ; const { strippedValue : strippedToValue } = recognizePrefixSuffix ( animation . toValue ) ; animation . current = strippedValue ; animation . startValue = strippedValue ; animation . toValue = strippedToValue ; if ( previousAnimation && previousAnimation !== animation ) { const { prefix : paPrefix , suffix : paSuffix , strippedValue : paStrippedValue } = recognizePrefixSuffix ( previousAnimation . current ) ; previousAnimation . current = paStrippedValue ; previousAnimation . _ _prefix = paPrefix ; previousAnimation . _ _suffix = paSuffix ; } baseOnStart ( animation , strippedValue , timestamp , previousAnimation ) ; animation . current = ( ( _animation$ _ _prefix = animation . _ _prefix ) !== null && _animation$ _ _prefix !== void 0 ? _animation$ _ _prefix : '' ) + animation . current + ( ( _animation$ _ _suffix = animation . _ _suffix ) !== null && _animation$ _ _suffix !== void 0 ? _animation$ _ _suffix : '' ) ; if ( previousAnimation && previousAnimation !== animation ) { var _previousAnimation$ _ _ , _previousAnimation$ _ _2 ; previousAnimation . current = ( ( _previousAnimation$ _ _ = previousAnimation . _ _prefix ) !== null && _previousAnimation$ _ _ !== void 0 ? _previousAnimation$ _ _ : '' ) + previousAnimation . current + ( ( _previousAnimation$ _ _2 = previousAnimation . _ _suffix ) !== null && _previousAnimation$ _ _2 !== void 0 ? _previousAnimation$ _ _2 : '' ) ; } } ; const prefNumberSuffOnFrame = function ( animation , timestamp ) { var _animation$ _ _prefix2 , _animation$ _ _suffix2 ; animation . current = animation . strippedCurrent ; const res = baseOnFrame ( animation , timestamp ) ; animation . strippedCurrent = animation . current ; animation . current = ( ( _animation$ _ _prefix2 = animation . _ _prefix ) !== null && _animation$ _ _prefix2 !== void 0 ? _animation$ _ _prefix2 : '' ) + animation . current + ( ( _animation$ _ _suffix2 = animation . _ _suffix ) !== null && _animation$ _ _suffix2 !== void 0 ? _animation$ _ _suffix2 : '' ) ; return res ; } ; const tab = [ 'R' , 'G' , 'B' , 'A' ] ; const colorOnStart = function ( animation , value , timestamp , previousAnimation ) { let RGBAValue ; let RGBACurrent ; let RGBAToValue ; const res = [ ] ; if ( isColor ( value ) ) { RGBACurrent = toLinearSpace ( convertToRGBA ( animation . current ) ) ; RGBAValue = toLinearSpace ( convertToRGBA ( value ) ) ; if ( animation . toValue ) { RGBAToValue = toLinearSpace ( convertToRGBA ( animation . toValue ) ) ; } } tab . forEach ( function ( i , index ) { animation [ i ] = Object . assign ( { } , animationCopy ) ; animation [ i ] . current = RGBACurrent [ index ] ; animation [ i ] . toValue = RGBAToValue ? RGBAToValue [ index ] : undefined ; animation [ i ] . onStart ( animation [ i ] , RGBAValue [ index ] , timestamp , previousAnimation ? previousAnimation [ i ] : undefined ) ; res . push ( animation [ i ] . current ) ; } ) ; animation . unroundedCurrent = res ; clampRGBA ( res ) ; animation . current = rgbaArrayToRGBAColor ( toGammaSpace ( res ) ) ; } ; const colorOnFrame = function ( animation , timestamp ) { const res = [ ] ; let finished = true ; animation . current = animation . nonscaledCurrent ; tab . forEach ( function ( i ) { const result = animation [ i ] . onFrame ( animation [ i ] , timestamp ) ; finished = finished && result ; res . push ( animation [ i ] . current ) ; } ) ; clampRGBA ( res ) ; animation . nonscaledCurrent = res ; animation . current = rgbaArrayToRGBAColor ( toGammaSpace ( res ) ) ; return finished ; } ; const transformationMatrixOnStart = function ( animation , value , timestamp , previousAnimation ) { const toValue = animation . toValue ; animation . startMat
let closure _11 = { code : "function pnpm_utilTs10(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}" } ;
function defineAnimation ( toValue , fn ) {
closure _0 = fn ;
if ( closure _2 ) {
return toValue ;
} else {
fn = function o ( ) {
const tmp3 = callback ( ) ;
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _10 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
( { onStart : closure _0 , onFrame : closure _1 } = tmp3 ) ;
if ( tmp3 . isHigherOrder ) {
tmp3 . onStart = ( reduceMotion ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
return callback ( reduceMotion , arg1 , arg2 , arg3 ) ;
} ;
} else {
let _Object = Object ;
2026-08-24 06:08:38 +00:00
closure _2 = Object . assign ( { } , tmp3 ) ;
2026-07-29 08:29:29 +00:00
delete tmp2 [ tmp ] ;
2026-08-24 06:08:38 +00:00
prefNumberSuffOnFrame = function prefNumberSuffOnFrame ( strippedCurrent ) {
2026-07-29 08:29:29 +00:00
strippedCurrent . current = strippedCurrent . strippedCurrent ;
( { current : strippedCurrent . strippedCurrent , _ _prefix } = strippedCurrent ) ;
if ( _ _prefix == null ) {
_ _prefix = "" ;
}
let str = strippedCurrent . _ _suffix ;
const sum = _ _prefix + strippedCurrent . current ;
if ( str == null ) {
str = "" ;
}
strippedCurrent . current = sum + str ;
return dependencyMap ( strippedCurrent , arg1 ) ;
2026-08-24 06:08:38 +00:00
} ;
closure _4 = [ "R" , "G" , "B" , "A" ] ;
colorOnFrame = function colorOnFrame ( nonscaledCurrent ) {
closure _0 = nonscaledCurrent ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
2026-08-24 06:08:38 +00:00
c3 = true ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . current = nonscaledCurrent . nonscaledCurrent ;
const item = closure _4 . forEach ( ( arg0 ) => {
let onFrameResult = c3 ;
if ( c3 ) {
onFrameResult = obj . onFrame ( nonscaledCurrent [ arg0 ] , closure _1 ) ;
}
c3 = onFrameResult ;
items . push ( nonscaledCurrent [ arg0 ] . current ) ;
} ) ;
2026-08-24 06:08:38 +00:00
closure _1 _0 ( closure _1 _1 [ 5 ] ) . clampRGBA ( items ) ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . nonscaledCurrent = items ;
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
const obj2 = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
nonscaledCurrent . current = obj2 . rgbaArrayToRGBAColor ( closure _1 _0 ( closure _1 _1 [ 5 ] ) . toGammaSpace ( items ) ) ;
2026-07-29 08:29:29 +00:00
return c3 ;
2026-08-24 06:08:38 +00:00
} ;
transformationMatrixOnFrame = function transformationMatrixOnFrame ( arg0 , arg1 ) {
2026-07-29 08:29:29 +00:00
const callback = arg0 ;
const first = arg0 [ 0 ] ;
2026-08-24 06:08:38 +00:00
dependencyMap = arg0 [ 0 ] . current / 100 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
const items1 = [ "translationMatrix" , "scaleMatrix" , "skewMatrix" ] ;
const item = items1 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-24 06:08:38 +00:00
obj = lib ( 1696 ) ;
2026-07-29 08:29:29 +00:00
const tmp2 = dependencyMap ;
2026-08-15 05:55:55 +00:00
const obj2 = lib ( 1696 ) ;
return items . push ( obj . addMatrices ( lib . startMatrices [ arg0 ] , obj2 . scaleMatrix ( lib ( 1696 ) . subtractMatrices ( lib . stopMatrices [ arg0 ] , lib . startMatrices [ arg0 ] ) , tmp2 ) ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
const items2 = [ ] ;
const items3 = [ "x" , "y" , "z" ] ;
[ tmp3 , tmp4 , tmp5 ] = items ;
const item1 = items3 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _9 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const sum = tmp2 + dependencyMap * ( lib . stopMatrices [ "r" + arg0 ] - tmp2 ) ;
2026-08-15 05:55:55 +00:00
items2 . push ( lib ( 1696 ) . getRotationMatrix ( sum , arg0 ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
[ tmp7 , tmp8 , tmp9 ] = items2 ;
const onFrameResult = first . onFrame ( arg0 [ 0 ] , arg1 ) ;
2026-08-15 05:55:55 +00:00
let obj2 = callback ( 1696 ) ;
const obj3 = callback ( 1696 ) ;
const multiplyMatricesResult = obj2 . multiplyMatrices ( tmp7 , callback ( 1696 ) . multiplyMatrices ( tmp8 , tmp9 ) ) ;
const obj4 = callback ( 1696 ) ;
const obj5 = callback ( 1696 ) ;
const obj6 = callback ( 1696 ) ;
arg0 . current = obj4 . flatten ( obj5 . multiplyMatrices ( obj6 . multiplyMatrices ( tmp4 , callback ( 1696 ) . multiplyMatrices ( tmp5 , multiplyMatricesResult ) ) , tmp3 ) ) ;
2026-07-29 08:29:29 +00:00
return onFrameResult ;
2026-08-24 06:08:38 +00:00
} ;
arrayOnFrame = function arrayOnFrame ( current ) {
closure _0 = current ;
closure _1 = arg1 ;
c2 = true ;
2026-07-29 08:29:29 +00:00
current = current . current ;
const item = current . forEach ( ( arg0 , arg1 ) => {
let onFrameResult = c2 ;
if ( c2 ) {
onFrameResult = obj . onFrame ( dependencyMap [ arg1 ] , closure _1 ) ;
}
c2 = onFrameResult ;
dependencyMap . current [ arg1 ] = dependencyMap [ arg1 ] . current ;
} ) ;
return c2 ;
2026-08-24 06:08:38 +00:00
} ;
objectOnFrame = function objectOnFrame ( current ) {
obj = { } ;
2026-07-29 08:29:29 +00:00
let flag = true ;
let flag2 = true ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
flag2 = flag ;
while ( keys [ tmp ] !== undefined ) {
let tmp6 = tmp4 ;
let obj2 = current [ tmp4 ] ;
let onFrameResult = flag ;
if ( flag ) {
onFrameResult = obj2 . onFrame ( current [ tmp4 ] , arg1 ) ;
}
obj [ tmp4 ] = current [ tmp4 ] . current ;
flag = onFrameResult ;
continue ;
}
}
current . current = obj ;
return flag2 ;
2026-08-24 06:08:38 +00:00
} ;
2026-07-29 08:29:29 +00:00
tmp3 . onStart = ( reduceMotion , current , arg2 , current2 ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
if ( reduceMotion . reduceMotion ) {
if ( undefined !== reduceMotion . toValue ) {
reduceMotion . current = reduceMotion . toValue ;
} else {
callback ( reduceMotion , current , arg2 , current2 ) ;
}
reduceMotion . startTime = 0 ;
reduceMotion . onFrame = ( ) => true ;
} else {
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
2026-07-29 08:29:29 +00:00
if ( obj . isColor ( current ) ) {
callback = reduceMotion ;
2026-08-24 06:08:38 +00:00
closure _1 = arg2 ;
closure _2 = current2 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
let tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
if ( tmp3Result . isColor ( current ) ) {
tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _4 = tmp3Result . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . current ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result1 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result2 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _3 = tmp3Result2 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( current ) ) ;
2026-07-29 08:29:29 +00:00
if ( reduceMotion . toValue ) {
const tmp3Result4 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _5 = tmp3Result4 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . toValue ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result5 = tmp3 ( tmp4 [ 5 ] ) ;
}
const tmp3Result3 = tmp3 ( tmp4 [ 5 ] ) ;
}
const item = closure _4 . forEach ( ( arg0 , arg1 ) => {
toValue [ arg0 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg0 ] . current = table2 [ arg1 ] ;
let tmp2 ;
if ( table3 ) {
tmp2 = table3 [ arg1 ] ;
}
toValue [ arg0 ] . toValue = tmp2 ;
let tmp4 ;
if ( dependencyMap ) {
tmp4 = dependencyMap [ arg0 ] ;
}
toValue [ arg0 ] . onStart ( toValue [ arg0 ] , table [ arg1 ] , closure _1 , tmp4 ) ;
items . push ( toValue [ arg0 ] . current ) ;
} ) ;
reduceMotion . unroundedCurrent = items ;
tmp3 ( tmp4 [ 5 ] ) . clampRGBA ( items ) ;
const tmp3Result6 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result7 = tmp3 ( tmp4 [ 5 ] ) ;
reduceMotion . current = tmp3Result7 . rgbaArrayToRGBAColor ( tmp3 ( tmp4 [ 5 ] ) . toGammaSpace ( items ) ) ;
reduceMotion . onFrame = closure _5 ;
const tmp3Result8 = tmp3 ( tmp4 [ 5 ] ) ;
} else {
if ( tmp3Result9 . isAffineMatrixFlat ( current ) ) {
reduceMotion . startMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( current ) ;
const tmp3Result10 = tmp3 ( tmp4 [ 4 ] ) ;
reduceMotion . stopMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( reduceMotion . toValue ) ;
const _Object = Object ;
reduceMotion [ 0 ] = Object . assign ( { } , closure _2 ) ;
reduceMotion [ 0 ] . current = 0 ;
reduceMotion [ 0 ] . toValue = 100 ;
const first = reduceMotion [ 0 ] ;
const first1 = reduceMotion [ 0 ] ;
let first2 ;
if ( current2 ) {
first2 = current2 [ 0 ] ;
}
first . onStart ( first1 , 0 , arg2 , first2 ) ;
reduceMotion . current = current ;
reduceMotion . onFrame = items ;
const tmp3Result11 = tmp3 ( tmp4 [ 4 ] ) ;
} else {
prefix = globalThis ;
const _Array = Array ;
if ( Array . isArray ( current ) ) {
callback = reduceMotion ;
closure _1 = arg2 ;
closure _2 = current2 ;
const item1 = current . forEach ( ( current ) => {
toValue [ arg1 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg1 ] . current = current ;
toValue [ arg1 ] . toValue = toValue . toValue [ arg1 ] ;
let tmp2 ;
if ( dependencyMap ) {
tmp2 = dependencyMap [ arg1 ] ;
}
toValue [ arg1 ] . onStart ( toValue [ arg1 ] , current , closure _1 , tmp2 ) ;
} ) ;
const items1 = [ ] ;
HermesBuiltin . arraySpread ( current , 0 ) ;
reduceMotion . current = items1 ;
reduceMotion . onFrame = arrayOnFrame ;
2026-08-04 21:03:28 +00:00
} else if ( typeof current === "string" ) {
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current === "string" ) {
2026-07-29 08:29:29 +00:00
const match = current . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match ) {
let str2 = match [ 3 ] ;
if ( str2 == null ) {
str2 = "" ;
}
obj = { prefix : null , suffix : null , strippedValue : null } ;
obj [ 0 ] = match [ 1 ] ;
obj [ 1 ] = match [ 4 ] ;
const _parseFloat = parseFloat ;
obj [ 2 ] = parseFloat ( match [ 2 ] + str2 ) ;
} else {
const reanimatedError = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError ;
}
} else {
obj = { strippedValue : null } ;
obj [ 0 ] = current ;
}
( { strippedValue , prefix : reduceMotion . _ _prefix , suffix : reduceMotion . _ _suffix } = obj ) ;
reduceMotion . strippedCurrent = strippedValue ;
2026-08-04 21:03:28 +00:00
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof reduceMotion . toValue === "string" ) {
2026-07-29 08:29:29 +00:00
const match1 = str3 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match1 ) {
let str5 = match1 [ 3 ] ;
if ( str5 == null ) {
str5 = "" ;
}
2026-08-24 06:08:38 +00:00
obj1 = { prefix : null , suffix : null , strippedValue : null } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = match1 [ 1 ] ;
obj1 [ 1 ] = match1 [ 4 ] ;
const _parseFloat2 = parseFloat ;
obj1 [ 2 ] = parseFloat ( match1 [ 2 ] + str5 ) ;
let obj2 = obj1 ;
} else {
const reanimatedError1 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError1 ;
}
} else {
obj2 = { strippedValue : null } ;
obj2 [ 0 ] = str3 ;
}
reduceMotion . current = strippedValue ;
reduceMotion . startValue = strippedValue ;
reduceMotion . toValue = obj2 . strippedValue ;
if ( current2 ) {
if ( current2 !== reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof tmp21 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current2 . current === "string" ) {
2026-07-29 08:29:29 +00:00
const match2 = str7 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match2 ) {
let str8 = match2 [ 3 ] ;
if ( str8 == null ) {
str8 = "" ;
}
const obj3 = { prefix : null , suffix : null , strippedValue : null } ;
obj3 [ 0 ] = match2 [ 1 ] ;
obj3 [ 1 ] = match2 [ 4 ] ;
obj3 [ 2 ] = prefix . parseFloat ( match2 [ 2 ] + str8 ) ;
let obj4 = obj3 ;
} else {
const reanimatedError2 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError2 ;
}
} else {
obj4 = { strippedValue : null } ;
obj4 [ 0 ] = str7 ;
}
( { prefix , strippedValue : current2 . current } = obj4 ) ;
current2 . _ _prefix = prefix ;
current2 . _ _suffix = obj4 . suffix ;
}
}
callback ( reduceMotion , strippedValue , arg2 , current2 ) ;
let str9 = reduceMotion . _ _prefix ;
if ( str9 == null ) {
str9 = "" ;
}
let str10 = reduceMotion . _ _suffix ;
const sum = str9 + reduceMotion . current ;
if ( str10 == null ) {
str10 = "" ;
}
reduceMotion . current = sum + str10 ;
let tmp48 = current2 ;
if ( current2 ) {
tmp48 = current2 !== reduceMotion ;
}
if ( tmp48 ) {
let str11 = current2 . _ _prefix ;
if ( str11 == null ) {
str11 = "" ;
}
let str12 = current2 . _ _suffix ;
const sum1 = str11 + current2 . current ;
if ( str12 == null ) {
str12 = "" ;
}
current2 . current = sum1 + str12 ;
}
reduceMotion . onFrame = closure _3 ;
} else {
2026-08-04 21:03:28 +00:00
if ( typeof current === "object" ) {
2026-07-29 08:29:29 +00:00
if ( null !== current ) {
for ( const key10034 in arg1 ) {
let tmp78 = key10034 ;
let _Object2 = Object ;
let tmp79 = closure _2 ;
arg0 [ key10034 ] = Object . assign ( { } , closure _2 ) ;
arg0 [ key10034 ] . onStart = arg0 . onStart ;
arg0 [ key10034 ] . current = arg1 [ key10034 ] ;
arg0 [ key10034 ] . toValue = arg0 . toValue [ key10034 ] ;
let obj22 = arg0 [ key10034 ] ;
let tmp80 = arg0 [ key10034 ] ;
let tmp81 = arg1 [ key10034 ] ;
let tmp13 ;
if ( arg3 ) {
tmp13 = arg3 [ key10034 ] ;
}
let tmp14 = obj22 ;
let tmp15 = tmp80 ;
let tmp16 = tmp81 ;
let tmp17 = arg2 ;
let tmp18 = tmp13 ;
let onStartResult1 = obj22 . onStart ( tmp80 , tmp81 , arg2 , tmp13 ) ;
continue ;
}
reduceMotion . current = current ;
reduceMotion . onFrame = objectOnFrame ;
}
}
callback ( reduceMotion , current , arg2 , current2 ) ;
}
}
tmp3Result9 = tmp3 ( tmp4 [ 4 ] ) ;
}
return tmp11 ;
}
} ;
}
return tmp3 ;
} ;
2026-08-24 06:08:38 +00:00
obj = { factory : null , decorateAnimation : null } ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = fn ;
obj [ 1 ] = decorateAnimation ;
fn . _ _closure = obj ;
fn . _ _workletHash = 9825023081203 ;
fn . _ _initData = closure _11 ;
if ( ! globalThis . _WORKLET ) {
if ( ! prefNumberSuffOnFrame ) {
fn . _ _isAnimationDefinition = true ;
}
return fn ;
}
const tmp7 = fn ( ) ;
2026-08-04 21:03:28 +00:00
if ( typeof tmp3 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
( { onStart : closure _0 , onFrame : dependencyMap } = tmp7 ) ;
if ( tmp7 . isHigherOrder ) {
tmp7 . onStart = ( reduceMotion ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
return callback ( reduceMotion , arg1 , arg2 , arg3 ) ;
} ;
fn = tmp7 ;
} else {
let _Object = Object ;
closure _2 = Object . assign ( { } , tmp7 ) ;
delete tmp2 [ tmp ] ;
prefNumberSuffOnFrame = function prefNumberSuffOnFrame ( strippedCurrent ) {
strippedCurrent . current = strippedCurrent . strippedCurrent ;
( { current : strippedCurrent . strippedCurrent , _ _prefix } = strippedCurrent ) ;
if ( _ _prefix == null ) {
_ _prefix = "" ;
}
let str = strippedCurrent . _ _suffix ;
const sum = _ _prefix + strippedCurrent . current ;
if ( str == null ) {
str = "" ;
}
strippedCurrent . current = sum + str ;
return dependencyMap ( strippedCurrent , arg1 ) ;
} ;
2026-08-24 06:08:38 +00:00
closure _4 = [ "R" , "G" , "B" , "A" ] ;
2026-07-29 08:29:29 +00:00
function colorOnFrame ( nonscaledCurrent ) {
2026-08-24 06:08:38 +00:00
closure _0 = nonscaledCurrent ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
2026-08-24 06:08:38 +00:00
c3 = true ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . current = nonscaledCurrent . nonscaledCurrent ;
const item = closure _4 . forEach ( ( arg0 ) => {
let onFrameResult = c3 ;
if ( c3 ) {
onFrameResult = obj . onFrame ( nonscaledCurrent [ arg0 ] , closure _1 ) ;
}
c3 = onFrameResult ;
items . push ( nonscaledCurrent [ arg0 ] . current ) ;
} ) ;
2026-08-24 06:08:38 +00:00
closure _1 _0 ( closure _1 _1 [ 5 ] ) . clampRGBA ( items ) ;
2026-07-29 08:29:29 +00:00
nonscaledCurrent . nonscaledCurrent = items ;
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
const obj2 = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
nonscaledCurrent . current = obj2 . rgbaArrayToRGBAColor ( closure _1 _0 ( closure _1 _1 [ 5 ] ) . toGammaSpace ( items ) ) ;
2026-07-29 08:29:29 +00:00
return c3 ;
}
function transformationMatrixOnFrame ( arg0 , arg1 ) {
const callback = arg0 ;
const first = arg0 [ 0 ] ;
2026-08-24 06:08:38 +00:00
dependencyMap = arg0 [ 0 ] . current / 100 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
const items1 = [ "translationMatrix" , "scaleMatrix" , "skewMatrix" ] ;
const item = items1 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-24 06:08:38 +00:00
obj = lib ( 1696 ) ;
2026-07-29 08:29:29 +00:00
const tmp2 = dependencyMap ;
2026-08-15 05:55:55 +00:00
const obj2 = lib ( 1696 ) ;
return items . push ( obj . addMatrices ( lib . startMatrices [ arg0 ] , obj2 . scaleMatrix ( lib ( 1696 ) . subtractMatrices ( lib . stopMatrices [ arg0 ] , lib . startMatrices [ arg0 ] ) , tmp2 ) ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
const items2 = [ ] ;
const items3 = [ "x" , "y" , "z" ] ;
[ tmp3 , tmp4 , tmp5 ] = items ;
const item1 = items3 . forEach ( ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
if ( typeof closure _1 _9 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const sum = tmp2 + dependencyMap * ( lib . stopMatrices [ "r" + arg0 ] - tmp2 ) ;
2026-08-15 05:55:55 +00:00
items2 . push ( lib ( 1696 ) . getRotationMatrix ( sum , arg0 ) ) ;
2026-07-29 08:29:29 +00:00
} ) ;
[ tmp7 , tmp8 , tmp9 ] = items2 ;
const onFrameResult = first . onFrame ( arg0 [ 0 ] , arg1 ) ;
2026-08-15 05:55:55 +00:00
let obj2 = callback ( 1696 ) ;
const obj3 = callback ( 1696 ) ;
const multiplyMatricesResult = obj2 . multiplyMatrices ( tmp7 , callback ( 1696 ) . multiplyMatrices ( tmp8 , tmp9 ) ) ;
const obj4 = callback ( 1696 ) ;
const obj5 = callback ( 1696 ) ;
const obj6 = callback ( 1696 ) ;
arg0 . current = obj4 . flatten ( obj5 . multiplyMatrices ( obj6 . multiplyMatrices ( tmp4 , callback ( 1696 ) . multiplyMatrices ( tmp5 , multiplyMatricesResult ) ) , tmp3 ) ) ;
2026-07-29 08:29:29 +00:00
return onFrameResult ;
}
function arrayOnFrame ( current ) {
2026-08-24 06:08:38 +00:00
closure _0 = current ;
closure _1 = arg1 ;
c2 = true ;
2026-07-29 08:29:29 +00:00
current = current . current ;
const item = current . forEach ( ( arg0 , arg1 ) => {
let onFrameResult = c2 ;
if ( c2 ) {
onFrameResult = obj . onFrame ( dependencyMap [ arg1 ] , closure _1 ) ;
}
c2 = onFrameResult ;
dependencyMap . current [ arg1 ] = dependencyMap [ arg1 ] . current ;
} ) ;
return c2 ;
}
function objectOnFrame ( current ) {
2026-08-24 06:08:38 +00:00
obj = { } ;
2026-07-29 08:29:29 +00:00
let flag = true ;
let flag2 = true ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
flag2 = flag ;
while ( keys [ tmp ] !== undefined ) {
let tmp6 = tmp4 ;
let obj2 = current [ tmp4 ] ;
let onFrameResult = flag ;
if ( flag ) {
onFrameResult = obj2 . onFrame ( current [ tmp4 ] , arg1 ) ;
}
obj [ tmp4 ] = current [ tmp4 ] . current ;
flag = onFrameResult ;
continue ;
}
}
current . current = obj ;
return flag2 ;
}
tmp7 . onStart = ( reduceMotion , current , arg2 , current2 ) => {
if ( undefined === reduceMotion . reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof arrayOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
reduceMotion . reduceMotion = transformationMatrixOnFrame . value ;
}
if ( reduceMotion . reduceMotion ) {
if ( undefined !== reduceMotion . toValue ) {
reduceMotion . current = reduceMotion . toValue ;
} else {
callback ( reduceMotion , current , arg2 , current2 ) ;
}
reduceMotion . startTime = 0 ;
reduceMotion . onFrame = ( ) => true ;
} else {
2026-08-24 06:08:38 +00:00
obj = closure _1 _0 ( closure _1 _1 [ 5 ] ) ;
2026-07-29 08:29:29 +00:00
if ( obj . isColor ( current ) ) {
callback = reduceMotion ;
2026-08-24 06:08:38 +00:00
closure _1 = arg2 ;
closure _2 = current2 ;
2026-07-29 08:29:29 +00:00
const items = [ ] ;
let tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
if ( tmp3Result . isColor ( current ) ) {
tmp3Result = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _4 = tmp3Result . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . current ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result1 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result2 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _3 = tmp3Result2 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( current ) ) ;
2026-07-29 08:29:29 +00:00
if ( reduceMotion . toValue ) {
const tmp3Result4 = tmp3 ( tmp4 [ 5 ] ) ;
2026-08-24 06:08:38 +00:00
closure _5 = tmp3Result4 . toLinearSpace ( tmp3 ( tmp4 [ 5 ] ) . convertToRGBA ( reduceMotion . toValue ) ) ;
2026-07-29 08:29:29 +00:00
const tmp3Result5 = tmp3 ( tmp4 [ 5 ] ) ;
}
const tmp3Result3 = tmp3 ( tmp4 [ 5 ] ) ;
}
const item = closure _4 . forEach ( ( arg0 , arg1 ) => {
toValue [ arg0 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg0 ] . current = table2 [ arg1 ] ;
let tmp2 ;
if ( table3 ) {
tmp2 = table3 [ arg1 ] ;
}
toValue [ arg0 ] . toValue = tmp2 ;
let tmp4 ;
if ( dependencyMap ) {
tmp4 = dependencyMap [ arg0 ] ;
}
toValue [ arg0 ] . onStart ( toValue [ arg0 ] , table [ arg1 ] , closure _1 , tmp4 ) ;
items . push ( toValue [ arg0 ] . current ) ;
} ) ;
reduceMotion . unroundedCurrent = items ;
tmp3 ( tmp4 [ 5 ] ) . clampRGBA ( items ) ;
const tmp3Result6 = tmp3 ( tmp4 [ 5 ] ) ;
const tmp3Result7 = tmp3 ( tmp4 [ 5 ] ) ;
reduceMotion . current = tmp3Result7 . rgbaArrayToRGBAColor ( tmp3 ( tmp4 [ 5 ] ) . toGammaSpace ( items ) ) ;
reduceMotion . onFrame = closure _5 ;
const tmp3Result8 = tmp3 ( tmp4 [ 5 ] ) ;
} else {
if ( tmp3Result9 . isAffineMatrixFlat ( current ) ) {
reduceMotion . startMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( current ) ;
const tmp3Result10 = tmp3 ( tmp4 [ 4 ] ) ;
reduceMotion . stopMatrices = tmp3 ( tmp4 [ 4 ] ) . decomposeMatrixIntoMatricesAndAngles ( reduceMotion . toValue ) ;
const _Object = Object ;
reduceMotion [ 0 ] = Object . assign ( { } , closure _2 ) ;
reduceMotion [ 0 ] . current = 0 ;
reduceMotion [ 0 ] . toValue = 100 ;
const first = reduceMotion [ 0 ] ;
const first1 = reduceMotion [ 0 ] ;
let first2 ;
if ( current2 ) {
first2 = current2 [ 0 ] ;
}
first . onStart ( first1 , 0 , arg2 , first2 ) ;
reduceMotion . current = current ;
reduceMotion . onFrame = items ;
const tmp3Result11 = tmp3 ( tmp4 [ 4 ] ) ;
} else {
prefix = globalThis ;
const _Array = Array ;
if ( Array . isArray ( current ) ) {
callback = reduceMotion ;
closure _1 = arg2 ;
closure _2 = current2 ;
const item1 = current . forEach ( ( current ) => {
toValue [ arg1 ] = Object . assign ( { } , dependencyMap ) ;
toValue [ arg1 ] . current = current ;
toValue [ arg1 ] . toValue = toValue . toValue [ arg1 ] ;
let tmp2 ;
if ( dependencyMap ) {
tmp2 = dependencyMap [ arg1 ] ;
}
toValue [ arg1 ] . onStart ( toValue [ arg1 ] , current , closure _1 , tmp2 ) ;
} ) ;
const items1 = [ ] ;
HermesBuiltin . arraySpread ( current , 0 ) ;
reduceMotion . current = items1 ;
reduceMotion . onFrame = arrayOnFrame ;
2026-08-04 21:03:28 +00:00
} else if ( typeof current === "string" ) {
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current === "string" ) {
2026-07-29 08:29:29 +00:00
const match = current . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match ) {
let str2 = match [ 3 ] ;
if ( str2 == null ) {
str2 = "" ;
}
obj = { prefix : null , suffix : null , strippedValue : null } ;
obj [ 0 ] = match [ 1 ] ;
obj [ 1 ] = match [ 4 ] ;
const _parseFloat = parseFloat ;
obj [ 2 ] = parseFloat ( match [ 2 ] + str2 ) ;
} else {
const reanimatedError = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError ;
}
} else {
obj = { strippedValue : null } ;
obj [ 0 ] = current ;
}
( { strippedValue , prefix : reduceMotion . _ _prefix , suffix : reduceMotion . _ _suffix } = obj ) ;
reduceMotion . strippedCurrent = strippedValue ;
2026-08-04 21:03:28 +00:00
if ( typeof colorOnFrame !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof reduceMotion . toValue === "string" ) {
2026-07-29 08:29:29 +00:00
const match1 = str3 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match1 ) {
let str5 = match1 [ 3 ] ;
if ( str5 == null ) {
str5 = "" ;
}
2026-08-24 06:08:38 +00:00
obj1 = { prefix : null , suffix : null , strippedValue : null } ;
2026-07-29 08:29:29 +00:00
obj1 [ 0 ] = match1 [ 1 ] ;
obj1 [ 1 ] = match1 [ 4 ] ;
const _parseFloat2 = parseFloat ;
obj1 [ 2 ] = parseFloat ( match1 [ 2 ] + str5 ) ;
let obj2 = obj1 ;
} else {
const reanimatedError1 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError1 ;
}
} else {
obj2 = { strippedValue : null } ;
obj2 [ 0 ] = str3 ;
}
reduceMotion . current = strippedValue ;
reduceMotion . startValue = strippedValue ;
reduceMotion . toValue = obj2 . strippedValue ;
if ( current2 ) {
if ( current2 !== reduceMotion ) {
2026-08-04 21:03:28 +00:00
if ( typeof tmp21 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-04 21:03:28 +00:00
if ( typeof current2 . current === "string" ) {
2026-07-29 08:29:29 +00:00
const match2 = str7 . match ( /([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/ ) ;
if ( match2 ) {
let str8 = match2 [ 3 ] ;
if ( str8 == null ) {
str8 = "" ;
}
const obj3 = { prefix : null , suffix : null , strippedValue : null } ;
obj3 [ 0 ] = match2 [ 1 ] ;
obj3 [ 1 ] = match2 [ 4 ] ;
obj3 [ 2 ] = prefix . parseFloat ( match2 [ 2 ] + str8 ) ;
let obj4 = obj3 ;
} else {
const reanimatedError2 = new tmp3 ( tmp4 [ 2 ] ) . ReanimatedError ( "Couldn't parse animation value." ) ;
throw reanimatedError2 ;
}
} else {
obj4 = { strippedValue : null } ;
obj4 [ 0 ] = str7 ;
}
( { prefix , strippedValue : current2 . current } = obj4 ) ;
current2 . _ _prefix = prefix ;
current2 . _ _suffix = obj4 . suffix ;
}
}
callback ( reduceMotion , strippedValue , arg2 , current2 ) ;
let str9 = reduceMotion . _ _prefix ;
if ( str9 == null ) {
str9 = "" ;
}
let str10 = reduceMotion . _ _suffix ;
const sum = str9 + reduceMotion . current ;
if ( str10 == null ) {
str10 = "" ;
}
reduceMotion . current = sum + str10 ;
let tmp48 = current2 ;
if ( current2 ) {
tmp48 = current2 !== reduceMotion ;
}
if ( tmp48 ) {
let str11 = current2 . _ _prefix ;
if ( str11 == null ) {
str11 = "" ;
}
let str12 = current2 . _ _suffix ;
const sum1 = str11 + current2 . current ;
if ( str12 == null ) {
str12 = "" ;
}
current2 . current = sum1 + str12 ;
}
reduceMotion . onFrame = closure _3 ;
} else {
2026-08-04 21:03:28 +00:00
if ( typeof current === "object" ) {
2026-07-29 08:29:29 +00:00
if ( null !== current ) {
for ( const key10034 in arg1 ) {
let tmp78 = key10034 ;
let _Object2 = Object ;
let tmp79 = closure _2 ;
arg0 [ key10034 ] = Object . assign ( { } , closure _2 ) ;
arg0 [ key10034 ] . onStart = arg0 . onStart ;
arg0 [ key10034 ] . current = arg1 [ key10034 ] ;
arg0 [ key10034 ] . toValue = arg0 . toValue [ key10034 ] ;
let obj22 = arg0 [ key10034 ] ;
let tmp80 = arg0 [ key10034 ] ;
let tmp81 = arg1 [ key10034 ] ;
let tmp13 ;
if ( arg3 ) {
tmp13 = arg3 [ key10034 ] ;
}
let tmp14 = obj22 ;
let tmp15 = tmp80 ;
let tmp16 = tmp81 ;
let tmp17 = arg2 ;
let tmp18 = tmp13 ;
let onStartResult1 = obj22 . onStart ( tmp80 , tmp81 , arg2 , tmp13 ) ;
continue ;
}
reduceMotion . current = current ;
reduceMotion . onFrame = objectOnFrame ;
}
}
callback ( reduceMotion , current , arg2 , current2 ) ;
}
}
tmp3Result9 = tmp3 ( tmp4 [ 4 ] ) ;
}
return tmp11 ;
}
} ;
fn = tmp7 ;
}
tmp3 = decorateAnimation ;
}
}
defineAnimation . _ _closure = { IN _STYLE _UPDATER : c2 , decorateAnimation , SHOULD _BE _USE _WEB : isJest } ;
defineAnimation . _ _workletHash = 8998026617746 ;
defineAnimation . _ _initData = { code : "function defineAnimation_Pnpm_utilTs9(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,SHOULD_BE_USE_WEB}=this.__closure;if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||SHOULD_BE_USE_WEB){return create();}create.__isAnimationDefinition=true;return create;}" } ;
let closure _12 = { code : "function pnpm_utilTs12(){const{sharedValue}=this.__closure;sharedValue.value=sharedValue.value;}" } ;
let cancelAnimationWeb = function cancelAnimationNative ( value ) {
const _require = value ;
if ( globalThis . _WORKLET ) {
value . value = value . value ;
} else {
2026-08-24 06:08:38 +00:00
obj = _require ( 1661 ) ;
2026-07-29 08:29:29 +00:00
const fn = function n ( ) {
value . value = value . value ;
} ;
obj = { sharedValue : null } ;
obj [ 0 ] = value ;
fn . _ _closure = obj ;
fn . _ _workletHash = 14261344384038 ;
fn . _ _initData = closure _12 ;
obj . runOnUI ( fn ) ( ) ;
}
} ;
2026-08-24 06:08:38 +00:00
let obj3 = { getReduceMotionFromConfig , recognizePrefixSuffix , isColor : call . isColor , toLinearSpace : call . toLinearSpace , convertToRGBA : call . convertToRGBA , clampRGBA : call . clampRGBA , rgbaArrayToRGBAColor : call . rgbaArrayToRGBAColor , toGammaSpace : call . toGammaSpace , decomposeMatrixIntoMatricesAndAngles : isAffineMatrixFlat . decomposeMatrixIntoMatricesAndAngles , applyProgressToMatrix , applyProgressToNumber , getRotationMatrix : isAffineMatrixFlat . getRotationMatrix , multiplyMatrices : isAffineMatrixFlat . multiplyMatrices , flatten : isAffineMatrixFlat . flatten , isAffineMatrixFlat : isAffineMatrixFlat . isAffineMatrixFlat } ;
2026-07-29 08:29:29 +00:00
let obj4 = { IN _STYLE _UPDATER : c2 , decorateAnimation , SHOULD _BE _USE _WEB : isJest } ;
2026-08-24 06:08:38 +00:00
cancelAnimationWeb . _ _closure = { runOnUI : runWorkletOnJS . runOnUI } ;
2026-07-29 08:29:29 +00:00
cancelAnimationWeb . _ _workletHash = 796831326214 ;
cancelAnimationWeb . _ _initData = { code : "function cancelAnimationNative_Pnpm_utilTs11(sharedValue){const{runOnUI}=this.__closure;if(_WORKLET){sharedValue.value=sharedValue.value;}else{runOnUI(function(){'worklet';sharedValue.value=sharedValue.value;})();}}" } ;
if ( isJest ) {
cancelAnimationWeb = function cancelAnimationWeb ( value ) {
value . value = value . value ;
} ;
}
export { isValidLayoutAnimationProp } ;
export { assertEasingIsWorklet } ;
export const initialUpdaterRun = function initialUpdaterRun ( updater ) {
2026-08-24 06:08:38 +00:00
c2 = true ;
2026-07-29 08:29:29 +00:00
c2 = false ;
return updater ( ) ;
} ;
export { recognizePrefixSuffix } ;
export { getReduceMotionFromConfig } ;
export { getReduceMotionForAnimation } ;
export { defineAnimation } ;
export const cancelAnimation = cancelAnimationWeb ;