@visulima/cerebro 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/chunk-I7LO42GD.cjs +9 -0
- package/dist/chunk-I7LO42GD.cjs.map +1 -0
- package/dist/chunk-PX2N3C3U.js +5 -0
- package/dist/chunk-PX2N3C3U.js.map +1 -0
- package/dist/has-new-version-MBVEY2QZ.js +158 -0
- package/dist/has-new-version-MBVEY2QZ.js.map +1 -0
- package/dist/has-new-version-PIQP5KAJ.cjs +164 -0
- package/dist/has-new-version-PIQP5KAJ.cjs.map +1 -0
- package/dist/index.cjs +19 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/package.json +159 -158
- package/dist/has-new-version-RHNN4QW4.cjs +0 -14
- package/dist/has-new-version-RHNN4QW4.cjs.map +0 -1
- package/dist/has-new-version-UY375FY3.js +0 -10
- package/dist/has-new-version-UY375FY3.js.map +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkI7LO42GD_cjs = require('./chunk-I7LO42GD.cjs');
|
|
4
|
+
var fs = require('fs');
|
|
5
|
+
var url = require('url');
|
|
6
|
+
require('fs/promises');
|
|
7
|
+
var process$1 = require('process');
|
|
8
|
+
var path = require('path');
|
|
9
|
+
var zlib = require('zlib');
|
|
10
|
+
require('child_process');
|
|
11
|
+
var https = require('https');
|
|
12
|
+
|
|
13
|
+
var O=chunkI7LO42GD_cjs.a(P=>{chunkI7LO42GD_cjs.c();var rs=Symbol.for("yaml.alias"),Xi=Symbol.for("yaml.document"),rt=Symbol.for("yaml.map"),Zi=Symbol.for("yaml.pair"),as=Symbol.for("yaml.scalar"),at=Symbol.for("yaml.seq"),Y=Symbol.for("yaml.node.type"),Fo=s=>!!s&&typeof s=="object"&&s[Y]===rs,Bo=s=>!!s&&typeof s=="object"&&s[Y]===Xi,jo=s=>!!s&&typeof s=="object"&&s[Y]===rt,Ro=s=>!!s&&typeof s=="object"&&s[Y]===Zi,en=s=>!!s&&typeof s=="object"&&s[Y]===as,xo=s=>!!s&&typeof s=="object"&&s[Y]===at;function tn(s){if(s&&typeof s=="object")switch(s[Y]){case rt:case at:return !0}return !1}function Uo(s){if(s&&typeof s=="object")switch(s[Y]){case rs:case rt:case as:case at:return !0}return !1}var Ko=s=>(en(s)||tn(s))&&!!s.anchor;P.ALIAS=rs;P.DOC=Xi;P.MAP=rt;P.NODE_TYPE=Y;P.PAIR=Zi;P.SCALAR=as;P.SEQ=at;P.hasAnchor=Ko;P.isAlias=Fo;P.isCollection=tn;P.isDocument=Bo;P.isMap=jo;P.isNode=Uo;P.isPair=Ro;P.isScalar=en;P.isSeq=xo;});var Le=chunkI7LO42GD_cjs.a(os=>{chunkI7LO42GD_cjs.c();var I=O(),_=Symbol("break visit"),sn=Symbol("skip children"),x=Symbol("remove node");function ot(s,e){let t=nn(e);I.isDocument(s)?de(null,s.contents,t,Object.freeze([s]))===x&&(s.contents=null):de(null,s,t,Object.freeze([]));}ot.BREAK=_;ot.SKIP=sn;ot.REMOVE=x;function de(s,e,t,i){let n=rn(s,e,t,i);if(I.isNode(n)||I.isPair(n))return an(s,i,n),de(s,n,t,i);if(typeof n!="symbol"){if(I.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let a=de(r,e.items[r],t,i);if(typeof a=="number")r=a-1;else {if(a===_)return _;a===x&&(e.items.splice(r,1),r-=1);}}}else if(I.isPair(e)){i=Object.freeze(i.concat(e));let r=de("key",e.key,t,i);if(r===_)return _;r===x&&(e.key=null);let a=de("value",e.value,t,i);if(a===_)return _;a===x&&(e.value=null);}}return n}async function lt(s,e){let t=nn(e);I.isDocument(s)?await pe(null,s.contents,t,Object.freeze([s]))===x&&(s.contents=null):await pe(null,s,t,Object.freeze([]));}lt.BREAK=_;lt.SKIP=sn;lt.REMOVE=x;async function pe(s,e,t,i){let n=await rn(s,e,t,i);if(I.isNode(n)||I.isPair(n))return an(s,i,n),pe(s,n,t,i);if(typeof n!="symbol"){if(I.isCollection(e)){i=Object.freeze(i.concat(e));for(let r=0;r<e.items.length;++r){let a=await pe(r,e.items[r],t,i);if(typeof a=="number")r=a-1;else {if(a===_)return _;a===x&&(e.items.splice(r,1),r-=1);}}}else if(I.isPair(e)){i=Object.freeze(i.concat(e));let r=await pe("key",e.key,t,i);if(r===_)return _;r===x&&(e.key=null);let a=await pe("value",e.value,t,i);if(a===_)return _;a===x&&(e.value=null);}}return n}function nn(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function rn(s,e,t,i){if(typeof t=="function")return t(s,e,i);if(I.isMap(e))return t.Map?.(s,e,i);if(I.isSeq(e))return t.Seq?.(s,e,i);if(I.isPair(e))return t.Pair?.(s,e,i);if(I.isScalar(e))return t.Scalar?.(s,e,i);if(I.isAlias(e))return t.Alias?.(s,e,i)}function an(s,e,t){let i=e[e.length-1];if(I.isCollection(i))i.items[s]=t;else if(I.isPair(i))s==="key"?i.key=t:i.value=t;else if(I.isDocument(i))i.contents=t;else {let n=I.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}os.visit=ot;os.visitAsync=lt;});var ls=chunkI7LO42GD_cjs.a(ln=>{chunkI7LO42GD_cjs.c();var on=O(),Yo=Le(),Jo={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Vo=s=>s.replace(/[!,[\]{}]/g,e=>Jo[e]),qe=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t);}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return !1;let[r,a]=i;return this.tags[r]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=i;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let a=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,a),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return "!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}let[,i,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let r=this.tags[i];if(r)try{return r+decodeURIComponent(n)}catch(a){return t(String(a)),null}return i==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+Vo(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(e&&i.length>0&&on.isNode(e.contents)){let r={};Yo.visit(e.contents,(a,o)=>{on.isNode(o)&&o.tag&&(r[o.tag]=!0);}),n=Object.keys(r);}else n=[];for(let[r,a]of i)r==="!!"&&a==="tag:yaml.org,2002:"||(!e||n.some(o=>o.startsWith(a)))&&t.push(`%TAG ${r} ${a}`);return t.join(`
|
|
14
|
+
`)}};qe.defaultYaml={explicit:!1,version:"1.2"};qe.defaultTags={"!!":"tag:yaml.org,2002:"};ln.Directives=qe;});var ct=chunkI7LO42GD_cjs.a(Te=>{chunkI7LO42GD_cjs.c();var cn=O(),Wo=Le();function Go(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return !0}function fn(s){let e=new Set;return Wo.visit(s,{Value(t,i){i.anchor&&e.add(i.anchor);}}),e}function un(s,e){for(let t=1;;++t){let i=`${s}${t}`;if(!e.has(i))return i}}function Qo(s,e){let t=[],i=new Map,n=null;return {onAnchor:r=>{t.push(r),n||(n=fn(s));let a=un(e,n);return n.add(a),a},setAnchors:()=>{for(let r of t){let a=i.get(r);if(typeof a=="object"&&a.anchor&&(cn.isScalar(a.node)||cn.isCollection(a.node)))a.node.anchor=a.anchor;else {let o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=r,o}}},sourceObjects:i}}Te.anchorIsValid=Go;Te.anchorNames=fn;Te.createNodeAnchors=Qo;Te.findNewAnchor=un;});var cs=chunkI7LO42GD_cjs.a(hn=>{chunkI7LO42GD_cjs.c();function Ce(s,e,t,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let a=i[n],o=Ce(s,i,String(n),a);o===void 0?delete i[n]:o!==a&&(i[n]=o);}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=Ce(s,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a);}else if(i instanceof Set)for(let n of Array.from(i)){let r=Ce(s,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r));}else for(let[n,r]of Object.entries(i)){let a=Ce(s,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a);}return s.call(e,t,i)}hn.applyReviver=Ce;});var W=chunkI7LO42GD_cjs.a(pn=>{chunkI7LO42GD_cjs.c();var Ho=O();function dn(s,e,t){if(Array.isArray(s))return s.map((i,n)=>dn(i,String(n),t));if(s&&typeof s.toJSON=="function"){if(!t||!Ho.hasAnchor(s))return s.toJSON(e,t);let i={aliasCount:0,count:1,res:void 0};t.anchors.set(s,i),t.onCreate=r=>{i.res=r,delete t.onCreate;};let n=s.toJSON(e,t);return t.onCreate&&t.onCreate(n),n}return typeof s=="bigint"&&!t?.keep?Number(s):s}pn.toJS=dn;});var ft=chunkI7LO42GD_cjs.a(yn=>{chunkI7LO42GD_cjs.c();var zo=cs(),mn=O(),Xo=W(),fs=class{constructor(e){Object.defineProperty(this,mn.NODE_TYPE,{value:e});}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:n,reviver:r}={}){if(!mn.isDocument(e))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},o=Xo.toJS(this,"",a);if(typeof n=="function")for(let{count:l,res:c}of a.anchors.values())n(c,l);return typeof r=="function"?zo.applyReviver(r,{"":o},"",o):o}};yn.NodeBase=fs;});var Ie=chunkI7LO42GD_cjs.a(wn=>{chunkI7LO42GD_cjs.c();var Zo=ct(),gn=Le(),ut=O(),el=ft(),tl=W(),us=class extends el.NodeBase{constructor(e){super(ut.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}});}resolve(e){let t;return gn.visit(e,{Node:(i,n)=>{if(n===this)return gn.visit.BREAK;n.anchor===this.source&&(t=n);}}),t}toJSON(e,t){if(!t)return {source:this.source};let{anchors:i,doc:n,maxAliasCount:r}=t,a=this.resolve(n);if(!a){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let o=i.get(a);if(o||(tl.toJS(a,null,t),o=i.get(a)),!o||o.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=ht(n,a,i)),o.count*o.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return o.res}toString(e,t,i){let n=`*${this.source}`;if(e){if(Zo.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return `${n} `}return n}};function ht(s,e,t){if(ut.isAlias(e)){let i=e.resolve(s),n=t&&i&&t.get(i);return n?n.count*n.aliasCount:0}else if(ut.isCollection(e)){let i=0;for(let n of e.items){let r=ht(s,n,t);r>i&&(i=r);}return i}else if(ut.isPair(e)){let i=ht(s,e.key,t),n=ht(s,e.value,t);return Math.max(i,n)}return 1}wn.Alias=us;});var C=chunkI7LO42GD_cjs.a(hs=>{chunkI7LO42GD_cjs.c();var sl=O(),il=ft(),nl=W(),rl=s=>!s||typeof s!="function"&&typeof s!="object",G=class extends il.NodeBase{constructor(e){super(sl.SCALAR),this.value=e;}toJSON(e,t){return t?.keep?this.value:nl.toJS(this.value,e,t)}toString(){return String(this.value)}};G.BLOCK_FOLDED="BLOCK_FOLDED";G.BLOCK_LITERAL="BLOCK_LITERAL";G.PLAIN="PLAIN";G.QUOTE_DOUBLE="QUOTE_DOUBLE";G.QUOTE_SINGLE="QUOTE_SINGLE";hs.Scalar=G;hs.isScalarValue=rl;});var $e=chunkI7LO42GD_cjs.a(Sn=>{chunkI7LO42GD_cjs.c();var al=Ie(),re=O(),bn=C(),ol="tag:yaml.org,2002:";function ll(s,e,t){if(e){let i=t.filter(r=>r.tag===e),n=i.find(r=>!r.format)??i[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return t.find(i=>i.identify?.(s)&&!i.format)}function cl(s,e,t){if(re.isDocument(s)&&(s=s.contents),re.isNode(s))return s;if(re.isPair(s)){let u=t.schema[re.MAP].createNode?.(t.schema,null,t);return u.items.push(s),u}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:r,schema:a,sourceObjects:o}=t,l;if(i&&s&&typeof s=="object"){if(l=o.get(s),l)return l.anchor||(l.anchor=n(s)),new al.Alias(l.anchor);l={anchor:null,node:null},o.set(s,l);}e?.startsWith("!!")&&(e=ol+e.slice(2));let c=ll(s,e,a.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let u=new bn.Scalar(s);return l&&(l.node=u),u}c=s instanceof Map?a[re.MAP]:Symbol.iterator in Object(s)?a[re.SEQ]:a[re.MAP];}r&&(r(c),delete t.onTagObj);let p=c?.createNode?c.createNode(t.schema,s,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,s,t):new bn.Scalar(s);return e?p.tag=e:c.default||(p.tag=c.tag),l&&(l.node=p),p}Sn.createNode=cl;});var mt=chunkI7LO42GD_cjs.a(pt=>{chunkI7LO42GD_cjs.c();var fl=$e(),U=O(),ul=ft();function ds(s,e,t){let i=t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let a=[];a[r]=i,i=a;}else i=new Map([[r,i]]);}return fl.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var vn=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,dt=class extends ul.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0});}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(i=>U.isNode(i)||U.isPair(i)?i.clone(e):i),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(vn(e))this.add(t);else {let[i,...n]=e,r=this.get(i,!0);if(U.isCollection(r))r.addIn(n,t);else if(r===void 0&&this.schema)this.set(i,ds(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(e){let[t,...i]=e;if(i.length===0)return this.delete(t);let n=this.get(t,!0);if(U.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){let[i,...n]=e,r=this.get(i,!0);return n.length===0?!t&&U.isScalar(r)?r.value:r:U.isCollection(r)?r.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!U.isPair(t))return !1;let i=t.value;return i==null||e&&U.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[t,...i]=e;if(i.length===0)return this.has(t);let n=this.get(t,!0);return U.isCollection(n)?n.hasIn(i):!1}setIn(e,t){let[i,...n]=e;if(n.length===0)this.set(i,t);else {let r=this.get(i,!0);if(U.isCollection(r))r.setIn(n,t);else if(r===void 0&&this.schema)this.set(i,ds(this.schema,n,t));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};dt.maxFlowStringSingleLineLength=60;pt.Collection=dt;pt.collectionFromPath=ds;pt.isEmptyPath=vn;});var Pe=chunkI7LO42GD_cjs.a(yt=>{chunkI7LO42GD_cjs.c();var hl=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function ps(s,e){return /^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var dl=(s,e,t)=>s.endsWith(`
|
|
15
|
+
`)?ps(t,e):t.includes(`
|
|
16
|
+
`)?`
|
|
17
|
+
`+ps(t,e):(s.endsWith(" ")?"":" ")+t;yt.indentComment=ps;yt.lineComment=dl;yt.stringifyComment=hl;});var Nn=chunkI7LO42GD_cjs.a(Me=>{chunkI7LO42GD_cjs.c();var pl="flow",ms="block",gt="quoted";function ml(s,e,t="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:r=20,onFold:a,onOverflow:o}={}){if(!n||n<0)return s;let l=Math.max(1+r,1+n-e.length);if(s.length<=l)return s;let c=[],p={},u=n-e.length;typeof i=="number"&&(i>n-Math.max(2,r)?c.push(0):u=n-i);let d,y,w=!1,h=-1,m=-1,v=-1;t===ms&&(h=kn(s,h,e.length),h!==-1&&(u=h+l));for(let N;N=s[h+=1];){if(t===gt&&N==="\\"){switch(m=h,s[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1;}v=h;}if(N===`
|
|
18
|
+
`)t===ms&&(h=kn(s,h,e.length)),u=h+e.length+l,d=void 0;else {if(N===" "&&y&&y!==" "&&y!==`
|
|
19
|
+
`&&y!==" "){let A=s[h+1];A&&A!==" "&&A!==`
|
|
20
|
+
`&&A!==" "&&(d=h);}if(h>=u)if(d)c.push(d),u=d+l,d=void 0;else if(t===gt){for(;y===" "||y===" ";)y=N,N=s[h+=1],w=!0;let A=h>v+1?h-2:m-1;if(p[A])return s;c.push(A),p[A]=!0,u=A+l,d=void 0;}else w=!0;}y=N;}if(w&&o&&o(),c.length===0)return s;a&&a();let k=s.slice(0,c[0]);for(let N=0;N<c.length;++N){let A=c[N],E=c[N+1]||s.length;A===0?k=`
|
|
21
|
+
${e}${s.slice(0,E)}`:(t===gt&&p[A]&&(k+=`${s[A]}\\`),k+=`
|
|
22
|
+
${e}${s.slice(A+1,E)}`);}return k}function kn(s,e,t){let i=e,n=e+1,r=s[n];for(;r===" "||r===" ";)if(e<n+t)r=s[++e];else {do r=s[++e];while(r&&r!==`
|
|
23
|
+
`);i=e,n=e+1,r=s[n];}return i}Me.FOLD_BLOCK=ms;Me.FOLD_FLOW=pl;Me.FOLD_QUOTED=gt;Me.foldFlowLines=ml;});var De=chunkI7LO42GD_cjs.a(An=>{chunkI7LO42GD_cjs.c();var K=C(),Q=Nn(),bt=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),St=s=>/^(%|---|\.\.\.)/m.test(s);function yl(s,e,t){if(!e||e<0)return !1;let i=e-t,n=s.length;if(n<=i)return !1;for(let r=0,a=0;r<n;++r)if(s[r]===`
|
|
24
|
+
`){if(r-a>i)return !0;if(a=r+1,n-a<=i)return !1}return !0}function _e(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:i}=e,n=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(St(s)?" ":""),a="",o=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(a+=t.slice(o,l)+"\\ ",l+=1,o=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{a+=t.slice(o,l);let p=t.substr(l+2,4);switch(p){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:p.substr(0,2)==="00"?a+="\\x"+p.substr(2):a+=t.substr(l,6);}l+=5,o=l+1;}break;case"n":if(i||t[l+2]==='"'||t.length<n)l+=1;else {for(a+=t.slice(o,l)+`
|
|
25
|
+
|
|
26
|
+
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)a+=`
|
|
27
|
+
`,l+=2;a+=r,t[l+2]===" "&&(a+="\\"),l+=1,o=l+1;}break;default:l+=1;}return a=o?a+t.slice(o):t,i?a:Q.foldFlowLines(a,r,Q.FOLD_QUOTED,bt(e,!1))}function ys(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
|
|
28
|
+
`)||/[ \t]\n|\n[ \t]/.test(s))return _e(s,e);let t=e.indent||(St(s)?" ":""),i="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
29
|
+
${t}`)+"'";return e.implicitKey?i:Q.foldFlowLines(i,t,Q.FOLD_FLOW,bt(e,!1))}function me(s,e){let{singleQuote:t}=e.options,i;if(t===!1)i=_e;else {let n=s.includes('"'),r=s.includes("'");n&&!r?i=ys:r&&!n?i=_e:i=t?ys:_e;}return i(s,e)}var gs;try{gs=new RegExp(`(^|(?<!
|
|
30
|
+
))
|
|
31
|
+
+(?!
|
|
32
|
+
|$)`,"g");}catch{gs=/\n+(?!\n|$)/g;}function wt({comment:s,type:e,value:t},i,n,r){let{blockQuote:a,commentString:o,lineWidth:l}=i.options;if(!a||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return me(t,i);let c=i.indent||(i.forceBlockIndent||St(t)?" ":""),p=a==="literal"?!0:a==="folded"||e===K.Scalar.BLOCK_FOLDED?!1:e===K.Scalar.BLOCK_LITERAL?!0:!yl(t,l,c.length);if(!t)return p?`|
|
|
33
|
+
`:`>
|
|
34
|
+
`;let u,d;for(d=t.length;d>0;--d){let b=t[d-1];if(b!==`
|
|
35
|
+
`&&b!==" "&&b!==" ")break}let y=t.substring(d),w=y.indexOf(`
|
|
36
|
+
`);w===-1?u="-":t===y||w!==y.length-1?(u="+",r&&r()):u="",y&&(t=t.slice(0,-y.length),y[y.length-1]===`
|
|
37
|
+
`&&(y=y.slice(0,-1)),y=y.replace(gs,`$&${c}`));let h=!1,m,v=-1;for(m=0;m<t.length;++m){let b=t[m];if(b===" ")h=!0;else if(b===`
|
|
38
|
+
`)v=m;else break}let k=t.substring(0,v<m?v+1:m);k&&(t=t.substring(k.length),k=k.replace(/\n+/g,`$&${c}`));let A=(p?"|":">")+(h?c?"2":"1":"")+u;if(s&&(A+=" "+o(s.replace(/ ?[\r\n]+/g," ")),n&&n()),p)return t=t.replace(/\n+/g,`$&${c}`),`${A}
|
|
39
|
+
${c}${k}${t}${y}`;t=t.replace(/\n+/g,`
|
|
40
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=Q.foldFlowLines(`${k}${t}${y}`,c,Q.FOLD_BLOCK,bt(i,!0));return `${A}
|
|
41
|
+
${c}${E}`}function gl(s,e,t,i){let{type:n,value:r}=s,{actualString:a,implicitKey:o,indent:l,indentStep:c,inFlow:p}=e;if(o&&r.includes(`
|
|
42
|
+
`)||p&&/[[\]{},]/.test(r))return me(r,e);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return o||p||!r.includes(`
|
|
43
|
+
`)?me(r,e):wt(s,e,t,i);if(!o&&!p&&n!==K.Scalar.PLAIN&&r.includes(`
|
|
44
|
+
`))return wt(s,e,t,i);if(St(r)){if(l==="")return e.forceBlockIndent=!0,wt(s,e,t,i);if(o&&l===c)return me(r,e)}let u=r.replace(/\n+/g,`$&
|
|
45
|
+
${l}`);if(a){let d=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:y,tags:w}=e.doc.schema;if(w.some(d)||y?.some(d))return me(r,e)}return o?u:Q.foldFlowLines(u,l,Q.FOLD_FLOW,bt(e,!1))}function wl(s,e,t,i){let{implicitKey:n,inFlow:r}=e,a=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:o}=s;o!==K.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=K.Scalar.QUOTE_DOUBLE);let l=p=>{switch(p){case K.Scalar.BLOCK_FOLDED:case K.Scalar.BLOCK_LITERAL:return n||r?me(a.value,e):wt(a,e,t,i);case K.Scalar.QUOTE_DOUBLE:return _e(a.value,e);case K.Scalar.QUOTE_SINGLE:return ys(a.value,e);case K.Scalar.PLAIN:return gl(a,e,t,i);default:return null}},c=l(o);if(c===null){let{defaultKeyType:p,defaultStringType:u}=e.options,d=n&&p||u;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}An.stringifyString=wl;});var Fe=chunkI7LO42GD_cjs.a(ws=>{chunkI7LO42GD_cjs.c();var bl=ct(),H=O(),Sl=Pe(),vl=De();function kl(s,e){let t=Object.assign({blockQuote:!0,commentString:Sl.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),i;switch(t.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null;}return {anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:i,options:t}}function Nl(s,e){if(e.tag){let n=s.filter(r=>r.tag===e.tag);if(n.length>0)return n.find(r=>r.format===e.format)??n[0]}let t,i;if(H.isScalar(e)){i=e.value;let n=s.filter(r=>r.identify?.(i));t=n.find(r=>r.format===e.format)??n.find(r=>!r.format);}else i=e,t=s.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!t){let n=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${n} value`)}return t}function Al(s,e,{anchors:t,doc:i}){if(!i.directives)return "";let n=[],r=(H.isScalar(s)||H.isCollection(s))&&s.anchor;r&&bl.anchorIsValid(r)&&(t.add(r),n.push(`&${r}`));let a=s.tag?s.tag:e.default?null:e.tag;return a&&n.push(i.directives.tagString(a)),n.join(" ")}function El(s,e,t,i){if(H.isPair(s))return s.toString(e,t,i);if(H.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc);}let n,r=H.isNode(s)?s:e.doc.createNode(s,{onTagObj:l=>n=l});n||(n=Nl(e.doc.schema.tags,r));let a=Al(r,n,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);let o=typeof n.stringify=="function"?n.stringify(r,e,t,i):H.isScalar(r)?vl.stringifyString(r,e,t,i):r.toString(e,t,i);return a?H.isScalar(r)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
|
|
46
|
+
${e.indent}${o}`:o}ws.createStringifyContext=kl;ws.stringify=El;});var qn=chunkI7LO42GD_cjs.a(Ln=>{chunkI7LO42GD_cjs.c();var z=O(),En=C(),On=Fe(),Be=Pe();function Ol({key:s,value:e},t,i,n){let{allNullValues:r,doc:a,indent:o,indentStep:l,options:{commentString:c,indentSeq:p,simpleKeys:u}}=t,d=z.isNode(s)&&s.comment||null;if(u){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(z.isCollection(s)){let q="With simple keys, collection cannot be used as a key value";throw new Error(q)}}let y=!u&&(!s||d&&e==null&&!t.inFlow||z.isCollection(s)||(z.isScalar(s)?s.type===En.Scalar.BLOCK_FOLDED||s.type===En.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!y&&(u||!r),indent:o+l});let w=!1,h=!1,m=On.stringify(s,t,()=>w=!0,()=>h=!0);if(!y&&!t.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0;}if(t.inFlow){if(r||e==null)return w&&i&&i(),m===""?"?":y?`? ${m}`:m}else if(r&&!u||e==null&&y)return m=`? ${m}`,d&&!w?m+=Be.lineComment(m,t.indent,c(d)):h&&n&&n(),m;w&&(d=null),y?(d&&(m+=Be.lineComment(m,t.indent,c(d))),m=`? ${m}
|
|
47
|
+
${o}:`):(m=`${m}:`,d&&(m+=Be.lineComment(m,t.indent,c(d))));let v,k,N;z.isNode(e)?(v=!!e.spaceBefore,k=e.commentBefore,N=e.comment):(v=!1,k=null,N=null,e&&typeof e=="object"&&(e=a.createNode(e))),t.implicitKey=!1,!y&&!d&&z.isScalar(e)&&(t.indentAtStart=m.length+1),h=!1,!p&&l.length>=2&&!t.inFlow&&!y&&z.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let A=!1,E=On.stringify(e,t,()=>A=!0,()=>h=!0),b=" ";if(d||v||k){if(b=v?`
|
|
48
|
+
`:"",k){let q=c(k);b+=`
|
|
49
|
+
${Be.indentComment(q,t.indent)}`;}E===""&&!t.inFlow?b===`
|
|
50
|
+
`&&(b=`
|
|
51
|
+
|
|
52
|
+
`):b+=`
|
|
53
|
+
${t.indent}`;}else if(!y&&z.isCollection(e)){let q=E[0],T=E.indexOf(`
|
|
54
|
+
`),M=T!==-1,ne=t.inFlow??e.flow??e.items.length===0;if(M||!ne){let ue=!1;if(M&&(q==="&"||q==="!")){let $=E.indexOf(" ");q==="&"&&$!==-1&&$<T&&E[$+1]==="!"&&($=E.indexOf(" ",$+1)),($===-1||T<$)&&(ue=!0);}ue||(b=`
|
|
55
|
+
${t.indent}`);}}else (E===""||E[0]===`
|
|
56
|
+
`)&&(b="");return m+=b+E,t.inFlow?A&&i&&i():N&&!A?m+=Be.lineComment(m,t.indent,c(N)):h&&n&&n(),m}Ln.stringifyPair=Ol;});var Ss=chunkI7LO42GD_cjs.a(bs=>{chunkI7LO42GD_cjs.c();function Ll(s,...e){s==="debug"&&console.log(...e);}function ql(s,e){(s==="debug"||s==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e));}bs.debug=Ll;bs.warn=ql;});var Ns=chunkI7LO42GD_cjs.a(Cn=>{chunkI7LO42GD_cjs.c();var Tl=Ss(),Cl=Fe(),ye=O(),Il=C(),vs=W(),Tn="<<";function $l(s,e,{key:t,value:i}){if(s?.doc.schema.merge&&Pl(t))if(i=ye.isAlias(i)?i.resolve(s.doc):i,ye.isSeq(i))for(let n of i.items)ks(s,e,n);else if(Array.isArray(i))for(let n of i)ks(s,e,n);else ks(s,e,i);else {let n=vs.toJS(t,"",s);if(e instanceof Map)e.set(n,vs.toJS(i,n,s));else if(e instanceof Set)e.add(n);else {let r=Ml(t,n,s),a=vs.toJS(i,r,s);r in e?Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[r]=a;}}return e}var Pl=s=>s===Tn||ye.isScalar(s)&&s.value===Tn&&(!s.type||s.type===Il.Scalar.PLAIN);function ks(s,e,t){let i=s&&ye.isAlias(t)?t.resolve(s.doc):t;if(!ye.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,s,Map);for(let[r,a]of n)e instanceof Map?e.has(r)||e.set(r,a):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}function Ml(s,e,t){if(e===null)return "";if(typeof e!="object")return String(e);if(ye.isNode(s)&&t?.doc){let i=Cl.createStringifyContext(t.doc,{});i.anchors=new Set;for(let r of t.anchors.keys())i.anchors.add(r.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=s.toString(i);if(!t.mapKeyWarned){let r=JSON.stringify(n);r.length>40&&(r=r.substring(0,36)+'..."'),Tl.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0;}return n}return JSON.stringify(e)}Cn.addPairToJSMap=$l;});var X=chunkI7LO42GD_cjs.a(As=>{chunkI7LO42GD_cjs.c();var In=$e(),_l=qn(),Dl=Ns(),vt=O();function Fl(s,e,t){let i=In.createNode(s,void 0,t),n=In.createNode(e,void 0,t);return new kt(i,n)}var kt=class s{constructor(e,t=null){Object.defineProperty(this,vt.NODE_TYPE,{value:vt.PAIR}),this.key=e,this.value=t;}clone(e){let{key:t,value:i}=this;return vt.isNode(t)&&(t=t.clone(e)),vt.isNode(i)&&(i=i.clone(e)),new s(t,i)}toJSON(e,t){let i=t?.mapAsMap?new Map:{};return Dl.addPairToJSMap(t,i,this)}toString(e,t,i){return e?.doc?_l.stringifyPair(this,e,t,i):JSON.stringify(this)}};As.Pair=kt;As.createPair=Fl;});var Es=chunkI7LO42GD_cjs.a(Pn=>{chunkI7LO42GD_cjs.c();var ae=O(),$n=Fe(),Nt=Pe();function Bl(s,e,t){return (e.inFlow??s.flow?Rl:jl)(s,e,t)}function jl({comment:s,items:e},t,{blockItemPrefix:i,flowChars:n,itemIndent:r,onChompKeep:a,onComment:o}){let{indent:l,options:{commentString:c}}=t,p=Object.assign({},t,{indent:r,type:null}),u=!1,d=[];for(let w=0;w<e.length;++w){let h=e[w],m=null;if(ae.isNode(h))!u&&h.spaceBefore&&d.push(""),At(t,d,h.commentBefore,u),h.comment&&(m=h.comment);else if(ae.isPair(h)){let k=ae.isNode(h.key)?h.key:null;k&&(!u&&k.spaceBefore&&d.push(""),At(t,d,k.commentBefore,u));}u=!1;let v=$n.stringify(h,p,()=>m=null,()=>u=!0);m&&(v+=Nt.lineComment(v,r,c(m))),u&&m&&(u=!1),d.push(i+v);}let y;if(d.length===0)y=n.start+n.end;else {y=d[0];for(let w=1;w<d.length;++w){let h=d[w];y+=h?`
|
|
57
|
+
${l}${h}`:`
|
|
58
|
+
`;}}return s?(y+=`
|
|
59
|
+
`+Nt.indentComment(c(s),l),o&&o()):u&&a&&a(),y}function Rl({items:s},e,{flowChars:t,itemIndent:i}){let{indent:n,indentStep:r,flowCollectionPadding:a,options:{commentString:o}}=e;i+=r;let l=Object.assign({},e,{indent:i,inFlow:!0,type:null}),c=!1,p=0,u=[];for(let w=0;w<s.length;++w){let h=s[w],m=null;if(ae.isNode(h))h.spaceBefore&&u.push(""),At(e,u,h.commentBefore,!1),h.comment&&(m=h.comment);else if(ae.isPair(h)){let k=ae.isNode(h.key)?h.key:null;k&&(k.spaceBefore&&u.push(""),At(e,u,k.commentBefore,!1),k.comment&&(c=!0));let N=ae.isNode(h.value)?h.value:null;N?(N.comment&&(m=N.comment),N.commentBefore&&(c=!0)):h.value==null&&k?.comment&&(m=k.comment);}m&&(c=!0);let v=$n.stringify(h,l,()=>m=null);w<s.length-1&&(v+=","),m&&(v+=Nt.lineComment(v,i,o(m))),!c&&(u.length>p||v.includes(`
|
|
60
|
+
`))&&(c=!0),u.push(v),p=u.length;}let{start:d,end:y}=t;if(u.length===0)return d+y;if(!c){let w=u.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&w>e.options.lineWidth;}if(c){let w=d;for(let h of u)w+=h?`
|
|
61
|
+
${r}${n}${h}`:`
|
|
62
|
+
`;return `${w}
|
|
63
|
+
${n}${y}`}else return `${d}${a}${u.join(" ")}${a}${y}`}function At({indent:s,options:{commentString:e}},t,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let r=Nt.indentComment(e(i),s);t.push(r.trimStart());}}Pn.stringifyCollection=Bl;});var ee=chunkI7LO42GD_cjs.a(Ls=>{chunkI7LO42GD_cjs.c();var xl=Es(),Ul=Ns(),Kl=mt(),Z=O(),Et=X(),Yl=C();function je(s,e){let t=Z.isScalar(e)?e.value:e;for(let i of s)if(Z.isPair(i)&&(i.key===e||i.key===t||Z.isScalar(i.key)&&i.key.value===t))return i}var Os=class extends Kl.Collection{static get tagName(){return "tag:yaml.org,2002:map"}constructor(e){super(Z.MAP,e),this.items=[];}static from(e,t,i){let{keepUndefined:n,replacer:r}=i,a=new this(e),o=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||n)&&a.items.push(Et.createPair(l,c,i));};if(t instanceof Map)for(let[l,c]of t)o(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))o(l,t[l]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,t){let i;Z.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new Et.Pair(e,e?.value):i=new Et.Pair(e.key,e.value);let n=je(this.items,i.key),r=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${i.key} already set`);Z.isScalar(n.value)&&Yl.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value;}else if(r){let a=this.items.findIndex(o=>r(i,o)<0);a===-1?this.items.push(i):this.items.splice(a,0,i);}else this.items.push(i);}delete(e){let t=je(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=je(this.items,e)?.value;return (!t&&Z.isScalar(n)?n.value:n)??void 0}has(e){return !!je(this.items,e)}set(e,t){this.add(new Et.Pair(e,t),!0);}toJSON(e,t,i){let n=i?new i:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(let r of this.items)Ul.addPairToJSMap(t,n,r);return n}toString(e,t,i){if(!e)return JSON.stringify(this);for(let n of this.items)if(!Z.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return !e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),xl.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:t})}};Ls.YAMLMap=Os;Ls.findPair=je;});var ge=chunkI7LO42GD_cjs.a(_n=>{chunkI7LO42GD_cjs.c();var Jl=O(),Mn=ee(),Vl={collection:"map",default:!0,nodeClass:Mn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return Jl.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>Mn.YAMLMap.from(s,e,t)};_n.map=Vl;});var te=chunkI7LO42GD_cjs.a(Dn=>{chunkI7LO42GD_cjs.c();var Wl=$e(),Gl=Es(),Ql=mt(),Lt=O(),Hl=C(),zl=W(),qs=class extends Ql.Collection{static get tagName(){return "tag:yaml.org,2002:seq"}constructor(e){super(Lt.SEQ,e),this.items=[];}add(e){this.items.push(e);}delete(e){let t=Ot(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let i=Ot(e);if(typeof i!="number")return;let n=this.items[i];return !t&&Lt.isScalar(n)?n.value:n}has(e){let t=Ot(e);return typeof t=="number"&&t<this.items.length}set(e,t){let i=Ot(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[i];Lt.isScalar(n)&&Hl.isScalarValue(t)?n.value=t:this.items[i]=t;}toJSON(e,t){let i=[];t?.onCreate&&t.onCreate(i);let n=0;for(let r of this.items)i.push(zl.toJS(r,String(n++),t));return i}toString(e,t,i){return e?Gl.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:t}):JSON.stringify(this)}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t)){let a=0;for(let o of t){if(typeof n=="function"){let l=t instanceof Set?o:String(a++);o=n.call(t,l,o);}r.items.push(Wl.createNode(o,void 0,i));}}return r}};function Ot(s){let e=Lt.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Dn.YAMLSeq=qs;});var we=chunkI7LO42GD_cjs.a(Bn=>{chunkI7LO42GD_cjs.c();var Xl=O(),Fn=te(),Zl={collection:"seq",default:!0,nodeClass:Fn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return Xl.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Fn.YAMLSeq.from(s,e,t)};Bn.seq=Zl;});var Re=chunkI7LO42GD_cjs.a(jn=>{chunkI7LO42GD_cjs.c();var ec=De(),tc={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,i){return e=Object.assign({actualString:!0},e),ec.stringifyString(s,e,t,i)}};jn.string=tc;});var qt=chunkI7LO42GD_cjs.a(Un=>{chunkI7LO42GD_cjs.c();var Rn=C(),xn={identify:s=>s==null,createNode:()=>new Rn.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Rn.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&xn.test.test(s)?s:e.options.nullStr};Un.nullTag=xn;});var Ts=chunkI7LO42GD_cjs.a(Yn=>{chunkI7LO42GD_cjs.c();var sc=C(),Kn={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new sc.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Kn.test.test(s)){let i=s[0]==="t"||s[0]==="T";if(e===i)return s}return e?t.options.trueStr:t.options.falseStr}};Yn.boolTag=Kn;});var be=chunkI7LO42GD_cjs.a(Jn=>{chunkI7LO42GD_cjs.c();function ic({format:s,minFractionDigits:e,tag:t,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(i);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let a=r.indexOf(".");a<0&&(a=r.length,r+=".");let o=e-(r.length-a-1);for(;o-- >0;)r+="0";}return r}Jn.stringifyNumber=ic;});var Is=chunkI7LO42GD_cjs.a(Tt=>{chunkI7LO42GD_cjs.c();var nc=C(),Cs=be(),rc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Cs.stringifyNumber},ac={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Cs.stringifyNumber(s)}},oc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new nc.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:Cs.stringifyNumber};Tt.float=oc;Tt.floatExp=ac;Tt.floatNaN=rc;});var Ps=chunkI7LO42GD_cjs.a(It=>{chunkI7LO42GD_cjs.c();var Vn=be(),Ct=s=>typeof s=="bigint"||Number.isInteger(s),$s=(s,e,t,{intAsBigInt:i})=>i?BigInt(s):parseInt(s.substring(e),t);function Wn(s,e,t){let{value:i}=s;return Ct(i)&&i>=0?t+i.toString(e):Vn.stringifyNumber(s)}var lc={identify:s=>Ct(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>$s(s,2,8,t),stringify:s=>Wn(s,8,"0o")},cc={identify:Ct,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>$s(s,0,10,t),stringify:Vn.stringifyNumber},fc={identify:s=>Ct(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>$s(s,2,16,t),stringify:s=>Wn(s,16,"0x")};It.int=cc;It.intHex=fc;It.intOct=lc;});var Qn=chunkI7LO42GD_cjs.a(Gn=>{chunkI7LO42GD_cjs.c();var uc=ge(),hc=qt(),dc=we(),pc=Re(),mc=Ts(),Ms=Is(),_s=Ps(),yc=[uc.map,dc.seq,pc.string,hc.nullTag,mc.boolTag,_s.intOct,_s.int,_s.intHex,Ms.floatNaN,Ms.floatExp,Ms.float];Gn.schema=yc;});var Xn=chunkI7LO42GD_cjs.a(zn=>{chunkI7LO42GD_cjs.c();var gc=C(),wc=ge(),bc=we();function Hn(s){return typeof s=="bigint"||Number.isInteger(s)}var $t=({value:s})=>JSON.stringify(s),Sc=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:$t},{identify:s=>s==null,createNode:()=>new gc.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:$t},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:s=>s==="true",stringify:$t},{identify:Hn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>Hn(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:$t}],vc={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},kc=[wc.map,bc.seq].concat(Sc,vc);zn.schema=kc;});var Fs=chunkI7LO42GD_cjs.a(Zn=>{chunkI7LO42GD_cjs.c();var Ds=C(),Nc=De(),Ac={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof Buffer=="function")return Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),i=new Uint8Array(t.length);for(let n=0;n<t.length;++n)i[n]=t.charCodeAt(n);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},i,n,r){let a=t,o;if(typeof Buffer=="function")o=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);o=btoa(l);}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=Ds.Scalar.BLOCK_LITERAL),e!==Ds.Scalar.QUOTE_DOUBLE){let l=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),c=Math.ceil(o.length/l),p=new Array(c);for(let u=0,d=0;u<c;++u,d+=l)p[u]=o.substr(d,l);o=p.join(e===Ds.Scalar.BLOCK_LITERAL?`
|
|
64
|
+
`:" ");}return Nc.stringifyString({comment:s,type:e,value:o},i,n,r)}};Zn.binary=Ac;});var _t=chunkI7LO42GD_cjs.a(Mt=>{chunkI7LO42GD_cjs.c();var Pt=O(),Bs=X(),Ec=C(),Oc=te();function er(s,e){if(Pt.isSeq(s))for(let t=0;t<s.items.length;++t){let i=s.items[t];if(!Pt.isPair(i)){if(Pt.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let n=i.items[0]||new Bs.Pair(new Ec.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
|
|
65
|
+
${n.key.commentBefore}`:i.commentBefore),i.comment){let r=n.value??n.key;r.comment=r.comment?`${i.comment}
|
|
66
|
+
${r.comment}`:i.comment;}i=n;}s.items[t]=Pt.isPair(i)?i:new Bs.Pair(i);}}else e("Expected a sequence for this tag");return s}function tr(s,e,t){let{replacer:i}=t,n=new Oc.YAMLSeq(s);n.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof i=="function"&&(a=i.call(e,String(r++),a));let o,l;if(Array.isArray(a))if(a.length===2)o=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let c=Object.keys(a);if(c.length===1)o=c[0],l=a[o];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else o=a;n.items.push(Bs.createPair(o,l,t));}return n}var Lc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:er,createNode:tr};Mt.createPairs=tr;Mt.pairs=Lc;Mt.resolvePairs=er;});var xs=chunkI7LO42GD_cjs.a(Rs=>{chunkI7LO42GD_cjs.c();var sr=O(),js=W(),xe=ee(),qc=te(),ir=_t(),oe=class s extends qc.YAMLSeq{constructor(){super(),this.add=xe.YAMLMap.prototype.add.bind(this),this.delete=xe.YAMLMap.prototype.delete.bind(this),this.get=xe.YAMLMap.prototype.get.bind(this),this.has=xe.YAMLMap.prototype.has.bind(this),this.set=xe.YAMLMap.prototype.set.bind(this),this.tag=s.tag;}toJSON(e,t){if(!t)return super.toJSON(e);let i=new Map;t?.onCreate&&t.onCreate(i);for(let n of this.items){let r,a;if(sr.isPair(n)?(r=js.toJS(n.key,"",t),a=js.toJS(n.value,r,t)):r=js.toJS(n,"",t),i.has(r))throw new Error("Ordered maps must not include duplicate keys");i.set(r,a);}return i}static from(e,t,i){let n=ir.createPairs(e,t,i),r=new this;return r.items=n.items,r}};oe.tag="tag:yaml.org,2002:omap";var Tc={collection:"seq",identify:s=>s instanceof Map,nodeClass:oe,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=ir.resolvePairs(s,e),i=[];for(let{key:n}of t.items)sr.isScalar(n)&&(i.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new oe,t)},createNode:(s,e,t)=>oe.from(s,e,t)};Rs.YAMLOMap=oe;Rs.omap=Tc;});var lr=chunkI7LO42GD_cjs.a(Us=>{chunkI7LO42GD_cjs.c();var nr=C();function rr({value:s,source:e},t){return e&&(s?ar:or).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var ar={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new nr.Scalar(!0),stringify:rr},or={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new nr.Scalar(!1),stringify:rr};Us.falseTag=or;Us.trueTag=ar;});var cr=chunkI7LO42GD_cjs.a(Dt=>{chunkI7LO42GD_cjs.c();var Cc=C(),Ks=be(),Ic={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ks.stringifyNumber},$c={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Ks.stringifyNumber(s)}},Pc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new Cc.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let i=s.substring(t+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length);}return e},stringify:Ks.stringifyNumber};Dt.float=Pc;Dt.floatExp=$c;Dt.floatNaN=Ic;});var ur=chunkI7LO42GD_cjs.a(Ke=>{chunkI7LO42GD_cjs.c();var fr=be(),Ue=s=>typeof s=="bigint"||Number.isInteger(s);function Ft(s,e,t,{intAsBigInt:i}){let n=s[0];if((n==="-"||n==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),i){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let a=BigInt(s);return n==="-"?BigInt(-1)*a:a}let r=parseInt(s,t);return n==="-"?-1*r:r}function Ys(s,e,t){let{value:i}=s;if(Ue(i)){let n=i.toString(e);return i<0?"-"+t+n.substr(1):t+n}return fr.stringifyNumber(s)}var Mc={identify:Ue,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Ft(s,2,2,t),stringify:s=>Ys(s,2,"0b")},_c={identify:Ue,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Ft(s,1,8,t),stringify:s=>Ys(s,8,"0")},Dc={identify:Ue,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Ft(s,0,10,t),stringify:fr.stringifyNumber},Fc={identify:Ue,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Ft(s,2,16,t),stringify:s=>Ys(s,16,"0x")};Ke.int=Dc;Ke.intBin=Mc;Ke.intHex=Fc;Ke.intOct=_c;});var Vs=chunkI7LO42GD_cjs.a(Js=>{chunkI7LO42GD_cjs.c();var Rt=O(),Bt=X(),jt=ee(),le=class s extends jt.YAMLMap{constructor(e){super(e),this.tag=s.tag;}add(e){let t;Rt.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Bt.Pair(e.key,null):t=new Bt.Pair(e,null),jt.findPair(this.items,t.key)||this.items.push(t);}get(e,t){let i=jt.findPair(this.items,e);return !t&&Rt.isPair(i)?Rt.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=jt.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new Bt.Pair(e));}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,i);throw new Error("Set items must all have null values")}static from(e,t,i){let{replacer:n}=i,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let a of t)typeof n=="function"&&(a=n.call(t,a,a)),r.items.push(Bt.createPair(a,null,i));return r}};le.tag="tag:yaml.org,2002:set";var Bc={collection:"map",identify:s=>s instanceof Set,nodeClass:le,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>le.from(s,e,t),resolve(s,e){if(Rt.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new le,s);e("Set items must all have null values");}else e("Expected a mapping for this tag");return s}};Js.YAMLSet=le;Js.set=Bc;});var Gs=chunkI7LO42GD_cjs.a(xt=>{chunkI7LO42GD_cjs.c();var jc=be();function Ws(s,e){let t=s[0],i=t==="-"||t==="+"?s.substring(1):s,n=a=>e?BigInt(a):Number(a),r=i.replace(/_/g,"").split(":").reduce((a,o)=>a*n(60)+n(o),n(0));return t==="-"?n(-1)*r:r}function hr(s){let{value:e}=s,t=a=>a;if(typeof e=="bigint")t=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return jc.stringifyNumber(s);let i="";e<0&&(i="-",e*=t(-1));let n=t(60),r=[e%n];return e<60?r.unshift(0):(e=(e-r[0])/n,r.unshift(e%n),e>=60&&(e=(e-r[0])/n,r.unshift(e))),i+r.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Rc={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Ws(s,t),stringify:hr},xc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Ws(s,!1),stringify:hr},dr={identify:s=>s instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){let e=s.match(dr.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,i,n,r,a,o]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,i-1,n,r||0,a||0,o||0,l),p=e[8];if(p&&p!=="Z"){let u=Ws(p,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u;}return new Date(c)},stringify:({value:s})=>s.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};xt.floatTime=xc;xt.intTime=Rc;xt.timestamp=dr;});var yr=chunkI7LO42GD_cjs.a(mr=>{chunkI7LO42GD_cjs.c();var Uc=ge(),Kc=qt(),Yc=we(),Jc=Re(),Vc=Fs(),pr=lr(),Qs=cr(),Ut=ur(),Wc=xs(),Gc=_t(),Qc=Vs(),Hs=Gs(),Hc=[Uc.map,Yc.seq,Jc.string,Kc.nullTag,pr.trueTag,pr.falseTag,Ut.intBin,Ut.intOct,Ut.int,Ut.intHex,Qs.floatNaN,Qs.floatExp,Qs.float,Vc.binary,Wc.omap,Gc.pairs,Qc.set,Hs.intTime,Hs.floatTime,Hs.timestamp];mr.schema=Hc;});var Or=chunkI7LO42GD_cjs.a(Zs=>{chunkI7LO42GD_cjs.c();var Sr=ge(),zc=qt(),vr=we(),Xc=Re(),Zc=Ts(),zs=Is(),Xs=Ps(),ef=Qn(),tf=Xn(),kr=Fs(),Nr=xs(),Ar=_t(),gr=yr(),Er=Vs(),Kt=Gs(),wr=new Map([["core",ef.schema],["failsafe",[Sr.map,vr.seq,Xc.string]],["json",tf.schema],["yaml11",gr.schema],["yaml-1.1",gr.schema]]),br={binary:kr.binary,bool:Zc.boolTag,float:zs.float,floatExp:zs.floatExp,floatNaN:zs.floatNaN,floatTime:Kt.floatTime,int:Xs.int,intHex:Xs.intHex,intOct:Xs.intOct,intTime:Kt.intTime,map:Sr.map,null:zc.nullTag,omap:Nr.omap,pairs:Ar.pairs,seq:vr.seq,set:Er.set,timestamp:Kt.timestamp},sf={"tag:yaml.org,2002:binary":kr.binary,"tag:yaml.org,2002:omap":Nr.omap,"tag:yaml.org,2002:pairs":Ar.pairs,"tag:yaml.org,2002:set":Er.set,"tag:yaml.org,2002:timestamp":Kt.timestamp};function nf(s,e){let t=wr.get(e);if(!t)if(Array.isArray(s))t=[];else {let i=Array.from(wr.keys()).filter(n=>n!=="yaml11").map(n=>JSON.stringify(n)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(s))for(let i of s)t=t.concat(i);else typeof s=="function"&&(t=s(t.slice()));return t.map(i=>{if(typeof i!="string")return i;let n=br[i];if(n)return n;let r=Object.keys(br).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${i}"; use one of ${r}`)})}Zs.coreKnownTags=sf;Zs.getTags=nf;});var si=chunkI7LO42GD_cjs.a(Lr=>{chunkI7LO42GD_cjs.c();var ei=O(),rf=ge(),af=we(),of=Re(),Yt=Or(),lf=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,ti=class s{constructor({compat:e,customTags:t,merge:i,resolveKnownTags:n,schema:r,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Yt.getTags(e,"compat"):e?Yt.getTags(null,e):null,this.merge=!!i,this.name=typeof r=="string"&&r||"core",this.knownTags=n?Yt.coreKnownTags:{},this.tags=Yt.getTags(t,this.name),this.toStringOptions=o??null,Object.defineProperty(this,ei.MAP,{value:rf.map}),Object.defineProperty(this,ei.SCALAR,{value:of.string}),Object.defineProperty(this,ei.SEQ,{value:af.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?lf:null;}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Lr.Schema=ti;});var Tr=chunkI7LO42GD_cjs.a(qr=>{chunkI7LO42GD_cjs.c();var cf=O(),ii=Fe(),Ye=Pe();function ff(s,e){let t=[],i=e.directives===!0;if(e.directives!==!1&&s.directives){let l=s.directives.toString(s);l?(t.push(l),i=!0):s.directives.docStart&&(i=!0);}i&&t.push("---");let n=ii.createStringifyContext(s,e),{commentString:r}=n.options;if(s.commentBefore){t.length!==1&&t.unshift("");let l=r(s.commentBefore);t.unshift(Ye.indentComment(l,""));}let a=!1,o=null;if(s.contents){if(cf.isNode(s.contents)){if(s.contents.spaceBefore&&i&&t.push(""),s.contents.commentBefore){let p=r(s.contents.commentBefore);t.push(Ye.indentComment(p,""));}n.forceBlockIndent=!!s.comment,o=s.contents.comment;}let l=o?void 0:()=>a=!0,c=ii.stringify(s.contents,n,()=>o=null,l);o&&(c+=Ye.lineComment(c,"",r(o))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c);}else t.push(ii.stringify(s.contents,n));if(s.directives?.docEnd)if(s.comment){let l=r(s.comment);l.includes(`
|
|
67
|
+
`)?(t.push("..."),t.push(Ye.indentComment(l,""))):t.push(`... ${l}`);}else t.push("...");else {let l=s.comment;l&&a&&(l=l.replace(/^\n+/,"")),l&&((!a||o)&&t[t.length-1]!==""&&t.push(""),t.push(Ye.indentComment(r(l),"")));}return t.join(`
|
|
68
|
+
`)+`
|
|
69
|
+
`}qr.stringifyDocument=ff;});var Je=chunkI7LO42GD_cjs.a(Cr=>{chunkI7LO42GD_cjs.c();var uf=Ie(),Se=mt(),F=O(),hf=X(),df=W(),pf=si(),mf=Tr(),ni=ct(),yf=cs(),gf=$e(),ri=ls(),ai=class s{constructor(e,t,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,F.NODE_TYPE,{value:F.DOC});let n=null;typeof t=="function"||Array.isArray(t)?n=t:i===void 0&&t&&(i=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},i);this.options=r;let{version:a}=r;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ri.Directives({version:a}),this.setSchema(a,i),this.contents=e===void 0?null:this.createNode(e,n,i);}clone(){let e=Object.create(s.prototype,{[F.NODE_TYPE]:{value:F.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=F.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ve(this.contents)&&this.contents.add(e);}addIn(e,t){ve(this.contents)&&this.contents.addIn(e,t);}createAlias(e,t){if(!e.anchor){let i=ni.anchorNames(this);e.anchor=!t||i.has(t)?ni.findNewAnchor(t||"a",i):t;}return new uf.Alias(e.anchor)}createNode(e,t,i){let n;if(typeof t=="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let m=k=>typeof k=="number"||k instanceof String||k instanceof Number,v=t.filter(m).map(String);v.length>0&&(t=t.concat(v)),n=t;}else i===void 0&&t&&(i=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:a,flow:o,keepUndefined:l,onTagObj:c,tag:p}=i??{},{onAnchor:u,setAnchors:d,sourceObjects:y}=ni.createNodeAnchors(this,a||"a"),w={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:y},h=gf.createNode(e,p,w);return o&&F.isCollection(h)&&(h.flow=!0),d(),h}createPair(e,t,i={}){let n=this.createNode(e,null,i),r=this.createNode(t,null,i);return new hf.Pair(n,r)}delete(e){return ve(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Se.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):ve(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return F.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Se.isEmptyPath(e)?!t&&F.isScalar(this.contents)?this.contents.value:this.contents:F.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return F.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return Se.isEmptyPath(e)?this.contents!==void 0:F.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Se.collectionFromPath(this.schema,[e],t):ve(this.contents)&&this.contents.set(e,t);}setIn(e,t){Se.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=Se.collectionFromPath(this.schema,Array.from(e),t):ve(this.contents)&&this.contents.setIn(e,t);}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ri.Directives({version:"1.1"}),i={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ri.Directives({version:e}),i={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(i)this.schema=new pf.Schema(Object.assign(i,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:i,maxAliasCount:n,onAnchor:r,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=df.toJS(this.contents,t??"",o);if(typeof r=="function")for(let{count:c,res:p}of o.anchors.values())r(p,c);return typeof a=="function"?yf.applyReviver(a,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return mf.stringifyDocument(this,e)}};function ve(s){if(F.isCollection(s))return !0;throw new Error("Expected a YAML collection as document contents")}Cr.Document=ai;});var Ge=chunkI7LO42GD_cjs.a(We=>{chunkI7LO42GD_cjs.c();var Ve=class extends Error{constructor(e,t,i,n){super(),this.name=e,this.code=i,this.message=n,this.pos=t;}},oi=class extends Ve{constructor(e,t,i){super("YAMLParseError",e,t,i);}},li=class extends Ve{constructor(e,t,i){super("YAMLWarning",e,t,i);}},wf=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(o=>e.linePos(o));let{line:i,col:n}=t.linePos[0];t.message+=` at line ${i}, column ${n}`;let r=n-1,a=s.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(r>=60&&a.length>80){let o=Math.min(r-39,a.length-79);a="\u2026"+a.substring(o),r-=o-1;}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(a.substring(0,r))){let o=s.substring(e.lineStarts[i-2],e.lineStarts[i-1]);o.length>80&&(o=o.substring(0,79)+`\u2026
|
|
70
|
+
`),a=o+a;}if(/[^ ]/.test(a)){let o=1,l=t.linePos[1];l&&l.line===i&&l.col>n&&(o=Math.max(1,Math.min(l.col-n,80-r)));let c=" ".repeat(r)+"^".repeat(o);t.message+=`:
|
|
71
|
+
|
|
72
|
+
${a}
|
|
73
|
+
${c}
|
|
74
|
+
`;}};We.YAMLError=Ve;We.YAMLParseError=oi;We.YAMLWarning=li;We.prettifyError=wf;});var Qe=chunkI7LO42GD_cjs.a(Ir=>{chunkI7LO42GD_cjs.c();function bf(s,{flow:e,indicator:t,next:i,offset:n,onError:r,startOnNewline:a}){let o=!1,l=a,c=a,p="",u="",d=!1,y=!1,w=!1,h=null,m=null,v=null,k=null,N=null;for(let b of s)switch(w&&(b.type!=="space"&&b.type!=="newline"&&b.type!=="comma"&&r(b.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),w=!1),b.type){case"space":!e&&l&&t!=="doc-start"&&b.source[0]===" "&&r(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||r(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let q=b.source.substring(1)||" ";p?p+=u+q:p=q,u="",l=!1;break}case"newline":l?p?p+=b.source:o=!0:u+=b.source,l=!0,d=!0,(h||m)&&(y=!0),c=!0;break;case"anchor":h&&r(b,"MULTIPLE_ANCHORS","A node can have at most one anchor"),b.source.endsWith(":")&&r(b.offset+b.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=b,N===null&&(N=b.offset),l=!1,c=!1,w=!0;break;case"tag":{m&&r(b,"MULTIPLE_TAGS","A node can have at most one tag"),m=b,N===null&&(N=b.offset),l=!1,c=!1,w=!0;break}case t:(h||m)&&r(b,"BAD_PROP_ORDER",`Anchors and tags must be after the ${b.source} indicator`),k&&r(b,"UNEXPECTED_TOKEN",`Unexpected ${b.source} in ${e??"collection"}`),k=b,l=!1,c=!1;break;case"comma":if(e){v&&r(b,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),v=b,l=!1,c=!1;break}default:r(b,"UNEXPECTED_TOKEN",`Unexpected ${b.type} token`),l=!1,c=!1;}let A=s[s.length-1],E=A?A.offset+A.source.length:n;return w&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&r(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:k,spaceBefore:o,comment:p,hasNewline:d,hasNewlineAfterProp:y,anchor:h,tag:m,end:E,start:N??E}}Ir.resolveProps=bf;});var Jt=chunkI7LO42GD_cjs.a($r=>{chunkI7LO42GD_cjs.c();function ci(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
|
|
75
|
+
`))return !0;if(s.end){for(let e of s.end)if(e.type==="newline")return !0}return !1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return !0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return !0}if(ci(e.key)||ci(e.value))return !0}return !1;default:return !0}}$r.containsNewline=ci;});var fi=chunkI7LO42GD_cjs.a(Pr=>{chunkI7LO42GD_cjs.c();var Sf=Jt();function vf(s,e,t){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===s&&(i.source==="]"||i.source==="}")&&Sf.containsNewline(e)&&t(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0);}}Pr.flowIndentCheck=vf;});var ui=chunkI7LO42GD_cjs.a(_r=>{chunkI7LO42GD_cjs.c();var Mr=O();function kf(s,e,t){let{uniqueKeys:i}=s.options;if(i===!1)return !1;let n=typeof i=="function"?i:(r,a)=>r===a||Mr.isScalar(r)&&Mr.isScalar(a)&&r.value===a.value&&!(r.value==="<<"&&s.schema.merge);return e.some(r=>n(r.key,t))}_r.mapIncludes=kf;});var xr=chunkI7LO42GD_cjs.a(Rr=>{chunkI7LO42GD_cjs.c();var Dr=X(),Nf=ee(),Fr=Qe(),Af=Jt(),Br=fi(),Ef=ui(),jr="All mapping items must start at the same column";function Of({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=r?.nodeClass??Nf.YAMLMap,o=new a(t.schema);t.atRoot&&(t.atRoot=!1);let l=i.offset,c=null;for(let p of i.items){let{start:u,key:d,sep:y,value:w}=p,h=Fr.resolveProps(u,{indicator:"explicit-key-ind",next:d??y?.[0],offset:l,onError:n,startOnNewline:!0}),m=!h.found;if(m){if(d&&(d.type==="block-seq"?n(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==i.indent&&n(l,"BAD_INDENT",jr)),!h.anchor&&!h.tag&&!y){c=h.end,h.comment&&(o.comment?o.comment+=`
|
|
76
|
+
`+h.comment:o.comment=h.comment);continue}(h.hasNewlineAfterProp||Af.containsNewline(d))&&n(d??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");}else h.found?.indent!==i.indent&&n(l,"BAD_INDENT",jr);let v=h.end,k=d?s(t,d,h,n):e(t,v,u,null,h,n);t.schema.compat&&Br.flowIndentCheck(i.indent,d,n),Ef.mapIncludes(t,o.items,k)&&n(v,"DUPLICATE_KEY","Map keys must be unique");let N=Fr.resolveProps(y??[],{indicator:"map-value-ind",next:w,offset:k.range[2],onError:n,startOnNewline:!d||d.type==="block-scalar"});if(l=N.end,N.found){m&&(w?.type==="block-map"&&!N.hasNewline&&n(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<N.found.offset-1024&&n(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let A=w?s(t,w,N,n):e(t,l,y,null,N,n);t.schema.compat&&Br.flowIndentCheck(i.indent,w,n),l=A.range[2];let E=new Dr.Pair(k,A);t.options.keepSourceTokens&&(E.srcToken=p),o.items.push(E);}else {m&&n(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(k.comment?k.comment+=`
|
|
77
|
+
`+N.comment:k.comment=N.comment);let A=new Dr.Pair(k);t.options.keepSourceTokens&&(A.srcToken=p),o.items.push(A);}}return c&&c<l&&n(c,"IMPOSSIBLE","Map comment with trailing content"),o.range=[i.offset,l,c??l],o}Rr.resolveBlockMap=Of;});var Kr=chunkI7LO42GD_cjs.a(Ur=>{chunkI7LO42GD_cjs.c();var Lf=te(),qf=Qe(),Tf=fi();function Cf({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=r?.nodeClass??Lf.YAMLSeq,o=new a(t.schema);t.atRoot&&(t.atRoot=!1);let l=i.offset,c=null;for(let{start:p,value:u}of i.items){let d=qf.resolveProps(p,{indicator:"seq-item-ind",next:u,offset:l,onError:n,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||u)u&&u.type==="block-seq"?n(d.end,"BAD_INDENT","All sequence items must start at the same column"):n(l,"MISSING_CHAR","Sequence item without - indicator");else {c=d.end,d.comment&&(o.comment=d.comment);continue}let y=u?s(t,u,d,n):e(t,d.end,p,null,d,n);t.schema.compat&&Tf.flowIndentCheck(i.indent,u,n),l=y.range[2],o.items.push(y);}return o.range=[i.offset,l,c??l],o}Ur.resolveBlockSeq=Cf;});var ke=chunkI7LO42GD_cjs.a(Yr=>{chunkI7LO42GD_cjs.c();function If(s,e,t,i){let n="";if(s){let r=!1,a="";for(let o of s){let{source:l,type:c}=o;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&i(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let p=l.substring(1)||" ";n?n+=a+p:n=p,a="";break}case"newline":n&&(a+=l),r=!0;break;default:i(o,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`);}e+=l.length;}}return {comment:n,offset:e}}Yr.resolveEnd=If;});var Gr=chunkI7LO42GD_cjs.a(Wr=>{chunkI7LO42GD_cjs.c();var $f=O(),Pf=X(),Jr=ee(),Mf=te(),_f=ke(),Vr=Qe(),Df=Jt(),Ff=ui(),hi="Block collections are not allowed within flow collections",di=s=>s&&(s.type==="block-map"||s.type==="block-seq");function Bf({composeNode:s,composeEmptyNode:e},t,i,n,r){let a=i.start.source==="{",o=a?"flow map":"flow sequence",l=r?.nodeClass??(a?Jr.YAMLMap:Mf.YAMLSeq),c=new l(t.schema);c.flow=!0;let p=t.atRoot;p&&(t.atRoot=!1);let u=i.offset+i.start.source.length;for(let m=0;m<i.items.length;++m){let v=i.items[m],{start:k,key:N,sep:A,value:E}=v,b=Vr.resolveProps(k,{flow:o,indicator:"explicit-key-ind",next:N??A?.[0],offset:u,onError:n,startOnNewline:!1});if(!b.found){if(!b.anchor&&!b.tag&&!A&&!E){m===0&&b.comma?n(b.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):m<i.items.length-1&&n(b.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),b.comment&&(c.comment?c.comment+=`
|
|
78
|
+
`+b.comment:c.comment=b.comment),u=b.end;continue}!a&&t.options.strict&&Df.containsNewline(N)&&n(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");}if(m===0)b.comma&&n(b.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(b.comma||n(b.start,"MISSING_CHAR",`Missing , between ${o} items`),b.comment){let q="";e:for(let T of k)switch(T.type){case"comma":case"space":break;case"comment":q=T.source.substring(1);break e;default:break e}if(q){let T=c.items[c.items.length-1];$f.isPair(T)&&(T=T.value??T.key),T.comment?T.comment+=`
|
|
79
|
+
`+q:T.comment=q,b.comment=b.comment.substring(q.length+1);}}if(!a&&!A&&!b.found){let q=E?s(t,E,b,n):e(t,b.end,A,null,b,n);c.items.push(q),u=q.range[2],di(E)&&n(q.range,"BLOCK_IN_FLOW",hi);}else {let q=b.end,T=N?s(t,N,b,n):e(t,q,k,null,b,n);di(N)&&n(T.range,"BLOCK_IN_FLOW",hi);let M=Vr.resolveProps(A??[],{flow:o,indicator:"map-value-ind",next:E,offset:T.range[2],onError:n,startOnNewline:!1});if(M.found){if(!a&&!b.found&&t.options.strict){if(A)for(let $ of A){if($===M.found)break;if($.type==="newline"){n($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}b.start<M.found.offset-1024&&n(M.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");}}else E&&("source"in E&&E.source&&E.source[0]===":"?n(E,"MISSING_CHAR",`Missing space after : in ${o}`):n(M.start,"MISSING_CHAR",`Missing , or : between ${o} items`));let ne=E?s(t,E,M,n):M.found?e(t,M.end,A,null,M,n):null;ne?di(E)&&n(ne.range,"BLOCK_IN_FLOW",hi):M.comment&&(T.comment?T.comment+=`
|
|
80
|
+
`+M.comment:T.comment=M.comment);let ue=new Pf.Pair(T,ne);if(t.options.keepSourceTokens&&(ue.srcToken=v),a){let $=c;Ff.mapIncludes(t,$.items,T)&&n(q,"DUPLICATE_KEY","Map keys must be unique"),$.items.push(ue);}else {let $=new Jr.YAMLMap(t.schema);$.flow=!0,$.items.push(ue),c.items.push($);}u=ne?ne.range[2]:M.end;}}let d=a?"}":"]",[y,...w]=i.end,h=u;if(y&&y.source===d)h=y.offset+y.source.length;else {let m=o[0].toUpperCase()+o.substring(1),v=p?`${m} must end with a ${d}`:`${m} in block collection must be sufficiently indented and end with a ${d}`;n(u,p?"MISSING_CHAR":"BAD_INDENT",v),y&&y.source.length!==1&&w.unshift(y);}if(w.length>0){let m=_f.resolveEnd(w,h,t.options.strict,n);m.comment&&(c.comment?c.comment+=`
|
|
81
|
+
`+m.comment:c.comment=m.comment),c.range=[i.offset,h,m.offset];}else c.range=[i.offset,h,h];return c}Wr.resolveFlowCollection=Bf;});var Hr=chunkI7LO42GD_cjs.a(Qr=>{chunkI7LO42GD_cjs.c();var jf=O(),Rf=C(),xf=ee(),Uf=te(),Kf=xr(),Yf=Kr(),Jf=Gr();function pi(s,e,t,i,n,r){let a=t.type==="block-map"?Kf.resolveBlockMap(s,e,t,i,r):t.type==="block-seq"?Yf.resolveBlockSeq(s,e,t,i,r):Jf.resolveFlowCollection(s,e,t,i,r),o=a.constructor;return n==="!"||n===o.tagName?(a.tag=o.tagName,a):(n&&(a.tag=n),a)}function Vf(s,e,t,i,n){let r=i?e.directives.tagName(i.source,u=>n(i,"TAG_RESOLVE_FAILED",u)):null,a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!i||!r||r==="!"||r===xf.YAMLMap.tagName&&a==="map"||r===Uf.YAMLSeq.tagName&&a==="seq"||!a)return pi(s,e,t,n,r);let o=e.schema.tags.find(u=>u.tag===r&&u.collection===a);if(!o){let u=e.schema.knownTags[r];if(u&&u.collection===a)e.schema.tags.push(Object.assign({},u,{default:!1})),o=u;else return u?.collection?n(i,"BAD_COLLECTION_TYPE",`${u.tag} used for ${a} collection, but expects ${u.collection}`,!0):n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,!0),pi(s,e,t,n,r)}let l=pi(s,e,t,n,r,o),c=o.resolve?.(l,u=>n(i,"TAG_RESOLVE_FAILED",u),e.options)??l,p=jf.isNode(c)?c:new Rf.Scalar(c);return p.range=l.range,p.tag=r,o?.format&&(p.format=o.format),p}Qr.composeCollection=Vf;});var yi=chunkI7LO42GD_cjs.a(zr=>{chunkI7LO42GD_cjs.c();var mi=C();function Wf(s,e,t){let i=s.offset,n=Gf(s,e,t);if(!n)return {value:"",type:null,comment:"",range:[i,i,i]};let r=n.mode===">"?mi.Scalar.BLOCK_FOLDED:mi.Scalar.BLOCK_LITERAL,a=s.source?Qf(s.source):[],o=a.length;for(let h=a.length-1;h>=0;--h){let m=a[h][1];if(m===""||m==="\r")o=h;else break}if(o===0){let h=n.chomp==="+"&&a.length>0?`
|
|
82
|
+
`.repeat(Math.max(1,a.length-1)):"",m=i+n.length;return s.source&&(m+=s.source.length),{value:h,type:r,comment:n.comment,range:[i,m,m]}}let l=s.indent+n.indent,c=s.offset+n.length,p=0;for(let h=0;h<o;++h){let[m,v]=a[h];if(v===""||v==="\r")n.indent===0&&m.length>l&&(l=m.length);else {m.length<l&&t(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(l=m.length),p=h;break}c+=m.length+v.length+1;}for(let h=a.length-1;h>=o;--h)a[h][0].length>l&&(o=h+1);let u="",d="",y=!1;for(let h=0;h<p;++h)u+=a[h][0].slice(l)+`
|
|
83
|
+
`;for(let h=p;h<o;++h){let[m,v]=a[h];c+=m.length+v.length+1;let k=v[v.length-1]==="\r";if(k&&(v=v.slice(0,-1)),v&&m.length<l){let A=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;t(c-v.length-(k?2:1),"BAD_INDENT",A),m="";}r===mi.Scalar.BLOCK_LITERAL?(u+=d+m.slice(l)+v,d=`
|
|
84
|
+
`):m.length>l||v[0]===" "?(d===" "?d=`
|
|
85
|
+
`:!y&&d===`
|
|
86
|
+
`&&(d=`
|
|
87
|
+
|
|
88
|
+
`),u+=d+m.slice(l)+v,d=`
|
|
89
|
+
`,y=!0):v===""?d===`
|
|
90
|
+
`?u+=`
|
|
91
|
+
`:d=`
|
|
92
|
+
`:(u+=d+v,d=" ",y=!1);}switch(n.chomp){case"-":break;case"+":for(let h=o;h<a.length;++h)u+=`
|
|
93
|
+
`+a[h][0].slice(l);u[u.length-1]!==`
|
|
94
|
+
`&&(u+=`
|
|
95
|
+
`);break;default:u+=`
|
|
96
|
+
`;}let w=i+n.length+s.source.length;return {value:u,type:r,comment:n.comment,range:[i,w,w]}}function Gf({offset:s,props:e},t,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=e[0],r=n[0],a=0,o="",l=-1;for(let d=1;d<n.length;++d){let y=n[d];if(!o&&(y==="-"||y==="+"))o=y;else {let w=Number(y);!a&&w?a=w:l===-1&&(l=s+d);}}l!==-1&&i(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let c=!1,p="",u=n.length;for(let d=1;d<e.length;++d){let y=e[d];switch(y.type){case"space":c=!0;case"newline":u+=y.source.length;break;case"comment":t&&!c&&i(y,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=y.source.length,p=y.source.substring(1);break;case"error":i(y,"UNEXPECTED_TOKEN",y.message),u+=y.source.length;break;default:{let w=`Unexpected token in block scalar header: ${y.type}`;i(y,"UNEXPECTED_TOKEN",w);let h=y.source;h&&typeof h=="string"&&(u+=h.length);}}}return {mode:r,indent:a,chomp:o,comment:p,length:u}}function Qf(s){let e=s.split(/\n( *)/),t=e[0],i=t.match(/^( *)/),r=[i?.[1]?[i[1],t.slice(i[1].length)]:["",t]];for(let a=1;a<e.length;a+=2)r.push([e[a],e[a+1]]);return r}zr.resolveBlockScalar=Wf;});var wi=chunkI7LO42GD_cjs.a(Zr=>{chunkI7LO42GD_cjs.c();var gi=C(),Hf=ke();function zf(s,e,t){let{offset:i,type:n,source:r,end:a}=s,o,l,c=(d,y,w)=>t(i+d,y,w);switch(n){case"scalar":o=gi.Scalar.PLAIN,l=Xf(r,c);break;case"single-quoted-scalar":o=gi.Scalar.QUOTE_SINGLE,l=Zf(r,c);break;case"double-quoted-scalar":o=gi.Scalar.QUOTE_DOUBLE,l=eu(r,c);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+r.length,i+r.length]}}let p=i+r.length,u=Hf.resolveEnd(a,p,e,t);return {value:l,type:o,comment:u.comment,range:[i,p,u.offset]}}function Xf(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Xr(s)}function Zf(s,e){return (s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Xr(s.slice(1,-1)).replace(/''/g,"'")}function Xr(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
97
|
+
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
98
|
+
`,"sy");}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy;}let i=e.exec(s);if(!i)return s;let n=i[1],r=" ",a=e.lastIndex;for(t.lastIndex=a;i=t.exec(s);)i[1]===""?r===`
|
|
99
|
+
`?n+=r:r=`
|
|
100
|
+
`:(n+=r+i[1],r=" "),a=t.lastIndex;let o=/[ \t]*(.*)/sy;return o.lastIndex=a,i=o.exec(s),n+r+(i?.[1]??"")}function eu(s,e){let t="";for(let i=1;i<s.length-1;++i){let n=s[i];if(!(n==="\r"&&s[i+1]===`
|
|
101
|
+
`))if(n===`
|
|
102
|
+
`){let{fold:r,offset:a}=tu(s,i);t+=r,i=a;}else if(n==="\\"){let r=s[++i],a=su[r];if(a)t+=a;else if(r===`
|
|
103
|
+
`)for(r=s[i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="\r"&&s[i+1]===`
|
|
104
|
+
`)for(r=s[++i+1];r===" "||r===" ";)r=s[++i+1];else if(r==="x"||r==="u"||r==="U"){let o={x:2,u:4,U:8}[r];t+=iu(s,i+1,o,e),i+=o;}else {let o=s.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),t+=o;}}else if(n===" "||n===" "){let r=i,a=s[i+1];for(;a===" "||a===" ";)a=s[++i+1];a!==`
|
|
105
|
+
`&&!(a==="\r"&&s[i+2]===`
|
|
106
|
+
`)&&(t+=i>r?s.slice(r,i+1):n);}else t+=n;}return (s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function tu(s,e){let t="",i=s[e+1];for(;(i===" "||i===" "||i===`
|
|
107
|
+
`||i==="\r")&&!(i==="\r"&&s[e+2]!==`
|
|
108
|
+
`);)i===`
|
|
109
|
+
`&&(t+=`
|
|
110
|
+
`),e+=1,i=s[e+1];return t||(t=" "),{fold:t,offset:e}}var su={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
111
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function iu(s,e,t,i){let n=s.substr(e,t),a=n.length===t&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(a)){let o=s.substr(e-2,t+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(a)}Zr.resolveFlowScalar=zf;});var sa=chunkI7LO42GD_cjs.a(ta=>{chunkI7LO42GD_cjs.c();var Ne=O(),ea=C(),nu=yi(),ru=wi();function au(s,e,t,i){let{value:n,type:r,comment:a,range:o}=e.type==="block-scalar"?nu.resolveBlockScalar(e,s.options.strict,i):ru.resolveFlowScalar(e,s.options.strict,i),l=t?s.directives.tagName(t.source,u=>i(t,"TAG_RESOLVE_FAILED",u)):null,c=t&&l?ou(s.schema,n,l,t,i):e.type==="scalar"?lu(s,n,e,i):s.schema[Ne.SCALAR],p;try{let u=c.resolve(n,d=>i(t??e,"TAG_RESOLVE_FAILED",d),s.options);p=Ne.isScalar(u)?u:new ea.Scalar(u);}catch(u){let d=u instanceof Error?u.message:String(u);i(t??e,"TAG_RESOLVE_FAILED",d),p=new ea.Scalar(n);}return p.range=o,p.source=n,r&&(p.type=r),l&&(p.tag=l),c.format&&(p.format=c.format),a&&(p.comment=a),p}function ou(s,e,t,i,n){if(t==="!")return s[Ne.SCALAR];let r=[];for(let o of s.tags)if(!o.collection&&o.tag===t)if(o.default&&o.test)r.push(o);else return o;for(let o of r)if(o.test?.test(e))return o;let a=s.knownTags[t];return a&&!a.collection?(s.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[Ne.SCALAR])}function lu({directives:s,schema:e},t,i,n){let r=e.tags.find(a=>a.default&&a.test?.test(t))||e[Ne.SCALAR];if(e.compat){let a=e.compat.find(o=>o.default&&o.test?.test(t))??e[Ne.SCALAR];if(r.tag!==a.tag){let o=s.tagString(r.tag),l=s.tagString(a.tag),c=`Value may be parsed as either ${o} or ${l}`;n(i,"TAG_RESOLVE_FAILED",c,!0);}}return r}ta.composeScalar=au;});var na=chunkI7LO42GD_cjs.a(ia=>{chunkI7LO42GD_cjs.c();function cu(s,e,t){if(e){t===null&&(t=e.length);for(let i=t-1;i>=0;--i){let n=e[i];switch(n.type){case"space":case"comment":case"newline":s-=n.source.length;continue}for(n=e[++i];n?.type==="space";)s+=n.source.length,n=e[++i];break}}return s}ia.emptyScalarPosition=cu;});var oa=chunkI7LO42GD_cjs.a(Si=>{chunkI7LO42GD_cjs.c();var fu=Ie(),uu=Hr(),ra=sa(),hu=ke(),du=na(),pu={composeNode:aa,composeEmptyNode:bi};function aa(s,e,t,i){let{spaceBefore:n,comment:r,anchor:a,tag:o}=t,l,c=!0;switch(e.type){case"alias":l=mu(s,e,i),(a||o)&&i(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=ra.composeScalar(s,e,o,i),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=uu.composeCollection(pu,s,e,o,i),a&&(l.anchor=a.source.substring(1));break;default:{let p=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",p),l=bi(s,e.offset,void 0,null,t,i),c=!1;}}return a&&l.anchor===""&&i(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&(l.spaceBefore=!0),r&&(e.type==="scalar"&&e.source===""?l.comment=r:l.commentBefore=r),s.options.keepSourceTokens&&c&&(l.srcToken=e),l}function bi(s,e,t,i,{spaceBefore:n,comment:r,anchor:a,tag:o,end:l},c){let p={type:"scalar",offset:du.emptyScalarPosition(e,t,i),indent:-1,source:""},u=ra.composeScalar(s,p,o,c);return a&&(u.anchor=a.source.substring(1),u.anchor===""&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=l),u}function mu({options:s},{offset:e,source:t,end:i},n){let r=new fu.Alias(t.substring(1));r.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&n(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=e+t.length,o=hu.resolveEnd(i,a,s.strict,n);return r.range=[e,a,o.offset],o.comment&&(r.comment=o.comment),r}Si.composeEmptyNode=bi;Si.composeNode=aa;});var fa=chunkI7LO42GD_cjs.a(ca=>{chunkI7LO42GD_cjs.c();var yu=Je(),la=oa(),gu=ke(),wu=Qe();function bu(s,e,{offset:t,start:i,value:n,end:r},a){let o=Object.assign({_directives:e},s),l=new yu.Document(void 0,o),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},p=wu.resolveProps(i,{indicator:"doc-start",next:n??r?.[0],offset:t,onError:a,startOnNewline:!0});p.found&&(l.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!p.hasNewline&&a(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=n?la.composeNode(c,n,p,a):la.composeEmptyNode(c,p.end,i,null,p,a);let u=l.contents.range[2],d=gu.resolveEnd(r,u,!1,a);return d.comment&&(l.comment=d.comment),l.range=[t,u,d.offset],l}ca.composeDoc=bu;});var ki=chunkI7LO42GD_cjs.a(da=>{chunkI7LO42GD_cjs.c();var Su=ls(),vu=Je(),He=Ge(),ua=O(),ku=fa(),Nu=ke();function ze(s){if(typeof s=="number")return [s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return [e,e+(typeof t=="string"?t.length:1)]}function ha(s){let e="",t=!1,i=!1;for(let n=0;n<s.length;++n){let r=s[n];switch(r[0]){case"#":e+=(e===""?"":i?`
|
|
112
|
+
|
|
113
|
+
`:`
|
|
114
|
+
`)+(r.substring(1)||" "),t=!0,i=!1;break;case"%":s[n+1]?.[0]!=="#"&&(n+=1),t=!1;break;default:t||(i=!0),t=!1;}}return {comment:e,afterEmptyLine:i}}var vi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,i,n,r)=>{let a=ze(t);r?this.warnings.push(new He.YAMLWarning(a,i,n)):this.errors.push(new He.YAMLParseError(a,i,n));},this.directives=new Su.Directives({version:e.version||"1.2"}),this.options=e;}decorate(e,t){let{comment:i,afterEmptyLine:n}=ha(this.prelude);if(i){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
115
|
+
${i}`:i;else if(n||e.directives.docStart||!r)e.commentBefore=i;else if(ua.isCollection(r)&&!r.flow&&r.items.length>0){let a=r.items[0];ua.isPair(a)&&(a=a.key);let o=a.commentBefore;a.commentBefore=o?`${i}
|
|
116
|
+
${o}`:i;}else {let a=r.commentBefore;r.commentBefore=a?`${i}
|
|
117
|
+
${a}`:i;}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[];}streamInfo(){return {comment:ha(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,i=-1){for(let n of e)yield*this.next(n);yield*this.end(t,i);}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,i,n)=>{let r=ze(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",i,n);}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=ku.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,i=new He.YAMLParseError(ze(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new He.YAMLParseError(ze(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let t=Nu.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
|
|
118
|
+
${t.comment}`:t.comment;}this.doc.range[2]=t.offset;break}default:this.errors.push(new He.YAMLParseError(ze(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`));}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let i=Object.assign({_directives:this.directives},this.options),n=new vu.Document(void 0,i);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n;}}};da.Composer=vi;});var ya=chunkI7LO42GD_cjs.a(Vt=>{chunkI7LO42GD_cjs.c();var Au=yi(),Eu=wi(),Ou=Ge(),pa=De();function Lu(s,e=!0,t){if(s){let i=(n,r,a)=>{let o=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(t)t(o,r,a);else throw new Ou.YAMLParseError([o,o+1],r,a)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Eu.resolveFlowScalar(s,e,i);case"block-scalar":return Au.resolveBlockScalar(s,e,i)}}return null}function qu(s,e){let{implicitKey:t=!1,indent:i,inFlow:n=!1,offset:r=-1,type:a="PLAIN"}=e,o=pa.stringifyString({type:a,value:s},{implicitKey:t,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:i,source:`
|
|
119
|
+
`}];switch(o[0]){case"|":case">":{let c=o.indexOf(`
|
|
120
|
+
`),p=o.substring(0,c),u=o.substring(c+1)+`
|
|
121
|
+
`,d=[{type:"block-scalar-header",offset:r,indent:i,source:p}];return ma(d,l)||d.push({type:"newline",offset:-1,indent:i,source:`
|
|
122
|
+
`}),{type:"block-scalar",offset:r,indent:i,props:d,source:u}}case'"':return {type:"double-quoted-scalar",offset:r,indent:i,source:o,end:l};case"'":return {type:"single-quoted-scalar",offset:r,indent:i,source:o,end:l};default:return {type:"scalar",offset:r,indent:i,source:o,end:l}}}function Tu(s,e,t={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:r=!1,type:a}=t,o="indent"in s?s.indent:null;if(i&&typeof o=="number"&&(o+=2),!a)switch(s.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let c=s.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN";}let l=pa.stringifyString({type:a,value:e},{implicitKey:n||o===null,indent:o!==null&&o>0?" ".repeat(o):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Cu(s,l);break;case'"':Ni(s,l,"double-quoted-scalar");break;case"'":Ni(s,l,"single-quoted-scalar");break;default:Ni(s,l,"scalar");}}function Cu(s,e){let t=e.indexOf(`
|
|
123
|
+
`),i=e.substring(0,t),n=e.substring(t+1)+`
|
|
124
|
+
`;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=i,s.source=n;}else {let{offset:r}=s,a="indent"in s?s.indent:-1,o=[{type:"block-scalar-header",offset:r,indent:a,source:i}];ma(o,"end"in s?s.end:void 0)||o.push({type:"newline",offset:-1,indent:a,source:`
|
|
125
|
+
`});for(let l of Object.keys(s))l!=="type"&&l!=="offset"&&delete s[l];Object.assign(s,{type:"block-scalar",indent:a,props:o,source:n});}}function ma(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return !1}function Ni(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let i=s.props.slice(1),n=e.length;s.props[0].type==="block-scalar-header"&&(n-=s.props[0].source.length);for(let r of i)r.offset+=n;delete s.props,Object.assign(s,{type:t,source:e,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
|
|
126
|
+
`};delete s.items,Object.assign(s,{type:t,source:e,end:[n]});break}default:{let i="indent"in s?s.indent:-1,n="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:i,source:e,end:n});}}}Vt.createScalarToken=qu;Vt.resolveAsScalar=Lu;Vt.setScalarValue=Tu;});var wa=chunkI7LO42GD_cjs.a(ga=>{chunkI7LO42GD_cjs.c();var Iu=s=>"type"in s?Gt(s):Wt(s);function Gt(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=Gt(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=Wt(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=Wt(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=Wt(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function Wt({start:s,key:e,sep:t,value:i}){let n="";for(let r of s)n+=r.source;if(e&&(n+=Gt(e)),t)for(let r of t)n+=r.source;return i&&(n+=Gt(i)),n}ga.stringify=Iu;});var ka=chunkI7LO42GD_cjs.a(va=>{chunkI7LO42GD_cjs.c();var Ai=Symbol("break visit"),$u=Symbol("skip children"),ba=Symbol("remove item");function ce(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),Sa(Object.freeze([]),s,e);}ce.BREAK=Ai;ce.SKIP=$u;ce.REMOVE=ba;ce.itemAtPath=(s,e)=>{let t=s;for(let[i,n]of e){let r=t?.[i];if(r&&"items"in r)t=r.items[n];else return}return t};ce.parentCollection=(s,e)=>{let t=ce.itemAtPath(s,e.slice(0,-1)),i=e[e.length-1][0],n=t?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function Sa(s,e,t){let i=t(e,s);if(typeof i=="symbol")return i;for(let n of ["key","value"]){let r=e[n];if(r&&"items"in r){for(let a=0;a<r.items.length;++a){let o=Sa(Object.freeze(s.concat([[n,a]])),r.items[a],t);if(typeof o=="number")a=o-1;else {if(o===Ai)return Ai;o===ba&&(r.items.splice(a,1),a-=1);}}typeof i=="function"&&n==="key"&&(i=i(e,s));}}return typeof i=="function"?i(e,s):i}va.visit=ce;});var Qt=chunkI7LO42GD_cjs.a(D=>{chunkI7LO42GD_cjs.c();var Ei=ya(),Pu=wa(),Mu=ka(),Oi="\uFEFF",Li="",qi="",Ti="",_u=s=>!!s&&"items"in s,Du=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function Fu(s){switch(s){case Oi:return "<BOM>";case Li:return "<DOC>";case qi:return "<FLOW_END>";case Ti:return "<SCALAR>";default:return JSON.stringify(s)}}function Bu(s){switch(s){case Oi:return "byte-order-mark";case Li:return "doc-mode";case qi:return "flow-error-end";case Ti:return "scalar";case"---":return "doc-start";case"...":return "doc-end";case"":case`
|
|
127
|
+
`:case`\r
|
|
128
|
+
`:return "newline";case"-":return "seq-item-ind";case"?":return "explicit-key-ind";case":":return "map-value-ind";case"{":return "flow-map-start";case"}":return "flow-map-end";case"[":return "flow-seq-start";case"]":return "flow-seq-end";case",":return "comma"}switch(s[0]){case" ":case" ":return "space";case"#":return "comment";case"%":return "directive-line";case"*":return "alias";case"&":return "anchor";case"!":return "tag";case"'":return "single-quoted-scalar";case'"':return "double-quoted-scalar";case"|":case">":return "block-scalar-header"}return null}D.createScalarToken=Ei.createScalarToken;D.resolveAsScalar=Ei.resolveAsScalar;D.setScalarValue=Ei.setScalarValue;D.stringify=Pu.stringify;D.visit=Mu.visit;D.BOM=Oi;D.DOCUMENT=Li;D.FLOW_END=qi;D.SCALAR=Ti;D.isCollection=_u;D.isScalar=Du;D.prettyToken=Fu;D.tokenType=Bu;});var Pi=chunkI7LO42GD_cjs.a(Aa=>{chunkI7LO42GD_cjs.c();var Xe=Qt();function B(s){switch(s){case void 0:case" ":case`
|
|
129
|
+
`:case"\r":case" ":return !0;default:return !1}}var Na="0123456789ABCDEFabcdef".split(""),ju="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Ci=",[]{}".split(""),Ru=` ,[]{}
|
|
130
|
+
\r `.split(""),Ii=s=>!s||Ru.includes(s),$i=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0;}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let i=this.next??"stream";for(;i&&(t||this.hasChars(1));)i=yield*this.parseNext(i);}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return !t||t==="#"||t===`
|
|
131
|
+
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
132
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let i=0;for(;t===" ";)t=this.buffer[++i+e];if(t==="\r"){let n=this.buffer[i+e+1];if(n===`
|
|
133
|
+
`||!n&&!this.atEnd)return e+i+1}return t===`
|
|
134
|
+
`||i>=this.indentNext||!t&&!this.atEnd?e+i:-1}if(t==="-"||t==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&B(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return (typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
135
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Xe.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,i=e.indexOf("#");if(i!==-1){let r=e[i-1];(r===" "||r===" ")&&(t=i-1);}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Xe.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if(t==="---"&&B(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(t==="..."&&B(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!B(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&B(t)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return "doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ii),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,i=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=i=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&B(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Xe.FLOW_END,yield*this.parseLineStart();let r=0;for(;n[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),n[r]){case void 0:return "flow";case"#":return yield*this.pushCount(n.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ii),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||B(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1);}let i=this.buffer.substring(0,t),n=i.indexOf(`
|
|
136
|
+
`,this.pos);if(n!==-1){for(;n!==-1;){let r=this.continueScalar(n+1);if(r===-1)break;n=i.indexOf(`
|
|
137
|
+
`,r);}n!==-1&&(t=n-(i[n-1]==="\r"?2:1));}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length;}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>B(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,i;e:for(let n=this.pos;i=this.buffer[n];++n)switch(i){case" ":t+=1;break;case`
|
|
138
|
+
`:e=n,t=0;break;case"\r":{let r=this.buffer[n+1];if(!r&&!this.atEnd)return this.setNext("block-scalar");if(r===`
|
|
139
|
+
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext+=this.blockScalarIndent;do{let n=this.continueScalar(e+1);if(n===-1)break;e=this.buffer.indexOf(`
|
|
140
|
+
`,n);}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length;}}if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r==="\r"&&(r=this.buffer[--n]);let a=n;for(;r===" "||r===" ";)r=this.buffer[--n];if(r===`
|
|
141
|
+
`&&n>=this.pos&&n+1+t>a)e=n;else break}while(!0);return yield Xe.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let r=this.buffer[i+1];if(B(r)||e&&r===",")break;t=i;}else if(B(n)){let r=this.buffer[i+1];if(n==="\r"&&(r===`
|
|
142
|
+
`?(i+=1,n=`
|
|
143
|
+
`,r=this.buffer[i+1]):t=i),r==="#"||e&&Ci.includes(r))break;if(n===`
|
|
144
|
+
`){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2);}}else {if(e&&Ci.includes(n))break;t=i;}return !n&&!this.atEnd?this.setNext("plain-scalar"):(yield Xe.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(t&&(yield ""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return (yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return (yield*this.pushUntil(Ii))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(B(t)||e&&Ci.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!B(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else {let e=this.pos+1,t=this.buffer[e];for(;t;)if(ju.includes(t))t=this.buffer[++e];else if(t==="%"&&Na.includes(this.buffer[e+1])&&Na.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
145
|
+
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
146
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,i;do i=this.buffer[++t];while(i===" "||e&&i===" ");let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let t=this.pos,i=this.buffer[t];for(;!e(i);)i=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};Aa.Lexer=$i;});var _i=chunkI7LO42GD_cjs.a(Ea=>{chunkI7LO42GD_cjs.c();var Mi=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,i=this.lineStarts.length;for(;t<i;){let r=t+i>>1;this.lineStarts[r]<e?t=r+1:i=r;}if(this.lineStarts[t]===e)return {line:t+1,col:1};if(t===0)return {line:0,col:e};let n=this.lineStarts[t-1];return {line:t,col:e-n+1}};}};Ea.LineCounter=Mi;});var Fi=chunkI7LO42GD_cjs.a(Ca=>{chunkI7LO42GD_cjs.c();var Oa=Qt(),xu=Pi();function j(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return !0;return !1}function La(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function Ta(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return !0;default:return !1}}function Ht(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return []}}function Ae(s){if(s.length===0)return [];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function qa(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!j(e.start,"explicit-key-ind")&&!j(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Ta(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep);}var Di=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new xu.Lexer,this.onNewLine=e;}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,t))yield*this.next(i);t||(yield*this.end());}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",Oa.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Oa.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else {switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1;}this.offset+=e.length;}else {let i=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:e}),this.offset+=e.length;}}*end(){for(;this.stack.length>0;)yield*this.pop();}get sourceToken(){return {type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop();}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield {type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else {let i=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in i?i.indent:0:t.type==="flow-collection"&&i.type==="document"&&(t.indent=0),t.type==="flow-collection"&&qa(t),i.type){case"document":i.value=t;break;case"block-scalar":i.props.push(t);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else {Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!j(n.start,"explicit-key-ind");return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t);}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&La(n.start)===-1&&(t.indent===0||n.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),t.items.splice(-1,1));}}}*stream(){switch(this.type){case"directive-line":yield {type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield {type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source};}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{La(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield {type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source};}*scalar(e){if(this.type==="map-value-ind"){let t=Ht(this.peek(2)),i=Ae(t),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r;}else yield*this.lineEnd(e);}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
147
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
148
|
+
`,t)+1;}yield*this.pop();break;default:yield*this.pop(),yield*this.step();}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else {if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken);}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent&&t.sep&&this.type!=="seq-item-ind",n=[];if(i&&t.sep&&!t.value){let r=[];for(let a=0;a<t.sep.length;++a){let o=t.sep[a];switch(o.type){case"newline":r.push(a);break;case"space":break;case"comment":o.indent>e.indent&&(r.length=0);break;default:r.length=0;}}r.length>=2&&(n=t.sep.splice(r[1]));}switch(this.type){case"anchor":case"tag":i||t.value?(n.push(this.sourceToken),e.items.push({start:n}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!j(t.start,"explicit-key-ind")?t.start.push(this.sourceToken):i||t.value?(n.push(this.sourceToken),e.items.push({start:n})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(j(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(j(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});else if(Ta(t.key)&&!j(t.sep,"newline")){let r=Ae(t.start),a=t.key,o=t.sep;o.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:a,sep:o}]});}else n.length>0?t.sep=t.sep.concat(n,this.sourceToken):t.sep.push(this.sourceToken);else if(j(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else {let r=Ae(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});}else t.sep?t.value||i?e.items.push({start:n,key:null,sep:[this.sourceToken]}):j(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);i||t.value?(e.items.push({start:n,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){i&&r.type!=="block-seq"&&j(t.start,"explicit-key-ind")&&e.items.push({start:n}),this.stack.push(r);return}}}}yield*this.pop(),yield*this.step();}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let i="end"in t.value?t.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else {if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken);}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||j(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step();}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step());}else {let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let n=Ht(i),r=Ae(n);qa(e);let a=e.end.splice(1,e.end.length);a.push(this.sourceToken);let o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o;}else yield*this.lineEnd(e);}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
149
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
150
|
+
`,t)+1;}return {type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return {type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return {type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return {type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Ht(e),i=Ae(t);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Ht(e),i=Ae(t);return {type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()));}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop());}}};Ca.Parser=Di;});var _a=chunkI7LO42GD_cjs.a(et=>{chunkI7LO42GD_cjs.c();var Ia=ki(),Uu=Je(),Ze=Ge(),Ku=Ss(),Yu=_i(),$a=Fi();function Pa(s){let e=s.prettyErrors!==!1;return {lineCounter:s.lineCounter||e&&new Yu.LineCounter||null,prettyErrors:e}}function Ju(s,e={}){let{lineCounter:t,prettyErrors:i}=Pa(e),n=new $a.Parser(t?.addNewLine),r=new Ia.Composer(e),a=Array.from(r.compose(n.parse(s)));if(i&&t)for(let o of a)o.errors.forEach(Ze.prettifyError(s,t)),o.warnings.forEach(Ze.prettifyError(s,t));return a.length>0?a:Object.assign([],{empty:!0},r.streamInfo())}function Ma(s,e={}){let{lineCounter:t,prettyErrors:i}=Pa(e),n=new $a.Parser(t?.addNewLine),r=new Ia.Composer(e),a=null;for(let o of r.compose(n.parse(s),!0,s.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new Ze.YAMLParseError(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&t&&(a.errors.forEach(Ze.prettifyError(s,t)),a.warnings.forEach(Ze.prettifyError(s,t))),a}function Vu(s,e,t){let i;typeof e=="function"?i=e:t===void 0&&e&&typeof e=="object"&&(t=e);let n=Ma(s,t);if(!n)return null;if(n.warnings.forEach(r=>Ku.warn(n.options.logLevel,r)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[];}return n.toJS(Object.assign({reviver:i},t))}function Wu(s,e,t){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let n=Math.round(t);t=n<1?void 0:n>8?{indent:8}:{indent:n};}if(s===void 0){let{keepUndefined:n}=t??e??{};if(!n)return}return new Uu.Document(s,i,t).toString(t)}et.parse=Vu;et.parseAllDocuments=Ju;et.parseDocument=Ma;et.stringify=Wu;});var Fa=chunkI7LO42GD_cjs.a(L=>{chunkI7LO42GD_cjs.c();var Gu=ki(),Qu=Je(),Hu=si(),Bi=Ge(),zu=Ie(),se=O(),Xu=X(),Zu=C(),eh=ee(),th=te(),sh=Qt(),ih=Pi(),nh=_i(),rh=Fi(),zt=_a(),Da=Le();L.Composer=Gu.Composer;L.Document=Qu.Document;L.Schema=Hu.Schema;L.YAMLError=Bi.YAMLError;L.YAMLParseError=Bi.YAMLParseError;L.YAMLWarning=Bi.YAMLWarning;L.Alias=zu.Alias;L.isAlias=se.isAlias;L.isCollection=se.isCollection;L.isDocument=se.isDocument;L.isMap=se.isMap;L.isNode=se.isNode;L.isPair=se.isPair;L.isScalar=se.isScalar;L.isSeq=se.isSeq;L.Pair=Xu.Pair;L.Scalar=Zu.Scalar;L.YAMLMap=eh.YAMLMap;L.YAMLSeq=th.YAMLSeq;L.CST=sh;L.Lexer=ih.Lexer;L.LineCounter=nh.LineCounter;L.Parser=rh.Parser;L.parse=zt.parse;L.parseAllDocuments=zt.parseAllDocuments;L.parseDocument=zt.parseDocument;L.stringify=zt.stringify;L.visit=Da.visit;L.visitAsync=Da.visitAsync;});chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();var lo=(s,e)=>{let t=s.split(".").map(Number),i=e.split(".").map(Number);for(let[n,r]of t.entries()){if(r>i[n])return !0;if(r<i[n])return !1}return !1},Yi=lo;chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();var co=class extends Error{constructor(s){super(`EPERM: Operation not permitted, ${s}`);}get code(){return "EPERM"}set code(s){throw new Error("Cannot overwrite code EPERM")}get name(){return "PermissionError"}set name(s){throw new Error("Cannot overwrite name of PermissionError")}},ts=co;chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();var fo=class Ji extends Error{fileName;codeFrame;name="JSONError";#e;constructor(e){super(),this.#e=e,Error.captureStackTrace(this,Ji);}get message(){return `${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
|
|
151
|
+
|
|
152
|
+
${this.codeFrame}
|
|
153
|
+
`:""}`}set message(e){this.#e=e;}},Vi=fo;var ho=s=>{if(!s||!(s instanceof URL)&&typeof s!="string")throw new TypeError("Path must be a non-empty string or URL.")},nt=ho,po=s=>s instanceof URL?url.fileURLToPath(s):s,he=po,mo=s=>s.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
|
|
154
|
+
`),yo=mo,go=globalThis.process||Object.create(null),Wi={versions:{}},wo=new Proxy(go,{get(s,e){if(e in s)return s[e];if(e in Wi)return Wi[e]}}),Gi=wo,bo=(s,e,t,i)=>{let n={column:0,line:-1,...s.start},r={...n,...s.end},a=n.line,o=n.column,l=r.line,c=r.column,p=Math.max(a-(t+1),0),u=Math.min(e.length,l+i);a===-1&&(p=0),l===-1&&(u=e.length);let d=l-a,y={};if(d)for(let w=0;w<=d;w++){let h=w+a;if(!o)y[h]=!0;else if(w===0){let m=e[h-1]?.length;y[h]=[o,(m??0)-o+1];}else if(w===d)y[h]=[0,c];else {let m=e[h-w]?.length;y[h]=[0,m];}}else o===c?y[a]=o?[o,0]:!0:y[a]=[o,(c??0)-(o??0)];return {end:u,markerLines:y,start:p}},So=bo,vo=Gi.platform==="win32"&&!Gi.env?.WT_SESSION?">":"\u276F",ko=(s,e,t)=>{let i={linesAbove:2,linesBelow:3,showGutter:!0,showLineNumbers:!0,tabWidth:4,...t,color:{gutter:w=>w,marker:w=>w,message:w=>w,...t?.color}},n=e.start&&typeof e.start.column=="number",r=yo(s).split(`
|
|
155
|
+
`);typeof i?.tabWidth=="number"&&(r=r.map(w=>w.replaceAll(" "," ".repeat(i.tabWidth))));let{end:a,markerLines:o,start:l}=So(e,r,i.linesAbove,i.linesBelow),c=String(a).length,{gutter:p,marker:u,message:d}=i.color,y=r.slice(l,a).map((w,h)=>{let m=l+1+h,v=o[m],k=` ${m}`.slice(-c),N=!o[m+1],A=` ${k}${i.showGutter?" |":""}`;if(v){let E="";if(Array.isArray(v)){let b=w.replaceAll(/[^\t]/g," ").slice(0,Math.max(v[0]-1,0)),q=v[1]||1;E=[`
|
|
156
|
+
`,p(A.replaceAll(/\d/g," "))," ",b,u("^").repeat(q)].join(""),N&&i.message&&(E+=` ${d(i.message)}`);}return [u(vo),p(A),w.length>0?` ${w}`:"",E].join("")}return ` ${p(A)}${w.length>0?` ${w}`:""}`}).join(`
|
|
157
|
+
`);return i.message&&!n&&(y=`${" ".repeat(c+1)}${i.message}
|
|
158
|
+
${y}`),y},Qi=(s,e)=>{let t=0,i=e.length-2;for(;t<i;){let n=t+(i-t>>1);if(s<e[n])i=n-1;else if(s>=e[n+1])t=n+1;else {t=n;break}}return t},No=s=>s.split(/\n|\r(?!\n)/).reduce((e,t)=>(e.push(e.at(-1)+t.length+1),e),[0]),Ao=(s,e,t)=>{let i=t?.skipChecks??!1;if(!i&&(!Array.isArray(s)&&typeof s!="string"||(typeof s=="string"||Array.isArray(s))&&s.length===0))return {column:0,line:0};if(!i&&(typeof e!="number"||typeof s=="string"&&e>=s.length||Array.isArray(s)&&e+1>=s.at(-1)))return {column:0,line:0};if(typeof s=="string"){let r=No(s),a=Qi(e,r);return {column:e-r[a]+1,line:a+1}}let n=Qi(e,s);return {column:e-s[n]+1,line:n+1}},Eo=Ao,Oo=s=>`\\u{${s.codePointAt(0).toString(16)}}`,Lo=(s,e,t)=>ko(s,{start:e},{tabWidth:!1,...t}),qo=(s,e)=>{let t=/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(e);if(!t)return;let{column:i,index:n,line:r}=t.groups;return r&&i?{column:Number(i),line:Number(r)}:(n=Number(n),n===s.length&&(n=s.length-1),Eo(s,n))},To=s=>s.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,t,i)=>`"${i}"(${Oo(i)})`);function Co(s,e,t,i){typeof e=="string"&&(typeof t=="object"&&(i=t),t=e,e=void 0);let n;try{return JSON.parse(s,e)}catch(o){n=o.message;}let r;s?(r=qo(s,n),n=To(n)):n+=" while parsing empty string";let a=new Vi(n);throw a.fileName=t,r&&(a.codeFrame=Lo(s,r,i)),a}var Hi=Co;chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();var Io=/^[A-Za-z]:\//;function ss(s=""){return s&&s.replace(/\\/g,"/").replace(Io,e=>e.toUpperCase())}var $o=/^[/\\]{2}/,Po=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,zi=/^[A-Za-z]:$/;var is=function(s){if(s.length===0)return ".";s=ss(s);let e=s.match($o),t=J(s),i=s[s.length-1]==="/";return s=ns(s,!t),s.length===0?t?"/":i?"./":".":(i&&(s+="/"),zi.test(s)&&(s+="/"),e?t?`//${s}`:`//./${s}`:t&&!J(s)?`/${s}`:s)},R=function(...s){if(s.length===0)return ".";let e;for(let t of s)t&&t.length>0&&(e===void 0?e=t:e+=`/${t}`);return e===void 0?".":is(e.replace(/\/\/+/g,"/"))};function Mo(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var Oe=function(...s){s=s.map(i=>ss(i));let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){let n=i>=0?s[i]:Mo();!n||n.length===0||(e=`${n}/${e}`,t=J(n));}return e=ns(e,!t),t&&!J(e)?`/${e}`:e.length>0?e:"."};function ns(s,e){let t="",i=0,n=-1,r=0,a=null;for(let o=0;o<=s.length;++o){if(o<s.length)a=s[o];else {if(a==="/")break;a="/";}if(a==="/"){if(!(n===o-1||r===1))if(r===2){if(t.length<2||i!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let l=t.lastIndexOf("/");l===-1?(t="",i=0):(t=t.slice(0,l),i=t.length-1-t.lastIndexOf("/")),n=o,r=0;continue}else if(t.length>0){t="",i=0,n=o,r=0;continue}}e&&(t+=t.length>0?"/..":"..",i=2);}else t.length>0?t+=`/${s.slice(n+1,o)}`:t=s.slice(n+1,o),i=o-n-1;n=o,r=0;}else a==="."&&r!==-1?++r:r=-1;}return t}var J=function(s){return Po.test(s)};var V=function(s){let e=ss(s).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&zi.test(e[0])&&(e[0]+="/"),e.join("/")||(J(s)?"/":".")};chunkI7LO42GD_cjs.b(Fa(),1);var Xt=2;var dh=Symbol("findUpStop"),ja=s=>{if(s.isFile())return "file";if(s.isDirectory())return "dir";if(s.isSymbolicLink())return "symlink"};var ph=s=>{nt(s);try{let e=fs.lstatSync(s);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${ja(e)}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{fs.mkdirSync(s,{recursive:!0});}catch(e){if(e.code!=="EEXIST")throw e;let t=fs.lstatSync(s);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${ja(t)}'`)}},xa=ph;process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);var mh=(s,e={})=>{if(typeof s!="string"&&!Array.isArray(s)&&typeof s!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");let t=e.cwd?he(e.cwd):process.cwd(),i=Oe(t),{root:n}=path.parse(i),r=he(e.stopAt??n),a=Oe(i,r),o=e.type??"file",l=function(c){return typeof s=="function"?[s(c)]:typeof s=="string"?[s]:Array.isArray(s)?s:[s]};for(;i&&i!==a&&i!==n;){for(let c of l(i)){if(c===dh)return;if(c===void 0)continue;let p=J(c)?c:Oe(i,c);try{let u=fs.statSync(p);if(o==="file"&&u.isFile()||o==="directory"&&u.isDirectory())return p}catch{}}i=V(i);}},tt=mh;function yh(s,e=0){nt(s),s=he(s);try{return fs.accessSync(s,e),!0}catch{return !1}}var Ee=yh;var gh={brotli:zlib.brotliDecompressSync,gzip:zlib.unzipSync,none:s=>s},wh=(s,e)=>{if(nt(s),s=he(s),!Ee(s))throw new ts(`unable to read the non-accessible file: ${s}`);if(!Ee(s,4))throw new ts(`invalid access to read file at: ${s}`);let{buffer:t,compression:i,encoding:n,flag:r}=e??{},a=fs.readFileSync(s,r?{encoding:n,flag:r}:{encoding:n}),o=gh[i??"none"](a);return t?o:o.toString()},bh=wh;function Sh(s,e,t){typeof e=="object"&&(t=e,e=void 0);let i=bh(s,{buffer:!0,encoding:void 0}),n=new TextDecoder().decode(i),{beforeParse:r,color:a}=t??{};return typeof r=="function"&&(n=r(n)),Hi(n,e,he(s),{color:a})}var Ua=Sh;new TextEncoder;var kh=["yarn.lock","package-lock.json","pnpm-lock.yaml","npm-shrinkwrap.json","bun.lockb"];var Ka=s=>{let e=tt(kh,{type:"file",...s&&{cwd:s}});if(!e)throw new Error("Could not find lock file");return e};chunkI7LO42GD_cjs.c();var Ah=s=>{if(fs.existsSync(R(s,"package.json"))){let e=Ua(R(s,"package.json"));if(e.name&&e.private!==!0)return "package.json"}};var Ya=s=>{try{let i=Ka(s);return V(i)}catch{}let e=tt(".git/config",{...s&&{cwd:s},type:"file"});if(e)return V(V(e));let t=tt(Ah,{...s&&{cwd:s},type:"file"});if(t)return V(t);throw new Error("Could not find root directory")};var Ja=(s,e)=>(e?.create&&xa(s),s);var Va=(s,e)=>{if(process$1.env.CACHE_DIR&&!["0","1","false","true"].includes(process$1.env.CACHE_DIR))return Ja(R(process$1.env.CACHE_DIR,s),e);let t=Ya(e?.cwd??process$1.cwd());if(!t)return;let i=R(t,"node_modules"),n=R(i,".cache"),r=R(n,s);if(!(fs.existsSync(r)&&!Ee(r,Xt))&&!(fs.existsSync(n)&&!Ee(n,Xt))&&!(fs.existsSync(i)&&!Ee(i,Xt)))return Ja(r,e)};chunkI7LO42GD_cjs.c();chunkI7LO42GD_cjs.c();var Oh=Object.defineProperty,Lh=(s,e)=>{for(var t in e)Oh(s,t,{get:e[t],enumerable:!0});},qh=/^[A-Z]:\//i,Th=(s="")=>s&&s.replaceAll("\\","/").replace(qh,e=>e.toUpperCase()),ie=Th,Ga={};Lh(Ga,{basename:()=>Ki,delimiter:()=>za,dirname:()=>it,extname:()=>Ui,format:()=>eo,isAbsolute:()=>fe,join:()=>es,normalize:()=>xi,normalizeString:()=>Zt,parse:()=>to,relative:()=>Za,resolve:()=>st,sep:()=>Ha,toNamespacedPath:()=>Xa});var Ch=/^[/\\]{2}/,Ih=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Qa=/^[A-Z]:$/i,Wa=/^\/([A-Z]:)?$/i,$h=/.(\.[^./]+)$/,Ph=()=>typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",Ha="/",za=":",Zt=(s,e)=>{let t="",i=0,n=-1,r=0,a=null;for(let o=0;o<=s.length;++o){if(o<s.length)a=s[o];else {if(a==="/")break;a="/";}if(a==="/"){if(!(n===o-1||r===1))if(r===2){if(t.length<2||i!==2||!t.endsWith(".")||t.at(-2)!=="."){if(t.length>2){let l=t.lastIndexOf("/");l===-1?(t="",i=0):(t=t.slice(0,l),i=t.length-1-t.lastIndexOf("/")),n=o,r=0;continue}else if(t.length>0){t="",i=0,n=o,r=0;continue}}e&&(t+=t.length>0?"/..":"..",i=2);}else t.length>0?t+=`/${s.slice(n+1,o)}`:t=s.slice(n+1,o),i=o-n-1;n=o,r=0;}else a==="."&&r!==-1?++r:r=-1;}return t},fe=s=>Ih.test(s),xi=function(s){if(s.length===0)return ".";s=ie(s);let e=Ch.exec(s),t=fe(s),i=s.at(-1)==="/";return s=Zt(s,!t),s.length===0?t?"/":i?"./":".":(i&&(s+="/"),Qa.test(s)&&(s+="/"),e?t?`//${s}`:`//./${s}`:t&&!fe(s)?`/${s}`:s)},es=function(...s){if(s.length===0)return ".";let e;for(let t of s)t&&t.length>0&&(e===void 0?e=t:e+=`/${t}`);return e===void 0?".":xi(e.replaceAll(/\/{2,}/g,"/"))},st=function(...s){s=s.map(i=>ie(i));let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){let n=i>=0?s[i]:Ph();!n||n.length===0||(e=`${n}/${e}`,t=fe(n));}return e=Zt(e,!t),t&&!fe(e)?`/${e}`:e.length>0?e:"."},Xa=function(s){return ie(s)},Ui=function(s){return $h.exec(ie(s))?.[1]??""},Za=function(s,e){let t=st(s).replace(Wa,"$1").split("/"),i=st(e).replace(Wa,"$1").split("/");if(i[0][1]===":"&&t[0][1]===":"&&t[0]!==i[0])return i.join("/");let n=[...t];for(let r of n){if(i[0]!==r)break;t.shift(),i.shift();}return [...t.map(()=>".."),...i].join("/")},it=s=>{let e=ie(s).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Qa.test(e[0])&&(e[0]+="/"),e.join("/")||(fe(s)?"/":".")},eo=function(s){let e=[s.root,s.dir,s.base??s.name+s.ext].filter(Boolean);return ie(s.root?st(...e):e.join("/"))},Ki=(s,e)=>{let t=ie(s).split("/").pop();return e&&t.endsWith(e)?t.slice(0,-e.length):t},to=function(s){let e=ie(s).split("/").shift();e===""?e="/":e+="/";let t=Ki(s),i=Ui(t);return {base:t,dir:it(s),ext:i,name:t.slice(0,t.length-i.length),root:e}};var Fh="last-update-check.json",io=s=>{let e=Va(s);if(e===void 0)throw new Error("Could not find cache directory");return es(e,Fh)},no=s=>{let e=io(s);try{if(!fs.existsSync(e))return;let{lastUpdateCheck:t}=JSON.parse(fs.readFileSync(e,"utf8"));return t}catch{return}},ro=s=>{let e=io(s),t=it(e);fs.existsSync(t)||fs.mkdirSync(t,{recursive:!0}),fs.writeFileSync(e,JSON.stringify({lastUpdateCheck:Date.now()}));};chunkI7LO42GD_cjs.c();var jh=async(s,e,t)=>{let i=t.replace("__NAME__",s);return await new Promise((n,r)=>{https.get(i,a=>{let o="";a.on("data",l=>o+=l),a.on("end",()=>{try{let c=JSON.parse(o)[e];c||r(new Error("Error getting version")),n(c);}catch{r(new Error("Could not parse version response"));}});}).on("error",a=>r(a));})},ao=jh;var Rh=async({alwaysRun:s,debug:e,distTag:t="latest",pkg:i,registryUrl:n="https://registry.npmjs.org/-/package/__NAME__/dist-tags",updateCheckInterval:r=1e3*60*60*24})=>{let a=no(i.name);if(s||!a||a<Date.now()-r){let o=await ao(i.name,t,n);if(ro(i.name),Yi(o,i.version))return o;e&&console.error(`Latest version (${o}) not newer than current version (${i.version})`);}else e&&console.error(`Too recent to check for a new update. simpleUpdateNotifier() interval set to ${r}ms but only ${Date.now()-a}ms since last check.`);return null},Ng=Rh;
|
|
159
|
+
|
|
160
|
+
module.exports = Ng;
|
|
161
|
+
//# sourceMappingURL=out.js.map
|
|
162
|
+
|
|
163
|
+
module.exports = module.exports;
|
|
164
|
+
//# sourceMappingURL=has-new-version-PIQP5KAJ.cjs.map
|