2026-07-20 16:05:17 +00:00
// Module ID: 1632
2026-07-21 22:01:30 +00:00
// Function ID: 18243
2026-07-20 16:05:17 +00:00
// Name: createWorkletRuntime
// Dependencies: [4294967295]
// Exports: createWorkletRuntime
// Module 1632 (createWorkletRuntime)
const _module = require ( dependencyMap [ 0 ] ) ;
let closure _3 = _module . shouldBeUseWeb ( ) ;
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 ) {
const global = initializer ;
const require = globalThis . _ _reanimatedLoggerConfig ;
const ReanimatedModule = require ( dependencyMap [ 1 ] ) . ReanimatedModule ;
let obj = require ( dependencyMap [ 2 ] ) ;
/* 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 ( ) ; }
obj = { registerReanimatedError : require ( dependencyMap [ 3 ] ) . registerReanimatedError , registerLoggerConfig : require ( dependencyMap [ 4 ] ) . registerLoggerConfig , config : globalThis . _ _reanimatedLoggerConfig , setupCallGuard : require ( dependencyMap [ 5 ] ) . setupCallGuard , setupConsole : require ( dependencyMap [ 5 ] ) . setupConsole , initializer } ;
pnpm _runtimesTs1 . _ _closure = obj ;
pnpm _runtimesTs1 . _ _workletHash = 8531807001072 ;
pnpm _runtimesTs1 . _ _initData = closure _4 ;
return ReanimatedModule . createWorkletRuntime ( arg0 , obj . makeShareableCloneRecursive ( pnpm _runtimesTs1 ) ) ;
} ;
export const runOnRuntime = ( ) => {
function runOnRuntime ( arg0 , arg1 ) {
return globalThis . _WORKLET ? ( ) => {
const length = arguments . length ;
const array = new Array ( length ) ;
const arg0 = array ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
let obj = arg1 ( closure _2 [ 2 ] ) ;
/* worklet (recovered source) */ function pnpm _runtimesTs3 ( ) { const { worklet , args } = this . _ _closure ; worklet ( ... args ) ; }
obj = { worklet : arg1 , args : array } ;
pnpm _runtimesTs3 . _ _closure = obj ;
pnpm _runtimesTs3 . _ _workletHash = 1376644884193 ;
pnpm _runtimesTs3 . _ _initData = closure _6 ;
return arg0 . _scheduleOnRuntime ( arg0 , obj . makeShareableCloneOnUIRecursive ( pnpm _runtimesTs3 ) ) ;
} : ( ) => {
const length = arguments . length ;
const array = new Array ( length ) ;
const arg0 = array ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
const ReanimatedModule = arg1 ( closure _2 [ 1 ] ) . ReanimatedModule ;
let obj = arg1 ( closure _2 [ 2 ] ) ;
/* worklet (recovered source) */ function pnpm _runtimesTs4 ( ) { const { worklet , args } = this . _ _closure ; worklet ( ... args ) ; }
obj = { worklet : arg1 , args : array } ;
pnpm _runtimesTs4 . _ _closure = obj ;
pnpm _runtimesTs4 . _ _workletHash = 10918069222950 ;
pnpm _runtimesTs4 . _ _initData = closure _7 ;
return ReanimatedModule . scheduleOnRuntime ( arg0 , obj . makeShareableCloneRecursive ( pnpm _runtimesTs4 ) ) ;
} ;
}
runOnRuntime . _ _closure = { _ _DEV _ _ : false , SHOULD _BE _USE _WEB : closure _3 , isWorkletFunction : require ( dependencyMap [ 6 ] ) . isWorkletFunction , makeShareableCloneOnUIRecursive : require ( dependencyMap [ 2 ] ) . makeShareableCloneOnUIRecursive , ReanimatedModule : require ( dependencyMap [ 1 ] ) . ReanimatedModule , makeShareableCloneRecursive : require ( dependencyMap [ 2 ] ) . makeShareableCloneRecursive } ;
runOnRuntime . _ _workletHash = 14671185280560 ;
runOnRuntime . _ _initData = closure _5 ;
return runOnRuntime ;
} ( ) ;