import { factorySpace as l } from "../../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js";
import { markdownSpace as a } from "../../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js";
const k = {
  continuation: {
    tokenize: Q
  },
  exit: b,
  name: "blockQuote",
  tokenize: x
};
function x(t, e, r) {
  const i = this;
  return u;
  function u(n) {
    if (n === 62) {
      const c = i.containerState;
      return c.open || (t.enter("blockQuote", {
        _container: !0
      }), c.open = !0), t.enter("blockQuotePrefix"), t.enter("blockQuoteMarker"), t.consume(n), t.exit("blockQuoteMarker"), o;
    }
    return r(n);
  }
  function o(n) {
    return a(n) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(n), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(n));
  }
}
function Q(t, e, r) {
  const i = this;
  return u;
  function u(n) {
    return a(n) ? l(t, o, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(n) : o(n);
  }
  function o(n) {
    return t.attempt(k, e, r)(n);
  }
}
function b(t) {
  t.exit("blockQuote");
}
export {
  k as blockQuote
};
//# sourceMappingURL=block-quote.js.map
