2026-07-20 16:05:17 +00:00
// Module ID: 1632
2026-07-25 08:10:48 +00:00
// Function ID: 18252
2026-07-20 16:05:17 +00:00
// Name: createWorkletRuntime
2026-07-23 10:11:24 +00:00
// Dependencies: [1585, 1590, 1612, 1593, 1586, 1584, 1607]
2026-07-20 16:05:17 +00:00
// Exports: createWorkletRuntime
// Module 1632 (createWorkletRuntime)
2026-07-23 10:11:24 +00:00
import isJest from "isJest" ;
isJest = isJest . shouldBeUseWeb ( ) ;
2026-07-20 16:05:17 +00:00
let closure _4 = { code : "function pnpm_runtimesTs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}" } ;
let closure _5 = { code : "function runOnRuntime_Pnpm_runtimesTs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return ReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}" } ;
let closure _6 = { code : "function pnpm_runtimesTs3(){const{worklet,args}=this.__closure;worklet(...args);}" } ;
let closure _7 = { code : "function pnpm_runtimesTs4(){const{worklet,args}=this.__closure;worklet(...args);}" } ;
export const createWorkletRuntime = function createWorkletRuntime ( arg0 , initializer ) {
2026-07-23 10:11:24 +00:00
let closure _0 = initializer ;
const ReanimatedModule = _ _reanimatedLoggerConfig ( 1590 ) . ReanimatedModule ;
let obj = _ _reanimatedLoggerConfig ( 1612 ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _runtimesTs1 ( ) { const { registerReanimatedError , registerLoggerConfig , config , setupCallGuard , setupConsole , initializer } = this . _ _closure ; var _initializer ; registerReanimatedError ( ) ; registerLoggerConfig ( config ) ; setupCallGuard ( ) ; setupConsole ( ) ; ( _initializer = initializer ) === null || _initializer === void 0 || _initializer ( ) ; }
2026-07-23 10:11:24 +00:00
obj = { registerReanimatedError : _ _reanimatedLoggerConfig ( 1593 ) . registerReanimatedError , registerLoggerConfig : _ _reanimatedLoggerConfig ( 1586 ) . registerLoggerConfig , config : globalThis . _ _reanimatedLoggerConfig , setupCallGuard : _ _reanimatedLoggerConfig ( 1584 ) . setupCallGuard , setupConsole : _ _reanimatedLoggerConfig ( 1584 ) . setupConsole , initializer } ;
2026-07-20 16:05:17 +00:00
pnpm _runtimesTs1 . _ _closure = obj ;
pnpm _runtimesTs1 . _ _workletHash = 8531807001072 ;
pnpm _runtimesTs1 . _ _initData = closure _4 ;
return ReanimatedModule . createWorkletRuntime ( arg0 , obj . makeShareableCloneRecursive ( pnpm _runtimesTs1 ) ) ;
} ;
2026-07-23 10:11:24 +00:00
export const runOnRuntime = ( ( ) => {
2026-07-20 16:05:17 +00:00
function runOnRuntime ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
return globalThis . _WORKLET ? ( ( ) => {
2026-07-20 16:05:17 +00:00
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
2026-07-23 10:11:24 +00:00
let obj = outer2 _1 ( outer2 _2 [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _runtimesTs3 ( ) { const { worklet , args } = this . _ _closure ; worklet ( ... args ) ; }
2026-07-23 10:11:24 +00:00
obj = { worklet : closure _1 , args : array } ;
2026-07-20 16:05:17 +00:00
pnpm _runtimesTs3 . _ _closure = obj ;
pnpm _runtimesTs3 . _ _workletHash = 1376644884193 ;
2026-07-23 10:11:24 +00:00
pnpm _runtimesTs3 . _ _initData = outer2 _6 ;
return outer2 _0 . _scheduleOnRuntime ( array , obj . makeShareableCloneOnUIRecursive ( pnpm _runtimesTs3 ) ) ;
} ) : ( ( ) => {
2026-07-20 16:05:17 +00:00
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
2026-07-23 10:11:24 +00:00
const ReanimatedModule = outer2 _1 ( outer2 _2 [ 1 ] ) . ReanimatedModule ;
let obj = outer2 _1 ( outer2 _2 [ 2 ] ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm _runtimesTs4 ( ) { const { worklet , args } = this . _ _closure ; worklet ( ... args ) ; }
2026-07-23 10:11:24 +00:00
obj = { worklet : closure _1 , args : array } ;
2026-07-20 16:05:17 +00:00
pnpm _runtimesTs4 . _ _closure = obj ;
pnpm _runtimesTs4 . _ _workletHash = 10918069222950 ;
2026-07-23 10:11:24 +00:00
pnpm _runtimesTs4 . _ _initData = outer2 _7 ;
return ReanimatedModule . scheduleOnRuntime ( array , obj . makeShareableCloneRecursive ( pnpm _runtimesTs4 ) ) ;
} ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
runOnRuntime . _ _closure = { _ _DEV _ _ : false , SHOULD _BE _USE _WEB : isJest , isWorkletFunction : require ( 1607 ) /* isWorkletFunction */ . isWorkletFunction , makeShareableCloneOnUIRecursive : require ( 1612 ) /* isPlainJSObject */ . makeShareableCloneOnUIRecursive , ReanimatedModule : require ( 1590 ) /* ReanimatedModule */ . ReanimatedModule , makeShareableCloneRecursive : require ( 1612 ) /* isPlainJSObject */ . makeShareableCloneRecursive } ;
2026-07-20 16:05:17 +00:00
runOnRuntime . _ _workletHash = 14671185280560 ;
runOnRuntime . _ _initData = closure _5 ;
return runOnRuntime ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;