import { markdownLineEnding as e, markdownSpace as t } from "../micromark-util-character/index.js";
import { factorySpace as n } from "../micromark-factory-space/index.js";
//#region ../../node_modules/micromark-factory-whitespace/index.js
function r(r, i) {
	let a;
	return o;
	function o(s) {
		return e(s) ? (r.enter("lineEnding"), r.consume(s), r.exit("lineEnding"), a = !0, o) : t(s) ? n(r, o, a ? "linePrefix" : "lineSuffix")(s) : i(s);
	}
}
//#endregion
export { r as factoryWhitespace };
