@visulima/cerebro 1.0.29 → 1.0.31

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.
@@ -0,0 +1,165 @@
1
+ import { b, d, a, c } from './chunk-UVO7F3US.js';
2
+ import { existsSync, lstatSync, mkdirSync, statSync, accessSync, readFileSync, writeFileSync, renameSync, chownSync, chmodSync, unlinkSync } from 'node:fs';
3
+ import { stat, access, readFile, mkdir, writeFile, rename, chown, chmod, unlink } from 'node:fs/promises';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { brotliDecompress, unzip, brotliDecompressSync, unzipSync } from 'node:zlib';
6
+ import { env, cwd } from 'node:process';
7
+ import { get } from 'node:https';
8
+
9
+ var D=b(G=>{d();var $s=Symbol.for("yaml.alias"),Hr=Symbol.for("yaml.document"),It=Symbol.for("yaml.map"),Vr=Symbol.for("yaml.pair"),Rs=Symbol.for("yaml.scalar"),kt=Symbol.for("yaml.seq"),ne=Symbol.for("yaml.node.type"),vf=t=>!!t&&typeof t=="object"&&t[ne]===$s,Lf=t=>!!t&&typeof t=="object"&&t[ne]===Hr,Ef=t=>!!t&&typeof t=="object"&&t[ne]===It,Af=t=>!!t&&typeof t=="object"&&t[ne]===Vr,Xr=t=>!!t&&typeof t=="object"&&t[ne]===Rs,Nf=t=>!!t&&typeof t=="object"&&t[ne]===kt;function Qr(t){if(t&&typeof t=="object")switch(t[ne]){case It:case kt:return !0}return !1}function Cf(t){if(t&&typeof t=="object")switch(t[ne]){case $s:case It:case Rs:case kt:return !0}return !1}var Of=t=>(Xr(t)||Qr(t))&&!!t.anchor;G.ALIAS=$s;G.DOC=Hr;G.MAP=It;G.NODE_TYPE=ne;G.PAIR=Vr;G.SCALAR=Rs;G.SEQ=kt;G.hasAnchor=Of;G.isAlias=vf;G.isCollection=Qr;G.isDocument=Lf;G.isMap=Ef;G.isNode=Cf;G.isPair=Af;G.isScalar=Xr;G.isSeq=Nf;});var Ke=b(Fs=>{d();var M=D(),j=Symbol("break visit"),Zr=Symbol("skip children"),Z=Symbol("remove node");function Tt(t,e){let s=en(e);M.isDocument(t)?Pe(null,t.contents,s,Object.freeze([t]))===Z&&(t.contents=null):Pe(null,t,s,Object.freeze([]));}Tt.BREAK=j;Tt.SKIP=Zr;Tt.REMOVE=Z;function Pe(t,e,s,i){let r=tn(t,e,s,i);if(M.isNode(r)||M.isPair(r))return sn(t,i,r),Pe(t,r,s,i);if(typeof r!="symbol"){if(M.isCollection(e)){i=Object.freeze(i.concat(e));for(let n=0;n<e.items.length;++n){let o=Pe(n,e.items[n],s,i);if(typeof o=="number")n=o-1;else {if(o===j)return j;o===Z&&(e.items.splice(n,1),n-=1);}}}else if(M.isPair(e)){i=Object.freeze(i.concat(e));let n=Pe("key",e.key,s,i);if(n===j)return j;n===Z&&(e.key=null);let o=Pe("value",e.value,s,i);if(o===j)return j;o===Z&&(e.value=null);}}return r}async function Dt(t,e){let s=en(e);M.isDocument(t)?await Ie(null,t.contents,s,Object.freeze([t]))===Z&&(t.contents=null):await Ie(null,t,s,Object.freeze([]));}Dt.BREAK=j;Dt.SKIP=Zr;Dt.REMOVE=Z;async function Ie(t,e,s,i){let r=await tn(t,e,s,i);if(M.isNode(r)||M.isPair(r))return sn(t,i,r),Ie(t,r,s,i);if(typeof r!="symbol"){if(M.isCollection(e)){i=Object.freeze(i.concat(e));for(let n=0;n<e.items.length;++n){let o=await Ie(n,e.items[n],s,i);if(typeof o=="number")n=o-1;else {if(o===j)return j;o===Z&&(e.items.splice(n,1),n-=1);}}}else if(M.isPair(e)){i=Object.freeze(i.concat(e));let n=await Ie("key",e.key,s,i);if(n===j)return j;n===Z&&(e.key=null);let o=await Ie("value",e.value,s,i);if(o===j)return j;o===Z&&(e.value=null);}}return r}function en(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function tn(t,e,s,i){if(typeof s=="function")return s(t,e,i);if(M.isMap(e))return s.Map?.(t,e,i);if(M.isSeq(e))return s.Seq?.(t,e,i);if(M.isPair(e))return s.Pair?.(t,e,i);if(M.isScalar(e))return s.Scalar?.(t,e,i);if(M.isAlias(e))return s.Alias?.(t,e,i)}function sn(t,e,s){let i=e[e.length-1];if(M.isCollection(i))i.items[t]=s;else if(M.isPair(i))t==="key"?i.key=s:i.value=s;else if(M.isDocument(i))i.contents=s;else {let r=M.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}Fs.visit=Tt;Fs.visitAsync=Dt;});var _s=b(nn=>{d();var rn=D(),Pf=Ke(),If={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},kf=t=>t.replace(/[!,[\]{}]/g,e=>If[e]),Je=class t{constructor(e,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},t.defaultYaml,e),this.tags=Object.assign({},t.defaultTags,s);}clone(){let e=new t(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new t(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:t.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},t.defaultTags);break}return e}add(e,s){this.atNextDocument&&(this.yaml={explicit:t.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},t.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),i.length<2))return !1;let[n,o]=i;return this.tags[n]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;let[n]=i;if(n==="1.1"||n==="1.2")return this.yaml.version=n,!0;{let o=/^\d+\.\d+$/.test(n);return s(6,`Unsupported YAML version ${n}`,o),!1}}default:return s(0,`Unknown directive ${r}`,!0),!1}}tagName(e,s){if(e==="!")return "!";if(e[0]!=="!")return s(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(s(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&s("Verbatim tags must end with a >"),o)}let[,i,r]=e.match(/^(.*!)([^!]*)$/s);r||s(`The ${e} tag has no suffix`);let n=this.tags[i];if(n)try{return n+decodeURIComponent(r)}catch(o){return s(String(o)),null}return i==="!"?e:(s(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[s,i]of Object.entries(this.tags))if(e.startsWith(i))return s+kf(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),r;if(e&&i.length>0&&rn.isNode(e.contents)){let n={};Pf.visit(e.contents,(o,a)=>{rn.isNode(a)&&a.tag&&(n[a.tag]=!0);}),r=Object.keys(n);}else r=[];for(let[n,o]of i)n==="!!"&&o==="tag:yaml.org,2002:"||(!e||r.some(a=>a.startsWith(o)))&&s.push(`%TAG ${n} ${o}`);return s.join(`
10
+ `)}};Je.defaultYaml={explicit:!1,version:"1.2"};Je.defaultTags={"!!":"tag:yaml.org,2002:"};nn.Directives=Je;});var $t=b(ze=>{d();var on=D(),Tf=Ke();function Df(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(s)}return !0}function an(t){let e=new Set;return Tf.visit(t,{Value(s,i){i.anchor&&e.add(i.anchor);}}),e}function ln(t,e){for(let s=1;;++s){let i=`${t}${s}`;if(!e.has(i))return i}}function $f(t,e){let s=[],i=new Map,r=null;return {onAnchor:n=>{s.push(n),r||(r=an(t));let o=ln(e,r);return r.add(o),o},setAnchors:()=>{for(let n of s){let o=i.get(n);if(typeof o=="object"&&o.anchor&&(on.isScalar(o.node)||on.isCollection(o.node)))o.node.anchor=o.anchor;else {let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=n,a}}},sourceObjects:i}}ze.anchorIsValid=Df;ze.anchorNames=an;ze.createNodeAnchors=$f;ze.findNewAnchor=ln;});var qs=b(cn=>{d();function He(t,e,s,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let r=0,n=i.length;r<n;++r){let o=i[r],a=He(t,i,String(r),o);a===void 0?delete i[r]:a!==o&&(i[r]=a);}else if(i instanceof Map)for(let r of Array.from(i.keys())){let n=i.get(r),o=He(t,i,r,n);o===void 0?i.delete(r):o!==n&&i.set(r,o);}else if(i instanceof Set)for(let r of Array.from(i)){let n=He(t,i,r,r);n===void 0?i.delete(r):n!==r&&(i.delete(r),i.add(n));}else for(let[r,n]of Object.entries(i)){let o=He(t,i,r,n);o===void 0?delete i[r]:o!==n&&(i[r]=o);}return t.call(e,s,i)}cn.applyReviver=He;});var ae=b(un=>{d();var Rf=D();function fn(t,e,s){if(Array.isArray(t))return t.map((i,r)=>fn(i,String(r),s));if(t&&typeof t.toJSON=="function"){if(!s||!Rf.hasAnchor(t))return t.toJSON(e,s);let i={aliasCount:0,count:1,res:void 0};s.anchors.set(t,i),s.onCreate=n=>{i.res=n,delete s.onCreate;};let r=t.toJSON(e,s);return s.onCreate&&s.onCreate(r),r}return typeof t=="bigint"&&!s?.keep?Number(t):t}un.toJS=fn;});var Rt=b(pn=>{d();var Ff=qs(),hn=D(),_f=ae(),Ms=class{constructor(e){Object.defineProperty(this,hn.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:s,maxAliasCount:i,onAnchor:r,reviver:n}={}){if(!hn.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=_f.toJS(this,"",o);if(typeof r=="function")for(let{count:l,res:c}of o.anchors.values())r(c,l);return typeof n=="function"?Ff.applyReviver(n,{"":a},"",a):a}};pn.NodeBase=Ms;});var Ve=b(mn=>{d();var qf=$t(),dn=Ke(),Ft=D(),Mf=Rt(),xf=ae(),xs=class extends Mf.NodeBase{constructor(e){super(Ft.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}});}resolve(e){let s;return dn.visit(e,{Node:(i,r)=>{if(r===this)return dn.visit.BREAK;r.anchor===this.source&&(s=r);}}),s}toJSON(e,s){if(!s)return {source:this.source};let{anchors:i,doc:r,maxAliasCount:n}=s,o=this.resolve(r);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=i.get(o);if(a||(xf.toJS(o,null,s),a=i.get(o)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(n>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=_t(r,o,i)),a.count*a.aliasCount>n)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,s,i){let r=`*${this.source}`;if(e){if(qf.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(n)}if(e.implicitKey)return `${r} `}return r}};function _t(t,e,s){if(Ft.isAlias(e)){let i=e.resolve(t),r=s&&i&&s.get(i);return r?r.count*r.aliasCount:0}else if(Ft.isCollection(e)){let i=0;for(let r of e.items){let n=_t(t,r,s);n>i&&(i=n);}return i}else if(Ft.isPair(e)){let i=_t(t,e.key,s),r=_t(t,e.value,s);return Math.max(i,r)}return 1}mn.Alias=xs;});var F=b(Bs=>{d();var Bf=D(),Uf=Rt(),Gf=ae(),jf=t=>!t||typeof t!="function"&&typeof t!="object",le=class extends Uf.NodeBase{constructor(e){super(Bf.SCALAR),this.value=e;}toJSON(e,s){return s?.keep?this.value:Gf.toJS(this.value,e,s)}toString(){return String(this.value)}};le.BLOCK_FOLDED="BLOCK_FOLDED";le.BLOCK_LITERAL="BLOCK_LITERAL";le.PLAIN="PLAIN";le.QUOTE_DOUBLE="QUOTE_DOUBLE";le.QUOTE_SINGLE="QUOTE_SINGLE";Bs.Scalar=le;Bs.isScalarValue=jf;});var Xe=b(yn=>{d();var Yf=Ve(),Se=D(),gn=F(),Wf="tag:yaml.org,2002:";function Kf(t,e,s){if(e){let i=s.filter(n=>n.tag===e),r=i.find(n=>!n.format)??i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return s.find(i=>i.identify?.(t)&&!i.format)}function Jf(t,e,s){if(Se.isDocument(t)&&(t=t.contents),Se.isNode(t))return t;if(Se.isPair(t)){let u=s.schema[Se.MAP].createNode?.(s.schema,null,s);return u.items.push(t),u}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:n,schema:o,sourceObjects:a}=s,l;if(i&&t&&typeof t=="object"){if(l=a.get(t),l)return l.anchor||(l.anchor=r(t)),new Yf.Alias(l.anchor);l={anchor:null,node:null},a.set(t,l);}e?.startsWith("!!")&&(e=Wf+e.slice(2));let c=Kf(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){let u=new gn.Scalar(t);return l&&(l.node=u),u}c=t instanceof Map?o[Se.MAP]:Symbol.iterator in Object(t)?o[Se.SEQ]:o[Se.MAP];}n&&(n(c),delete s.onTagObj);let d=c?.createNode?c.createNode(s.schema,t,s):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(s.schema,t,s):new gn.Scalar(t);return e?d.tag=e:c.default||(d.tag=c.tag),l&&(l.node=d),d}yn.createNode=Jf;});var xt=b(Mt=>{d();var zf=Xe(),ee=D(),Hf=Rt();function Us(t,e,s){let i=s;for(let r=e.length-1;r>=0;--r){let n=e[r];if(typeof n=="number"&&Number.isInteger(n)&&n>=0){let o=[];o[n]=i,i=o;}else i=new Map([[n,i]]);}return zf.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}var bn=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,qt=class extends Hf.NodeBase{constructor(e,s){super(e),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0});}clone(e){let s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(s.schema=e),s.items=s.items.map(i=>ee.isNode(i)||ee.isPair(i)?i.clone(e):i),this.range&&(s.range=this.range.slice()),s}addIn(e,s){if(bn(e))this.add(s);else {let[i,...r]=e,n=this.get(i,!0);if(ee.isCollection(n))n.addIn(r,s);else if(n===void 0&&this.schema)this.set(i,Us(this.schema,r,s));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(e){let[s,...i]=e;if(i.length===0)return this.delete(s);let r=this.get(s,!0);if(ee.isCollection(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}getIn(e,s){let[i,...r]=e,n=this.get(i,!0);return r.length===0?!s&&ee.isScalar(n)?n.value:n:ee.isCollection(n)?n.getIn(r,s):void 0}hasAllNullValues(e){return this.items.every(s=>{if(!ee.isPair(s))return !1;let i=s.value;return i==null||e&&ee.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[s,...i]=e;if(i.length===0)return this.has(s);let r=this.get(s,!0);return ee.isCollection(r)?r.hasIn(i):!1}setIn(e,s){let[i,...r]=e;if(r.length===0)this.set(i,s);else {let n=this.get(i,!0);if(ee.isCollection(n))n.setIn(r,s);else if(n===void 0&&this.schema)this.set(i,Us(this.schema,r,s));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}};qt.maxFlowStringSingleLineLength=60;Mt.Collection=qt;Mt.collectionFromPath=Us;Mt.isEmptyPath=bn;});var Qe=b(Bt=>{d();var Vf=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Gs(t,e){return /^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}var Xf=(t,e,s)=>t.endsWith(`
11
+ `)?Gs(s,e):s.includes(`
12
+ `)?`
13
+ `+Gs(s,e):(t.endsWith(" ")?"":" ")+s;Bt.indentComment=Gs;Bt.lineComment=Xf;Bt.stringifyComment=Vf;});var Sn=b(Ze=>{d();var Qf="flow",js="block",Ut="quoted";function Zf(t,e,s="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:n=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return t;let l=Math.max(1+n,1+r-e.length);if(t.length<=l)return t;let c=[],d={},u=r-e.length;typeof i=="number"&&(i>r-Math.max(2,n)?c.push(0):u=r-i);let p,g,y=!1,h=-1,m=-1,v=-1;s===js&&(h=wn(t,h,e.length),h!==-1&&(u=h+l));for(let O;O=t[h+=1];){if(s===Ut&&O==="\\"){switch(m=h,t[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1;}v=h;}if(O===`
14
+ `)s===js&&(h=wn(t,h,e.length)),u=h+e.length+l,p=void 0;else {if(O===" "&&g&&g!==" "&&g!==`
15
+ `&&g!==" "){let C=t[h+1];C&&C!==" "&&C!==`
16
+ `&&C!==" "&&(p=h);}if(h>=u)if(p)c.push(p),u=p+l,p=void 0;else if(s===Ut){for(;g===" "||g===" ";)g=O,O=t[h+=1],y=!0;let C=h>v+1?h-2:m-1;if(d[C])return t;c.push(C),d[C]=!0,u=C+l,p=void 0;}else y=!0;}g=O;}if(y&&a&&a(),c.length===0)return t;o&&o();let E=t.slice(0,c[0]);for(let O=0;O<c.length;++O){let C=c[O],P=c[O+1]||t.length;C===0?E=`
17
+ ${e}${t.slice(0,P)}`:(s===Ut&&d[C]&&(E+=`${t[C]}\\`),E+=`
18
+ ${e}${t.slice(C+1,P)}`);}return E}function wn(t,e,s){let i=e,r=e+1,n=t[r];for(;n===" "||n===" ";)if(e<r+s)n=t[++e];else {do n=t[++e];while(n&&n!==`
19
+ `);i=e,r=e+1,n=t[r];}return i}Ze.FOLD_BLOCK=js;Ze.FOLD_FLOW=Qf;Ze.FOLD_QUOTED=Ut;Ze.foldFlowLines=Zf;});var tt=b(vn=>{d();var te=F(),ce=Sn(),jt=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),Yt=t=>/^(%|---|\.\.\.)/m.test(t);function eu(t,e,s){if(!e||e<0)return !1;let i=e-s,r=t.length;if(r<=i)return !1;for(let n=0,o=0;n<r;++n)if(t[n]===`
20
+ `){if(n-o>i)return !0;if(o=n+1,r-o<=i)return !1}return !0}function et(t,e){let s=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return s;let{implicitKey:i}=e,r=e.options.doubleQuotedMinMultiLineLength,n=e.indent||(Yt(t)?" ":""),o="",a=0;for(let l=0,c=s[l];c;c=s[++l])if(c===" "&&s[l+1]==="\\"&&s[l+2]==="n"&&(o+=s.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(s[l+1]){case"u":{o+=s.slice(a,l);let d=s.substr(l+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=s.substr(l,6);}l+=5,a=l+1;}break;case"n":if(i||s[l+2]==='"'||s.length<r)l+=1;else {for(o+=s.slice(a,l)+`
21
+
22
+ `;s[l+2]==="\\"&&s[l+3]==="n"&&s[l+4]!=='"';)o+=`
23
+ `,l+=2;o+=n,s[l+2]===" "&&(o+="\\"),l+=1,a=l+1;}break;default:l+=1;}return o=a?o+s.slice(a):s,i?o:ce.foldFlowLines(o,n,ce.FOLD_QUOTED,jt(e,!1))}function Ys(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
24
+ `)||/[ \t]\n|\n[ \t]/.test(t))return et(t,e);let s=e.indent||(Yt(t)?" ":""),i="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
25
+ ${s}`)+"'";return e.implicitKey?i:ce.foldFlowLines(i,s,ce.FOLD_FLOW,jt(e,!1))}function ke(t,e){let{singleQuote:s}=e.options,i;if(s===!1)i=et;else {let r=t.includes('"'),n=t.includes("'");r&&!n?i=Ys:n&&!r?i=et:i=s?Ys:et;}return i(t,e)}var Ws;try{Ws=new RegExp(`(^|(?<!
26
+ ))
27
+ +(?!
28
+ |$)`,"g");}catch{Ws=/\n+(?!\n|$)/g;}function Gt({comment:t,type:e,value:s},i,r,n){let{blockQuote:o,commentString:a,lineWidth:l}=i.options;if(!o||/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return ke(s,i);let c=i.indent||(i.forceBlockIndent||Yt(s)?" ":""),d=o==="literal"?!0:o==="folded"||e===te.Scalar.BLOCK_FOLDED?!1:e===te.Scalar.BLOCK_LITERAL?!0:!eu(s,l,c.length);if(!s)return d?`|
29
+ `:`>
30
+ `;let u,p;for(p=s.length;p>0;--p){let L=s[p-1];if(L!==`
31
+ `&&L!==" "&&L!==" ")break}let g=s.substring(p),y=g.indexOf(`
32
+ `);y===-1?u="-":s===g||y!==g.length-1?(u="+",n&&n()):u="",g&&(s=s.slice(0,-g.length),g[g.length-1]===`
33
+ `&&(g=g.slice(0,-1)),g=g.replace(Ws,`$&${c}`));let h=!1,m,v=-1;for(m=0;m<s.length;++m){let L=s[m];if(L===" ")h=!0;else if(L===`
34
+ `)v=m;else break}let E=s.substring(0,v<m?v+1:m);E&&(s=s.substring(E.length),E=E.replace(/\n+/g,`$&${c}`));let C=(d?"|":">")+(h?c?"2":"1":"")+u;if(t&&(C+=" "+a(t.replace(/ ?[\r\n]+/g," ")),r&&r()),d)return s=s.replace(/\n+/g,`$&${c}`),`${C}
35
+ ${c}${E}${s}${g}`;s=s.replace(/\n+/g,`
36
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let P=ce.foldFlowLines(`${E}${s}${g}`,c,ce.FOLD_BLOCK,jt(i,!0));return `${C}
37
+ ${c}${P}`}function tu(t,e,s,i){let{type:r,value:n}=t,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:d}=e;if(a&&n.includes(`
38
+ `)||d&&/[[\]{},]/.test(n))return ke(n,e);if(!n||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))return a||d||!n.includes(`
39
+ `)?ke(n,e):Gt(t,e,s,i);if(!a&&!d&&r!==te.Scalar.PLAIN&&n.includes(`
40
+ `))return Gt(t,e,s,i);if(Yt(n)){if(l==="")return e.forceBlockIndent=!0,Gt(t,e,s,i);if(a&&l===c)return ke(n,e)}let u=n.replace(/\n+/g,`$&
41
+ ${l}`);if(o){let p=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:g,tags:y}=e.doc.schema;if(y.some(p)||g?.some(p))return ke(n,e)}return a?u:ce.foldFlowLines(u,l,ce.FOLD_FLOW,jt(e,!1))}function su(t,e,s,i){let{implicitKey:r,inFlow:n}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==te.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=te.Scalar.QUOTE_DOUBLE);let l=d=>{switch(d){case te.Scalar.BLOCK_FOLDED:case te.Scalar.BLOCK_LITERAL:return r||n?ke(o.value,e):Gt(o,e,s,i);case te.Scalar.QUOTE_DOUBLE:return et(o.value,e);case te.Scalar.QUOTE_SINGLE:return Ys(o.value,e);case te.Scalar.PLAIN:return tu(o,e,s,i);default:return null}},c=l(a);if(c===null){let{defaultKeyType:d,defaultStringType:u}=e.options,p=r&&d||u;if(c=l(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}vn.stringifyString=su;});var st=b(Ks=>{d();var iu=$t(),fe=D(),ru=Qe(),nu=tt();function ou(t,e){let s=Object.assign({blockQuote:!0,commentString:ru.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},t.schema.toStringOptions,e),i;switch(s.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null;}return {anchors:new Set,doc:t,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent=="number"?" ".repeat(s.indent):" ",inFlow:i,options:s}}function au(t,e){if(e.tag){let r=t.filter(n=>n.tag===e.tag);if(r.length>0)return r.find(n=>n.format===e.format)??r[0]}let s,i;if(fe.isScalar(e)){i=e.value;let r=t.filter(n=>n.identify?.(i));s=r.find(n=>n.format===e.format)??r.find(n=>!n.format);}else i=e,s=t.find(r=>r.nodeClass&&i instanceof r.nodeClass);if(!s){let r=i?.constructor?.name??typeof i;throw new Error(`Tag not resolved for ${r} value`)}return s}function lu(t,e,{anchors:s,doc:i}){if(!i.directives)return "";let r=[],n=(fe.isScalar(t)||fe.isCollection(t))&&t.anchor;n&&iu.anchorIsValid(n)&&(s.add(n),r.push(`&${n}`));let o=t.tag?t.tag:e.default?null:e.tag;return o&&r.push(i.directives.tagString(o)),r.join(" ")}function cu(t,e,s,i){if(fe.isPair(t))return t.toString(e,s,i);if(fe.isAlias(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc);}let r,n=fe.isNode(t)?t:e.doc.createNode(t,{onTagObj:l=>r=l});r||(r=au(e.doc.schema.tags,n));let o=lu(n,r,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof r.stringify=="function"?r.stringify(n,e,s,i):fe.isScalar(n)?nu.stringifyString(n,e,s,i):n.toString(e,s,i);return o?fe.isScalar(n)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
42
+ ${e.indent}${a}`:a}Ks.createStringifyContext=ou;Ks.stringify=cu;});var Nn=b(An=>{d();var ue=D(),Ln=F(),En=st(),it=Qe();function fu({key:t,value:e},s,i,r){let{allNullValues:n,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:u}}=s,p=ue.isNode(t)&&t.comment||null;if(u){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(ue.isCollection(t)){let k="With simple keys, collection cannot be used as a key value";throw new Error(k)}}let g=!u&&(!t||p&&e==null&&!s.inFlow||ue.isCollection(t)||(ue.isScalar(t)?t.type===Ln.Scalar.BLOCK_FOLDED||t.type===Ln.Scalar.BLOCK_LITERAL:typeof t=="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!g&&(u||!n),indent:a+l});let y=!1,h=!1,m=En.stringify(t,s,()=>y=!0,()=>h=!0);if(!g&&!s.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0;}if(s.inFlow){if(n||e==null)return y&&i&&i(),m===""?"?":g?`? ${m}`:m}else if(n&&!u||e==null&&g)return m=`? ${m}`,p&&!y?m+=it.lineComment(m,s.indent,c(p)):h&&r&&r(),m;y&&(p=null),g?(p&&(m+=it.lineComment(m,s.indent,c(p))),m=`? ${m}
43
+ ${a}:`):(m=`${m}:`,p&&(m+=it.lineComment(m,s.indent,c(p))));let v,E,O;ue.isNode(e)?(v=!!e.spaceBefore,E=e.commentBefore,O=e.comment):(v=!1,E=null,O=null,e&&typeof e=="object"&&(e=o.createNode(e))),s.implicitKey=!1,!g&&!p&&ue.isScalar(e)&&(s.indentAtStart=m.length+1),h=!1,!d&&l.length>=2&&!s.inFlow&&!g&&ue.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(s.indent=s.indent.substring(2));let C=!1,P=En.stringify(e,s,()=>C=!0,()=>h=!0),L=" ";if(p||v||E){if(L=v?`
44
+ `:"",E){let k=c(E);L+=`
45
+ ${it.indentComment(k,s.indent)}`;}P===""&&!s.inFlow?L===`
46
+ `&&(L=`
47
+
48
+ `):L+=`
49
+ ${s.indent}`;}else if(!g&&ue.isCollection(e)){let k=P[0],R=P.indexOf(`
50
+ `),q=R!==-1,V=s.inFlow??e.flow??e.items.length===0;if(q||!V){let Ce=!1;if(q&&(k==="&"||k==="!")){let x=P.indexOf(" ");k==="&"&&x!==-1&&x<R&&P[x+1]==="!"&&(x=P.indexOf(" ",x+1)),(x===-1||R<x)&&(Ce=!0);}Ce||(L=`
51
+ ${s.indent}`);}}else (P===""||P[0]===`
52
+ `)&&(L="");return m+=L+P,s.inFlow?C&&i&&i():O&&!C?m+=it.lineComment(m,s.indent,c(O)):h&&r&&r(),m}An.stringifyPair=fu;});var zs=b(Js=>{d();function uu(t,...e){t==="debug"&&console.log(...e);}function hu(t,e){(t==="debug"||t==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e));}Js.debug=uu;Js.warn=hu;});var Xs=b(On=>{d();var pu=zs(),du=st(),Te=D(),mu=F(),Hs=ae(),Cn="<<";function gu(t,e,{key:s,value:i}){if(t?.doc.schema.merge&&yu(s))if(i=Te.isAlias(i)?i.resolve(t.doc):i,Te.isSeq(i))for(let r of i.items)Vs(t,e,r);else if(Array.isArray(i))for(let r of i)Vs(t,e,r);else Vs(t,e,i);else {let r=Hs.toJS(s,"",t);if(e instanceof Map)e.set(r,Hs.toJS(i,r,t));else if(e instanceof Set)e.add(r);else {let n=bu(s,r,t),o=Hs.toJS(i,n,t);n in e?Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[n]=o;}}return e}var yu=t=>t===Cn||Te.isScalar(t)&&t.value===Cn&&(!t.type||t.type===mu.Scalar.PLAIN);function Vs(t,e,s){let i=t&&Te.isAlias(s)?s.resolve(t.doc):s;if(!Te.isMap(i))throw new Error("Merge sources must be maps or map aliases");let r=i.toJSON(null,t,Map);for(let[n,o]of r)e instanceof Map?e.has(n)||e.set(n,o):e instanceof Set?e.add(n):Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function bu(t,e,s){if(e===null)return "";if(typeof e!="object")return String(e);if(Te.isNode(t)&&s?.doc){let i=du.createStringifyContext(s.doc,{});i.anchors=new Set;for(let n of s.anchors.keys())i.anchors.add(n.anchor);i.inFlow=!0,i.inStringifyKey=!0;let r=t.toString(i);if(!s.mapKeyWarned){let n=JSON.stringify(r);n.length>40&&(n=n.substring(0,36)+'..."'),pu.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0;}return r}return JSON.stringify(e)}On.addPairToJSMap=gu;});var he=b(Qs=>{d();var Pn=Xe(),wu=Nn(),Su=Xs(),Wt=D();function vu(t,e,s){let i=Pn.createNode(t,void 0,s),r=Pn.createNode(e,void 0,s);return new Kt(i,r)}var Kt=class t{constructor(e,s=null){Object.defineProperty(this,Wt.NODE_TYPE,{value:Wt.PAIR}),this.key=e,this.value=s;}clone(e){let{key:s,value:i}=this;return Wt.isNode(s)&&(s=s.clone(e)),Wt.isNode(i)&&(i=i.clone(e)),new t(s,i)}toJSON(e,s){let i=s?.mapAsMap?new Map:{};return Su.addPairToJSMap(s,i,this)}toString(e,s,i){return e?.doc?wu.stringifyPair(this,e,s,i):JSON.stringify(this)}};Qs.Pair=Kt;Qs.createPair=vu;});var Zs=b(kn=>{d();var ve=D(),In=st(),Jt=Qe();function Lu(t,e,s){return (e.inFlow??t.flow?Au:Eu)(t,e,s)}function Eu({comment:t,items:e},s,{blockItemPrefix:i,flowChars:r,itemIndent:n,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=s,d=Object.assign({},s,{indent:n,type:null}),u=!1,p=[];for(let y=0;y<e.length;++y){let h=e[y],m=null;if(ve.isNode(h))!u&&h.spaceBefore&&p.push(""),zt(s,p,h.commentBefore,u),h.comment&&(m=h.comment);else if(ve.isPair(h)){let E=ve.isNode(h.key)?h.key:null;E&&(!u&&E.spaceBefore&&p.push(""),zt(s,p,E.commentBefore,u));}u=!1;let v=In.stringify(h,d,()=>m=null,()=>u=!0);m&&(v+=Jt.lineComment(v,n,c(m))),u&&m&&(u=!1),p.push(i+v);}let g;if(p.length===0)g=r.start+r.end;else {g=p[0];for(let y=1;y<p.length;++y){let h=p[y];g+=h?`
53
+ ${l}${h}`:`
54
+ `;}}return t?(g+=`
55
+ `+Jt.indentComment(c(t),l),a&&a()):u&&o&&o(),g}function Au({items:t},e,{flowChars:s,itemIndent:i}){let{indent:r,indentStep:n,flowCollectionPadding:o,options:{commentString:a}}=e;i+=n;let l=Object.assign({},e,{indent:i,inFlow:!0,type:null}),c=!1,d=0,u=[];for(let y=0;y<t.length;++y){let h=t[y],m=null;if(ve.isNode(h))h.spaceBefore&&u.push(""),zt(e,u,h.commentBefore,!1),h.comment&&(m=h.comment);else if(ve.isPair(h)){let E=ve.isNode(h.key)?h.key:null;E&&(E.spaceBefore&&u.push(""),zt(e,u,E.commentBefore,!1),E.comment&&(c=!0));let O=ve.isNode(h.value)?h.value:null;O?(O.comment&&(m=O.comment),O.commentBefore&&(c=!0)):h.value==null&&E?.comment&&(m=E.comment);}m&&(c=!0);let v=In.stringify(h,l,()=>m=null);y<t.length-1&&(v+=","),m&&(v+=Jt.lineComment(v,i,a(m))),!c&&(u.length>d||v.includes(`
56
+ `))&&(c=!0),u.push(v),d=u.length;}let{start:p,end:g}=s;if(u.length===0)return p+g;if(!c){let y=u.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&y>e.options.lineWidth;}if(c){let y=p;for(let h of u)y+=h?`
57
+ ${n}${r}${h}`:`
58
+ `;return `${y}
59
+ ${r}${g}`}else return `${p}${o}${u.join(" ")}${o}${g}`}function zt({indent:t,options:{commentString:e}},s,i,r){if(i&&r&&(i=i.replace(/^\n+/,"")),i){let n=Jt.indentComment(e(i),t);s.push(n.trimStart());}}kn.stringifyCollection=Lu;});var de=b(ti=>{d();var Nu=Zs(),Cu=Xs(),Ou=xt(),pe=D(),Ht=he(),Pu=F();function rt(t,e){let s=pe.isScalar(e)?e.value:e;for(let i of t)if(pe.isPair(i)&&(i.key===e||i.key===s||pe.isScalar(i.key)&&i.key.value===s))return i}var ei=class extends Ou.Collection{static get tagName(){return "tag:yaml.org,2002:map"}constructor(e){super(pe.MAP,e),this.items=[];}static from(e,s,i){let{keepUndefined:r,replacer:n}=i,o=new this(e),a=(l,c)=>{if(typeof n=="function")c=n.call(s,l,c);else if(Array.isArray(n)&&!n.includes(l))return;(c!==void 0||r)&&o.items.push(Ht.createPair(l,c,i));};if(s instanceof Map)for(let[l,c]of s)a(l,c);else if(s&&typeof s=="object")for(let l of Object.keys(s))a(l,s[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,s){let i;pe.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new Ht.Pair(e,e?.value):i=new Ht.Pair(e.key,e.value);let r=rt(this.items,i.key),n=this.schema?.sortMapEntries;if(r){if(!s)throw new Error(`Key ${i.key} already set`);pe.isScalar(r.value)&&Pu.isScalarValue(i.value)?r.value.value=i.value:r.value=i.value;}else if(n){let o=this.items.findIndex(a=>n(i,a)<0);o===-1?this.items.push(i):this.items.splice(o,0,i);}else this.items.push(i);}delete(e){let s=rt(this.items,e);return s?this.items.splice(this.items.indexOf(s),1).length>0:!1}get(e,s){let r=rt(this.items,e)?.value;return (!s&&pe.isScalar(r)?r.value:r)??void 0}has(e){return !!rt(this.items,e)}set(e,s){this.add(new Ht.Pair(e,s),!0);}toJSON(e,s,i){let r=i?new i:s?.mapAsMap?new Map:{};s?.onCreate&&s.onCreate(r);for(let n of this.items)Cu.addPairToJSMap(s,r,n);return r}toString(e,s,i){if(!e)return JSON.stringify(this);for(let r of this.items)if(!pe.isPair(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return !e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Nu.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:s})}};ti.YAMLMap=ei;ti.findPair=rt;});var De=b(Dn=>{d();var Iu=D(),Tn=de(),ku={collection:"map",default:!0,nodeClass:Tn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(t,e){return Iu.isMap(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,s)=>Tn.YAMLMap.from(t,e,s)};Dn.map=ku;});var me=b($n=>{d();var Tu=Xe(),Du=Zs(),$u=xt(),Xt=D(),Ru=F(),Fu=ae(),si=class extends $u.Collection{static get tagName(){return "tag:yaml.org,2002:seq"}constructor(e){super(Xt.SEQ,e),this.items=[];}add(e){this.items.push(e);}delete(e){let s=Vt(e);return typeof s!="number"?!1:this.items.splice(s,1).length>0}get(e,s){let i=Vt(e);if(typeof i!="number")return;let r=this.items[i];return !s&&Xt.isScalar(r)?r.value:r}has(e){let s=Vt(e);return typeof s=="number"&&s<this.items.length}set(e,s){let i=Vt(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let r=this.items[i];Xt.isScalar(r)&&Ru.isScalarValue(s)?r.value=s:this.items[i]=s;}toJSON(e,s){let i=[];s?.onCreate&&s.onCreate(i);let r=0;for(let n of this.items)i.push(Fu.toJS(n,String(r++),s));return i}toString(e,s,i){return e?Du.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:s}):JSON.stringify(this)}static from(e,s,i){let{replacer:r}=i,n=new this(e);if(s&&Symbol.iterator in Object(s)){let o=0;for(let a of s){if(typeof r=="function"){let l=s instanceof Set?a:String(o++);a=r.call(s,l,a);}n.items.push(Tu.createNode(a,void 0,i));}}return n}};function Vt(t){let e=Xt.isScalar(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}$n.YAMLSeq=si;});var $e=b(Fn=>{d();var _u=D(),Rn=me(),qu={collection:"seq",default:!0,nodeClass:Rn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(t,e){return _u.isSeq(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,s)=>Rn.YAMLSeq.from(t,e,s)};Fn.seq=qu;});var nt=b(_n=>{d();var Mu=tt(),xu={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,s,i){return e=Object.assign({actualString:!0},e),Mu.stringifyString(t,e,s,i)}};_n.string=xu;});var Qt=b(xn=>{d();var qn=F(),Mn={identify:t=>t==null,createNode:()=>new qn.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qn.Scalar(null),stringify:({source:t},e)=>typeof t=="string"&&Mn.test.test(t)?t:e.options.nullStr};xn.nullTag=Mn;});var ii=b(Un=>{d();var Bu=F(),Bn={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Bu.Scalar(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},s){if(t&&Bn.test.test(t)){let i=t[0]==="t"||t[0]==="T";if(e===i)return t}return e?s.options.trueStr:s.options.falseStr}};Un.boolTag=Bn;});var Re=b(Gn=>{d();function Uu({format:t,minFractionDigits:e,tag:s,value:i}){if(typeof i=="bigint")return String(i);let r=typeof i=="number"?i:Number(i);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(i);if(!t&&e&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let o=n.indexOf(".");o<0&&(o=n.length,n+=".");let a=e-(n.length-o-1);for(;a-- >0;)n+="0";}return n}Gn.stringifyNumber=Uu;});var ni=b(Zt=>{d();var Gu=F(),ri=Re(),ju={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ri.stringifyNumber},Yu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():ri.stringifyNumber(t)}},Wu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new Gu.Scalar(parseFloat(t)),s=t.indexOf(".");return s!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-s-1),e},stringify:ri.stringifyNumber};Zt.float=Wu;Zt.floatExp=Yu;Zt.floatNaN=ju;});var ai=b(ts=>{d();var jn=Re(),es=t=>typeof t=="bigint"||Number.isInteger(t),oi=(t,e,s,{intAsBigInt:i})=>i?BigInt(t):parseInt(t.substring(e),s);function Yn(t,e,s){let{value:i}=t;return es(i)&&i>=0?s+i.toString(e):jn.stringifyNumber(t)}var Ku={identify:t=>es(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,s)=>oi(t,2,8,s),stringify:t=>Yn(t,8,"0o")},Ju={identify:es,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,s)=>oi(t,0,10,s),stringify:jn.stringifyNumber},zu={identify:t=>es(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,s)=>oi(t,2,16,s),stringify:t=>Yn(t,16,"0x")};ts.int=Ju;ts.intHex=zu;ts.intOct=Ku;});var Kn=b(Wn=>{d();var Hu=De(),Vu=Qt(),Xu=$e(),Qu=nt(),Zu=ii(),li=ni(),ci=ai(),eh=[Hu.map,Xu.seq,Qu.string,Vu.nullTag,Zu.boolTag,ci.intOct,ci.int,ci.intHex,li.floatNaN,li.floatExp,li.float];Wn.schema=eh;});var Hn=b(zn=>{d();var th=F(),sh=De(),ih=$e();function Jn(t){return typeof t=="bigint"||Number.isInteger(t)}var ss=({value:t})=>JSON.stringify(t),rh=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:ss},{identify:t=>t==null,createNode:()=>new th.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ss},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:ss},{identify:Jn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:s})=>s?BigInt(t):parseInt(t,10),stringify:({value:t})=>Jn(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:ss}],nh={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},oh=[sh.map,ih.seq].concat(rh,nh);zn.schema=oh;});var ui=b(Vn=>{d();var fi=F(),ah=tt(),lh={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){let s=atob(t.replace(/[\n\r]/g,"")),i=new Uint8Array(s.length);for(let r=0;r<s.length;++r)i[r]=s.charCodeAt(r);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:s},i,r,n){let o=s,a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l);}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=fi.Scalar.BLOCK_LITERAL),e!==fi.Scalar.QUOTE_DOUBLE){let l=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),c=Math.ceil(a.length/l),d=new Array(c);for(let u=0,p=0;u<c;++u,p+=l)d[u]=a.substr(p,l);a=d.join(e===fi.Scalar.BLOCK_LITERAL?`
60
+ `:" ");}return ah.stringifyString({comment:t,type:e,value:a},i,r,n)}};Vn.binary=lh;});var ns=b(rs=>{d();var is=D(),hi=he(),ch=F(),fh=me();function Xn(t,e){if(is.isSeq(t))for(let s=0;s<t.items.length;++s){let i=t.items[s];if(!is.isPair(i)){if(is.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let r=i.items[0]||new hi.Pair(new ch.Scalar(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
61
+ ${r.key.commentBefore}`:i.commentBefore),i.comment){let n=r.value??r.key;n.comment=n.comment?`${i.comment}
62
+ ${n.comment}`:i.comment;}i=r;}t.items[s]=is.isPair(i)?i:new hi.Pair(i);}}else e("Expected a sequence for this tag");return t}function Qn(t,e,s){let{replacer:i}=s,r=new fh.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";let n=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof i=="function"&&(o=i.call(e,String(n++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;r.items.push(hi.createPair(a,l,s));}return r}var uh={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Xn,createNode:Qn};rs.createPairs=Qn;rs.pairs=uh;rs.resolvePairs=Xn;});var mi=b(di=>{d();var Zn=D(),pi=ae(),ot=de(),hh=me(),eo=ns(),Le=class t extends hh.YAMLSeq{constructor(){super(),this.add=ot.YAMLMap.prototype.add.bind(this),this.delete=ot.YAMLMap.prototype.delete.bind(this),this.get=ot.YAMLMap.prototype.get.bind(this),this.has=ot.YAMLMap.prototype.has.bind(this),this.set=ot.YAMLMap.prototype.set.bind(this),this.tag=t.tag;}toJSON(e,s){if(!s)return super.toJSON(e);let i=new Map;s?.onCreate&&s.onCreate(i);for(let r of this.items){let n,o;if(Zn.isPair(r)?(n=pi.toJS(r.key,"",s),o=pi.toJS(r.value,n,s)):n=pi.toJS(r,"",s),i.has(n))throw new Error("Ordered maps must not include duplicate keys");i.set(n,o);}return i}static from(e,s,i){let r=eo.createPairs(e,s,i),n=new this;return n.items=r.items,n}};Le.tag="tag:yaml.org,2002:omap";var ph={collection:"seq",identify:t=>t instanceof Map,nodeClass:Le,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let s=eo.resolvePairs(t,e),i=[];for(let{key:r}of s.items)Zn.isScalar(r)&&(i.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):i.push(r.value));return Object.assign(new Le,s)},createNode:(t,e,s)=>Le.from(t,e,s)};di.YAMLOMap=Le;di.omap=ph;});var no=b(gi=>{d();var to=F();function so({value:t,source:e},s){return e&&(t?io:ro).test.test(e)?e:t?s.options.trueStr:s.options.falseStr}var io={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new to.Scalar(!0),stringify:so},ro={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new to.Scalar(!1),stringify:so};gi.falseTag=ro;gi.trueTag=io;});var oo=b(os=>{d();var dh=F(),yi=Re(),mh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yi.stringifyNumber},gh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():yi.stringifyNumber(t)}},yh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new dh.Scalar(parseFloat(t.replace(/_/g,""))),s=t.indexOf(".");if(s!==-1){let i=t.substring(s+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length);}return e},stringify:yi.stringifyNumber};os.float=yh;os.floatExp=gh;os.floatNaN=mh;});var lo=b(lt=>{d();var ao=Re(),at=t=>typeof t=="bigint"||Number.isInteger(t);function as(t,e,s,{intAsBigInt:i}){let r=t[0];if((r==="-"||r==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),i){switch(s){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}let o=BigInt(t);return r==="-"?BigInt(-1)*o:o}let n=parseInt(t,s);return r==="-"?-1*n:n}function bi(t,e,s){let{value:i}=t;if(at(i)){let r=i.toString(e);return i<0?"-"+s+r.substr(1):s+r}return ao.stringifyNumber(t)}var bh={identify:at,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,s)=>as(t,2,2,s),stringify:t=>bi(t,2,"0b")},wh={identify:at,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,s)=>as(t,1,8,s),stringify:t=>bi(t,8,"0")},Sh={identify:at,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,s)=>as(t,0,10,s),stringify:ao.stringifyNumber},vh={identify:at,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,s)=>as(t,2,16,s),stringify:t=>bi(t,16,"0x")};lt.int=Sh;lt.intBin=bh;lt.intHex=vh;lt.intOct=wh;});var Si=b(wi=>{d();var fs=D(),ls=he(),cs=de(),Ee=class t extends cs.YAMLMap{constructor(e){super(e),this.tag=t.tag;}add(e){let s;fs.isPair(e)?s=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?s=new ls.Pair(e.key,null):s=new ls.Pair(e,null),cs.findPair(this.items,s.key)||this.items.push(s);}get(e,s){let i=cs.findPair(this.items,e);return !s&&fs.isPair(i)?fs.isScalar(i.key)?i.key.value:i.key:i}set(e,s){if(typeof s!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);let i=cs.findPair(this.items,e);i&&!s?this.items.splice(this.items.indexOf(i),1):!i&&s&&this.items.push(new ls.Pair(e));}toJSON(e,s){return super.toJSON(e,s,Set)}toString(e,s,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),s,i);throw new Error("Set items must all have null values")}static from(e,s,i){let{replacer:r}=i,n=new this(e);if(s&&Symbol.iterator in Object(s))for(let o of s)typeof r=="function"&&(o=r.call(s,o,o)),n.items.push(ls.createPair(o,null,i));return n}};Ee.tag="tag:yaml.org,2002:set";var Lh={collection:"map",identify:t=>t instanceof Set,nodeClass:Ee,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,s)=>Ee.from(t,e,s),resolve(t,e){if(fs.isMap(t)){if(t.hasAllNullValues(!0))return Object.assign(new Ee,t);e("Set items must all have null values");}else e("Expected a mapping for this tag");return t}};wi.YAMLSet=Ee;wi.set=Lh;});var Li=b(us=>{d();var Eh=Re();function vi(t,e){let s=t[0],i=s==="-"||s==="+"?t.substring(1):t,r=o=>e?BigInt(o):Number(o),n=i.replace(/_/g,"").split(":").reduce((o,a)=>o*r(60)+r(a),r(0));return s==="-"?r(-1)*n:n}function co(t){let{value:e}=t,s=o=>o;if(typeof e=="bigint")s=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Eh.stringifyNumber(t);let i="";e<0&&(i="-",e*=s(-1));let r=s(60),n=[e%r];return e<60?n.unshift(0):(e=(e-n[0])/r,n.unshift(e%r),e>=60&&(e=(e-n[0])/r,n.unshift(e))),i+n.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Ah={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:s})=>vi(t,s),stringify:co},Nh={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>vi(t,!1),stringify:co},fo={identify:t=>t 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(t){let e=t.match(fo.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,i,r,n,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(s,i-1,r,n||0,o||0,a||0,l),d=e[8];if(d&&d!=="Z"){let u=vi(d,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u;}return new Date(c)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};us.floatTime=Nh;us.intTime=Ah;us.timestamp=fo;});var po=b(ho=>{d();var Ch=De(),Oh=Qt(),Ph=$e(),Ih=nt(),kh=ui(),uo=no(),Ei=oo(),hs=lo(),Th=mi(),Dh=ns(),$h=Si(),Ai=Li(),Rh=[Ch.map,Ph.seq,Ih.string,Oh.nullTag,uo.trueTag,uo.falseTag,hs.intBin,hs.intOct,hs.int,hs.intHex,Ei.floatNaN,Ei.floatExp,Ei.float,kh.binary,Th.omap,Dh.pairs,$h.set,Ai.intTime,Ai.floatTime,Ai.timestamp];ho.schema=Rh;});var Ao=b(Oi=>{d();var bo=De(),Fh=Qt(),wo=$e(),_h=nt(),qh=ii(),Ni=ni(),Ci=ai(),Mh=Kn(),xh=Hn(),So=ui(),vo=mi(),Lo=ns(),mo=po(),Eo=Si(),ps=Li(),go=new Map([["core",Mh.schema],["failsafe",[bo.map,wo.seq,_h.string]],["json",xh.schema],["yaml11",mo.schema],["yaml-1.1",mo.schema]]),yo={binary:So.binary,bool:qh.boolTag,float:Ni.float,floatExp:Ni.floatExp,floatNaN:Ni.floatNaN,floatTime:ps.floatTime,int:Ci.int,intHex:Ci.intHex,intOct:Ci.intOct,intTime:ps.intTime,map:bo.map,null:Fh.nullTag,omap:vo.omap,pairs:Lo.pairs,seq:wo.seq,set:Eo.set,timestamp:ps.timestamp},Bh={"tag:yaml.org,2002:binary":So.binary,"tag:yaml.org,2002:omap":vo.omap,"tag:yaml.org,2002:pairs":Lo.pairs,"tag:yaml.org,2002:set":Eo.set,"tag:yaml.org,2002:timestamp":ps.timestamp};function Uh(t,e){let s=go.get(e);if(!s)if(Array.isArray(t))s=[];else {let i=Array.from(go.keys()).filter(r=>r!=="yaml11").map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(let i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return s.map(i=>{if(typeof i!="string")return i;let r=yo[i];if(r)return r;let n=Object.keys(yo).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${i}"; use one of ${n}`)})}Oi.coreKnownTags=Bh;Oi.getTags=Uh;});var ki=b(No=>{d();var Pi=D(),Gh=De(),jh=$e(),Yh=nt(),ds=Ao(),Wh=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0,Ii=class t{constructor({compat:e,customTags:s,merge:i,resolveKnownTags:r,schema:n,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?ds.getTags(e,"compat"):e?ds.getTags(null,e):null,this.merge=!!i,this.name=typeof n=="string"&&n||"core",this.knownTags=r?ds.coreKnownTags:{},this.tags=ds.getTags(s,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Pi.MAP,{value:Gh.map}),Object.defineProperty(this,Pi.SCALAR,{value:Yh.string}),Object.defineProperty(this,Pi.SEQ,{value:jh.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Wh:null;}clone(){let e=Object.create(t.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};No.Schema=Ii;});var Oo=b(Co=>{d();var Kh=D(),Ti=st(),ct=Qe();function Jh(t,e){let s=[],i=e.directives===!0;if(e.directives!==!1&&t.directives){let l=t.directives.toString(t);l?(s.push(l),i=!0):t.directives.docStart&&(i=!0);}i&&s.push("---");let r=Ti.createStringifyContext(t,e),{commentString:n}=r.options;if(t.commentBefore){s.length!==1&&s.unshift("");let l=n(t.commentBefore);s.unshift(ct.indentComment(l,""));}let o=!1,a=null;if(t.contents){if(Kh.isNode(t.contents)){if(t.contents.spaceBefore&&i&&s.push(""),t.contents.commentBefore){let d=n(t.contents.commentBefore);s.push(ct.indentComment(d,""));}r.forceBlockIndent=!!t.comment,a=t.contents.comment;}let l=a?void 0:()=>o=!0,c=Ti.stringify(t.contents,r,()=>a=null,l);a&&(c+=ct.lineComment(c,"",n(a))),(c[0]==="|"||c[0]===">")&&s[s.length-1]==="---"?s[s.length-1]=`--- ${c}`:s.push(c);}else s.push(Ti.stringify(t.contents,r));if(t.directives?.docEnd)if(t.comment){let l=n(t.comment);l.includes(`
63
+ `)?(s.push("..."),s.push(ct.indentComment(l,""))):s.push(`... ${l}`);}else s.push("...");else {let l=t.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&s[s.length-1]!==""&&s.push(""),s.push(ct.indentComment(n(l),"")));}return s.join(`
64
+ `)+`
65
+ `}Co.stringifyDocument=Jh;});var ft=b(Po=>{d();var zh=Ve(),Fe=xt(),J=D(),Hh=he(),Vh=ae(),Xh=ki(),Qh=Oo(),Di=$t(),Zh=qs(),ep=Xe(),$i=_s(),Ri=class t{constructor(e,s,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J.NODE_TYPE,{value:J.DOC});let r=null;typeof s=="function"||Array.isArray(s)?r=s:i===void 0&&s&&(i=s,s=void 0);let n=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},i);this.options=n;let{version:o}=n;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new $i.Directives({version:o}),this.setSchema(o,i),this.contents=e===void 0?null:this.createNode(e,r,i);}clone(){let e=Object.create(t.prototype,{[J.NODE_TYPE]:{value:J.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=J.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){_e(this.contents)&&this.contents.add(e);}addIn(e,s){_e(this.contents)&&this.contents.addIn(e,s);}createAlias(e,s){if(!e.anchor){let i=Di.anchorNames(this);e.anchor=!s||i.has(s)?Di.findNewAnchor(s||"a",i):s;}return new zh.Alias(e.anchor)}createNode(e,s,i){let r;if(typeof s=="function")e=s.call({"":e},"",e),r=s;else if(Array.isArray(s)){let m=E=>typeof E=="number"||E instanceof String||E instanceof Number,v=s.filter(m).map(String);v.length>0&&(s=s.concat(v)),r=s;}else i===void 0&&s&&(i=s,s=void 0);let{aliasDuplicateObjects:n,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:d}=i??{},{onAnchor:u,setAnchors:p,sourceObjects:g}=Di.createNodeAnchors(this,o||"a"),y={aliasDuplicateObjects:n??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:g},h=ep.createNode(e,d,y);return a&&J.isCollection(h)&&(h.flow=!0),p(),h}createPair(e,s,i={}){let r=this.createNode(e,null,i),n=this.createNode(s,null,i);return new Hh.Pair(r,n)}delete(e){return _e(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Fe.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):_e(this.contents)?this.contents.deleteIn(e):!1}get(e,s){return J.isCollection(this.contents)?this.contents.get(e,s):void 0}getIn(e,s){return Fe.isEmptyPath(e)?!s&&J.isScalar(this.contents)?this.contents.value:this.contents:J.isCollection(this.contents)?this.contents.getIn(e,s):void 0}has(e){return J.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return Fe.isEmptyPath(e)?this.contents!==void 0:J.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,s){this.contents==null?this.contents=Fe.collectionFromPath(this.schema,[e],s):_e(this.contents)&&this.contents.set(e,s);}setIn(e,s){Fe.isEmptyPath(e)?this.contents=s:this.contents==null?this.contents=Fe.collectionFromPath(this.schema,Array.from(e),s):_e(this.contents)&&this.contents.setIn(e,s);}setSchema(e,s={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new $i.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 $i.Directives({version:e}),i={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let r=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(s.schema instanceof Object)this.schema=s.schema;else if(i)this.schema=new Xh.Schema(Object.assign(i,s));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:s,mapAsMap:i,maxAliasCount:r,onAnchor:n,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=Vh.toJS(this.contents,s??"",a);if(typeof n=="function")for(let{count:c,res:d}of a.anchors.values())n(d,c);return typeof o=="function"?Zh.applyReviver(o,{"":l},"",l):l}toJSON(e,s){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:s})}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 s=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${s}`)}return Qh.stringifyDocument(this,e)}};function _e(t){if(J.isCollection(t))return !0;throw new Error("Expected a YAML collection as document contents")}Po.Document=Ri;});var pt=b(ht=>{d();var ut=class extends Error{constructor(e,s,i,r){super(),this.name=e,this.code=i,this.message=r,this.pos=s;}},Fi=class extends ut{constructor(e,s,i){super("YAMLParseError",e,s,i);}},_i=class extends ut{constructor(e,s,i){super("YAMLWarning",e,s,i);}},tp=(t,e)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map(a=>e.linePos(a));let{line:i,col:r}=s.linePos[0];s.message+=` at line ${i}, column ${r}`;let n=r-1,o=t.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(n>=60&&o.length>80){let a=Math.min(n-39,o.length-79);o="\u2026"+o.substring(a),n-=a-1;}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(o.substring(0,n))){let a=t.substring(e.lineStarts[i-2],e.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
66
+ `),o=a+o;}if(/[^ ]/.test(o)){let a=1,l=s.linePos[1];l&&l.line===i&&l.col>r&&(a=Math.max(1,Math.min(l.col-r,80-n)));let c=" ".repeat(n)+"^".repeat(a);s.message+=`:
67
+
68
+ ${o}
69
+ ${c}
70
+ `;}};ht.YAMLError=ut;ht.YAMLParseError=Fi;ht.YAMLWarning=_i;ht.prettifyError=tp;});var dt=b(Io=>{d();function sp(t,{flow:e,indicator:s,next:i,offset:r,onError:n,startOnNewline:o}){let a=!1,l=o,c=o,d="",u="",p=!1,g=!1,y=!1,h=null,m=null,v=null,E=null,O=null;for(let L of t)switch(y&&(L.type!=="space"&&L.type!=="newline"&&L.type!=="comma"&&n(L.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),L.type){case"space":!e&&l&&s!=="doc-start"&&L.source[0]===" "&&n(L,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||n(L,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let k=L.source.substring(1)||" ";d?d+=u+k:d=k,u="",l=!1;break}case"newline":l?d?d+=L.source:a=!0:u+=L.source,l=!0,p=!0,(h||m)&&(g=!0),c=!0;break;case"anchor":h&&n(L,"MULTIPLE_ANCHORS","A node can have at most one anchor"),L.source.endsWith(":")&&n(L.offset+L.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),h=L,O===null&&(O=L.offset),l=!1,c=!1,y=!0;break;case"tag":{m&&n(L,"MULTIPLE_TAGS","A node can have at most one tag"),m=L,O===null&&(O=L.offset),l=!1,c=!1,y=!0;break}case s:(h||m)&&n(L,"BAD_PROP_ORDER",`Anchors and tags must be after the ${L.source} indicator`),E&&n(L,"UNEXPECTED_TOKEN",`Unexpected ${L.source} in ${e??"collection"}`),E=L,l=!1,c=!1;break;case"comma":if(e){v&&n(L,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),v=L,l=!1,c=!1;break}default:n(L,"UNEXPECTED_TOKEN",`Unexpected ${L.type} token`),l=!1,c=!1;}let C=t[t.length-1],P=C?C.offset+C.source.length:r;return y&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&n(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:v,found:E,spaceBefore:a,comment:d,hasNewline:p,hasNewlineAfterProp:g,anchor:h,tag:m,end:P,start:O??P}}Io.resolveProps=sp;});var ms=b(ko=>{d();function qi(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
71
+ `))return !0;if(t.end){for(let e of t.end)if(e.type==="newline")return !0}return !1;case"flow-collection":for(let e of t.items){for(let s of e.start)if(s.type==="newline")return !0;if(e.sep){for(let s of e.sep)if(s.type==="newline")return !0}if(qi(e.key)||qi(e.value))return !0}return !1;default:return !0}}ko.containsNewline=qi;});var Mi=b(To=>{d();var ip=ms();function rp(t,e,s){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===t&&(i.source==="]"||i.source==="}")&&ip.containsNewline(e)&&s(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0);}}To.flowIndentCheck=rp;});var xi=b($o=>{d();var Do=D();function np(t,e,s){let{uniqueKeys:i}=t.options;if(i===!1)return !1;let r=typeof i=="function"?i:(n,o)=>n===o||Do.isScalar(n)&&Do.isScalar(o)&&n.value===o.value&&!(n.value==="<<"&&t.schema.merge);return e.some(n=>r(n.key,s))}$o.mapIncludes=np;});var xo=b(Mo=>{d();var Ro=he(),op=de(),Fo=dt(),ap=ms(),_o=Mi(),lp=xi(),qo="All mapping items must start at the same column";function cp({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=n?.nodeClass??op.YAMLMap,a=new o(s.schema);s.atRoot&&(s.atRoot=!1);let l=i.offset,c=null;for(let d of i.items){let{start:u,key:p,sep:g,value:y}=d,h=Fo.resolveProps(u,{indicator:"explicit-key-ind",next:p??g?.[0],offset:l,onError:r,startOnNewline:!0}),m=!h.found;if(m){if(p&&(p.type==="block-seq"?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==i.indent&&r(l,"BAD_INDENT",qo)),!h.anchor&&!h.tag&&!g){c=h.end,h.comment&&(a.comment?a.comment+=`
72
+ `+h.comment:a.comment=h.comment);continue}(h.hasNewlineAfterProp||ap.containsNewline(p))&&r(p??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");}else h.found?.indent!==i.indent&&r(l,"BAD_INDENT",qo);let v=h.end,E=p?t(s,p,h,r):e(s,v,u,null,h,r);s.schema.compat&&_o.flowIndentCheck(i.indent,p,r),lp.mapIncludes(s,a.items,E)&&r(v,"DUPLICATE_KEY","Map keys must be unique");let O=Fo.resolveProps(g??[],{indicator:"map-value-ind",next:y,offset:E.range[2],onError:r,startOnNewline:!p||p.type==="block-scalar"});if(l=O.end,O.found){m&&(y?.type==="block-map"&&!O.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&h.start<O.found.offset-1024&&r(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let C=y?t(s,y,O,r):e(s,l,g,null,O,r);s.schema.compat&&_o.flowIndentCheck(i.indent,y,r),l=C.range[2];let P=new Ro.Pair(E,C);s.options.keepSourceTokens&&(P.srcToken=d),a.items.push(P);}else {m&&r(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(E.comment?E.comment+=`
73
+ `+O.comment:E.comment=O.comment);let C=new Ro.Pair(E);s.options.keepSourceTokens&&(C.srcToken=d),a.items.push(C);}}return c&&c<l&&r(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,l,c??l],a}Mo.resolveBlockMap=cp;});var Uo=b(Bo=>{d();var fp=me(),up=dt(),hp=Mi();function pp({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=n?.nodeClass??fp.YAMLSeq,a=new o(s.schema);s.atRoot&&(s.atRoot=!1);let l=i.offset,c=null;for(let{start:d,value:u}of i.items){let p=up.resolveProps(d,{indicator:"seq-item-ind",next:u,offset:l,onError:r,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||u)u&&u.type==="block-seq"?r(p.end,"BAD_INDENT","All sequence items must start at the same column"):r(l,"MISSING_CHAR","Sequence item without - indicator");else {c=p.end,p.comment&&(a.comment=p.comment);continue}let g=u?t(s,u,p,r):e(s,p.end,d,null,p,r);s.schema.compat&&hp.flowIndentCheck(i.indent,u,r),l=g.range[2],a.items.push(g);}return a.range=[i.offset,l,c??l],a}Bo.resolveBlockSeq=pp;});var qe=b(Go=>{d();function dp(t,e,s,i){let r="";if(t){let n=!1,o="";for(let a of t){let{source:l,type:c}=a;switch(c){case"space":n=!0;break;case"comment":{s&&!n&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=l.substring(1)||" ";r?r+=o+d:r=d,o="";break}case"newline":r&&(o+=l),n=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`);}e+=l.length;}}return {comment:r,offset:e}}Go.resolveEnd=dp;});var Ko=b(Wo=>{d();var mp=D(),gp=he(),jo=de(),yp=me(),bp=qe(),Yo=dt(),wp=ms(),Sp=xi(),Bi="Block collections are not allowed within flow collections",Ui=t=>t&&(t.type==="block-map"||t.type==="block-seq");function vp({composeNode:t,composeEmptyNode:e},s,i,r,n){let o=i.start.source==="{",a=o?"flow map":"flow sequence",l=n?.nodeClass??(o?jo.YAMLMap:yp.YAMLSeq),c=new l(s.schema);c.flow=!0;let d=s.atRoot;d&&(s.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:E,key:O,sep:C,value:P}=v,L=Yo.resolveProps(E,{flow:a,indicator:"explicit-key-ind",next:O??C?.[0],offset:u,onError:r,startOnNewline:!1});if(!L.found){if(!L.anchor&&!L.tag&&!C&&!P){m===0&&L.comma?r(L.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<i.items.length-1&&r(L.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),L.comment&&(c.comment?c.comment+=`
74
+ `+L.comment:c.comment=L.comment),u=L.end;continue}!o&&s.options.strict&&wp.containsNewline(O)&&r(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");}if(m===0)L.comma&&r(L.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(L.comma||r(L.start,"MISSING_CHAR",`Missing , between ${a} items`),L.comment){let k="";e:for(let R of E)switch(R.type){case"comma":case"space":break;case"comment":k=R.source.substring(1);break e;default:break e}if(k){let R=c.items[c.items.length-1];mp.isPair(R)&&(R=R.value??R.key),R.comment?R.comment+=`
75
+ `+k:R.comment=k,L.comment=L.comment.substring(k.length+1);}}if(!o&&!C&&!L.found){let k=P?t(s,P,L,r):e(s,L.end,C,null,L,r);c.items.push(k),u=k.range[2],Ui(P)&&r(k.range,"BLOCK_IN_FLOW",Bi);}else {let k=L.end,R=O?t(s,O,L,r):e(s,k,E,null,L,r);Ui(O)&&r(R.range,"BLOCK_IN_FLOW",Bi);let q=Yo.resolveProps(C??[],{flow:a,indicator:"map-value-ind",next:P,offset:R.range[2],onError:r,startOnNewline:!1});if(q.found){if(!o&&!L.found&&s.options.strict){if(C)for(let x of C){if(x===q.found)break;if(x.type==="newline"){r(x,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}L.start<q.found.offset-1024&&r(q.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");}}else P&&("source"in P&&P.source&&P.source[0]===":"?r(P,"MISSING_CHAR",`Missing space after : in ${a}`):r(q.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let V=P?t(s,P,q,r):q.found?e(s,q.end,C,null,q,r):null;V?Ui(P)&&r(V.range,"BLOCK_IN_FLOW",Bi):q.comment&&(R.comment?R.comment+=`
76
+ `+q.comment:R.comment=q.comment);let Ce=new gp.Pair(R,V);if(s.options.keepSourceTokens&&(Ce.srcToken=v),o){let x=c;Sp.mapIncludes(s,x.items,R)&&r(k,"DUPLICATE_KEY","Map keys must be unique"),x.items.push(Ce);}else {let x=new jo.YAMLMap(s.schema);x.flow=!0,x.items.push(Ce),c.items.push(x);}u=V?V.range[2]:q.end;}}let p=o?"}":"]",[g,...y]=i.end,h=u;if(g&&g.source===p)h=g.offset+g.source.length;else {let m=a[0].toUpperCase()+a.substring(1),v=d?`${m} must end with a ${p}`:`${m} in block collection must be sufficiently indented and end with a ${p}`;r(u,d?"MISSING_CHAR":"BAD_INDENT",v),g&&g.source.length!==1&&y.unshift(g);}if(y.length>0){let m=bp.resolveEnd(y,h,s.options.strict,r);m.comment&&(c.comment?c.comment+=`
77
+ `+m.comment:c.comment=m.comment),c.range=[i.offset,h,m.offset];}else c.range=[i.offset,h,h];return c}Wo.resolveFlowCollection=vp;});var zo=b(Jo=>{d();var Lp=D(),Ep=F(),Ap=de(),Np=me(),Cp=xo(),Op=Uo(),Pp=Ko();function Gi(t,e,s,i,r,n){let o=s.type==="block-map"?Cp.resolveBlockMap(t,e,s,i,n):s.type==="block-seq"?Op.resolveBlockSeq(t,e,s,i,n):Pp.resolveFlowCollection(t,e,s,i,n),a=o.constructor;return r==="!"||r===a.tagName?(o.tag=a.tagName,o):(r&&(o.tag=r),o)}function Ip(t,e,s,i,r){let n=i?e.directives.tagName(i.source,u=>r(i,"TAG_RESOLVE_FAILED",u)):null,o=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!i||!n||n==="!"||n===Ap.YAMLMap.tagName&&o==="map"||n===Np.YAMLSeq.tagName&&o==="seq"||!o)return Gi(t,e,s,r,n);let a=e.schema.tags.find(u=>u.tag===n&&u.collection===o);if(!a){let u=e.schema.knownTags[n];if(u&&u.collection===o)e.schema.tags.push(Object.assign({},u,{default:!1})),a=u;else return u?.collection?r(i,"BAD_COLLECTION_TYPE",`${u.tag} used for ${o} collection, but expects ${u.collection}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,!0),Gi(t,e,s,r,n)}let l=Gi(t,e,s,r,n,a),c=a.resolve?.(l,u=>r(i,"TAG_RESOLVE_FAILED",u),e.options)??l,d=Lp.isNode(c)?c:new Ep.Scalar(c);return d.range=l.range,d.tag=n,a?.format&&(d.format=a.format),d}Jo.composeCollection=Ip;});var Yi=b(Ho=>{d();var ji=F();function kp(t,e,s){let i=t.offset,r=Tp(t,e,s);if(!r)return {value:"",type:null,comment:"",range:[i,i,i]};let n=r.mode===">"?ji.Scalar.BLOCK_FOLDED:ji.Scalar.BLOCK_LITERAL,o=t.source?Dp(t.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")a=h;else break}if(a===0){let h=r.chomp==="+"&&o.length>0?`
78
+ `.repeat(Math.max(1,o.length-1)):"",m=i+r.length;return t.source&&(m+=t.source.length),{value:h,type:n,comment:r.comment,range:[i,m,m]}}let l=t.indent+r.indent,c=t.offset+r.length,d=0;for(let h=0;h<a;++h){let[m,v]=o[h];if(v===""||v==="\r")r.indent===0&&m.length>l&&(l=m.length);else {m.length<l&&s(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(l=m.length),d=h;break}c+=m.length+v.length+1;}for(let h=o.length-1;h>=a;--h)o[h][0].length>l&&(a=h+1);let u="",p="",g=!1;for(let h=0;h<d;++h)u+=o[h][0].slice(l)+`
79
+ `;for(let h=d;h<a;++h){let[m,v]=o[h];c+=m.length+v.length+1;let E=v[v.length-1]==="\r";if(E&&(v=v.slice(0,-1)),v&&m.length<l){let C=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;s(c-v.length-(E?2:1),"BAD_INDENT",C),m="";}n===ji.Scalar.BLOCK_LITERAL?(u+=p+m.slice(l)+v,p=`
80
+ `):m.length>l||v[0]===" "?(p===" "?p=`
81
+ `:!g&&p===`
82
+ `&&(p=`
83
+
84
+ `),u+=p+m.slice(l)+v,p=`
85
+ `,g=!0):v===""?p===`
86
+ `?u+=`
87
+ `:p=`
88
+ `:(u+=p+v,p=" ",g=!1);}switch(r.chomp){case"-":break;case"+":for(let h=a;h<o.length;++h)u+=`
89
+ `+o[h][0].slice(l);u[u.length-1]!==`
90
+ `&&(u+=`
91
+ `);break;default:u+=`
92
+ `;}let y=i+r.length+t.source.length;return {value:u,type:n,comment:r.comment,range:[i,y,y]}}function Tp({offset:t,props:e},s,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=e[0],n=r[0],o=0,a="",l=-1;for(let p=1;p<r.length;++p){let g=r[p];if(!a&&(g==="-"||g==="+"))a=g;else {let y=Number(g);!o&&y?o=y:l===-1&&(l=t+p);}}l!==-1&&i(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,d="",u=r.length;for(let p=1;p<e.length;++p){let g=e[p];switch(g.type){case"space":c=!0;case"newline":u+=g.source.length;break;case"comment":s&&!c&&i(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=g.source.length,d=g.source.substring(1);break;case"error":i(g,"UNEXPECTED_TOKEN",g.message),u+=g.source.length;break;default:{let y=`Unexpected token in block scalar header: ${g.type}`;i(g,"UNEXPECTED_TOKEN",y);let h=g.source;h&&typeof h=="string"&&(u+=h.length);}}}return {mode:n,indent:o,chomp:a,comment:d,length:u}}function Dp(t){let e=t.split(/\n( *)/),s=e[0],i=s.match(/^( *)/),n=[i?.[1]?[i[1],s.slice(i[1].length)]:["",s]];for(let o=1;o<e.length;o+=2)n.push([e[o],e[o+1]]);return n}Ho.resolveBlockScalar=kp;});var Ki=b(Xo=>{d();var Wi=F(),$p=qe();function Rp(t,e,s){let{offset:i,type:r,source:n,end:o}=t,a,l,c=(p,g,y)=>s(i+p,g,y);switch(r){case"scalar":a=Wi.Scalar.PLAIN,l=Fp(n,c);break;case"single-quoted-scalar":a=Wi.Scalar.QUOTE_SINGLE,l=_p(n,c);break;case"double-quoted-scalar":a=Wi.Scalar.QUOTE_DOUBLE,l=qp(n,c);break;default:return s(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[i,i+n.length,i+n.length]}}let d=i+n.length,u=$p.resolveEnd(o,d,e,s);return {value:l,type:a,comment:u.comment,range:[i,d,u.offset]}}function Fp(t,e){let s="";switch(t[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${t[0]}`;break}case"@":case"`":{s=`reserved character ${t[0]}`;break}}return s&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),Vo(t)}function _p(t,e){return (t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),Vo(t.slice(1,-1)).replace(/''/g,"'")}function Vo(t){let e,s;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
93
+ `,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
94
+ `,"sy");}catch{e=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy;}let i=e.exec(t);if(!i)return t;let r=i[1],n=" ",o=e.lastIndex;for(s.lastIndex=o;i=s.exec(t);)i[1]===""?n===`
95
+ `?r+=n:n=`
96
+ `:(r+=n+i[1],n=" "),o=s.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,i=a.exec(t),r+n+(i?.[1]??"")}function qp(t,e){let s="";for(let i=1;i<t.length-1;++i){let r=t[i];if(!(r==="\r"&&t[i+1]===`
97
+ `))if(r===`
98
+ `){let{fold:n,offset:o}=Mp(t,i);s+=n,i=o;}else if(r==="\\"){let n=t[++i],o=xp[n];if(o)s+=o;else if(n===`
99
+ `)for(n=t[i+1];n===" "||n===" ";)n=t[++i+1];else if(n==="\r"&&t[i+1]===`
100
+ `)for(n=t[++i+1];n===" "||n===" ";)n=t[++i+1];else if(n==="x"||n==="u"||n==="U"){let a={x:2,u:4,U:8}[n];s+=Bp(t,i+1,a,e),i+=a;}else {let a=t.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),s+=a;}}else if(r===" "||r===" "){let n=i,o=t[i+1];for(;o===" "||o===" ";)o=t[++i+1];o!==`
101
+ `&&!(o==="\r"&&t[i+2]===`
102
+ `)&&(s+=i>n?t.slice(n,i+1):r);}else s+=r;}return (t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),s}function Mp(t,e){let s="",i=t[e+1];for(;(i===" "||i===" "||i===`
103
+ `||i==="\r")&&!(i==="\r"&&t[e+2]!==`
104
+ `);)i===`
105
+ `&&(s+=`
106
+ `),e+=1,i=t[e+1];return s||(s=" "),{fold:s,offset:e}}var xp={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
107
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Bp(t,e,s,i){let r=t.substr(e,s),o=r.length===s&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(o)){let a=t.substr(e-2,s+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}Xo.resolveFlowScalar=Rp;});var ea=b(Zo=>{d();var Me=D(),Qo=F(),Up=Yi(),Gp=Ki();function jp(t,e,s,i){let{value:r,type:n,comment:o,range:a}=e.type==="block-scalar"?Up.resolveBlockScalar(e,t.options.strict,i):Gp.resolveFlowScalar(e,t.options.strict,i),l=s?t.directives.tagName(s.source,u=>i(s,"TAG_RESOLVE_FAILED",u)):null,c=s&&l?Yp(t.schema,r,l,s,i):e.type==="scalar"?Wp(t,r,e,i):t.schema[Me.SCALAR],d;try{let u=c.resolve(r,p=>i(s??e,"TAG_RESOLVE_FAILED",p),t.options);d=Me.isScalar(u)?u:new Qo.Scalar(u);}catch(u){let p=u instanceof Error?u.message:String(u);i(s??e,"TAG_RESOLVE_FAILED",p),d=new Qo.Scalar(r);}return d.range=a,d.source=r,n&&(d.type=n),l&&(d.tag=l),c.format&&(d.format=c.format),o&&(d.comment=o),d}function Yp(t,e,s,i,r){if(s==="!")return t[Me.SCALAR];let n=[];for(let a of t.tags)if(!a.collection&&a.tag===s)if(a.default&&a.test)n.push(a);else return a;for(let a of n)if(a.test?.test(e))return a;let o=t.knownTags[s];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),t[Me.SCALAR])}function Wp({directives:t,schema:e},s,i,r){let n=e.tags.find(o=>o.default&&o.test?.test(s))||e[Me.SCALAR];if(e.compat){let o=e.compat.find(a=>a.default&&a.test?.test(s))??e[Me.SCALAR];if(n.tag!==o.tag){let a=t.tagString(n.tag),l=t.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;r(i,"TAG_RESOLVE_FAILED",c,!0);}}return n}Zo.composeScalar=jp;});var sa=b(ta=>{d();function Kp(t,e,s){if(e){s===null&&(s=e.length);for(let i=s-1;i>=0;--i){let r=e[i];switch(r.type){case"space":case"comment":case"newline":t-=r.source.length;continue}for(r=e[++i];r?.type==="space";)t+=r.source.length,r=e[++i];break}}return t}ta.emptyScalarPosition=Kp;});var na=b(zi=>{d();var Jp=Ve(),zp=zo(),ia=ea(),Hp=qe(),Vp=sa(),Xp={composeNode:ra,composeEmptyNode:Ji};function ra(t,e,s,i){let{spaceBefore:r,comment:n,anchor:o,tag:a}=s,l,c=!0;switch(e.type){case"alias":l=Qp(t,e,i),(o||a)&&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=ia.composeScalar(t,e,a,i),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=zp.composeCollection(Xp,t,e,a,i),o&&(l.anchor=o.source.substring(1));break;default:{let d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",d),l=Ji(t,e.offset,void 0,null,s,i),c=!1;}}return o&&l.anchor===""&&i(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&(l.spaceBefore=!0),n&&(e.type==="scalar"&&e.source===""?l.comment=n:l.commentBefore=n),t.options.keepSourceTokens&&c&&(l.srcToken=e),l}function Ji(t,e,s,i,{spaceBefore:r,comment:n,anchor:o,tag:a,end:l},c){let d={type:"scalar",offset:Vp.emptyScalarPosition(e,s,i),indent:-1,source:""},u=ia.composeScalar(t,d,a,c);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(u.spaceBefore=!0),n&&(u.comment=n,u.range[2]=l),u}function Qp({options:t},{offset:e,source:s,end:i},r){let n=new Jp.Alias(s.substring(1));n.source===""&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),n.source.endsWith(":")&&r(e+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+s.length,a=Hp.resolveEnd(i,o,t.strict,r);return n.range=[e,o,a.offset],a.comment&&(n.comment=a.comment),n}zi.composeEmptyNode=Ji;zi.composeNode=ra;});var la=b(aa=>{d();var Zp=ft(),oa=na(),ed=qe(),td=dt();function sd(t,e,{offset:s,start:i,value:r,end:n},o){let a=Object.assign({_directives:e},t),l=new Zp.Document(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},d=td.resolveProps(i,{indicator:"doc-start",next:r??n?.[0],offset:s,onError:o,startOnNewline:!0});d.found&&(l.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?oa.composeNode(c,r,d,o):oa.composeEmptyNode(c,d.end,i,null,d,o);let u=l.contents.range[2],p=ed.resolveEnd(n,u,!1,o);return p.comment&&(l.comment=p.comment),l.range=[s,u,p.offset],l}aa.composeDoc=sd;});var Vi=b(ua=>{d();var id=_s(),rd=ft(),mt=pt(),ca=D(),nd=la(),od=qe();function gt(t){if(typeof t=="number")return [t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];let{offset:e,source:s}=t;return [e,e+(typeof s=="string"?s.length:1)]}function fa(t){let e="",s=!1,i=!1;for(let r=0;r<t.length;++r){let n=t[r];switch(n[0]){case"#":e+=(e===""?"":i?`
108
+
109
+ `:`
110
+ `)+(n.substring(1)||" "),s=!0,i=!1;break;case"%":t[r+1]?.[0]!=="#"&&(r+=1),s=!1;break;default:s||(i=!0),s=!1;}}return {comment:e,afterEmptyLine:i}}var Hi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(s,i,r,n)=>{let o=gt(s);n?this.warnings.push(new mt.YAMLWarning(o,i,r)):this.errors.push(new mt.YAMLParseError(o,i,r));},this.directives=new id.Directives({version:e.version||"1.2"}),this.options=e;}decorate(e,s){let{comment:i,afterEmptyLine:r}=fa(this.prelude);if(i){let n=e.contents;if(s)e.comment=e.comment?`${e.comment}
111
+ ${i}`:i;else if(r||e.directives.docStart||!n)e.commentBefore=i;else if(ca.isCollection(n)&&!n.flow&&n.items.length>0){let o=n.items[0];ca.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${i}
112
+ ${a}`:i;}else {let o=n.commentBefore;n.commentBefore=o?`${i}
113
+ ${o}`:i;}}s?(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:fa(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,s=!1,i=-1){for(let r of e)yield*this.next(r);yield*this.end(s,i);}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(s,i,r)=>{let n=gt(e);n[0]+=s,this.onError(n,"BAD_DIRECTIVE",i,r);}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let s=nd.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!s.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(s,!1),this.doc&&(yield this.doc),this.doc=s,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let s=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,i=new mt.YAMLParseError(gt(e),"UNEXPECTED_TOKEN",s);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 mt.YAMLParseError(gt(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let s=od.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),s.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
114
+ ${s.comment}`:s.comment;}this.doc.range[2]=s.offset;break}default:this.errors.push(new mt.YAMLParseError(gt(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`));}}*end(e=!1,s=-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),r=new rd.Document(void 0,i);this.atDirectives&&this.onError(s,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,s,s],this.decorate(r,!1),yield r;}}};ua.Composer=Hi;});var da=b(gs=>{d();var ad=Yi(),ld=Ki(),cd=pt(),ha=tt();function fd(t,e=!0,s){if(t){let i=(r,n,o)=>{let a=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(s)s(a,n,o);else throw new cd.YAMLParseError([a,a+1],n,o)};switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ld.resolveFlowScalar(t,e,i);case"block-scalar":return ad.resolveBlockScalar(t,e,i)}}return null}function ud(t,e){let{implicitKey:s=!1,indent:i,inFlow:r=!1,offset:n=-1,type:o="PLAIN"}=e,a=ha.stringifyString({type:o,value:t},{implicitKey:s,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:i,source:`
115
+ `}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
116
+ `),d=a.substring(0,c),u=a.substring(c+1)+`
117
+ `,p=[{type:"block-scalar-header",offset:n,indent:i,source:d}];return pa(p,l)||p.push({type:"newline",offset:-1,indent:i,source:`
118
+ `}),{type:"block-scalar",offset:n,indent:i,props:p,source:u}}case'"':return {type:"double-quoted-scalar",offset:n,indent:i,source:a,end:l};case"'":return {type:"single-quoted-scalar",offset:n,indent:i,source:a,end:l};default:return {type:"scalar",offset:n,indent:i,source:a,end:l}}}function hd(t,e,s={}){let{afterKey:i=!1,implicitKey:r=!1,inFlow:n=!1,type:o}=s,a="indent"in t?t.indent:null;if(i&&typeof a=="number"&&(a+=2),!o)switch(t.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=t.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN";}let l=ha.stringifyString({type:o,value:e},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":pd(t,l);break;case'"':Xi(t,l,"double-quoted-scalar");break;case"'":Xi(t,l,"single-quoted-scalar");break;default:Xi(t,l,"scalar");}}function pd(t,e){let s=e.indexOf(`
119
+ `),i=e.substring(0,s),r=e.substring(s+1)+`
120
+ `;if(t.type==="block-scalar"){let n=t.props[0];if(n.type!=="block-scalar-header")throw new Error("Invalid block scalar header");n.source=i,t.source=r;}else {let{offset:n}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:n,indent:o,source:i}];pa(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
121
+ `});for(let l of Object.keys(t))l!=="type"&&l!=="offset"&&delete t[l];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:r});}}function pa(t,e){if(e)for(let s of e)switch(s.type){case"space":case"comment":t.push(s);break;case"newline":return t.push(s),!0}return !1}function Xi(t,e,s){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=s,t.source=e;break;case"block-scalar":{let i=t.props.slice(1),r=e.length;t.props[0].type==="block-scalar-header"&&(r-=t.props[0].source.length);for(let n of i)n.offset+=r;delete t.props,Object.assign(t,{type:s,source:e,end:i});break}case"block-map":case"block-seq":{let r={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
122
+ `};delete t.items,Object.assign(t,{type:s,source:e,end:[r]});break}default:{let i="indent"in t?t.indent:-1,r="end"in t&&Array.isArray(t.end)?t.end.filter(n=>n.type==="space"||n.type==="comment"||n.type==="newline"):[];for(let n of Object.keys(t))n!=="type"&&n!=="offset"&&delete t[n];Object.assign(t,{type:s,indent:i,source:e,end:r});}}}gs.createScalarToken=ud;gs.resolveAsScalar=fd;gs.setScalarValue=hd;});var ga=b(ma=>{d();var dd=t=>"type"in t?bs(t):ys(t);function bs(t){switch(t.type){case"block-scalar":{let e="";for(let s of t.props)e+=bs(s);return e+t.source}case"block-map":case"block-seq":{let e="";for(let s of t.items)e+=ys(s);return e}case"flow-collection":{let e=t.start.source;for(let s of t.items)e+=ys(s);for(let s of t.end)e+=s.source;return e}case"document":{let e=ys(t);if(t.end)for(let s of t.end)e+=s.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(let s of t.end)e+=s.source;return e}}}function ys({start:t,key:e,sep:s,value:i}){let r="";for(let n of t)r+=n.source;if(e&&(r+=bs(e)),s)for(let n of s)r+=n.source;return i&&(r+=bs(i)),r}ma.stringify=dd;});var Sa=b(wa=>{d();var Qi=Symbol("break visit"),md=Symbol("skip children"),ya=Symbol("remove item");function Ae(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),ba(Object.freeze([]),t,e);}Ae.BREAK=Qi;Ae.SKIP=md;Ae.REMOVE=ya;Ae.itemAtPath=(t,e)=>{let s=t;for(let[i,r]of e){let n=s?.[i];if(n&&"items"in n)s=n.items[r];else return}return s};Ae.parentCollection=(t,e)=>{let s=Ae.itemAtPath(t,e.slice(0,-1)),i=e[e.length-1][0],r=s?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function ba(t,e,s){let i=s(e,t);if(typeof i=="symbol")return i;for(let r of ["key","value"]){let n=e[r];if(n&&"items"in n){for(let o=0;o<n.items.length;++o){let a=ba(Object.freeze(t.concat([[r,o]])),n.items[o],s);if(typeof a=="number")o=a-1;else {if(a===Qi)return Qi;a===ya&&(n.items.splice(o,1),o-=1);}}typeof i=="function"&&r==="key"&&(i=i(e,t));}}return typeof i=="function"?i(e,t):i}wa.visit=Ae;});var ws=b(Y=>{d();var Zi=da(),gd=ga(),yd=Sa(),er="\uFEFF",tr="",sr="",ir="",bd=t=>!!t&&"items"in t,wd=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function Sd(t){switch(t){case er:return "<BOM>";case tr:return "<DOC>";case sr:return "<FLOW_END>";case ir:return "<SCALAR>";default:return JSON.stringify(t)}}function vd(t){switch(t){case er:return "byte-order-mark";case tr:return "doc-mode";case sr:return "flow-error-end";case ir:return "scalar";case"---":return "doc-start";case"...":return "doc-end";case"":case`
123
+ `:case`\r
124
+ `: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(t[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}Y.createScalarToken=Zi.createScalarToken;Y.resolveAsScalar=Zi.resolveAsScalar;Y.setScalarValue=Zi.setScalarValue;Y.stringify=gd.stringify;Y.visit=yd.visit;Y.BOM=er;Y.DOCUMENT=tr;Y.FLOW_END=sr;Y.SCALAR=ir;Y.isCollection=bd;Y.isScalar=wd;Y.prettyToken=Sd;Y.tokenType=vd;});var ar=b(La=>{d();var yt=ws();function z(t){switch(t){case void 0:case" ":case`
125
+ `:case"\r":case" ":return !0;default:return !1}}var va="0123456789ABCDEFabcdef".split(""),Ld="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),rr=",[]{}".split(""),Ed=` ,[]{}
126
+ \r `.split(""),nr=t=>!t||Ed.includes(t),or=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,s=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!s;let i=this.next??"stream";for(;i&&(s||this.hasChars(1));)i=yield*this.parseNext(i);}atLineEnd(){let e=this.pos,s=this.buffer[e];for(;s===" "||s===" ";)s=this.buffer[++e];return !s||s==="#"||s===`
127
+ `?!0:s==="\r"?this.buffer[e+1]===`
128
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let s=this.buffer[e];if(this.indentNext>0){let i=0;for(;s===" ";)s=this.buffer[++i+e];if(s==="\r"){let r=this.buffer[i+e+1];if(r===`
129
+ `||!r&&!this.atEnd)return e+i+1}return s===`
130
+ `||i>=this.indentNext||!s&&!this.atEnd?e+i:-1}if(s==="-"||s==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&z(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(`
131
+ `,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]===yt.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let s=e.length,i=e.indexOf("#");if(i!==-1){let n=e[i-1];(n===" "||n===" ")&&(s=i-1);}for(;;){let n=e[s-1];if(n===" "||n===" ")s-=1;else break}let r=(yield*this.pushCount(s))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let s=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-s),yield*this.pushNewline(),"stream"}return yield yt.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 s=this.peek(3);if(s==="---"&&z(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(s==="..."&&z(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!z(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,s]=this.peek(2);if(!s&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&z(s)){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 s=yield*this.pushIndicators();switch(e[s]){case"#":yield*this.pushCount(e.length-s);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(nr),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return s+=yield*this.parseBlockScalarHeader(),s+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-s),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,s,i=-1;do e=yield*this.pushNewline(),e>0?(s=yield*this.pushSpaces(!1),this.indentValue=i=s):s=0,s+=yield*this.pushSpaces(!0);while(e+s>0);let r=this.getLine();if(r===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&r[0]!=="#"||i===0&&(r.startsWith("---")||r.startsWith("..."))&&z(r[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield yt.FLOW_END,yield*this.parseLineStart();let n=0;for(;r[n]===",";)n+=yield*this.pushCount(1),n+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n+=yield*this.pushIndicators(),r[n]){case void 0:return "flow";case"#":return yield*this.pushCount(r.length-n),"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(nr),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||z(o)||o===",")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),s=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;s!==-1&&this.buffer[s+1]==="'";)s=this.buffer.indexOf("'",s+2);else for(;s!==-1;){let n=0;for(;this.buffer[s-1-n]==="\\";)n+=1;if(n%2===0)break;s=this.buffer.indexOf('"',s+1);}let i=this.buffer.substring(0,s),r=i.indexOf(`
132
+ `,this.pos);if(r!==-1){for(;r!==-1;){let n=this.continueScalar(r+1);if(n===-1)break;r=i.indexOf(`
133
+ `,n);}r!==-1&&(s=r-(i[r-1]==="\r"?2:1));}if(s===-1){if(!this.atEnd)return this.setNext("quoted-scalar");s=this.buffer.length;}return yield*this.pushToIndex(s+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let s=this.buffer[++e];if(s==="+")this.blockScalarKeep=!0;else if(s>"0"&&s<="9")this.blockScalarIndent=Number(s)-1;else if(s!=="-")break}return yield*this.pushUntil(s=>z(s)||s==="#")}*parseBlockScalar(){let e=this.pos-1,s=0,i;e:for(let r=this.pos;i=this.buffer[r];++r)switch(i){case" ":s+=1;break;case`
134
+ `:e=r,s=0;break;case"\r":{let n=this.buffer[r+1];if(!n&&!this.atEnd)return this.setNext("block-scalar");if(n===`
135
+ `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=s:this.indentNext+=this.blockScalarIndent;do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
136
+ `,r);}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length;}}if(!this.blockScalarKeep)do{let r=e-1,n=this.buffer[r];n==="\r"&&(n=this.buffer[--r]);let o=r;for(;n===" "||n===" ";)n=this.buffer[--r];if(n===`
137
+ `&&r>=this.pos&&r+1+s>o)e=r;else break}while(!0);return yield yt.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,s=this.pos-1,i=this.pos-1,r;for(;r=this.buffer[++i];)if(r===":"){let n=this.buffer[i+1];if(z(n)||e&&n===",")break;s=i;}else if(z(r)){let n=this.buffer[i+1];if(r==="\r"&&(n===`
138
+ `?(i+=1,r=`
139
+ `,n=this.buffer[i+1]):s=i),n==="#"||e&&rr.includes(n))break;if(r===`
140
+ `){let o=this.continueScalar(i+1);if(o===-1)break;i=Math.max(i,o-2);}}else {if(e&&rr.includes(r))break;s=i;}return !r&&!this.atEnd?this.setNext("plain-scalar"):(yield yt.SCALAR,yield*this.pushToIndex(s+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,s){let i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(s&&(yield ""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return (yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return (yield*this.pushUntil(nr))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,s=this.charAt(1);if(z(s)||e&&rr.includes(s))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,s=this.buffer[e];for(;!z(s)&&s!==">";)s=this.buffer[++e];return yield*this.pushToIndex(s===">"?e+1:e,!1)}else {let e=this.pos+1,s=this.buffer[e];for(;s;)if(Ld.includes(s))s=this.buffer[++e];else if(s==="%"&&va.includes(this.buffer[e+1])&&va.includes(this.buffer[e+2]))s=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
141
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
142
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let s=this.pos-1,i;do i=this.buffer[++s];while(i===" "||e&&i===" ");let r=s-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=s),r}*pushUntil(e){let s=this.pos,i=this.buffer[s];for(;!e(i);)i=this.buffer[++s];return yield*this.pushToIndex(s,!1)}};La.Lexer=or;});var cr=b(Ea=>{d();var lr=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let s=0,i=this.lineStarts.length;for(;s<i;){let n=s+i>>1;this.lineStarts[n]<e?s=n+1:i=n;}if(this.lineStarts[s]===e)return {line:s+1,col:1};if(s===0)return {line:0,col:e};let r=this.lineStarts[s-1];return {line:s,col:e-r+1}};}};Ea.LineCounter=lr;});var ur=b(Pa=>{d();var Aa=ws(),Ad=ar();function H(t,e){for(let s=0;s<t.length;++s)if(t[s].type===e)return !0;return !1}function Na(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function Oa(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return !0;default:return !1}}function Ss(t){switch(t.type){case"document":return t.start;case"block-map":{let e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return []}}function xe(t){if(t.length===0)return [];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function Ca(t){if(t.start.type==="flow-seq-start")for(let e of t.items)e.sep&&!e.value&&!H(e.start,"explicit-key-ind")&&!H(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Oa(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 fr=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 Ad.Lexer,this.onNewLine=e;}*parse(e,s=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,s))yield*this.next(i);s||(yield*this.end());}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",Aa.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let s=Aa.tokenType(e);if(s)if(s==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else {switch(this.type=s,yield*this.step(),s){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 s=e??this.stack.pop();if(!s)yield {type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield s;else {let i=this.peek(1);switch(s.type==="block-scalar"?s.indent="indent"in i?i.indent:0:s.type==="flow-collection"&&i.type==="document"&&(s.indent=0),s.type==="flow-collection"&&Ca(s),i.type){case"document":i.value=s;break;case"block-scalar":i.props.push(s);break;case"block-map":{let r=i.items[i.items.length-1];if(r.value){i.items.push({start:[],key:s,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=s;else {Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!H(r.start,"explicit-key-ind");return}break}case"block-seq":{let r=i.items[i.items.length-1];r.value?i.items.push({start:[],value:s}):r.value=s;break}case"flow-collection":{let r=i.items[i.items.length-1];!r||r.value?i.items.push({start:[],key:s,sep:[]}):r.sep?r.value=s:Object.assign(r,{key:s,sep:[]});return}default:yield*this.pop(),yield*this.pop(s);}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(s.type==="block-map"||s.type==="block-seq")){let r=s.items[s.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&Na(r.start)===-1&&(s.indent===0||r.start.every(n=>n.type!=="comment"||n.indent<s.indent))&&(i.type==="document"?i.end=r.start:i.items.push({start:r.start}),s.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":{Na(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 s=this.startBlockValue(e);s?this.stack.push(s):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 s=Ss(this.peek(2)),i=xe(s),r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n;}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 s=this.source.indexOf(`
143
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
144
+ `,s)+1;}yield*this.pop();break;default:yield*this.pop(),yield*this.step();}}*blockMap(e){let s=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,s.value){let i="end"in s.value?s.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 s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else if(s.sep)s.sep.push(this.sourceToken);else {if(this.atIndentedComment(s.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,s.start),r.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken);}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent&&s.sep&&this.type!=="seq-item-ind",r=[];if(i&&s.sep&&!s.value){let n=[];for(let o=0;o<s.sep.length;++o){let a=s.sep[o];switch(a.type){case"newline":n.push(o);break;case"space":break;case"comment":a.indent>e.indent&&(n.length=0);break;default:n.length=0;}}n.length>=2&&(r=s.sep.splice(n[1]));}switch(this.type){case"anchor":case"tag":i||s.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"explicit-key-ind":!s.sep&&!H(s.start,"explicit-key-ind")?s.start.push(this.sourceToken):i||s.value?(r.push(this.sourceToken),e.items.push({start:r})):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(H(s.start,"explicit-key-ind"))if(s.sep)if(s.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H(s.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(Oa(s.key)&&!H(s.sep,"newline")){let n=xe(s.start),o=s.key,a=s.sep;a.push(this.sourceToken),delete s.key,delete s.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:o,sep:a}]});}else r.length>0?s.sep=s.sep.concat(r,this.sourceToken):s.sep.push(this.sourceToken);else if(H(s.start,"newline"))Object.assign(s,{key:null,sep:[this.sourceToken]});else {let n=xe(s.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]});}else s.sep?s.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):H(s.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);i||s.value?(e.items.push({start:r,key:n,sep:[]}),this.onKeyLine=!0):s.sep?this.stack.push(n):(Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){i&&n.type!=="block-seq"&&H(s.start,"explicit-key-ind")&&e.items.push({start:r}),this.stack.push(n);return}}}}yield*this.pop(),yield*this.step();}*blockSequence(e){let s=e.items[e.items.length-1];switch(this.type){case"newline":if(s.value){let i="end"in s.value?s.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 s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else {if(this.atIndentedComment(s.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,s.start),r.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken);}return;case"anchor":case"tag":if(s.value||this.indent<=e.indent)break;s.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;s.value||H(s.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):s.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 s=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":!s||s.sep?e.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return;case"map-value-ind":!s||s.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!s||s.value?e.items.push({start:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!s||s.value?e.items.push({start:[],key:r,sep:[]}):s.sep?this.stack.push(r):Object.assign(s,{key:r,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 r=Ss(i),n=xe(r);Ca(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a;}else yield*this.lineEnd(e);}}flowScalar(e){if(this.onNewLine){let s=this.source.indexOf(`
145
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
146
+ `,s)+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 s=Ss(e),i=xe(s);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 s=Ss(e),i=xe(s);return {type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,s){return this.type!=="comment"||this.indent<=s?!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());}}};Pa.Parser=fr;});var $a=b(wt=>{d();var Ia=Vi(),Nd=ft(),bt=pt(),Cd=zs(),Od=cr(),ka=ur();function Ta(t){let e=t.prettyErrors!==!1;return {lineCounter:t.lineCounter||e&&new Od.LineCounter||null,prettyErrors:e}}function Pd(t,e={}){let{lineCounter:s,prettyErrors:i}=Ta(e),r=new ka.Parser(s?.addNewLine),n=new Ia.Composer(e),o=Array.from(n.compose(r.parse(t)));if(i&&s)for(let a of o)a.errors.forEach(bt.prettifyError(t,s)),a.warnings.forEach(bt.prettifyError(t,s));return o.length>0?o:Object.assign([],{empty:!0},n.streamInfo())}function Da(t,e={}){let{lineCounter:s,prettyErrors:i}=Ta(e),r=new ka.Parser(s?.addNewLine),n=new Ia.Composer(e),o=null;for(let a of n.compose(r.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new bt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&s&&(o.errors.forEach(bt.prettifyError(t,s)),o.warnings.forEach(bt.prettifyError(t,s))),o}function Id(t,e,s){let i;typeof e=="function"?i=e:s===void 0&&e&&typeof e=="object"&&(s=e);let r=Da(t,s);if(!r)return null;if(r.warnings.forEach(n=>Cd.warn(r.options.logLevel,n)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[];}return r.toJS(Object.assign({reviver:i},s))}function kd(t,e,s){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:s===void 0&&e&&(s=e),typeof s=="string"&&(s=s.length),typeof s=="number"){let r=Math.round(s);s=r<1?void 0:r>8?{indent:8}:{indent:r};}if(t===void 0){let{keepUndefined:r}=s??e??{};if(!r)return}return new Nd.Document(t,i,s).toString(s)}wt.parse=Id;wt.parseAllDocuments=Pd;wt.parseDocument=Da;wt.stringify=kd;});var Fa=b($=>{d();var Td=Vi(),Dd=ft(),$d=ki(),hr=pt(),Rd=Ve(),ge=D(),Fd=he(),_d=F(),qd=de(),Md=me(),xd=ws(),Bd=ar(),Ud=cr(),Gd=ur(),vs=$a(),Ra=Ke();$.Composer=Td.Composer;$.Document=Dd.Document;$.Schema=$d.Schema;$.YAMLError=hr.YAMLError;$.YAMLParseError=hr.YAMLParseError;$.YAMLWarning=hr.YAMLWarning;$.Alias=Rd.Alias;$.isAlias=ge.isAlias;$.isCollection=ge.isCollection;$.isDocument=ge.isDocument;$.isMap=ge.isMap;$.isNode=ge.isNode;$.isPair=ge.isPair;$.isScalar=ge.isScalar;$.isSeq=ge.isSeq;$.Pair=Fd.Pair;$.Scalar=_d.Scalar;$.YAMLMap=qd.YAMLMap;$.YAMLSeq=Md.YAMLSeq;$.CST=xd;$.Lexer=Bd.Lexer;$.LineCounter=Ud.LineCounter;$.Parser=Gd.Parser;$.parse=vs.parse;$.parseAllDocuments=vs.parseAllDocuments;$.parseDocument=vs.parseDocument;$.stringify=vs.stringify;$.visit=Ra.visit;$.visitAsync=Ra.visitAsync;});var dr=b((a1,il)=>{d();var Dm=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};il.exports=Dm;});var mr=b((c1,rl)=>{d();var $m="2.0.0",Rm=Number.MAX_SAFE_INTEGER||9007199254740991,Fm=16,_m=250,qm=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rl.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Fm,MAX_SAFE_BUILD_LENGTH:_m,MAX_SAFE_INTEGER:Rm,RELEASE_TYPES:qm,SEMVER_SPEC_VERSION:$m,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};});var ol=b((oe,nl)=>{d();var{MAX_SAFE_COMPONENT_LENGTH:gr,MAX_SAFE_BUILD_LENGTH:Mm,MAX_LENGTH:xm}=mr(),Bm=dr();oe=nl.exports={};var Um=oe.re=[],Gm=oe.safeRe=[],A=oe.src=[],N=oe.t={},jm=0,yr="[a-zA-Z0-9-]",Ym=[["\\s",1],["\\d",xm],[yr,Mm]],Wm=t=>{for(let[e,s]of Ym)t=t.split(`${e}*`).join(`${e}{0,${s}}`).split(`${e}+`).join(`${e}{1,${s}}`);return t},I=(t,e,s)=>{let i=Wm(e),r=jm++;Bm(t,r,e),N[t]=r,A[r]=e,Um[r]=new RegExp(e,s?"g":void 0),Gm[r]=new RegExp(i,s?"g":void 0);};I("NUMERICIDENTIFIER","0|[1-9]\\d*");I("NUMERICIDENTIFIERLOOSE","\\d+");I("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${yr}*`);I("MAINVERSION",`(${A[N.NUMERICIDENTIFIER]})\\.(${A[N.NUMERICIDENTIFIER]})\\.(${A[N.NUMERICIDENTIFIER]})`);I("MAINVERSIONLOOSE",`(${A[N.NUMERICIDENTIFIERLOOSE]})\\.(${A[N.NUMERICIDENTIFIERLOOSE]})\\.(${A[N.NUMERICIDENTIFIERLOOSE]})`);I("PRERELEASEIDENTIFIER",`(?:${A[N.NUMERICIDENTIFIER]}|${A[N.NONNUMERICIDENTIFIER]})`);I("PRERELEASEIDENTIFIERLOOSE",`(?:${A[N.NUMERICIDENTIFIERLOOSE]}|${A[N.NONNUMERICIDENTIFIER]})`);I("PRERELEASE",`(?:-(${A[N.PRERELEASEIDENTIFIER]}(?:\\.${A[N.PRERELEASEIDENTIFIER]})*))`);I("PRERELEASELOOSE",`(?:-?(${A[N.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${A[N.PRERELEASEIDENTIFIERLOOSE]})*))`);I("BUILDIDENTIFIER",`${yr}+`);I("BUILD",`(?:\\+(${A[N.BUILDIDENTIFIER]}(?:\\.${A[N.BUILDIDENTIFIER]})*))`);I("FULLPLAIN",`v?${A[N.MAINVERSION]}${A[N.PRERELEASE]}?${A[N.BUILD]}?`);I("FULL",`^${A[N.FULLPLAIN]}$`);I("LOOSEPLAIN",`[v=\\s]*${A[N.MAINVERSIONLOOSE]}${A[N.PRERELEASELOOSE]}?${A[N.BUILD]}?`);I("LOOSE",`^${A[N.LOOSEPLAIN]}$`);I("GTLT","((?:<|>)?=?)");I("XRANGEIDENTIFIERLOOSE",`${A[N.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);I("XRANGEIDENTIFIER",`${A[N.NUMERICIDENTIFIER]}|x|X|\\*`);I("XRANGEPLAIN",`[v=\\s]*(${A[N.XRANGEIDENTIFIER]})(?:\\.(${A[N.XRANGEIDENTIFIER]})(?:\\.(${A[N.XRANGEIDENTIFIER]})(?:${A[N.PRERELEASE]})?${A[N.BUILD]}?)?)?`);I("XRANGEPLAINLOOSE",`[v=\\s]*(${A[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[N.XRANGEIDENTIFIERLOOSE]})(?:\\.(${A[N.XRANGEIDENTIFIERLOOSE]})(?:${A[N.PRERELEASELOOSE]})?${A[N.BUILD]}?)?)?`);I("XRANGE",`^${A[N.GTLT]}\\s*${A[N.XRANGEPLAIN]}$`);I("XRANGELOOSE",`^${A[N.GTLT]}\\s*${A[N.XRANGEPLAINLOOSE]}$`);I("COERCEPLAIN",`(^|[^\\d])(\\d{1,${gr}})(?:\\.(\\d{1,${gr}}))?(?:\\.(\\d{1,${gr}}))?`);I("COERCE",`${A[N.COERCEPLAIN]}(?:$|[^\\d])`);I("COERCEFULL",A[N.COERCEPLAIN]+`(?:${A[N.PRERELEASE]})?(?:${A[N.BUILD]})?(?:$|[^\\d])`);I("COERCERTL",A[N.COERCE],!0);I("COERCERTLFULL",A[N.COERCEFULL],!0);I("LONETILDE","(?:~>?)");I("TILDETRIM",`(\\s*)${A[N.LONETILDE]}\\s+`,!0);oe.tildeTrimReplace="$1~";I("TILDE",`^${A[N.LONETILDE]}${A[N.XRANGEPLAIN]}$`);I("TILDELOOSE",`^${A[N.LONETILDE]}${A[N.XRANGEPLAINLOOSE]}$`);I("LONECARET","(?:\\^)");I("CARETTRIM",`(\\s*)${A[N.LONECARET]}\\s+`,!0);oe.caretTrimReplace="$1^";I("CARET",`^${A[N.LONECARET]}${A[N.XRANGEPLAIN]}$`);I("CARETLOOSE",`^${A[N.LONECARET]}${A[N.XRANGEPLAINLOOSE]}$`);I("COMPARATORLOOSE",`^${A[N.GTLT]}\\s*(${A[N.LOOSEPLAIN]})$|^$`);I("COMPARATOR",`^${A[N.GTLT]}\\s*(${A[N.FULLPLAIN]})$|^$`);I("COMPARATORTRIM",`(\\s*)${A[N.GTLT]}\\s*(${A[N.LOOSEPLAIN]}|${A[N.XRANGEPLAIN]})`,!0);oe.comparatorTrimReplace="$1$2$3";I("HYPHENRANGE",`^\\s*(${A[N.XRANGEPLAIN]})\\s+-\\s+(${A[N.XRANGEPLAIN]})\\s*$`);I("HYPHENRANGELOOSE",`^\\s*(${A[N.XRANGEPLAINLOOSE]})\\s+-\\s+(${A[N.XRANGEPLAINLOOSE]})\\s*$`);I("STAR","(<|>)?=?\\s*\\*");I("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");I("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");});var ll=b((h1,al)=>{d();var Km=Object.freeze({loose:!0}),Jm=Object.freeze({}),zm=t=>t?typeof t!="object"?Km:t:Jm;al.exports=zm;});var hl=b((d1,ul)=>{d();var cl=/^[0-9]+$/,fl=(t,e)=>{let s=cl.test(t),i=cl.test(e);return s&&i&&(t=+t,e=+e),t===e?0:s&&!i?-1:i&&!s?1:t<e?-1:1},Hm=(t,e)=>fl(e,t);ul.exports={compareIdentifiers:fl,rcompareIdentifiers:Hm};});var yl=b((g1,gl)=>{d();var Ls=dr(),{MAX_LENGTH:pl,MAX_SAFE_INTEGER:Es}=mr(),{safeRe:dl,t:ml}=ol(),Vm=ll(),{compareIdentifiers:Be}=hl(),br=class t{constructor(e,s){if(s=Vm(s),e instanceof t){if(e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease)return e;e=e.version;}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>pl)throw new TypeError(`version is longer than ${pl} characters`);Ls("SemVer",e,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let i=e.trim().match(s.loose?dl[ml.LOOSE]:dl[ml.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Es||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Es||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Es||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let n=+r;if(n>=0&&n<Es)return n}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ls("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Be(this.major,e.major)||Be(this.minor,e.minor)||Be(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let s=0;do{let i=this.prerelease[s],r=e.prerelease[s];if(Ls("prerelease compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return -1;if(i===r)continue;return Be(i,r)}while(++s)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let s=0;do{let i=this.build[s],r=e.build[s];if(Ls("prerelease compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return -1;if(i===r)continue;return Be(i,r)}while(++s)}inc(e,s,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,i),this.inc("pre",s,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s,i),this.inc("pre",s,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(i)?1:0;if(!s&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[r];else {let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(s===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r);}}if(s){let n=[s,r];i===!1&&(n=[s]),Be(this.prerelease[0],s)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};gl.exports=br;});var wr=b((b1,wl)=>{d();var bl=yl(),Xm=(t,e,s=!1)=>{if(t instanceof bl)return t;try{return new bl(t,e)}catch(i){if(!s)return null;throw i}};wl.exports=Xm;});var vl=b((S1,Sl)=>{d();var Qm=wr(),Zm=(t,e)=>{let s=Qm(t,e);return s?s.version:null};Sl.exports=Zm;});var El=b((L1,Ll)=>{d();var eg=wr(),tg=(t,e)=>{let s=eg(t.trim().replace(/^[=v]+/,""),e);return s?s.version:null};Ll.exports=tg;});var Sr=b((A1,sg)=>{sg.exports=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Borceux","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Crossword","CrystalStacker","Cube","D-FSL-1.0","DL-DE-BY-2.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","HP-1986","HPND","HPND-Markus-Kuhn","HPND-export-US","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","MakeIndex","Martin-Birgmeier","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.6","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","mpi-permissive","mpich2","mplus","psfrag","psutils","snprintf","w3m","xinetd","xlock","xpp","zlib-acknowledgement"];});var Al=b((N1,ig)=>{ig.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"];});var Nl=b((C1,rg)=>{rg.exports=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"];});var Ol=b((O1,Cl)=>{d();var ng=[].concat(Sr()).concat(Al()),og=Nl();Cl.exports=function(t){var e=0;function s(){return e<t.length}function i(y){if(y instanceof RegExp){var h=t.slice(e),m=h.match(y);if(m)return e+=m[0].length,m[0]}else if(t.indexOf(y,e)===e)return e+=y.length,y}function r(){i(/[ ]*/);}function n(){for(var y,h=["WITH","AND","OR","(",")",":","+"],m=0;m<h.length&&(y=i(h[m]),!y);m++);if(y==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return y&&{type:"OPERATOR",string:y}}function o(){return i(/[A-Za-z0-9-.]+/)}function a(){var y=o();if(!y)throw new Error("Expected idstring at offset "+e);return y}function l(){if(i("DocumentRef-")){var y=a();return {type:"DOCUMENTREF",string:y}}}function c(){if(i("LicenseRef-")){var y=a();return {type:"LICENSEREF",string:y}}}function d(){var y=e,h=o();if(ng.indexOf(h)!==-1)return {type:"LICENSE",string:h};if(og.indexOf(h)!==-1)return {type:"EXCEPTION",string:h};e=y;}function u(){return n()||l()||c()||d()}for(var p=[];s()&&(r(),!!s());){var g=u();if(!g)throw new Error("Unexpected `"+t[e]+"` at offset "+e);p.push(g);}return p};});var Il=b((I1,Pl)=>{d();Pl.exports=function(t){var e=0;function s(){return e<t.length}function i(){return s()?t[e]:null}function r(){if(!s())throw new Error;e++;}function n(h){var m=i();if(m&&m.type==="OPERATOR"&&h===m.string)return r(),m.string}function o(){if(n("WITH")){var h=i();if(h&&h.type==="EXCEPTION")return r(),h.string;throw new Error("Expected exception after `WITH`")}}function a(){var h=e,m="",v=i();if(v.type==="DOCUMENTREF"&&(r(),m+="DocumentRef-"+v.string+":",!n(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(v=i(),v.type==="LICENSEREF")return r(),m+="LicenseRef-"+v.string,{license:m};e=h;}function l(){var h=i();if(h&&h.type==="LICENSE"){r();var m={license:h.string};n("+")&&(m.plus=!0);var v=o();return v&&(m.exception=v),m}}function c(){var h=n("(");if(h){var m=g();if(!n(")"))throw new Error("Expected `)`");return m}}function d(){return c()||a()||l()}function u(h,m){return function v(){var E=m();if(E){if(!n(h))return E;var O=v();if(!O)throw new Error("Expected expression");return {left:E,conjunction:h.toLowerCase(),right:O}}}}var p=u("AND",d),g=u("OR",p),y=g();if(!y||s())throw new Error("Syntax error");return y};});var vr=b((T1,kl)=>{d();var ag=Ol(),lg=Il();kl.exports=function(t){return lg(ag(t))};});var xl=b(($1,Ml)=>{d();var cg=vr(),fg=Sr();function As(t){try{return cg(t),!0}catch{return !1}}function ql(t,e){var s=e[0].length-t[0].length;return s!==0?s:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}var Tl=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(ql),ug=0,hg=1,Dl=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return "CC-"+t},function(t){return "CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return "CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Lr=fg.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var s=e[1];return t[s]=t[s]||[],t[s].push(e[0]),t},{}),pg=Object.keys(Lr).map(function(e){return [e,Lr[e]]}).filter(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"}).map(function(e){return [e[0],e[1][0]]});Lr=void 0;var $l=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(pg).sort(ql),dg=0,mg=1,Rl=function(t){for(var e=0;e<Dl.length;e++){var s=Dl[e](t).trim();if(s!==t&&As(s))return s}return null},Fl=function(t){for(var e=t.toUpperCase(),s=0;s<$l.length;s++){var i=$l[s];if(e.indexOf(i[dg])>-1)return i[mg]}return null},_l=function(t,e){for(var s=0;s<Tl.length;s++){var i=Tl[s],r=i[ug];if(t.indexOf(r)>-1){var n=t.replace(r,i[hg]),o=e(n);if(o!==null)return o}}return null};Ml.exports=function(t,e){e=e||{};var s=e.upgrade===void 0?!0:!!e.upgrade;function i(a){return s?gg(a):a}var r=typeof t=="string"&&t.trim().length!==0;if(!r)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),As(t))return i(t);var n=t.replace(/\+$/,"").trim();if(As(n))return i(n);var o=Rl(t);return o!==null||(o=_l(t,function(a){return As(a)?a:Rl(a)}),o!==null)||(o=Fl(t),o!==null)||(o=_l(t,Fl),o!==null)?i(o):null};function gg(t){return ["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}});var jl=b((F1,Gl)=>{d();var yg=vr(),bg=xl(),Bl='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',wg=/^SEE LICEN[CS]E IN (.+)$/;function Ul(t,e){return e.slice(0,t.length)===t}function Er(t){if(t.hasOwnProperty("license")){var e=t.license;return Ul("LicenseRef",e)||Ul("DocumentRef",e)}else return Er(t.left)||Er(t.right)}Gl.exports=function(t){var e;try{e=yg(t);}catch{var s;if(t==="UNLICENSED"||t==="UNLICENCED")return {validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(s=wg.exec(t))return {validForOldPackages:!0,validForNewPackages:!0,inFile:s[1]};var i={validForOldPackages:!1,validForNewPackages:!1,warnings:[Bl]};if(t.trim().length!==0){var r=bg(t);r&&i.warnings.push('license is similar to the valid expression "'+r+'"');}return i}return Er(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Bl]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}};});var zl=b(Cs=>{d();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.LRUCache=void 0;var vt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Wl=new Set,Ar=typeof process=="object"&&process?process:{},Kl=(t,e,s,i)=>{typeof Ar.emitWarning=="function"?Ar.emitWarning(t,e,s,i):console.error(`[${s}] ${e}: ${t}`);},Ns=globalThis.AbortController,Yl=globalThis.AbortSignal;if(typeof Ns>"u"){Yl=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,r){this._onabort.push(r);}},Ns=class{constructor(){e();}signal=new Yl;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let r of this.signal._onabort)r(i);this.signal.onabort?.(i);}}};let t=Ar.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Kl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var Sg=t=>!Wl.has(t),ye=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Jl=t=>ye(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ue:null:null,Ue=class extends Array{constructor(e){super(e),this.fill(0);}},Nr=class t{heap;length;static#i=!1;static create(e){let s=Jl(e);if(!s)return [];t.#i=!0;let i=new t(e,s);return t.#i=!1,i}constructor(e,s){if(!t.#i)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new s(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},Cr=class t{#i;#c;#t;#m;#I;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#g;#o;#r;#e;#u;#p;#f;#a;#y;#l;#L;#E;#b;#w;#N;#h;static unsafeExposeInternals(e){return {starts:e.#E,ttls:e.#b,sizes:e.#L,keyMap:e.#o,keyList:e.#r,valList:e.#e,next:e.#u,prev:e.#p,get head(){return e.#f},get tail(){return e.#a},free:e.#y,isBackgroundFetch:s=>e.#s(s),backgroundFetch:(s,i,r,n)=>e.#D(s,i,r,n),moveToTail:s=>e.#P(s),indexes:s=>e.#S(s),rindexes:s=>e.#v(s),isStale:s=>e.#d(s)}}get max(){return this.#i}get maxSize(){return this.#c}get calculatedSize(){return this.#g}get size(){return this.#n}get fetchMethod(){return this.#I}get dispose(){return this.#t}get disposeAfter(){return this.#m}constructor(e){let{max:s=0,ttl:i,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:d,noDisposeOnSet:u,noUpdateTTL:p,maxSize:g=0,maxEntrySize:y=0,sizeCalculation:h,fetchMethod:m,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:C,ignoreFetchAbort:P}=e;if(s!==0&&!ye(s))throw new TypeError("max option must be a nonnegative integer");let L=s?Jl(s):Array;if(!L)throw new Error("invalid max value: "+s);if(this.#i=s,this.#c=g,this.maxEntrySize=y||this.#c,this.sizeCalculation=h,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#I=m,this.#N=!!m,this.#o=new Map,this.#r=new Array(s).fill(void 0),this.#e=new Array(s).fill(void 0),this.#u=new L(s),this.#p=new L(s),this.#f=0,this.#a=0,this.#y=Nr.create(s),this.#n=0,this.#g=0,typeof c=="function"&&(this.#t=c),typeof d=="function"?(this.#m=d,this.#l=[]):(this.#m=void 0,this.#l=void 0),this.#w=!!this.#t,this.#h=!!this.#m,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#c!==0&&!ye(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!ye(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ye(r)||r===0?r:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!ye(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#$();}if(this.#i===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#i&&!this.#c){let k="LRU_CACHE_UNBOUNDED";Sg(k)&&(Wl.add(k),Kl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,t));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#$(){let e=new Ue(this.#i),s=new Ue(this.#i);this.#b=e,this.#E=s,this.#R=(n,o,a=vt.now())=>{if(s[n]=o!==0?a:0,e[n]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(n)&&this.delete(this.#r[n]);},o+1);l.unref&&l.unref();}},this.#C=n=>{s[n]=e[n]!==0?vt.now():0;},this.#A=(n,o)=>{if(e[o]){let a=e[o],l=s[o];n.ttl=a,n.start=l,n.now=i||r();let c=n.now-l;n.remainingTTL=a-c;}};let i=0,r=()=>{let n=vt.now();if(this.ttlResolution>0){i=n;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref();}return n};this.getRemainingTTL=n=>{let o=this.#o.get(n);if(o===void 0)return 0;let a=e[o],l=s[o];if(a===0||l===0)return 1/0;let c=(i||r())-l;return a-c},this.#d=n=>e[n]!==0&&s[n]!==0&&(i||r())-s[n]>e[n];}#C=()=>{};#A=()=>{};#R=()=>{};#d=()=>!1;#M(){let e=new Ue(this.#i);this.#g=0,this.#L=e,this.#O=s=>{this.#g-=e[s],e[s]=0;},this.#F=(s,i,r,n)=>{if(this.#s(i))return 0;if(!ye(r))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(r=n(i,s),!ye(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#k=(s,i,r)=>{if(e[s]=i,this.#c){let n=this.#c-e[s];for(;this.#g>n;)this.#T(!0);}this.#g+=e[s],r&&(r.entrySize=i,r.totalCalculatedSize=this.#g);};}#O=e=>{};#k=(e,s,i)=>{};#F=(e,s,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#S({allowStale:e=this.allowStale}={}){if(this.#n)for(let s=this.#a;!(!this.#_(s)||((e||!this.#d(s))&&(yield s),s===this.#f));)s=this.#p[s];}*#v({allowStale:e=this.allowStale}={}){if(this.#n)for(let s=this.#f;!(!this.#_(s)||((e||!this.#d(s))&&(yield s),s===this.#a));)s=this.#u[s];}#_(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){for(let e of this.#S())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*rentries(){for(let e of this.#v())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*keys(){for(let e of this.#S()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s);}}*rkeys(){for(let e of this.#v()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s);}}*values(){for(let e of this.#S())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#v())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e]);}[Symbol.iterator](){return this.entries()}find(e,s={}){for(let i of this.#S()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;if(n!==void 0&&e(n,this.#r[i],this))return this.get(this.#r[i],s)}}forEach(e,s=this){for(let i of this.#S()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#r[i],this);}}rforEach(e,s=this){for(let i of this.#v()){let r=this.#e[i],n=this.#s(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#r[i],this);}}purgeStale(){let e=!1;for(let s of this.#v({allowStale:!0}))this.#d(s)&&(this.delete(this.#r[s]),e=!0);return e}dump(){let e=[];for(let s of this.#S({allowStale:!0})){let i=this.#r[s],r=this.#e[s],n=this.#s(r)?r.__staleWhileFetching:r;if(n===void 0||i===void 0)continue;let o={value:n};if(this.#b&&this.#E){o.ttl=this.#b[s];let a=vt.now()-this.#E[s];o.start=Math.floor(Date.now()-a);}this.#L&&(o.size=this.#L[s]),e.unshift([i,o]);}return e}load(e){this.clear();for(let[s,i]of e){if(i.start){let r=Date.now()-i.start;i.start=vt.now()-r;}this.set(s,i.value,i);}}set(e,s,i={}){if(s===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,d=this.#F(e,s,i.size||0,a);if(this.maxEntrySize&&d>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=this.#n===0?void 0:this.#o.get(e);if(u===void 0)u=this.#n===0?this.#a:this.#y.length!==0?this.#y.pop():this.#n===this.#i?this.#T(!1):this.#n,this.#r[u]=e,this.#e[u]=s,this.#o.set(e,u),this.#u[this.#a]=u,this.#p[u]=this.#a,this.#a=u,this.#n++,this.#k(u,d,l),l&&(l.set="add"),c=!1;else {this.#P(u);let p=this.#e[u];if(s!==p){if(this.#N&&this.#s(p)){p.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=p;g!==void 0&&!o&&(this.#w&&this.#t?.(g,e,"set"),this.#h&&this.#l?.push([g,e,"set"]));}else o||(this.#w&&this.#t?.(p,e,"set"),this.#h&&this.#l?.push([p,e,"set"]));if(this.#O(u),this.#k(u,d,l),this.#e[u]=s,l){l.set="replace";let g=p&&this.#s(p)?p.__staleWhileFetching:p;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(r!==0&&!this.#b&&this.#$(),this.#b&&(c||this.#R(u,r,n),l&&this.#A(l,u)),!o&&this.#h&&this.#l){let p=this.#l,g;for(;g=p?.shift();)this.#m?.(...g);}return this}pop(){try{for(;this.#n;){let e=this.#e[this.#f];if(this.#T(!0),this.#s(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#l){let e=this.#l,s;for(;s=e?.shift();)this.#m?.(...s);}}}#T(e){let s=this.#f,i=this.#r[s],r=this.#e[s];return this.#N&&this.#s(r)?r.__abortController.abort(new Error("evicted")):(this.#w||this.#h)&&(this.#w&&this.#t?.(r,i,"evict"),this.#h&&this.#l?.push([r,i,"evict"])),this.#O(s),e&&(this.#r[s]=void 0,this.#e[s]=void 0,this.#y.push(s)),this.#n===1?(this.#f=this.#a=0,this.#y.length=0):this.#f=this.#u[s],this.#o.delete(i),this.#n--,s}has(e,s={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=s,n=this.#o.get(e);if(n!==void 0){let o=this.#e[n];if(this.#s(o)&&o.__staleWhileFetching===void 0)return !1;if(this.#d(n))r&&(r.has="stale",this.#A(r,n));else return i&&this.#C(n),r&&(r.has="hit",this.#A(r,n)),!0}else r&&(r.has="miss");return !1}peek(e,s={}){let{allowStale:i=this.allowStale}=s,r=this.#o.get(e);if(r!==void 0&&(i||!this.#d(r))){let n=this.#e[r];return this.#s(n)?n.__staleWhileFetching:n}}#D(e,s,i,r){let n=s===void 0?void 0:this.#e[s];if(this.#s(n))return n;let o=new Ns,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:r},c=(h,m=!1)=>{let{aborted:v}=o.signal,E=i.ignoreFetchAbort&&h!==void 0;if(i.status&&(v&&!m?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,E&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),v&&!E&&!m)return u(o.signal.reason);let O=g;return this.#e[s]===g&&(h===void 0?O.__staleWhileFetching?this.#e[s]=O.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,h,l.options))),h},d=h=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=h),u(h)),u=h=>{let{aborted:m}=o.signal,v=m&&i.allowStaleOnFetchAbort,E=v||i.allowStaleOnFetchRejection,O=E||i.noDeleteOnFetchRejection,C=g;if(this.#e[s]===g&&(!O||C.__staleWhileFetching===void 0?this.delete(e):v||(this.#e[s]=C.__staleWhileFetching)),E)return i.status&&C.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw h},p=(h,m)=>{let v=this.#I?.(e,n,l);v&&v instanceof Promise&&v.then(E=>h(E===void 0?void 0:E),m),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(h(void 0),i.allowStaleOnFetchAbort&&(h=E=>c(E,!0)));});};i.status&&(i.status.fetchDispatched=!0);let g=new Promise(p).then(c,d),y=Object.assign(g,{__abortController:o,__staleWhileFetching:n,__returned:void 0});return s===void 0?(this.set(e,y,{...l.options,status:void 0}),s=this.#o.get(e)):this.#e[s]=y,y}#s(e){if(!this.#N)return !1;let s=e;return !!s&&s instanceof Promise&&s.hasOwnProperty("__staleWhileFetching")&&s.__abortController instanceof Ns}async fetch(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:h,forceRefresh:m=!1,status:v,signal:E}=s;if(!this.#N)return v&&(v.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:v});let O={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:d,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:y,ignoreFetchAbort:g,status:v,signal:E},C=this.#o.get(e);if(C===void 0){v&&(v.fetch="miss");let P=this.#D(e,C,O,h);return P.__returned=P}else {let P=this.#e[C];if(this.#s(P)){let V=i&&P.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",V&&(v.returnedStale=!0)),V?P.__staleWhileFetching:P.__returned=P}let L=this.#d(C);if(!m&&!L)return v&&(v.fetch="hit"),this.#P(C),r&&this.#C(C),v&&this.#A(v,C),P;let k=this.#D(e,C,O,h),q=k.__staleWhileFetching!==void 0&&i;return v&&(v.fetch=L?"stale":"refresh",q&&L&&(v.returnedStale=!0)),q?k.__staleWhileFetching:k.__returned=k}}get(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}=s,a=this.#o.get(e);if(a!==void 0){let l=this.#e[a],c=this.#s(l);return o&&this.#A(o,a),this.#d(a)?(o&&(o.get="stale"),c?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(n||this.delete(e),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(this.#P(a),r&&this.#C(a),l))}else o&&(o.get="miss");}#q(e,s){this.#p[s]=e,this.#u[e]=s;}#P(e){e!==this.#a&&(e===this.#f?this.#f=this.#u[e]:this.#q(this.#p[e],this.#u[e]),this.#q(this.#a,e),this.#a=e);}delete(e){let s=!1;if(this.#n!==0){let i=this.#o.get(e);if(i!==void 0)if(s=!0,this.#n===1)this.clear();else {this.#O(i);let r=this.#e[i];this.#s(r)?r.__abortController.abort(new Error("deleted")):(this.#w||this.#h)&&(this.#w&&this.#t?.(r,e,"delete"),this.#h&&this.#l?.push([r,e,"delete"])),this.#o.delete(e),this.#r[i]=void 0,this.#e[i]=void 0,i===this.#a?this.#a=this.#p[i]:i===this.#f?this.#f=this.#u[i]:(this.#u[this.#p[i]]=this.#u[i],this.#p[this.#u[i]]=this.#p[i]),this.#n--,this.#y.push(i);}}if(this.#h&&this.#l?.length){let i=this.#l,r;for(;r=i?.shift();)this.#m?.(...r);}return s}clear(){for(let e of this.#v({allowStale:!0})){let s=this.#e[e];if(this.#s(s))s.__abortController.abort(new Error("deleted"));else {let i=this.#r[e];this.#w&&this.#t?.(s,i,"delete"),this.#h&&this.#l?.push([s,i,"delete"]);}}if(this.#o.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#b&&this.#E&&(this.#b.fill(0),this.#E.fill(0)),this.#L&&this.#L.fill(0),this.#f=0,this.#a=0,this.#y.length=0,this.#g=0,this.#n=0,this.#h&&this.#l){let e=this.#l,s;for(;s=e?.shift();)this.#m?.(...s);}}};Cs.LRUCache=Cr;});var Xl=b((G1,Vl)=>{d();var T=(...t)=>t.every(e=>e)?t.join(""):"",_=t=>t?encodeURIComponent(t):"",Hl=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),vg={sshtemplate:({domain:t,user:e,project:s,committish:i})=>`git@${t}:${e}/${s}.git${T("#",i)}`,sshurltemplate:({domain:t,user:e,project:s,committish:i})=>`git+ssh://git@${t}/${e}/${s}.git${T("#",i)}`,edittemplate:({domain:t,user:e,project:s,committish:i,editpath:r,path:n})=>`https://${t}/${e}/${s}${T("/",r,"/",_(i||"HEAD"),"/",n)}`,browsetemplate:({domain:t,user:e,project:s,committish:i,treepath:r})=>`https://${t}/${e}/${s}${T("/",r,"/",_(i))}`,browsetreetemplate:({domain:t,user:e,project:s,committish:i,treepath:r,path:n,fragment:o,hashformat:a})=>`https://${t}/${e}/${s}/${r}/${_(i||"HEAD")}/${n}${T("#",a(o||""))}`,browseblobtemplate:({domain:t,user:e,project:s,committish:i,blobpath:r,path:n,fragment:o,hashformat:a})=>`https://${t}/${e}/${s}/${r}/${_(i||"HEAD")}/${n}${T("#",a(o||""))}`,docstemplate:({domain:t,user:e,project:s,treepath:i,committish:r})=>`https://${t}/${e}/${s}${T("/",i,"/",_(r))}#readme`,httpstemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git+https://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,filetemplate:({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/raw/${_(i||"HEAD")}/${r}`,shortcuttemplate:({type:t,user:e,project:s,committish:i})=>`${t}:${e}/${s}${T("#",i)}`,pathtemplate:({user:t,project:e,committish:s})=>`${t}/${e}${T("#",s)}`,bugstemplate:({domain:t,user:e,project:s})=>`https://${t}/${e}/${s}/issues`,hashformat:Hl},be={};be.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:e,project:s,committish:i,path:r})=>`https://${T(t,"@")}raw.githubusercontent.com/${e}/${s}/${_(i||"HEAD")}/${r}`,gittemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://codeload.${t}/${e}/${s}/tar.gz/${_(i||"HEAD")}`,extract:t=>{let[,e,s,i,r]=t.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(r=t.hash.slice(1)),s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:r}}};be.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:e,project:s,committish:i,treepath:r,path:n,editpath:o})=>`https://${t}/${e}/${s}${T("/",r,"/",_(i||"HEAD"),"/",n,o)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/get/${_(i||"HEAD")}.tar.gz`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["get"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:t.hash.slice(1)}}};be.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:e,user:s,project:i,committish:r})=>`git+https://${T(t,"@")}${e}/${s}/${i}.git${T("#",r)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/repository/archive.tar.gz?ref=${_(i||"HEAD")}`,extract:t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let s=e.split("/"),i=s.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let r=s.join("/");if(!(!r||!i))return {user:r,project:i,committish:t.hash.slice(1)}}};be.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:e,committish:s})=>`git@${t}:${e}.git${T("#",s)}`,sshurltemplate:({domain:t,project:e,committish:s})=>`git+ssh://git@${t}/${e}.git${T("#",s)}`,edittemplate:({domain:t,user:e,project:s,committish:i,editpath:r})=>`https://${t}/${e}/${s}${T("/",_(i))}/${r}`,browsetemplate:({domain:t,project:e,committish:s})=>`https://${t}/${e}${T("/",_(s))}`,browsetreetemplate:({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${T("/",_(s))}${T("#",r(i))}`,browseblobtemplate:({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${T("/",_(s))}${T("#",r(i))}`,docstemplate:({domain:t,project:e,committish:s})=>`https://${t}/${e}${T("/",_(s))}`,httpstemplate:({domain:t,project:e,committish:s})=>`git+https://${t}/${e}.git${T("#",s)}`,filetemplate:({user:t,project:e,committish:s,path:i})=>`https://gist.githubusercontent.com/${t}/${e}/raw${T("/",_(s))}/${i}`,shortcuttemplate:({type:t,project:e,committish:s})=>`${t}:${e}${T("#",s)}`,pathtemplate:({project:t,committish:e})=>`${t}${T("#",e)}`,bugstemplate:({domain:t,project:e})=>`https://${t}/${e}`,gittemplate:({domain:t,project:e,committish:s})=>`git://${t}/${e}.git${T("#",s)}`,tarballtemplate:({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${_(e||"HEAD")}`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(i!=="raw"){if(!s){if(!e)return;s=e,e=null;}return s.endsWith(".git")&&(s=s.slice(0,-4)),{user:e,project:s,committish:t.hash.slice(1)}}},hashformat:function(t){return t&&"file-"+Hl(t)}};be.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/blob/${_(i)||"HEAD"}/${r}`,httpstemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}.git${T("#",i)}`,tarballtemplate:({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/archive/${_(i)||"HEAD"}.tar.gz`,bugstemplate:({user:t,project:e})=>`https://todo.sr.ht/${t}/${e}`,extract:t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["archive"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return {user:e,project:s,committish:t.hash.slice(1)}}};for(let[t,e]of Object.entries(be))be[t]=Object.assign({},vg,e);Vl.exports=be;});var Pr=b((Y1,Zl)=>{d();var Lg=a("url"),Or=(t,e,s)=>{let i=t.indexOf(s);return t.lastIndexOf(e,i>-1?i:1/0)},Ql=t=>{try{return new Lg.URL(t)}catch{}},Eg=(t,e)=>{let s=t.indexOf(":"),i=t.slice(0,s+1);if(Object.prototype.hasOwnProperty.call(e,i))return t;let r=t.indexOf("@");return r>-1?r>s?`git+ssh://${t}`:t:t.indexOf("//")===s+1?t:`${t.slice(0,s+1)}//${t.slice(s+1)}`},Ag=t=>{let e=Or(t,"@","#"),s=Or(t,":","#");return s>e&&(t=t.slice(0,s)+"/"+t.slice(s+1)),Or(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t};Zl.exports=(t,e)=>{let s=e?Eg(t,e):t;return Ql(s)||Ql(Ag(s))};});var tc=b((K1,ec)=>{d();var Ng=Pr(),Cg=t=>{let e=t.indexOf("#"),s=t.indexOf("/"),i=t.indexOf("/",s+1),r=t.indexOf(":"),n=/\s/.exec(t),o=t.indexOf("@"),a=!n||e>-1&&n.index>e,l=o===-1||e>-1&&o>e,c=r===-1||e>-1&&r>e,d=i===-1||e>-1&&i>e,u=s>0,p=e>-1?t[e-1]!=="/":!t.endsWith("/"),g=!t.startsWith(".");return a&&u&&p&&g&&l&&c&&d};ec.exports=(t,e,{gitHosts:s,protocols:i})=>{if(!t)return;let r=Cg(t)?`github:${t}`:t,n=Ng(r,i);if(!n)return;let o=s.byShortcut[n.protocol],a=s.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],l=o||a;if(!l)return;let c=s[o||a],d=null;i[n.protocol]?.auth&&(n.username||n.password)&&(d=`${n.username}${n.password?":"+n.password:""}`);let u=null,p=null,g=null,y=null;try{if(o){let h=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,m=h.indexOf("@");m>-1&&(h=h.slice(m+1));let v=h.lastIndexOf("/");v>-1?(p=decodeURIComponent(h.slice(0,v)),p||(p=null),g=decodeURIComponent(h.slice(v+1))):g=decodeURIComponent(h),g.endsWith(".git")&&(g=g.slice(0,-4)),n.hash&&(u=decodeURIComponent(n.hash.slice(1))),y="shortcut";}else {if(!c.protocols.includes(n.protocol))return;let h=c.extract(n);if(!h)return;p=h.user&&decodeURIComponent(h.user),g=decodeURIComponent(h.project),u=decodeURIComponent(h.committish),y=i[n.protocol]?.name||n.protocol.slice(0,-1);}}catch(h){if(h instanceof URIError)return;throw h}return [l,p,d,g,u,y,e]};});var ic=b((z1,sc)=>{d();var{LRUCache:Og}=zl(),Pg=Xl(),Ig=tc(),kg=Pr(),Ir=new Og({max:1e3}),Os=class t{constructor(e,s,i,r,n,o,a={}){Object.assign(this,t.#i[e],{type:e,user:s,auth:i,project:r,committish:n,default:o,opts:a});}static#i={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,s){t.#i[e]=s,t.#i.byDomain[s.domain]=e,t.#i.byShortcut[`${e}:`]=e,t.#c[`${e}:`]={name:e};}static fromUrl(e,s){if(typeof e!="string")return;let i=e+JSON.stringify(s||{});if(!Ir.has(i)){let r=Ig(e,s,{gitHosts:t.#i,protocols:t.#c});Ir.set(i,r?new t(...r):void 0);}return Ir.get(i)}static parseUrl(e){return kg(e)}#t(e,s){if(typeof e!="function")return null;let i={...this,...this.opts,...s};i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let r=e(i);return i.noGitPlus&&r.startsWith("git+")?r.slice(4):r}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...s){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof s[0]!="string"?this.#t(this.browsetreetemplate,{...s[0],path:e}):this.#t(this.browsetreetemplate,{...s[1],fragment:s[0],path:e})}browseFile(e,...s){return typeof s[0]!="string"?this.#t(this.browseblobtemplate,{...s[0],path:e}):this.#t(this.browseblobtemplate,{...s[1],fragment:s[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,s){return this.#t(this.filetemplate,{...s,path:e})}edit(e,s){return this.#t(this.edittemplate,{...s,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(Pg))Os.addHost(t,e);sc.exports=Os;});var oc=b((V1,nc)=>{d();var Tg="Function.prototype.bind called on incompatible ",Dg=Object.prototype.toString,$g=Math.max,Rg="[object Function]",rc=function(e,s){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var n=0;n<s.length;n+=1)i[n+e.length]=s[n];return i},Fg=function(e,s){for(var i=[],r=s||0,n=0;r<e.length;r+=1,n+=1)i[n]=e[r];return i},_g=function(t,e){for(var s="",i=0;i<t.length;i+=1)s+=t[i],i+1<t.length&&(s+=e);return s};nc.exports=function(e){var s=this;if(typeof s!="function"||Dg.apply(s)!==Rg)throw new TypeError(Tg+s);for(var i=Fg(arguments,1),r,n=function(){if(this instanceof r){var d=s.apply(this,rc(i,arguments));return Object(d)===d?d:this}return s.apply(e,rc(i,arguments))},o=$g(0,s.length-i.length),a=[],l=0;l<o;l++)a[l]="$"+l;if(r=Function("binder","return function ("+_g(a,",")+"){ return binder.apply(this,arguments); }")(n),s.prototype){var c=function(){};c.prototype=s.prototype,r.prototype=new c,c.prototype=null;}return r};});var lc=b((Q1,ac)=>{d();var qg=oc();ac.exports=Function.prototype.bind||qg;});var fc=b((e0,cc)=>{d();var Mg=lc();cc.exports=Mg.call(Function.call,Object.prototype.hasOwnProperty);});var uc=b((s0,xg)=>{xg.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]};});var mc=b((i0,dc)=>{d();var Bg=fc();function Ug(t,e){for(var s=t.split("."),i=e.split(" "),r=i.length>1?i[0]:"=",n=(i.length>1?i[1]:i[0]).split("."),o=0;o<3;++o){var a=parseInt(s[o]||0,10),l=parseInt(n[o]||0,10);if(a!==l)return r==="<"?a<l:r===">="?a>=l:!1}return r===">="}function hc(t,e){var s=e.split(/ ?&& ?/);if(s.length===0)return !1;for(var i=0;i<s.length;++i)if(!Ug(t,s[i]))return !1;return !0}function Gg(t,e){if(typeof e=="boolean")return e;var s=typeof t>"u"?process.versions&&process.versions.node:t;if(typeof s!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var i=0;i<e.length;++i)if(hc(s,e[i]))return !0;return !1}return hc(s,e)}var pc=uc();dc.exports=function(e,s){return Bg(pc,e)&&Gg(s,pc[e])};});var yc=b((n0,gc)=>{d();gc.exports=jg;function jg(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
147
+ `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let s=t.length,i=e+1;for(;i<s&&t[i].trim();)i++;return t.slice(e,i).join(" ").trim()}});var bc=b((a0,Yg)=>{Yg.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}};});var Lc=b((l0,vc)=>{d();var Wg=vl(),Kg=El(),Jg=jl(),Ps=ic(),zg=mc(),Hg=["dependencies","devDependencies","optionalDependencies"],Vg=yc(),kr=a("url"),we=bc(),wc=t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf(".");vc.exports={warn:function(){},fixRepositoryField:function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var s=Ps.fromUrl(e);s&&(e=t.repository.url=s.getDefaultRepresentation()==="shortcut"?s.https():s.toString());}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e);},fixTypos:function(t){Object.keys(we.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,we.topLevel[e]);},this);},fixScriptsField:function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):we.script[e]&&!t.scripts[we.script[e]]&&this.warn("typo",e,we.script[e],"scripts");},this);}},fixFilesField:function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(s){return !s||typeof s!="string"?(this.warn("invalidFilename",s),!1):!0},this));},fixBinField:function(t){if(t.bin&&typeof t.bin=="string"){var e={},s;(s=t.name.match(/^@[^/]+[/](.*)$/))?e[s[1]]=t.bin:e[t.name]=t.bin,t.bin=e;}},fixManField:function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man]);},fixBundleDependenciesField:function(t){var e="bundledDependencies",s="bundleDependencies";t[e]&&!t[s]&&(t[s]=t[e],delete t[e]),t[s]&&!Array.isArray(t[s])?(this.warn("nonArrayBundleDependencies"),delete t[s]):t[s]&&(t[s]=t[s].filter(function(i){return !i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,i)||(this.warn("nonDependencyBundleDependency",i),t.dependencies[i]="*"),!0)},this));},fixDependencies:function(t){ry(t,this.warn),sy(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(s){var i=t[e][s];typeof i!="string"&&(this.warn("nonStringDependency",s,JSON.stringify(i)),delete t[e][s]);var r=Ps.fromUrl(t[e][s]);r&&(t[e][s]=r.toString());},this);}},this);},fixModulesField:function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules);},fixKeywordsField:function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this));},fixVersionField:function(t,e){var s=!e;if(!t.version)return t.version="",!0;if(!Wg(t.version,s))throw new Error('Invalid version: "'+t.version+'"');return t.version=Kg(t.version,s),!0},fixPeople:function(t){Sc(t,ey),Sc(t,ty);},fixNameField:function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var s=e.strict;if(!t.name&&!s){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");s||(t.name=t.name.trim()),Zg(t.name,s,e.allowLegacyCase),zg(t.name)&&this.warn("conflictingName",t.name);},fixDescriptionField:function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Vg(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription");},fixReadmeField:function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!");},fixBugsField:function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Ps.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()});}else if(t.bugs){if(typeof t.bugs=="string")wc(t.bugs)?t.bugs={email:t.bugs}:kr.parse(t.bugs).protocol?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else {ny(t.bugs,this.warn);var s=t.bugs;t.bugs={},s.url&&(typeof s.url=="string"&&kr.parse(s.url).protocol?t.bugs.url=s.url:this.warn("nonUrlBugsUrlField")),s.email&&(typeof s.email=="string"&&wc(s.email)?t.bugs.email=s.email:this.warn("nonEmailBugsEmailField"));}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"));}},fixHomepageField:function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Ps.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs());}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;kr.parse(t.homepage).protocol||(t.homepage="http://"+t.homepage);}},fixLicenseField:function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!Jg(e).validForNewPackages)return this.warn("invalidLicense")}};function Xg(t){if(t.charAt(0)!=="@")return !1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function Qg(t){return !t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function Zg(t,e,s){if(t.charAt(0)==="."||!(Xg(t)||Qg(t))||e&&!s&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}function Sc(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(s){Array.isArray(t[s])&&(t[s]=t[s].map(e));}),t}function ey(t){if(typeof t=="string")return t;var e=t.name||"",s=t.url||t.web,i=s?" ("+s+")":"",r=t.email||t.mail,n=r?" <"+r+">":"";return e+n+i}function ty(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),s=t.match(/\(([^()]+)\)/),i=t.match(/<([^<>]+)>/),r={};return e&&e[0].trim()&&(r.name=e[0].trim()),i&&(r.email=i[1]),s&&(r.url=s[1]),r}function sy(t){var e=t.optionalDependencies;if(e){var s=t.dependencies||{};Object.keys(e).forEach(function(i){s[i]=e[i];}),t.dependencies=s;}}function iy(t,e,s){if(!t)return {};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;s("deprecatedArrayDependencies",e);var i={};return t.filter(function(r){return typeof r=="string"}).forEach(function(r){r=r.trim().split(/(:?[@\s><=])/);var n=r.shift(),o=r.join("");o=o.trim(),o=o.replace(/^@/,""),i[n]=o;}),i}function ry(t,e){Hg.forEach(function(s){t[s]&&(t[s]=iy(t[s],s,e));});}function ny(t,e){t&&Object.keys(t).forEach(function(s){we.bugs[s]&&(e("typo",s,we.bugs[s],"bugs"),t[we.bugs[s]]=t[s],delete t[s]);});}});var Ec=b((f0,oy)=>{oy.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."};});var Cc=b((u0,Nc)=>{d();var Ac=a("util"),Tr=Ec();Nc.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return ay.apply(null,t);var s=Tr[e]?Tr[e]:e+": '%s'";return t.unshift(s),Ac.format.apply(null,t)};function ay(t,e,s){return s&&(t=s+"['"+t+"']",e=s+"['"+e+"']"),Ac.format(Tr.typo,t,e)}});var kc=b((p0,Ic)=>{d();Ic.exports=Oc;var Dr=Lc();Oc.fixer=Dr;var ly=Cc(),cy=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],fy=["dependencies","people","typos"],$r=cy.map(function(t){return Pc(t)+"Field"});$r=$r.concat(fy);function Oc(t,e,s){e===!0&&(e=null,s=!0),s||(s=!1),(!e||t.private)&&(e=function(){}),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),Dr.warn=function(){e(ly.apply(null,arguments));},$r.forEach(function(i){Dr["fix"+Pc(i)](t,s);}),t._id=t.name+"@"+t.version;}function Pc(t){return t.charAt(0).toUpperCase()+t.slice(1)}});d();d();var Uc=(t,e)=>{let s=t.split(".").map(Number),i=e.split(".").map(Number);for(let[r,n]of s.entries()){if(n>i[r])return !0;if(n<i[r])return !1}return !1},_r=Uc;d();d();d();d();var Gc=class extends Error{constructor(t){super(`ENOENT: ${t}`);}get code(){return "ENOENT"}set code(t){throw new Error("Cannot overwrite code ENOENT")}get name(){return "NotFoundError"}set name(t){throw new Error("Cannot overwrite name of NotFoundError")}},Et=Gc,jc=class extends Error{constructor(t){super(`EPERM: Operation not permitted, ${t}`);}get code(){return "EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return "PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}},Ye=jc;d();d();var Yc=class qr extends Error{fileName;codeFrame;name="JSONError";#i;constructor(e){super(),this.#i=e,Error.captureStackTrace(this,qr);}get message(){return `${this.#i}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
148
+
149
+ ${this.codeFrame}
150
+ `:""}`}set message(e){this.#i=e;}},Mr=Yc;var Wc=t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},re=Wc,Kc=t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
151
+ `),Jc=Kc,zc=globalThis.process||Object.create(null),xr={versions:{}},Hc=new Proxy(zc,{get(t,e){if(e in t)return t[e];if(e in xr)return xr[e]}}),Br=Hc,Vc=(t,e,s,i)=>{let r={column:0,line:-1,...t.start},n={...r,...t.end},o=r.line,a=r.column,l=n.line,c=n.column,d=Math.max(o-(s+1),0),u=Math.min(e.length,l+i);o===-1&&(d=0),l===-1&&(u=e.length);let p=l-o,g={};if(p)for(let y=0;y<=p;y++){let h=y+o;if(!a)g[h]=!0;else if(y===0){let m=e[h-1]?.length;g[h]=[a,(m??0)-a+1];}else if(y===p)g[h]=[0,c];else {let m=e[h-y]?.length;g[h]=[0,m];}}else a===c?g[o]=a?[a,0]:!0:g[o]=[a,(c??0)-(a??0)];return {end:u,markerLines:g,start:d}},Xc=Vc,Qc=Br.platform==="win32"&&!Br.env?.WT_SESSION?">":"\u276F",Zc=(t,e,s)=>{let i={linesAbove:2,linesBelow:3,showGutter:!0,showLineNumbers:!0,tabWidth:4,...s,color:{gutter:y=>y,marker:y=>y,message:y=>y,...s?.color}},r=e.start&&typeof e.start.column=="number",n=Jc(t).split(`
152
+ `);typeof i?.tabWidth=="number"&&(n=n.map(y=>y.replaceAll(" "," ".repeat(i.tabWidth))));let{end:o,markerLines:a,start:l}=Xc(e,n,i.linesAbove,i.linesBelow),c=String(o).length,{gutter:d,marker:u,message:p}=i.color,g=n.slice(l,o).map((y,h)=>{let m=l+1+h,v=a[m],E=` ${m}`.slice(-c),O=!a[m+1],C=` ${E}${i.showGutter?" |":""}`;if(v){let P="";if(Array.isArray(v)){let L=y.replaceAll(/[^\t]/g," ").slice(0,Math.max(v[0]-1,0)),k=v[1]||1;P=[`
153
+ `,d(C.replaceAll(/\d/g," "))," ",L,u("^").repeat(k)].join(""),O&&i.message&&(P+=` ${p(i.message)}`);}return [u(Qc),d(C),y.length>0?` ${y}`:"",P].join("")}return ` ${d(C)}${y.length>0?` ${y}`:""}`}).join(`
154
+ `);return i.message&&!r&&(g=`${" ".repeat(c+1)}${i.message}
155
+ ${g}`),g},Ur=(t,e)=>{let s=0,i=e.length-2;for(;s<i;){let r=s+(i-s>>1);if(t<e[r])i=r-1;else if(t>=e[r+1])s=r+1;else {s=r;break}}return s},ef=t=>t.split(/\n|\r(?!\n)/).reduce((e,s)=>(e.push(e.at(-1)+s.length+1),e),[0]),tf=(t,e,s)=>{let i=s?.skipChecks??!1;if(!i&&(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0))return {column:0,line:0};if(!i&&(typeof e!="number"||typeof t=="string"&&e>=t.length||Array.isArray(t)&&e+1>=t.at(-1)))return {column:0,line:0};if(typeof t=="string"){let n=ef(t),o=Ur(e,n);return {column:e-n[o]+1,line:o+1}}let r=Ur(e,t);return {column:e-t[r]+1,line:r+1}},sf=tf,rf=t=>`\\u{${t.codePointAt(0).toString(16)}}`,nf=(t,e,s)=>Zc(t,{start:e},{tabWidth:!1,...s}),of=(t,e)=>{let s=/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/.exec(e);if(!s)return;let{column:i,index:r,line:n}=s.groups;return n&&i?{column:Number(i),line:Number(n)}:(r=Number(r),r===t.length&&(r=t.length-1),sf(t,r))},af=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,s,i)=>`"${i}"(${rf(i)})`);function lf(t,e,s,i){typeof e=="string"&&(typeof s=="object"&&(i=s),s=e,e=void 0);let r;try{return JSON.parse(t,e)}catch(a){r=a.message;}let n;t?(n=of(t,r),r=af(r)):r+=" while parsing empty string";let o=new Mr(r);throw o.fileName=s,n&&(o.codeFrame=nf(t,n,i)),o}var Oe=lf,cf=t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},At=cf;d();d();var ff=Object.defineProperty,uf=(t,e)=>{for(var s in e)ff(t,s,{get:e[s],enumerable:!0});},hf=/^[A-Z]:\//i,pf=(t="")=>t&&t.replaceAll("\\","/").replace(hf,e=>e.toUpperCase()),Q=pf,jr={};uf(jr,{basename:()=>Pt,delimiter:()=>Kr,dirname:()=>W,extname:()=>Ot,format:()=>zr,isAbsolute:()=>X,join:()=>B,normalize:()=>Ct,normalizeString:()=>Nt,parse:()=>We,relative:()=>Jr,resolve:()=>K,sep:()=>Wr,toNamespacedPath:()=>Ds});var df=/^[/\\]{2}/,mf=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Yr=/^[A-Z]:$/i,Gr=/^\/([A-Z]:)?$/i,gf=/.(\.[^./]+)$/,yf=()=>typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",Wr="/",Kr=":",Nt=(t,e)=>{let s="",i=0,r=-1,n=0,o=null;for(let a=0;a<=t.length;++a){if(a<t.length)o=t[a];else {if(o==="/")break;o="/";}if(o==="/"){if(!(r===a-1||n===1))if(n===2){if(s.length<2||i!==2||!s.endsWith(".")||s.at(-2)!=="."){if(s.length>2){let l=s.lastIndexOf("/");l===-1?(s="",i=0):(s=s.slice(0,l),i=s.length-1-s.lastIndexOf("/")),r=a,n=0;continue}else if(s.length>0){s="",i=0,r=a,n=0;continue}}e&&(s+=s.length>0?"/..":"..",i=2);}else s.length>0?s+=`/${t.slice(r+1,a)}`:s=t.slice(r+1,a),i=a-r-1;r=a,n=0;}else o==="."&&n!==-1?++n:n=-1;}return s},X=t=>mf.test(t),Ct=function(t){if(t.length===0)return ".";t=Q(t);let e=df.exec(t),s=X(t),i=t.at(-1)==="/";return t=Nt(t,!s),t.length===0?s?"/":i?"./":".":(i&&(t+="/"),Yr.test(t)&&(t+="/"),e?s?`//${t}`:`//./${t}`:s&&!X(t)?`/${t}`:t)},B=function(...t){if(t.length===0)return ".";let e;for(let s of t)s&&s.length>0&&(e===void 0?e=s:e+=`/${s}`);return e===void 0?".":Ct(e.replaceAll(/\/{2,}/g,"/"))},K=function(...t){t=t.map(i=>Q(i));let e="",s=!1;for(let i=t.length-1;i>=-1&&!s;i--){let r=i>=0?t[i]:yf();!r||r.length===0||(e=`${r}/${e}`,s=X(r));}return e=Nt(e,!s),s&&!X(e)?`/${e}`:e.length>0?e:"."},Ds=function(t){return Q(t)},Ot=function(t){return gf.exec(Q(t))?.[1]??""},Jr=function(t,e){let s=K(t).replace(Gr,"$1").split("/"),i=K(e).replace(Gr,"$1").split("/");if(i[0][1]===":"&&s[0][1]===":"&&s[0]!==i[0])return i.join("/");let r=[...s];for(let n of r){if(i[0]!==n)break;s.shift(),i.shift();}return [...s.map(()=>".."),...i].join("/")},W=t=>{let e=Q(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Yr.test(e[0])&&(e[0]+="/"),e.join("/")||(X(t)?"/":".")},zr=function(t){let e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return Q(t.root?K(...e):e.join("/"))},Pt=(t,e)=>{let s=Q(t).split("/").pop();return e&&s.endsWith(e)?s.slice(0,-e.length):s},We=function(t){let e=Q(t).split("/").shift();e===""?e="/":e+="/";let s=Pt(t),i=Ot(s);return {base:s,dir:W(t),ext:i,name:s.slice(0,s.length-i.length),root:e}};d();var wf=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],Sf=wf;new Set(Sf);var U=t=>Q(t instanceof URL?fileURLToPath(t):t);c(Fa(),1);var Ne=2;var Ja=Symbol("findUpStop"),xa=t=>{if(t.isFile())return "file";if(t.isDirectory())return "dir";if(t.isSymbolicLink())return "symlink"};var om=t=>{re(t);try{let e=lstatSync(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${xa(e)}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{mkdirSync(t,{recursive:!0});}catch(e){if(e.code!=="EEXIST")throw e;let s=lstatSync(t);if(!s.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${xa(s)}'`)}},za=om;process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);var am=async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");let s=e.cwd?U(e.cwd):process.cwd(),i=K(s),{root:r}=We(i),n=U(e.stopAt??r),o=K(i,n),a=e.type??"file",l=async function(c){return typeof t=="function"?[await t(c)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};for(;i&&i!==o&&i!==r;){for await(let c of await l(i)){if(c===Ja)return;if(c===void 0)continue;let d=X(c)?c:K(i,c);try{let u=await stat(d);if(a==="file"&&u.isFile()||a==="directory"&&u.isDirectory())return d}catch{}}i=W(i);}},Ha=am,lm=(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");let s=e.cwd?U(e.cwd):process.cwd(),i=K(s),{root:r}=We(i),n=U(e.stopAt??r),o=K(i,n),a=e.type??"file",l=function(c){return typeof t=="function"?[t(c)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};for(;i&&i!==o&&i!==r;){for(let c of l(i)){if(c===Ja)return;if(c===void 0)continue;let d=X(c)?c:K(i,c);try{let u=statSync(d);if(a==="file"&&u.isFile()||a==="directory"&&u.isDirectory())return d}catch{}}i=W(i);}},Va=lm;async function cm(t,e=0){re(t),t=U(t);try{return await access(t,e),!0}catch{return !1}}var se=cm;function fm(t,e=0){re(t),t=U(t);try{return accessSync(t,e),!0}catch{return !1}}var ie=fm,um={brotli:brotliDecompress,gzip:unzip,none:(t,e)=>{e(null,t);}},hm=async(t,e)=>{if(re(t),t=U(t),!await se(t))throw new Ye(`unable to read the non-accessible file: ${t}`);if(!await se(t,4))throw new Error(`Unable to read the non-readable file: ${t}`);let{buffer:s,compression:i,encoding:r,flag:n}=e??{};return await readFile(t,n?{encoding:r,flag:n}:{encoding:r}).then(async o=>await new Promise((a,l)=>{um[i??"none"](o,(c,d)=>{c?l(c):a(s?d:d.toString());});})).catch(o=>{throw o})},pm=hm,dm={brotli:brotliDecompressSync,gzip:unzipSync,none:t=>t},mm=(t,e)=>{if(re(t),t=U(t),!ie(t))throw new Ye(`unable to read the non-accessible file: ${t}`);if(!ie(t,4))throw new Ye(`invalid access to read file at: ${t}`);let{buffer:s,compression:i,encoding:r,flag:n}=e??{},o=readFileSync(t,n?{encoding:r,flag:n}:{encoding:r}),a=dm[i??"none"](o);return s?a:a.toString()},gm=mm;async function ym(t,e,s){typeof e=="object"&&(s=e,e=void 0);let i=await pm(t,{buffer:!0,encoding:void 0}),r=new TextDecoder().decode(i),{beforeParse:n,color:o}=s??{};return typeof n=="function"&&(r=n(r)),Oe(r,e,U(t),{color:o})}var Xa=ym;function bm(t,e,s){typeof e=="object"&&(s=e,e=void 0);let i=gm(t,{buffer:!0,encoding:void 0}),r=new TextDecoder().decode(i),{beforeParse:n,color:o}=s??{};return typeof n=="function"&&(r=n(r)),Oe(r,e,U(t),{color:o})}var pr=bm;var wm=new TextEncoder,Sm=t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return wm.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){let e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},Qa=Sm,vm=async(t,e,s)=>{s={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...s},re(t),At(e),t=U(t);try{let i=await se(t,0);if(!i&&s.recursive){let o=W(t);await se(o,0)||await mkdir(o,{recursive:!0});}let r;await writeFile(`${t}.tmp`,Qa(e),{encoding:s.encoding,flag:s.flag}),i&&!s.overwrite&&(r=await stat(t),s.chown===void 0&&(s.chown={gid:r.gid,uid:r.uid}),await rename(t,`${t}.bak`));let n=`${t}.tmp`;if(s.chown)try{await chown(n,s.chown.uid,s.chown.gid);}catch{}await chmod(n,r&&!s.mode?r.mode:s.mode??438),await rename(n,t);}catch(i){throw new Error(`Failed to write file at: ${t} - ${i.message}`,{cause:i})}finally{await se(`${t}.tmp`)&&await unlink(`${t}.tmp`);}},Lm=vm,Em=(t,e,s)=>{s={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...s},re(t),At(e),t=U(t);try{let i=ie(t,0);if(!i&&s.recursive){let o=W(t);ie(o,0)||mkdirSync(o,{recursive:!0});}let r;writeFileSync(`${t}.tmp`,Qa(e),{encoding:s.encoding,flag:s.flag}),i&&!s.overwrite&&(r=statSync(t),s.chown===void 0&&(s.chown={gid:r.gid,uid:r.uid}),renameSync(t,`${t}.bak`));let n=`${t}.tmp`;if(s.chown)try{chownSync(n,s.chown.uid,s.chown.gid);}catch{}chmodSync(n,r&&!s.mode?r.mode:s.mode??438),renameSync(n,t);}catch(i){throw new Error(`Failed to write file at: ${t} - ${i.message}`,{cause:i})}finally{ie(`${t}.tmp`)&&unlinkSync(`${t}.tmp`);}},Am=Em,Nm=/^(?:( )+|\t+)/,St="space",Za="tab";function Ba(t,e){let s=new Map,i=0,r,n;for(let o of t.split(/\n/g)){if(!o)continue;let a,l,c,d,u,p=o.match(Nm);if(p===null)i=0,r="";else {if(a=p[0].length,l=p[1]?St:Za,e&&l===St&&a===1)continue;l!==r&&(i=0),r=l,c=1,d=0;let g=a-i;if(i=a,g===0)c=0,d=1;else {let y=g>0?g:-g;n=Cm(l,y);}u=s.get(n),u=u===void 0?[1,0]:[u[0]+c,u[1]+d],s.set(n,u);}}return s}function Cm(t,e){return (t===St?"s":"t")+String(e)}function Om(t){let e=t[0]==="s"?St:Za,s=Number(t.slice(1));return {type:e,amount:s}}function Pm(t){let e,s=0,i=0;for(let[r,[n,o]]of t)(n>s||n===s&&o>i)&&(s=n,i=o,e=r);return e}function Im(t,e){return (t===St?" ":" ").repeat(e)}function el(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=Ba(t,!0);e.size===0&&(e=Ba(t,!1));let s=Pm(e),i,r=0,n="";return s!==void 0&&({type:i,amount:r}=Om(s),n=Im(i,r)),{amount:r,type:i,indent:n}}var km=async(t,e,s={})=>{let{detectIndent:i,indent:r,replacer:n,stringify:o=JSON.stringify,...a}={indent:" ",...s},l=r,c=`
156
+ `;if(await se(t,4))try{let u=await readFile(t,"utf8");if(i){let{indent:p}=el(u);l=p;}c=u.endsWith(`
157
+ `)?`
158
+ `:"";}catch(u){if(u.code!=="ENOENT")throw u}let d=o(e,n,l);await Lm(t,`${d}${c}`,a);},tl=km,Tm=(t,e,s={})=>{let{detectIndent:i,indent:r,replacer:n,stringify:o=JSON.stringify,...a}={indent:" ",...s},l=r,c=`
159
+ `;if(ie(t,4))try{let u=readFileSync(t,"utf8");if(i){let{indent:p}=el(u);l=p;}c=u.endsWith(`
160
+ `)?`
161
+ `:"";}catch(u){if(u.code!=="ENOENT")throw u}let d=o(e,n,l);Am(t,`${d}${c}`,a);},sl=Tm;d();d();d();var Is=c(kc(),1),uy=Object.defineProperty,hy=(t,e)=>uy(t,"name",{value:e,configurable:!0}),dy=Object.defineProperty,Lt=hy((t,e)=>dy(t,"name",{value:e,configurable:!0}),"s"),Tc=new Map,Dc=Lt(async(t,e={})=>{let s={type:"file"};t&&(s.cwd=t);let i=await Ha("package.json",s);if(!i)throw new Et("No such file or directory, for package.json found.");let r=e.cache&&typeof e.cache!="boolean"?e.cache:Tc;if(e.cache&&r.has(i))return r.get(i);let n=await Xa(i);(0, Is.default)(n);let o={packageJson:n,path:i};return r.set(i,o),o},"findPackageJson"),$c=Lt((t,e={})=>{let s={type:"file"};t&&(s.cwd=t);let i=Va("package.json",s);if(!i)throw new Et("No such file or directory, for package.json found.");let r=e.cache&&typeof e.cache!="boolean"?e.cache:Tc;if(e.cache&&r.has(i))return r.get(i);let n=pr(i);(0, Is.default)(n);let o={packageJson:n,path:i};return r.set(i,o),o},"findPackageJsonSync");Lt(async(t,e={})=>{let{cwd:s,...i}=e,r=U(e.cwd??process.cwd());await tl(B(r,"package.json"),t,i);},"writePackageJson");Lt((t,e={})=>{let{cwd:s,...i}=e,r=U(e.cwd??process.cwd());sl(B(r,"package.json"),t,i);},"writePackageJsonSync");Lt(t=>{let e=t!==null&&typeof t=="object"&&!Array.isArray(t);if(!e&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let s=e?structuredClone(t):existsSync(t)?pr(t):Oe(t);return (0, Is.default)(s),s},"parsePackageJson");var my=Object.defineProperty,gy=(t,e)=>my(t,"name",{value:e,configurable:!0}),yy=Object.defineProperty,Rr=gy((t,e)=>yy(t,"name",{value:e,configurable:!0}),"f"),ks=Rr((t,e)=>(e?.create&&za(t),t),"useDirectory");Rr(async(t,e)=>{if(env.CACHE_DIR&&!["0","1","false","true"].includes(env.CACHE_DIR))return ks(B(env.CACHE_DIR,t),e);let s;try{let{path:o}=await Dc(e?.cwd??cwd());s=W(o);}catch(o){if(e?.throwError)throw o;return}let i=B(s,"node_modules"),r=B(i,".cache"),n=B(r,t);if(!(existsSync(n)&&!await se(n,Ne))&&!(existsSync(r)&&!await se(r,Ne))&&!(existsSync(i)&&!await se(i,Ne)))return ks(n,e)},"findCacheDirectory");var Fc=Rr((t,e)=>{if(env.CACHE_DIR&&!["0","1","false","true"].includes(env.CACHE_DIR))return ks(B(env.CACHE_DIR,t),e);let s;try{let{path:o}=$c(e?.cwd??cwd());s=W(o);}catch(o){if(e?.throwError)throw o;return}let i=B(s,"node_modules"),r=B(i,".cache"),n=B(r,t);if(!(existsSync(n)&&!ie(n,Ne))&&!(existsSync(r)&&!ie(r,Ne))&&!(existsSync(i)&&!ie(i,Ne)))return ks(n,e)},"findCacheDirectorySync");var vy="last-update-check.json",qc=t=>{let e=Fc(t);if(e===void 0)throw new Error("Could not find cache directory");return B(e,vy)},Mc=t=>{let e=qc(t);try{if(!existsSync(e))return;let{lastUpdateCheck:s}=JSON.parse(readFileSync(e,"utf8"));return s}catch{return}},xc=t=>{let e=qc(t),s=W(e);existsSync(s)||mkdirSync(s,{recursive:!0}),writeFileSync(e,JSON.stringify({lastUpdateCheck:Date.now()}));};d();var Ey=async(t,e,s)=>{let i=s.replace("__NAME__",t);return await new Promise((r,n)=>{get(i,o=>{let a="";o.on("data",l=>a+=l),o.on("end",()=>{try{let c=JSON.parse(a)[e];c||n(new Error("Error getting version")),r(c);}catch{n(new Error("Could not parse version response"));}});}).on("error",o=>n(o));})},Bc=Ey;var Ay=async({alwaysRun:t,debug:e,distTag:s="latest",pkg:i,registryUrl:r="https://registry.npmjs.org/-/package/__NAME__/dist-tags",updateCheckInterval:n=1e3*60*60*24})=>{let o=Mc(i.name);if(t||!o||o<Date.now()-n){let a=await Bc(i.name,s,r);if(xc(i.name),_r(a,i.version))return a;e&&console.error(`Latest version (${a}) not newer than current version (${i.version})`);}else e&&console.error(`Too recent to check for a new update. simpleUpdateNotifier() interval set to ${n}ms but only ${Date.now()-o}ms since last check.`);return null},Y0=Ay;
162
+
163
+ export { Y0 as default };
164
+ //# sourceMappingURL=out.js.map
165
+ //# sourceMappingURL=has-new-version-D44KWSDA.js.map