import { markdownSpace as e } from "../../micromark-util-character/index.js";
import { factorySpace as t } from "../../micromark-factory-space/index.js";
//#region ../../node_modules/micromark-core-commonmark/lib/block-quote.js
var n = {
	continuation: { tokenize: i },
	exit: a,
	name: "blockQuote",
	tokenize: r
};
function r(t, n, r) {
	let i = this;
	return a;
	function a(e) {
		if (e === 62) {
			let n = i.containerState;
			return n.open ||= (t.enter("blockQuote", { _container: !0 }), !0), t.enter("blockQuotePrefix"), t.enter("blockQuoteMarker"), t.consume(e), t.exit("blockQuoteMarker"), o;
		}
		return r(e);
	}
	function o(r) {
		return e(r) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(r), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), n) : (t.exit("blockQuotePrefix"), n(r));
	}
}
function i(r, i, a) {
	let o = this;
	return s;
	function s(n) {
		return e(n) ? t(r, c, "linePrefix", o.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : c(n);
	}
	function c(e) {
		return r.attempt(n, i, a)(e);
	}
}
function a(e) {
	e.exit("blockQuote");
}
//#endregion
export { n as blockQuote };
