UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 786 B
import{r as createLazyPromiseLoader}from"./lazy-promise-CismJCQR.mjs"; //!src/shared/lazy-runtime.ts function createLazyRuntimeSurface(e,t){const n=createLazyPromiseLoader(()=>e().then(t),{cacheRejections:true});return Object.assign(n.load,{peek:n.peek,clear:n.clear})}function createLazyRuntimeModule(e){return createLazyRuntimeSurface(e,e=>e)}function createLazyRuntimeNamedExport(e,t){return createLazyRuntimeSurface(e,e=>e[t])}function createLazyRuntimeMethod(e,t){return async(...n)=>{return await t(await e())(...n)}}function createLazyRuntimeMethodBinder(e){return function(t){return createLazyRuntimeMethod(e,t)}}export{createLazyRuntimeSurface as a,createLazyRuntimeNamedExport as i,createLazyRuntimeMethodBinder as n,createLazyRuntimeModule as r,createLazyRuntimeMethod as t};