import { parseLine as a, LineData as o } from "./parser.js"; function f(u, i = " ") { let e = null, n = o(), t = !1; async function r() { return e = await u(), e === null ? t = !0 : a(e, n, i), { line: e, lineData: n, ended: t, next: r, current: l }; } function l() { return { line: e, lineData: n, ended: t, next: r, current: l }; } return { next: r, current: l }; } export { f as document };