import{h as f}from"./chunk-KRX7QNR4.js";function Ae(e){return typeof e=="undefined"||e===null}f(Ae,"isNothing");function Ee(e){return typeof e=="object"&&e!==null}f(Ee,"isObject");function Oe(e){return Array.isArray(e)?e:Ae(e)?[]:[e]}f(Oe,"toArray");function Ie(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;ic&&(u=" ... ",n=l-c+u.length),i-l>c&&(o=" ...",i=l+c-o.length),{str:u+e.slice(n,i).replace(/\t/g,"\u2192")+o,pos:l-n+u.length}}f(W,"getLine");function G(e,n){return w.repeat(" ",n-e.length)+e}f(G,"padStart");function Ne(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],r=[],u,o=-1;u=i.exec(e.buffer);)r.push(u.index),l.push(u.index+u[0].length),e.position<=u.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var c="",a,t,d=Math.min(e.line+n.linesAfter,r.length).toString().length,p=n.maxLength-(n.indent+d+3);for(a=1;a<=n.linesBefore&&!(o-a<0);a++)t=W(e.buffer,l[o-a],r[o-a],e.position-(l[o]-l[o-a]),p),c=w.repeat(" ",n.indent)+G((e.line-a+1).toString(),d)+" | "+t.str+` `+c;for(t=W(e.buffer,l[o],r[o],e.position,p),c+=w.repeat(" ",n.indent)+G((e.line+1).toString(),d)+" | "+t.str+` `,c+=w.repeat("-",n.indent+d+3+t.pos)+`^ `,a=1;a<=n.linesAfter&&!(o+a>=r.length);a++)t=W(e.buffer,l[o+a],r[o+a],e.position-(l[o]-l[o+a]),p),c+=w.repeat(" ",n.indent)+G((e.line+a+1).toString(),d)+" | "+t.str+` `;return c.replace(/\n$/,"")}f(Ne,"makeSnippet");var Ai=Ne,yi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_i=["scalar","sequence","mapping"];function Re(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(l){n[String(l)]=i})}),n}f(Re,"compileStyleAliases");function Me(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(yi.indexOf(i)===-1)throw new x('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Re(n.styleAliases||null),_i.indexOf(this.kind)===-1)throw new x('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}f(Me,"Type$1");var C=Me;function re(e,n){var i=[];return e[n].forEach(function(l){var r=i.length;i.forEach(function(u,o){u.tag===l.tag&&u.kind===l.kind&&u.multi===l.multi&&(r=o)}),i[r]=l}),i}f(re,"compileList");function Ye(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function l(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(f(l,"collectType"),n=0,i=arguments.length;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:f(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:f(function(e){return e.toString(10)},"decimal"),hexadecimal:f(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ii=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Qe(e){return!(e===null||!Ii.test(e)||e[e.length-1]==="_")}f(Qe,"resolveYamlFloat");function Ve(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}f(Ve,"constructYamlFloat");var ki=/^[-+]?[0-9]+e/;function Xe(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(e))return"-0.0";return i=e.toString(10),ki.test(i)?i.replace("e",".e"):i}f(Xe,"representYamlFloat");function Ze(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||w.isNegativeZero(e))}f(Ze,"isFloat");var Li=new C("tag:yaml.org,2002:float",{kind:"scalar",resolve:Qe,construct:Ve,predicate:Ze,represent:Xe,defaultStyle:"lowercase"}),ze=xi.extend({implicit:[Ti,Ei,Oi,Li]}),Ni=ze,Je=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),en=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function nn(e){return e===null?!1:Je.exec(e)!==null||en.exec(e)!==null}f(nn,"resolveYamlTimestamp");function rn(e){var n,i,l,r,u,o,c,a=0,t=null,d,p,s;if(n=Je.exec(e),n===null&&(n=en.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],l=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,l,r));if(u=+n[4],o=+n[5],c=+n[6],n[7]){for(a=n[7].slice(0,3);a.length<3;)a+="0";a=+a}return n[9]&&(d=+n[10],p=+(n[11]||0),t=(d*60+p)*6e4,n[9]==="-"&&(t=-t)),s=new Date(Date.UTC(i,l,r,u,o,c,a)),t&&s.setTime(s.getTime()-t),s}f(rn,"constructYamlTimestamp");function ln(e){return e.toISOString()}f(ln,"representYamlTimestamp");var Ri=new C("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nn,construct:rn,instanceOf:Date,represent:ln});function on(e){return e==="<<"||e===null}f(on,"resolveYamlMerge");var Mi=new C("tag:yaml.org,2002:merge",{kind:"scalar",resolve:on}),_e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function un(e){if(e===null)return!1;var n,i,l=0,r=e.length,u=_e;for(i=0;i64)){if(n<0)return!1;l+=6}return l%8===0}f(un,"resolveYamlBinary");function cn(e){var n,i,l=e.replace(/[\r\n=]/g,""),r=l.length,u=_e,o=0,c=[];for(n=0;n>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|u.indexOf(l.charAt(n));return i=r%4*6,i===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):i===18?(c.push(o>>10&255),c.push(o>>2&255)):i===12&&c.push(o>>4&255),new Uint8Array(c)}f(cn,"constructYamlBinary");function fn(e){var n="",i=0,l,r,u=e.length,o=_e;for(l=0;l>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[l];return r=u%3,r===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):r===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):r===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}f(fn,"representYamlBinary");function an(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}f(an,"isBinary");var Yi=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:un,construct:cn,predicate:an,represent:fn}),Fi=Object.prototype.hasOwnProperty,Pi=Object.prototype.toString;function tn(e){if(e===null)return!0;var n=[],i,l,r,u,o,c=e;for(i=0,l=c.length;i>10)+55296,(e-65536&1023)+56320)}f(bn,"charFromCodepoint");var xn=new Array(256),Tn=new Array(256);for(N=0;N<256;N++)xn[N]=oe(N)?1:0,Tn[N]=oe(N);var N;function En(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||gn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}f(En,"State$1");function we(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=Ai(i),new x(n,i)}f(we,"generateError");function h(e,n){throw we(e,n)}f(h,"throwError");function H(e,n){e.onWarning&&e.onWarning.call(null,we(e,n))}f(H,"throwWarning");var Te={YAML:f(function(n,i,l){var r,u,o;n.version!==null&&h(n,"duplication of %YAML directive"),l.length!==1&&h(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),r===null&&h(n,"ill-formed argument of the YAML directive"),u=parseInt(r[1],10),o=parseInt(r[2],10),u!==1&&h(n,"unacceptable YAML version of the document"),n.version=l[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&H(n,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:f(function(n,i,l){var r,u;l.length!==2&&h(n,"TAG directive accepts exactly two arguments"),r=l[0],u=l[1],yn.test(r)||h(n,"ill-formed tag handle (first argument) of the TAG directive"),L.call(n.tagMap,r)&&h(n,'there is a previously declared suffix for "'+r+'" tag handle'),_n.test(u)||h(n,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch(o){h(n,"tag prefix is malformed: "+u)}n.tagMap[r]=u},"handleTagDirective")};function I(e,n,i,l){var r,u,o,c;if(n1&&(e.result+=w.repeat(` `,n-1))}f(ee,"writeFoldedLines");function On(e,n,i){var l,r,u,o,c,a,t,d,p=e.kind,s=e.result,m;if(m=e.input.charCodeAt(e.position),b(m)||R(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(r=e.input.charCodeAt(e.position+1),b(r)||i&&R(r)))return!1;for(e.kind="scalar",e.result="",u=o=e.position,c=!1;m!==0;){if(m===58){if(r=e.input.charCodeAt(e.position+1),b(r)||i&&R(r))break}else if(m===35){if(l=e.input.charCodeAt(e.position-1),b(l))break}else{if(e.position===e.lineStart&&q(e)||i&&R(m))break;if(E(m))if(a=e.line,t=e.lineStart,d=e.lineIndent,_(e,!1,-1),e.lineIndent>=n){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=t,e.lineIndent=d;break}}c&&(I(e,u,o,!1),ee(e,e.line-a),u=o=e.position,c=!1),k(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return I(e,u,o,!1),e.result?!0:(e.kind=p,e.result=s,!1)}f(On,"readPlainScalar");function In(e,n){var i,l,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(I(e,l,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)l=e.position,e.position++,r=e.position;else return!0;else E(i)?(I(e,l,r,!0),ee(e,_(e,!1,n)),l=r=e.position):e.position===e.lineStart&&q(e)?h(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);h(e,"unexpected end of the stream within a single quoted scalar")}f(In,"readSingleQuotedScalar");function kn(e,n){var i,l,r,u,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=l=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return I(e,i,e.position,!0),e.position++,!0;if(c===92){if(I(e,i,e.position,!0),c=e.input.charCodeAt(++e.position),E(c))_(e,!1,n);else if(c<256&&xn[c])e.result+=Tn[c],e.position++;else if((o=Cn(c))>0){for(r=o,u=0;r>0;r--)c=e.input.charCodeAt(++e.position),(o=wn(c))>=0?u=(u<<4)+o:h(e,"expected hexadecimal character");e.result+=bn(u),e.position++}else h(e,"unknown escape sequence");i=l=e.position}else E(c)?(I(e,i,l,!0),ee(e,_(e,!1,n)),i=l=e.position):e.position===e.lineStart&&q(e)?h(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}h(e,"unexpected end of the stream within a double quoted scalar")}f(kn,"readDoubleQuotedScalar");function Ln(e,n){var i=!0,l,r,u,o=e.tag,c,a=e.anchor,t,d,p,s,m,g=Object.create(null),A,y,T,v;if(v=e.input.charCodeAt(e.position),v===91)d=93,m=!1,c=[];else if(v===123)d=125,m=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(++e.position);v!==0;){if(_(e,!0,n),v=e.input.charCodeAt(e.position),v===d)return e.position++,e.tag=o,e.anchor=a,e.kind=m?"mapping":"sequence",e.result=c,!0;i?v===44&&h(e,"expected the node content, but found ','"):h(e,"missed comma between flow collection entries"),y=A=T=null,p=s=!1,v===63&&(t=e.input.charCodeAt(e.position+1),b(t)&&(p=s=!0,e.position++,_(e,!0,n))),l=e.line,r=e.lineStart,u=e.position,Y(e,n,Q,!1,!0),y=e.tag,A=e.result,_(e,!0,n),v=e.input.charCodeAt(e.position),(s||e.line===l)&&v===58&&(p=!0,v=e.input.charCodeAt(++e.position),_(e,!0,n),Y(e,n,Q,!1,!0),T=e.result),m?M(e,c,g,y,A,T,l,r,u):p?c.push(M(e,null,g,y,A,T,l,r,u)):c.push(A),_(e,!0,n),v=e.input.charCodeAt(e.position),v===44?(i=!0,v=e.input.charCodeAt(++e.position)):i=!1}h(e,"unexpected end of the stream within a flow collection")}f(Ln,"readFlowCollection");function Nn(e,n){var i,l,r=ie,u=!1,o=!1,c=n,a=0,t=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)l=!1;else if(p===62)l=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)ie===r?r=p===43?xe:Ki:h(e,"repeat of a chomping mode identifier");else if((d=Sn(p))>=0)d===0?h(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?h(e,"repeat of an indentation width identifier"):(c=n+d-1,o=!0);else break;if(k(p)){do p=e.input.charCodeAt(++e.position);while(k(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!E(p)&&p!==0)}for(;p!==0;){for(J(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!o||e.lineIndentc&&(c=e.lineIndent),E(p)){a++;continue}if(e.lineIndentn)&&a!==0)h(e,"bad indentation of a sequence entry");else if(e.lineIndentn)&&(y&&(o=e.line,c=e.lineStart,a=e.position),Y(e,n,V,!0,r)&&(y?g=e.result:A=e.result),y||(M(e,p,s,m,g,A,o,c,a),m=g=A=null),_(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>n)&&v!==0)h(e,"bad indentation of a mapping entry");else if(e.lineIndentn?a=1:e.lineIndent===n?a=0:e.lineIndentn?a=1:e.lineIndent===n?a=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),p=0,s=e.implicitTypes.length;p"),e.result!==null&&g.kind!==e.kind&&h(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}f(Y,"composeNode");function Pn(e){var n=e.position,i,l,r,u=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(u=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(i,e.position),r=[],l.length<1&&h(e,"directive name must not be less than one character in length");o!==0;){for(;k(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!E(o));break}if(E(o))break;for(i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(i,e.position))}o!==0&&J(e),L.call(Te,l)?Te[l](e,l,r):H(e,'unknown document directive "'+l+'"')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):u&&h(e,"directives end mark is expected"),Y(e,e.lineIndent-1,V,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Wi.test(e.input.slice(n,e.position))&&H(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position=55296&&i<=56319&&n+1=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}f(P,"codePointAt");function be(e){var n=/^\n* /;return n.test(e)}f(be,"needIndentIndicator");var ei=1,he=2,ni=3,ii=4,F=5;function ri(e,n,i,l,r,u,o,c){var a,t=0,d=null,p=!1,s=!1,m=l!==-1,g=-1,A=zn(P(e,0))&&Jn(P(e,e.length-1));if(n||o)for(a=0;a=65536?a+=2:a++){if(t=P(e,a),!D(t))return F;A=A&&pe(t,d,c),d=t}else{for(a=0;a=65536?a+=2:a++){if(t=P(e,a),t===j)p=!0,m&&(s=s||a-g-1>l&&e[g+1]!==" ",g=a);else if(!D(t))return F;A=A&&pe(t,d,c),d=t}s=s||m&&a-g-1>l&&e[g+1]!==" "}return!p&&!s?A&&!o&&!r(e)?ei:u===U?F:he:i>9&&be(e)?F:o?u===U?F:he:s?ii:ni}f(ri,"chooseScalarStyle");function li(e,n,i,l,r){e.dump=function(){if(n.length===0)return e.quotingType===U?'""':"''";if(!e.noCompatMode&&(pr.indexOf(n)!==-1||hr.test(n)))return e.quotingType===U?'"'+n+'"':"'"+n+"'";var u=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),c=l||e.flowLevel>-1&&i>=e.flowLevel;function a(t){return Zn(e,t)}switch(f(a,"testAmbiguity"),ri(n,c,e.indent,o,a,e.quotingType,e.forceQuotes&&!l,r)){case ei:return n;case he:return"'"+n.replace(/'/g,"''")+"'";case ni:return"|"+de(n,e.indent)+se(ae(n,u));case ii:return">"+de(n,e.indent)+se(ae(oi(n,o),u));case F:return'"'+ui(n)+'"';default:throw new x("impossible error: invalid scalar style")}}()}f(li,"writeScalar");function de(e,n){var i=be(e)?String(n):"",l=e[e.length-1]===` `,r=l&&(e[e.length-2]===` `||e===` `),u=r?"+":l?"":"-";return i+u+` `}f(de,"blockHeader");function se(e){return e[e.length-1]===` `?e.slice(0,-1):e}f(se,"dropEndingNewline");function oi(e,n){for(var i=/(\n+)([^\n]*)/g,l=function(){var t=e.indexOf(` `);return t=t!==-1?t:e.length,i.lastIndex=t,me(e.slice(0,t),n)}(),r=e[0]===` `||e[0]===" ",u,o;o=i.exec(e);){var c=o[1],a=o[2];u=a[0]===" ",l+=c+(!r&&!u&&a!==""?` `:"")+me(a,n),r=u}return l}f(oi,"foldString");function me(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,l,r=0,u,o=0,c=0,a="";l=i.exec(e);)c=l.index,c-r>n&&(u=o>r?o:c,a+=` `+e.slice(r,u),r=u+1),o=c;return a+=` `,e.length-r>n&&o>r?a+=e.slice(r,o)+` `+e.slice(o+1):a+=e.slice(r),a.slice(1)}f(me,"foldLine");function ui(e){for(var n="",i=0,l,r=0;r=65536?r+=2:r++)i=P(e,r),l=S[i],!l&&D(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=l||Vn(i);return n}f(ui,"escapeString");function ci(e,n,i){var l="",r=e.tag,u,o,c;for(u=0,o=i.length;u1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),O(e,n,t,!1,!1)&&(d+=e.dump,l+=d));e.tag=r,e.dump="{"+l+"}"}f(fi,"writeFlowMapping");function ai(e,n,i,l){var r="",u=e.tag,o=Object.keys(i),c,a,t,d,p,s;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new x("sortKeys must be a boolean or a function");for(c=0,a=o.length;c1024,p&&(e.dump&&j===e.dump.charCodeAt(0)?s+="?":s+="? "),s+=e.dump,p&&(s+=Z(e,n)),O(e,n+1,d,!0,p)&&(e.dump&&j===e.dump.charCodeAt(0)?s+=":":s+=": ",s+=e.dump,r+=s));e.tag=u,e.dump=r||"{}"}f(ai,"writeBlockMapping");function ve(e,n,i){var l,r,u,o,c,a;for(r=i?e.explicitTypes:e.implicitTypes,u=0,o=r.length;u tag resolver accepts not "'+a+'" style');e.dump=l}return!0}return!1}f(ve,"detectType");function O(e,n,i,l,r,u,o){e.tag=null,e.dump=i,ve(e,i,!1)||ve(e,i,!0);var c=jn.call(e.dump),a=l,t;l&&(l=e.flowLevel<0||e.flowLevel>n);var d=c==="[object Object]"||c==="[object Array]",p,s;if(d&&(p=e.duplicates.indexOf(i),s=p!==-1),(e.tag!==null&&e.tag!=="?"||s||e.indent!==2&&n>0)&&(r=!1),s&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&s&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")l&&Object.keys(e.dump).length!==0?(ai(e,n,e.dump,r),s&&(e.dump="&ref_"+p+e.dump)):(fi(e,n,e.dump),s&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?ge(e,n-1,e.dump,r):ge(e,n,e.dump,r),s&&(e.dump="&ref_"+p+e.dump)):(ci(e,n,e.dump),s&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&li(e,e.dump,n,u,a);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(t=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?t="!"+t:t.slice(0,18)==="tag:yaml.org,2002:"?t="!!"+t.slice(18):t="!<"+t+">",e.dump=t+" "+e.dump)}return!0}f(O,"writeNode");function ti(e,n){var i=[],l=[],r,u;for(z(e,i,l),r=0,u=l.length;r