6Q6XGOFLRHPFQPVUKYTRWS4BKJ6G65IUWSS7HBQKV5HYZDEYCICAC function eval(buf)local f = load('return '..buf, 'REPL')if f thenreturn call_gather(f)endlocal f, err = load(buf, 'REPL')if f thenreturn call_gather(f)elsereturn {err}endend-- based on https://github.com/hoelzro/lua-replfunction call_gather(f)local success, results = gather_results(xpcall(f, function(...) return debug.traceback() end))return resultsendfunction gather_results(success, ...)local n = select('#', ...)return success, { n = n, ... }end