| 717 | `,M=[{type:"block-scalar-header",offset:$,indent:z,source:H}];if(!S44(M,w))M.push({type:"newline",offset:-1,indent:z,source:` |
| 718 | `});return{type:"block-scalar",offset:$,indent:z,props:M,source:J}}case'"':return{type:"double-quoted-scalar",offset:$,indent:z,source:O,end:w};case"'":return{type:"single-quoted-scalar",offset:$,indent:z,source:O,end:w};default:return{type:"scalar",offset:$,indent:z,source:O,end:w}}}function sL_(q,K,_={}){let{afterKey:z=!1,implicitKey:Y=!1,inFlow:$=!1,type:A}=_,O="indent"in q?q.indent:null;if(z&&typeof O==="number")O+=2;if(!A)switch(q.type){case"single-quoted-scalar":A="QUOTE_SINGLE";break;case"double-quoted-scalar":A="QUOTE_DOUBLE";break;case"block-scalar":{let j=q.props[0];if(j.type!=="block-scalar-header")throw Error("Invalid block scalar header");A=j.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:A="PLAIN"}let w=h44.stringifyString({type:A,value:K},{implicitKey:Y||O===null,indent:O!==null&&O>0?" ".repeat(O):"",inFlow:$,options:{blockQuote:!0,lineWidth:-1}});switch(w[0]){case"|":case">":tL_(q,w);break;case'"':wh1(q,w,"double-quoted-scalar");break;case"'":wh1(q,w,"single-quoted-scalar");break;default:wh1(q,w,"scalar")}}function tL_(q,K){let _=K.indexOf(` |
| 720 | `;if(q.type==="block-scalar"){let $=q.props[0];if($.type!=="block-scalar-header")throw Error("Invalid block scalar header");$.source=z,q.source=Y}else{let{offset:$}=q,A="indent"in q?q.indent:-1,O=[{type:"block-scalar-header",offset:$,indent:A,source:z}];if(!S44(O,"end"in q?q.end:void 0))O.push({type:"newline",offset:-1,indent:A,source:` |