UNPKG

@forbespro/lead-agent

Version:
2 lines (1 loc) 1.16 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index161.js"),l=require("./index146.js"),s=require("./index159.js"),k={resolve:d,tokenize:h},x={partial:!0,tokenize:p};function d(n){return s.subtokenize(n),n}function h(n,o){let r;return i;function i(t){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),u(t)}function u(t){return t===null?c(t):l.markdownLineEnding(t)?n.check(x,e,c)(t):(n.consume(t),u)}function c(t){return n.exit("chunkContent"),n.exit("content"),o(t)}function e(t){return n.consume(t),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,u}}function p(n,o,r){const i=this;return u;function u(e){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),a.factorySpace(n,c,"linePrefix")}function c(e){if(e===null||l.markdownLineEnding(e))return r(e);const t=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&t&&t[1].type==="linePrefix"&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n.interrupt(i.parser.constructs.flow,r,o)(e)}}exports.content=k;