ado-npm-auth 0.3.3 → 0.5.0

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.
@@ -1,111 +1,111 @@
1
- "use strict";var fF=Object.create;var Oa=Object.defineProperty;var hF=Object.getOwnPropertyDescriptor;var pF=Object.getOwnPropertyNames;var dF=Object.getPrototypeOf,gF=Object.prototype.hasOwnProperty;var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mF=(e,t)=>{for(var r in t)Oa(e,r,{get:t[r],enumerable:!0})},Nm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pF(t))!gF.call(e,i)&&i!==r&&Oa(e,i,{get:()=>t[i],enumerable:!(n=hF(t,i))||n.enumerable});return e};var Sn=(e,t,r)=>(r=e!=null?fF(dF(e)):{},Nm(t||!e||!e.__esModule?Oa(r,"default",{value:e,enumerable:!0}):r,e)),yF=e=>Nm(Oa({},"__esModule",{value:!0}),e);var H0=R(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.walkUp=void 0;var U0=require("path"),VF=function*(e){for(e=(0,U0.resolve)(e);e;){yield e;let t=(0,U0.dirname)(e);if(t===e)break;e=t}};Xa.walkUp=VF});var yf=R((o7,K0)=>{var{hasOwnProperty:gf}=Object.prototype,mf=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
1
+ "use strict";var xF=Object.create;var _a=Object.defineProperty;var OF=Object.getOwnPropertyDescriptor;var PF=Object.getOwnPropertyNames;var _F=Object.getPrototypeOf,RF=Object.prototype.hasOwnProperty;var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),FF=(e,t)=>{for(var r in t)_a(e,r,{get:t[r],enumerable:!0})},Km=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of PF(t))!RF.call(e,i)&&i!==r&&_a(e,i,{get:()=>t[i],enumerable:!(n=OF(t,i))||n.enumerable});return e};var Mt=(e,t,r)=>(r=e!=null?xF(_F(e)):{},Km(t||!e||!e.__esModule?_a(r,"default",{value:e,enumerable:!0}):r,e)),DF=e=>Km(_a({},"__esModule",{value:!0}),e);var iy=R(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.walkUp=void 0;var ny=require("path"),uD=function*(e){for(e=(0,ny.resolve)(e);e;){yield e;let t=(0,ny.dirname)(e);if(t===e)break;e=t}};Qa.walkUp=uD});var Sf=R((CY,uy)=>{var{hasOwnProperty:bf}=Object.prototype,wf=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
2
2
  `:`
3
- `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=on(s.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>on(u).length>=on(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of s){let f=e[u];if(f&&Array.isArray(f))for(let l of f)a+=on(`${u}${c}`).padEnd(o," ")+n+on(l)+r;else f&&typeof f=="object"?i.push(u):a+=on(u).padEnd(o," ")+n+on(f)+r}t.section&&a.length&&(a="["+on(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of i){let f=Y0(u,".").join("\\."),l=(t.section?t.section+".":"")+f,h=mf(e[u],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function Y0(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var z0=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let u of o){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.match(s);if(!f)continue;if(f[1]!==void 0){if(i=Ja(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=Ja(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let p=h&&l.endsWith("[]")?l.slice(0,-2):l;if(p==="__proto__")continue;let d=f[3]?Ja(f[4]):!0,y=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;h&&(gf.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(y):n[p]=y}let c=[];for(let u of Object.keys(r)){if(!gf.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=Y0(u,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let p of f)p!=="__proto__"&&((!gf.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===r&&h===l||(n[h]=r[u],c.push(u))}for(let u of c)delete r[u];return r},V0=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),on=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&V0(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Ja=e=>{if(e=(e||"").trim(),V0(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};K0.exports={parse:z0,decode:z0,stringify:mf,encode:mf,safe:on,unsafe:Ja}});var J0=R((a7,X0)=>{X0.exports=KF;function KF(...e){let t=e.length===1||Array.isArray(e[0])?e[0]:e;for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(XF);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",c=!0,u=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(c=c&&h===a.charAt(f),u=u&&h===n.charAt(f),!c&&!u){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function XF(e,t){return e===t?0:e>t?1:-1}});var vf=R((u7,Q0)=>{Q0.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Ef=R((c7,ry)=>{var Z0=require("url"),Af=require("path"),ey=require("stream").Stream,JF=require("os"),ty=vf();function QF(e,t,r){e[t]=String(r)}function ZF(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=JF.homedir();return s&&r.match(i)?e[t]=Af.resolve(s,r.slice(2)):e[t]=Af.resolve(r),!0}function eD(e,t,r){if(ty("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function tD(e,t,r){let n=Date.parse(r);if(ty("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function rD(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function nD(e,t,r){if(r=Z0.parse(String(r)),!r.host)return!1;e[t]=r.href}function iD(e,t,r){if(!(r instanceof ey))return!1;e[t]=r}ry.exports={String:{type:String,validate:QF},Boolean:{type:Boolean,validate:rD},url:{type:Z0,validate:nD},Number:{type:Number,validate:eD},path:{type:Af,validate:ZF},Stream:{type:ey,validate:iD},Date:{type:Date,validate:tD},Array:{type:Array}}});var ly=R((l7,cy)=>{var Qa=J0(),$e=vf(),sD=Ef(),iy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),sy=(e,{types:t,dynamicTypes:r})=>{let n=iy(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},Vi=(e,t)=>t&&e===t,jr=(e,t)=>t&&e.indexOf(t)!==-1,oD=(e,t)=>t&&!jr(e,t);function aD(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:c}={}){$e(t,r,e,n);let u={},f={remain:[],cooked:e,original:e.slice(0)};return ay(e,u,f.remain,{typeDefs:n,types:t,dynamicTypes:c,shorthands:r,unknownHandler:s,abbrevHandler:o}),oy(u,{types:t,dynamicTypes:c,typeDefs:n,invalidHandler:i,typeDefault:a}),u.argv=f,Object.defineProperty(u.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),u}function oy(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,c=r.Array?.type,u=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),c&&s.push(c));let h={};Object.keys(e).forEach(p=>{if(p==="argv")return;let d=e[p];$e("val=%j",d);let y=Array.isArray(d),[m,O]=sy(p,{types:t,dynamicTypes:n}),S=O;y||(d=[d]),S||(S=s),Vi(S,c)&&(S=s.concat(c)),Array.isArray(S)||(S=[S]),$e("val=%j",d),$e("types=",S),d=d.map(k=>{if(typeof k=="string"&&($e("string %j",k),k=k.trim(),k==="null"&&~S.indexOf(null)||k==="true"&&(~S.indexOf(!0)||jr(S,u))||k==="false"&&(~S.indexOf(!1)||jr(S,u))?(k=JSON.parse(k),$e("jsonable %j",k)):jr(S,a)&&!isNaN(k)?($e("convert to number",k),k=+k):jr(S,f)&&!isNaN(Date.parse(k))&&($e("convert to date",k),k=new Date(k))),!m){if(!l)return k;O=s}k===!1&&~S.indexOf(null)&&!(~S.indexOf(!1)||jr(S,u))&&(k=null);let F={};return F[p]=k,$e("prevalidated val",F,k,O),bf(F,p,k,O,{typeDefs:r})?($e("validated v",F,k,O),F[p]):(i?i(p,k,O,e):i!==!1&&$e("invalid: "+p+"="+k,O),h)}).filter(k=>k!==h),!d.length&&oD(S,c)?($e("VAL HAS NO LENGTH, DELETE IT",d,p,S.indexOf(c)),delete e[p]):y?($e(y,e[p],d),e[p]=d):e[p]=d[0],$e("k=%s val=%j",p,d,e[p])})}function bf(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let c=0,u=n.length;c<u;c++)if(!Vi(n[c],s)&&bf(e,t,r,n[c],{typeDefs:i}))return!0;return delete e[t],!1}if(Vi(n,s))return!0;if(n!==n)return $e("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return $e("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let c=0,u=a.length;c<u;c++){$e("test type %j %j %j",t,r,a[c]);let f=i[a[c]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return $e("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function ay(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:c}={}){let u=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;$e("parse",e,t,r);let p=Qa(Object.keys(n));$e("abbrevs=%j",p);let d=Qa(Object.keys(s));for(let y=0;y<e.length;y++){let m=e[y];if($e("arg",m),m.match(/^-{2,}$/)){r.push.apply(r,e.slice(y+1)),e[y]="--";break}let O=!1;if(m.charAt(0)==="-"&&m.length>1){let S=m.indexOf("=");if(S>-1){O=!0;let v=m.slice(S+1);m=m.slice(0,S),e.splice(y,1,m,v)}let k=uy(m,d,p,{shorthands:s,abbrevHandler:c});if($e("arg=%j shRes=%j",m,k),k&&(e.splice.apply(e,[y,1].concat(k)),m!==k[0])){y--;continue}m=m.replace(/^-+/,"");let F=null;for(;m.toLowerCase().indexOf("no-")===0;)F=!F,m=m.slice(3);p[m]&&p[m]!==m&&(c?c(m,p[m]):c!==!1&&$e(`abbrev: ${m} -> ${p[m]}`),m=p[m]);let[b,_]=sy(m,{types:n,dynamicTypes:o}),L=Array.isArray(_);L&&_.length===1&&(L=!1,_=_[0]);let D=Vi(_,l)||L&&jr(_,l);!b&&iy(t,m)&&(Array.isArray(t[m])||(t[m]=[t[m]]),D=!0);let N,x=e[y+1],g=typeof F=="boolean"||Vi(_,h)||L&&jr(_,h)||typeof _>"u"&&!O||x==="false"&&(_===null||L&&~_.indexOf(null));if(typeof _>"u"){let v=!O&&x&&!x?.startsWith("-")&&!["true","false"].includes(x);a?v?a(m,x):a(m):a!==!1&&($e(`unknown: ${m}`),v&&$e(`unknown: ${x} parsed as normal opt`))}if(g){N=!F,(x==="true"||x==="false")&&(N=JSON.parse(x),x=null,F&&(N=!N),y++),L&&x&&(~_.indexOf(x)?(N=x,y++):x==="null"&&~_.indexOf(null)?(N=null,y++):!x.match(/^-{2,}[^-]/)&&!isNaN(x)&&jr(_,f)?(N=+x,y++):!x.match(/^-[^-]/)&&jr(_,u)&&(N=x,y++)),D?(t[m]=t[m]||[]).push(N):t[m]=N;continue}Vi(_,u)&&(x===void 0?x="":x.match(/^-{1,2}[^-]+/)&&(x="",y--)),x&&x.match(/^-{2,}$/)&&(x=void 0,y--),N=x===void 0?!0:x,D?(t[m]=t[m]||[]).push(N):t[m]=N,y++;continue}r.push(m)}}var ny=Symbol("singles"),uD=(e,t)=>{let r=t[ny];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[ny]=r,$e("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function uy(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??Qa(Object.keys(i)),o=t[1]??Qa(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=uD(e,i);return a?a.map(c=>i[c]).reduce((c,u)=>c.concat(u),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&$e(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}cy.exports={nopt:aD,clean:oy,parse:ay,validate:bf,resolveShort:uy,typeDefs:sD}});var Sf=R((er,fy)=>{var wf=ly(),cD=Ef();fy.exports=er=lD;er.clean=fD;er.typeDefs=cD;er.lib=wf;function lD(e,t,r=process.argv,n=2){return wf.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:er.typeDefs,invalidHandler:er.invalidHandler,unknownHandler:er.unknownHandler,abbrevHandler:er.abbrevHandler})}function fD(e,t,r=er.typeDefs){return wf.clean(e,{types:t||{},typeDefs:r,invalidHandler:er.invalidHandler,unknownHandler:er.unknownHandler,abbrevHandler:er.abbrevHandler})}});var no=R((f7,hy)=>{var hD=Symbol("proc-log.meta");hy.exports={META:hD,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Cf=R((h7,dy)=>{var py=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}else{if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e}},pD=(e,t,r)=>{try{return e[t]=py(r),!0}catch{return!1}};dy.exports={parse:py,validate:pD}});var io=R((p7,gy)=>{var dD=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};gy.exports=dD});var so=R((d7,my)=>{var gD="2.0.0",mD=Number.MAX_SAFE_INTEGER||9007199254740991,yD=16,vD=250,AD=["major","premajor","minor","preminor","patch","prepatch","prerelease"];my.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:yD,MAX_SAFE_BUILD_LENGTH:vD,MAX_SAFE_INTEGER:mD,RELEASE_TYPES:AD,SEMVER_SPEC_VERSION:gD,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ki=R((Br,yy)=>{var{MAX_SAFE_COMPONENT_LENGTH:xf,MAX_SAFE_BUILD_LENGTH:ED,MAX_LENGTH:bD}=so(),wD=io();Br=yy.exports={};var SD=Br.re=[],CD=Br.safeRe=[],oe=Br.src=[],xD=Br.safeSrc=[],ae=Br.t={},OD=0,Of="[a-zA-Z0-9-]",_D=[["\\s",1],["\\d",bD],[Of,ED]],PD=e=>{for(let[t,r]of _D)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Se=(e,t,r)=>{let n=PD(t),i=OD++;wD(e,i,t),ae[e]=i,oe[i]=t,xD[i]=n,SD[i]=new RegExp(t,r?"g":void 0),CD[i]=new RegExp(n,r?"g":void 0)};Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Of}*`);Se("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${oe[ae.NUMERICIDENTIFIER]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NUMERICIDENTIFIERLOOSE]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${Of}+`);Se("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);Se("FULL",`^${oe[ae.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);Se("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${xf}})(?:\\.(\\d{1,${xf}}))?(?:\\.(\\d{1,${xf}}))?`);Se("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",oe[ae.COERCE],!0);Se("COERCERTLFULL",oe[ae.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);Br.tildeTrimReplace="$1~";Se("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);Br.caretTrimReplace="$1^";Se("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);Br.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Za=R((g7,vy)=>{var RD=Object.freeze({loose:!0}),FD=Object.freeze({}),DD=e=>e?typeof e!="object"?RD:e:FD;vy.exports=DD});var _f=R((m7,by)=>{var Ay=/^[0-9]+$/,Ey=(e,t)=>{let r=Ay.test(e),n=Ay.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},LD=(e,t)=>Ey(t,e);by.exports={compareIdentifiers:Ey,rcompareIdentifiers:LD}});var gt=R((y7,xy)=>{var eu=io(),{MAX_LENGTH:wy,MAX_SAFE_INTEGER:tu}=so(),{safeRe:Sy,safeSrc:Cy,t:ru}=Ki(),kD=Za(),{compareIdentifiers:Xi}=_f(),Pf=class e{constructor(t,r){if(r=kD(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>wy)throw new TypeError(`version is longer than ${wy} characters`);eu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Sy[ru.LOOSE]:Sy[ru.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>tu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>tu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>tu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<tu)return s}return i}):this.prerelease=[],this.build=n[5]?n[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(t){if(eu("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Xi(this.major,t.major)||Xi(this.minor,t.minor)||Xi(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(eu("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xi(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(eu("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xi(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=new RegExp(`^${this.options.loose?Cy[ru.PRERELEASELOOSE]:Cy[ru.PRERELEASE]}$`),s=`-${r}`.match(i);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Xi(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};xy.exports=Pf});var mi=R((v7,_y)=>{var Oy=gt(),TD=(e,t,r=!1)=>{if(e instanceof Oy)return e;try{return new Oy(e,t)}catch(n){if(!r)return null;throw n}};_y.exports=TD});var nu=R((A7,Py)=>{var ID=mi(),ND=(e,t)=>{let r=ID(e,t);return r?r.version:null};Py.exports=ND});var iu=R((E7,Df)=>{var Fn=Sf(),{validate:$D}=Cf(),Rf=class{},Ff=class{},MD=nu(),jD=(e,t,r)=>{let n=MD(r);if(!n)return!1;e[t]=n},BD=Fn.typeDefs.path.validate,WD=(e,t,r)=>typeof r!="string"?!1:BD(e,t,r);Df.exports={...Fn.typeDefs,semver:{type:Ff,validate:jD,description:"full valid SemVer string"},Umask:{type:Rf,validate:$D,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Fn.typeDefs.url,description:'full url with "http://"'},path:{...Fn.typeDefs.path,validate:WD,description:"valid filesystem path"},Number:{...Fn.typeDefs.Number,description:"numeric value"},Boolean:{...Fn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Fn.typeDefs.Date,description:"valid Date string"}};Fn.typeDefs=Df.exports});var Dy=R((b7,Fy)=>{var{URL:Ry}=require("node:url");Fy.exports=e=>{let t=new Ry(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new Ry(".",r);return`//${n.host}${n.pathname}`}});var Lf=R((w7,Ly)=>{var qD=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Ly.exports=(e,t)=>e.replace(qD,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var Iy=R((S7,Ty)=>{var Ji=iu(),GD=Lf(),{resolve:ky}=require("node:path"),{parse:UD}=Cf(),kf=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,c=new Set([].concat(s[t])),u=c.has(Ji.path.type),f=c.has(Ji.Boolean.type),l=u||c.has(Ji.String.type),h=c.has(Ji.Umask.type),p=c.has(Ji.Number.type),d=!n&&c.has(Array),y=c.has(Ji.Date.type);if(Array.isArray(e))return d?e.map(m=>kf(m,t,r,!0)):e;if(e=e.trim(),d)return kf(e.split(`
3
+ `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=an(s.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>an(u).length>=an(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of s){let f=e[u];if(f&&Array.isArray(f))for(let l of f)a+=an(`${u}${c}`).padEnd(o," ")+n+an(l)+r;else f&&typeof f=="object"?i.push(u):a+=an(u).padEnd(o," ")+n+an(f)+r}t.section&&a.length&&(a="["+an(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of i){let f=oy(u,".").join("\\."),l=(t.section?t.section+".":"")+f,h=wf(e[u],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function oy(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var sy=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let u of o){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.match(s);if(!f)continue;if(f[1]!==void 0){if(i=Za(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=Za(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let d=h&&l.endsWith("[]")?l.slice(0,-2):l;if(d==="__proto__")continue;let p=f[3]?Za(f[4]):!0,y=p==="true"||p==="false"||p==="null"?JSON.parse(p):p;h&&(bf.call(n,d)?Array.isArray(n[d])||(n[d]=[n[d]]):n[d]=[]),Array.isArray(n[d])?n[d].push(y):n[d]=y}let c=[];for(let u of Object.keys(r)){if(!bf.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=oy(u,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let d of f)d!=="__proto__"&&((!bf.call(n,d)||typeof n[d]!="object")&&(n[d]=Object.create(null)),n=n[d]);n===r&&h===l||(n[h]=r[u],c.push(u))}for(let u of c)delete r[u];return r},ay=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),an=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&ay(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Za=e=>{if(e=(e||"").trim(),ay(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};uy.exports={parse:sy,decode:sy,stringify:wf,encode:wf,safe:an,unsafe:Za}});var ly=R((xY,cy)=>{cy.exports=cD;function cD(...e){let t=e.length===1||Array.isArray(e[0])?e[0]:e;for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(lD);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",c=!0,u=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(c=c&&h===a.charAt(f),u=u&&h===n.charAt(f),!c&&!u){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function lD(e,t){return e===t?0:e>t?1:-1}});var Cf=R((OY,fy)=>{fy.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var Of=R((PY,gy)=>{var hy=require("url"),xf=require("path"),dy=require("stream").Stream,fD=require("os"),py=Cf();function hD(e,t,r){e[t]=String(r)}function dD(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=fD.homedir();return s&&r.match(i)?e[t]=xf.resolve(s,r.slice(2)):e[t]=xf.resolve(r),!0}function pD(e,t,r){if(py("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function gD(e,t,r){let n=Date.parse(r);if(py("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function mD(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function yD(e,t,r){if(r=hy.parse(String(r)),!r.host)return!1;e[t]=r.href}function vD(e,t,r){if(!(r instanceof dy))return!1;e[t]=r}gy.exports={String:{type:String,validate:hD},Boolean:{type:Boolean,validate:mD},url:{type:hy,validate:yD},Number:{type:Number,validate:pD},path:{type:xf,validate:dD},Stream:{type:dy,validate:vD},Date:{type:Date,validate:gD},Array:{type:Array}}});var Sy=R((_Y,wy)=>{var eu=ly(),$e=Cf(),AD=Of(),yy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),vy=(e,{types:t,dynamicTypes:r})=>{let n=yy(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},Vi=(e,t)=>t&&e===t,Br=(e,t)=>t&&e.indexOf(t)!==-1,ED=(e,t)=>t&&!Br(e,t);function bD(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:c}={}){$e(t,r,e,n);let u={},f={remain:[],cooked:e,original:e.slice(0)};return Ey(e,u,f.remain,{typeDefs:n,types:t,dynamicTypes:c,shorthands:r,unknownHandler:s,abbrevHandler:o}),Ay(u,{types:t,dynamicTypes:c,typeDefs:n,invalidHandler:i,typeDefault:a}),u.argv=f,Object.defineProperty(u.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),u}function Ay(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,c=r.Array?.type,u=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),c&&s.push(c));let h={};Object.keys(e).forEach(d=>{if(d==="argv")return;let p=e[d];$e("val=%j",p);let y=Array.isArray(p),[m,O]=vy(d,{types:t,dynamicTypes:n}),S=O;y||(p=[p]),S||(S=s),Vi(S,c)&&(S=s.concat(c)),Array.isArray(S)||(S=[S]),$e("val=%j",p),$e("types=",S),p=p.map(k=>{if(typeof k=="string"&&($e("string %j",k),k=k.trim(),k==="null"&&~S.indexOf(null)||k==="true"&&(~S.indexOf(!0)||Br(S,u))||k==="false"&&(~S.indexOf(!1)||Br(S,u))?(k=JSON.parse(k),$e("jsonable %j",k)):Br(S,a)&&!isNaN(k)?($e("convert to number",k),k=+k):Br(S,f)&&!isNaN(Date.parse(k))&&($e("convert to date",k),k=new Date(k))),!m){if(!l)return k;O=s}k===!1&&~S.indexOf(null)&&!(~S.indexOf(!1)||Br(S,u))&&(k=null);let F={};return F[d]=k,$e("prevalidated val",F,k,O),Pf(F,d,k,O,{typeDefs:r})?($e("validated v",F,k,O),F[d]):(i?i(d,k,O,e):i!==!1&&$e("invalid: "+d+"="+k,O),h)}).filter(k=>k!==h),!p.length&&ED(S,c)?($e("VAL HAS NO LENGTH, DELETE IT",p,d,S.indexOf(c)),delete e[d]):y?($e(y,e[d],p),e[d]=p):e[d]=p[0],$e("k=%s val=%j",d,p,e[d])})}function Pf(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let c=0,u=n.length;c<u;c++)if(!Vi(n[c],s)&&Pf(e,t,r,n[c],{typeDefs:i}))return!0;return delete e[t],!1}if(Vi(n,s))return!0;if(n!==n)return $e("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return $e("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let c=0,u=a.length;c<u;c++){$e("test type %j %j %j",t,r,a[c]);let f=i[a[c]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return $e("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function Ey(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:c}={}){let u=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;$e("parse",e,t,r);let d=eu(Object.keys(n));$e("abbrevs=%j",d);let p=eu(Object.keys(s));for(let y=0;y<e.length;y++){let m=e[y];if($e("arg",m),m.match(/^-{2,}$/)){r.push.apply(r,e.slice(y+1)),e[y]="--";break}let O=!1;if(m.charAt(0)==="-"&&m.length>1){let S=m.indexOf("=");if(S>-1){O=!0;let v=m.slice(S+1);m=m.slice(0,S),e.splice(y,1,m,v)}let k=by(m,p,d,{shorthands:s,abbrevHandler:c});if($e("arg=%j shRes=%j",m,k),k&&(e.splice.apply(e,[y,1].concat(k)),m!==k[0])){y--;continue}m=m.replace(/^-+/,"");let F=null;for(;m.toLowerCase().indexOf("no-")===0;)F=!F,m=m.slice(3);d[m]&&d[m]!==m&&(c?c(m,d[m]):c!==!1&&$e(`abbrev: ${m} -> ${d[m]}`),m=d[m]);let[b,P]=vy(m,{types:n,dynamicTypes:o}),L=Array.isArray(P);L&&P.length===1&&(L=!1,P=P[0]);let D=Vi(P,l)||L&&Br(P,l);!b&&yy(t,m)&&(Array.isArray(t[m])||(t[m]=[t[m]]),D=!0);let N,x=e[y+1],g=typeof F=="boolean"||Vi(P,h)||L&&Br(P,h)||typeof P>"u"&&!O||x==="false"&&(P===null||L&&~P.indexOf(null));if(typeof P>"u"){let v=!O&&x&&!x?.startsWith("-")&&!["true","false"].includes(x);a?v?a(m,x):a(m):a!==!1&&($e(`unknown: ${m}`),v&&$e(`unknown: ${x} parsed as normal opt`))}if(g){N=!F,(x==="true"||x==="false")&&(N=JSON.parse(x),x=null,F&&(N=!N),y++),L&&x&&(~P.indexOf(x)?(N=x,y++):x==="null"&&~P.indexOf(null)?(N=null,y++):!x.match(/^-{2,}[^-]/)&&!isNaN(x)&&Br(P,f)?(N=+x,y++):!x.match(/^-[^-]/)&&Br(P,u)&&(N=x,y++)),D?(t[m]=t[m]||[]).push(N):t[m]=N;continue}Vi(P,u)&&(x===void 0?x="":x.match(/^-{1,2}[^-]+/)&&(x="",y--)),x&&x.match(/^-{2,}$/)&&(x=void 0,y--),N=x===void 0?!0:x,D?(t[m]=t[m]||[]).push(N):t[m]=N,y++;continue}r.push(m)}}var my=Symbol("singles"),wD=(e,t)=>{let r=t[my];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[my]=r,$e("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function by(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??eu(Object.keys(i)),o=t[1]??eu(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=wD(e,i);return a?a.map(c=>i[c]).reduce((c,u)=>c.concat(u),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&$e(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}wy.exports={nopt:bD,clean:Ay,parse:Ey,validate:Pf,resolveShort:by,typeDefs:AD}});var Rf=R((tr,Cy)=>{var _f=Sy(),SD=Of();Cy.exports=tr=CD;tr.clean=xD;tr.typeDefs=SD;tr.lib=_f;function CD(e,t,r=process.argv,n=2){return _f.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:tr.typeDefs,invalidHandler:tr.invalidHandler,unknownHandler:tr.unknownHandler,abbrevHandler:tr.abbrevHandler})}function xD(e,t,r=tr.typeDefs){return _f.clean(e,{types:t||{},typeDefs:r,invalidHandler:tr.invalidHandler,unknownHandler:tr.unknownHandler,abbrevHandler:tr.abbrevHandler})}});var no=R((RY,xy)=>{var OD=Symbol("proc-log.meta");xy.exports={META:OD,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Ff=R((FY,Py)=>{var Oy=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}else{if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e}},PD=(e,t,r)=>{try{return e[t]=Oy(r),!0}catch{return!1}};Py.exports={parse:Oy,validate:PD}});var io=R((DY,_y)=>{var _D=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};_y.exports=_D});var so=R((LY,Ry)=>{var RD="2.0.0",FD=Number.MAX_SAFE_INTEGER||9007199254740991,DD=16,LD=250,kD=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ry.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:DD,MAX_SAFE_BUILD_LENGTH:LD,MAX_SAFE_INTEGER:FD,RELEASE_TYPES:kD,SEMVER_SPEC_VERSION:RD,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ki=R((Wr,Fy)=>{var{MAX_SAFE_COMPONENT_LENGTH:Df,MAX_SAFE_BUILD_LENGTH:TD,MAX_LENGTH:ID}=so(),ND=io();Wr=Fy.exports={};var $D=Wr.re=[],MD=Wr.safeRe=[],oe=Wr.src=[],jD=Wr.safeSrc=[],ae=Wr.t={},BD=0,Lf="[a-zA-Z0-9-]",WD=[["\\s",1],["\\d",ID],[Lf,TD]],qD=e=>{for(let[t,r]of WD)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Se=(e,t,r)=>{let n=qD(t),i=BD++;ND(e,i,t),ae[e]=i,oe[i]=t,jD[i]=n,$D[i]=new RegExp(t,r?"g":void 0),MD[i]=new RegExp(n,r?"g":void 0)};Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Lf}*`);Se("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${oe[ae.NUMERICIDENTIFIER]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NUMERICIDENTIFIERLOOSE]}|${oe[ae.NONNUMERICIDENTIFIER]})`);Se("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${Lf}+`);Se("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);Se("FULL",`^${oe[ae.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);Se("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Df}})(?:\\.(\\d{1,${Df}}))?(?:\\.(\\d{1,${Df}}))?`);Se("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",oe[ae.COERCE],!0);Se("COERCERTLFULL",oe[ae.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);Wr.tildeTrimReplace="$1~";Se("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);Wr.caretTrimReplace="$1^";Se("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);Wr.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var tu=R((kY,Dy)=>{var GD=Object.freeze({loose:!0}),UD=Object.freeze({}),HD=e=>e?typeof e!="object"?GD:e:UD;Dy.exports=HD});var kf=R((TY,Ty)=>{var Ly=/^[0-9]+$/,ky=(e,t)=>{let r=Ly.test(e),n=Ly.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},zD=(e,t)=>ky(t,e);Ty.exports={compareIdentifiers:ky,rcompareIdentifiers:zD}});var gt=R((IY,My)=>{var ru=io(),{MAX_LENGTH:Iy,MAX_SAFE_INTEGER:nu}=so(),{safeRe:Ny,safeSrc:$y,t:iu}=Ki(),YD=tu(),{compareIdentifiers:Xi}=kf(),Tf=class e{constructor(t,r){if(r=YD(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Iy)throw new TypeError(`version is longer than ${Iy} characters`);ru("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Ny[iu.LOOSE]:Ny[iu.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>nu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>nu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>nu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<nu)return s}return i}):this.prerelease=[],this.build=n[5]?n[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(t){if(ru("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Xi(this.major,t.major)||Xi(this.minor,t.minor)||Xi(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(ru("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xi(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(ru("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Xi(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=new RegExp(`^${this.options.loose?$y[iu.PRERELEASELOOSE]:$y[iu.PRERELEASE]}$`),s=`-${r}`.match(i);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Xi(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};My.exports=Tf});var mi=R((NY,By)=>{var jy=gt(),VD=(e,t,r=!1)=>{if(e instanceof jy)return e;try{return new jy(e,t)}catch(n){if(!r)return null;throw n}};By.exports=VD});var su=R(($Y,Wy)=>{var KD=mi(),XD=(e,t)=>{let r=KD(e,t);return r?r.version:null};Wy.exports=XD});var ou=R((MY,$f)=>{var Fn=Rf(),{validate:JD}=Ff(),If=class{},Nf=class{},QD=su(),ZD=(e,t,r)=>{let n=QD(r);if(!n)return!1;e[t]=n},eL=Fn.typeDefs.path.validate,tL=(e,t,r)=>typeof r!="string"?!1:eL(e,t,r);$f.exports={...Fn.typeDefs,semver:{type:Nf,validate:ZD,description:"full valid SemVer string"},Umask:{type:If,validate:JD,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Fn.typeDefs.url,description:'full url with "http://"'},path:{...Fn.typeDefs.path,validate:tL,description:"valid filesystem path"},Number:{...Fn.typeDefs.Number,description:"numeric value"},Boolean:{...Fn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Fn.typeDefs.Date,description:"valid Date string"}};Fn.typeDefs=$f.exports});var Uy=R((jY,Gy)=>{var{URL:qy}=require("node:url");Gy.exports=e=>{let t=new qy(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new qy(".",r);return`//${n.host}${n.pathname}`}});var Mf=R((BY,Hy)=>{var rL=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Hy.exports=(e,t)=>e.replace(rL,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var Vy=R((WY,Yy)=>{var Ji=ou(),nL=Mf(),{resolve:zy}=require("node:path"),{parse:iL}=Ff(),jf=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,c=new Set([].concat(s[t])),u=c.has(Ji.path.type),f=c.has(Ji.Boolean.type),l=u||c.has(Ji.String.type),h=c.has(Ji.Umask.type),d=c.has(Ji.Number.type),p=!n&&c.has(Array),y=c.has(Ji.Date.type);if(Array.isArray(e))return p?e.map(m=>jf(m,t,r,!0)):e;if(e=e.trim(),p)return jf(e.split(`
4
4
 
5
- `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!u&&!p)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=GD(e,a),y)return new Date(e);if(u&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=ky(o,e.slice(2)):e=ky(e)),h)try{return UD(e)}catch{return e}return p&&!isNaN(e)&&(e=+e),e};Ty.exports=kf});var jy=R((C7,My)=>{var HD=(e,t)=>!/^[/@_]/.test(e)&&typeof Tf(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Tf=e=>Array.isArray(e)?e.map(t=>Tf(t)).join(`
5
+ `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!u&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=nL(e,a),y)return new Date(e);if(u&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=zy(o,e.slice(2)):e=zy(e)),h)try{return iL(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};Yy.exports=jf});var Qy=R((qY,Jy)=>{var sL=(e,t)=>!/^[/@_]/.test(e)&&typeof Bf(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Bf=e=>Array.isArray(e)?e.map(t=>Bf(t)).join(`
6
6
 
7
- `):e==null||e===!1?"":typeof e=="object"?null:String(e),Ny=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:zD(e,t),zD=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},$y=(e,t,r)=>{let n=Tf(r),i=HD(t,n);i&&n!==null&&(e[i]=n)},YD=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let c in i){let{deprecated:u,envExport:f=!0}=n[c]||{};u||f===!1||(Ny(r[c],i[c])?Ny(s[c],i[c])||$y(t,c,i[c]):a.has(c)&&!o.has(c)||$y(t,c,i[c]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};My.exports=YD});var Wy=R((x7,By)=>{"use strict";var If=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};By.exports={ErrInvalidAuth:If}});var Uy=R((O7,Gy)=>{var VD=iu(),qy=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>qy(t));for(let{type:t,description:r}of Object.values(VD))if(t===e)return r||t;return e};Gy.exports=e=>[].concat(qy(e)).filter(t=>t!==void 0)});var $f=R((_7,Vy)=>{"use strict";var KD=Symbol.for("indent"),XD=Symbol.for("newline"),JD=`
8
- `,QD=" ",ZD=/^\uFEFF/,eL=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,tL=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,Hy=/^Unexpected token '?(.)'?(,)? /i,rL=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},zy=e=>String(e).replace(ZD,""),Nf=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),nL=(e,t,r=20)=>{let n=e.message;if(!t)return Nf(n,"empty string");let i=n.match(Hy),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(Hy,`Unexpected token ${JSON.stringify(i[1])} (${rL(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Nf(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,c=o+r>=t.length?t.length:o+r,u=`${a?"...":""}${t.slice(a,c)}${c===t.length?"":"..."}`;return Nf(n,`${t===u?"":"near "}${JSON.stringify(u)}`,o)},su=class extends SyntaxError{constructor(t,r,n,i){let s=nL(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},Yy=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(tL)||e.match(eL)||[null,"",""];r[XD]=n[1]??JD,r[KD]=n[2]??QD}return r},ou=(e,t,r)=>{let n=zy(e);try{return Yy(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new su(i,n,r,ou)}};Vy.exports=ou;ou.JSONParseError=su;ou.noExceptions=(e,t)=>{try{return Yy(zy(e),t)}catch{}}});var Jy=R((P7,Xy)=>{var Mf=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),iL=e=>{for(let t of Mf)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},Ky=({content:e,originalContent:t})=>{let r=iL({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of Mf)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};Ky.knownKeys=Mf;Xy.exports=Ky});var Zy=R((R7,Qy)=>{var sL=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};Qy.exports=sL});var tv=R((F7,ev)=>{var oL=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};ev.exports=oL});var jf=R((D7,rv)=>{var aL=mi(),uL=(e,t)=>{let r=aL(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};rv.exports=uL});var cu=R(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.LRUCache=void 0;var Qi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,iv=new Set,Bf=typeof process=="object"&&process?process:{},sv=(e,t,r,n)=>{typeof Bf.emitWarning=="function"?Bf.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},au=globalThis.AbortController,nv=globalThis.AbortSignal;if(typeof au>"u"){nv=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},au=class{constructor(){t()}signal=new nv;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=Bf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,sv("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",t))}}var cL=e=>!iv.has(e),T7=Symbol("type"),Dn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),ov=e=>Dn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Zi:null:null,Zi=class extends Array{constructor(t){super(t),this.fill(0)}},Wf=class e{heap;length;static#e=!1;static create(t){let r=ov(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},qf=class e{#e;#r;#t;#n;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#a;#u;#s;#y;#v;#d;#p;#S;#m;#C;#x;#E;#b;#w;#g;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#E,sizes:t.#C,keyMap:t.#a,keyList:t.#u,valList:t.#s,next:t.#y,prev:t.#v,get head(){return t.#d},get tail(){return t.#p},free:t.#S,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,n,i,s)=>t.#M(r,n,i,s),moveToTail:r=>t.#B(r),indexes:r=>t.#_(r),rindexes:r=>t.#P(r),isStale:r=>t.#A(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#t}get disposeAfter(){return this.#n}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:f,noDisposeOnSet:l,noUpdateTTL:h,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:y,fetchMethod:m,memoMethod:O,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:b,ignoreFetchAbort:_}=t;if(r!==0&&!Dn(r))throw new TypeError("max option must be a nonnegative integer");let L=r?ov(r):Array;if(!L)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=d||this.#r,this.sizeCalculation=y,this.sizeCalculation){if(!this.#r&&!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(O!==void 0&&typeof O!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=O,m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=m,this.#w=!!m,this.#a=new Map,this.#u=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new L(r),this.#v=new L(r),this.#d=0,this.#p=0,this.#S=Wf.create(r),this.#c=0,this.#l=0,typeof u=="function"&&(this.#t=u),typeof f=="function"?(this.#n=f,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#b=!!this.#t,this.#g=!!this.#n,this.noDisposeOnSet=!!l,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!F,this.allowStaleOnFetchAbort=!!b,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#r!==0&&!Dn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Dn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Dn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!Dn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let D="LRU_CACHE_UNBOUNDED";cL(D)&&(iv.add(D),sv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,e))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#R(){let t=new Zi(this.#e),r=new Zi(this.#e);this.#E=t,this.#x=r,this.#L=(s,o,a=Qi.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#A(s)&&this.#D(this.#u[s],"expire")},o+1);c.unref&&c.unref()}},this.#O=s=>{r[s]=t[s]!==0?Qi.now():0},this.#i=(s,o)=>{if(t[o]){let a=t[o],c=r[o];if(!a||!c)return;s.ttl=a,s.start=c,s.now=n||i();let u=s.now-c;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Qi.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],c=r[o];if(!a||!c)return 1/0;let u=(n||i())-c;return a-u},this.#A=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#O=()=>{};#i=()=>{};#L=()=>{};#A=()=>!1;#F(){let t=new Zi(this.#e);this.#l=0,this.#C=t,this.#k=r=>{this.#l-=t[r],t[r]=0},this.#I=(r,n,i,s)=>{if(this.#f(n))return 0;if(!Dn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Dn(i))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 i},this.#T=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#l>s;)this.#$(!0)}this.#l+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#k=t=>{};#T=(t,r,n)=>{};#I=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#_({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#p;!(!this.#N(r)||((t||!this.#A(r))&&(yield r),r===this.#d));)r=this.#v[r]}*#P({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#d;!(!this.#N(r)||((t||!this.#A(r))&&(yield r),r===this.#p));)r=this.#y[r]}#N(t){return t!==void 0&&this.#a.get(this.#u[t])===t}*entries(){for(let t of this.#_())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*rentries(){for(let t of this.#P())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*keys(){for(let t of this.#_()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*rkeys(){for(let t of this.#P()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*values(){for(let t of this.#_())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}*rvalues(){for(let t of this.#P())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#_()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#u[n],this))return this.get(this.#u[n],r)}}forEach(t,r=this){for(let n of this.#_()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}rforEach(t,r=this){for(let n of this.#P()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}purgeStale(){let t=!1;for(let r of this.#P({allowStale:!0}))this.#A(r)&&(this.#D(this.#u[r],"expire"),t=!0);return t}info(t){let r=this.#a.get(t);if(r===void 0)return;let n=this.#s[r],i=this.#f(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#E&&this.#x){let o=this.#E[r],a=this.#x[r];if(o&&a){let c=o-(Qi.now()-a);s.ttl=c,s.start=Date.now()}}return this.#C&&(s.size=this.#C[r]),s}dump(){let t=[];for(let r of this.#_({allowStale:!0})){let n=this.#u[r],i=this.#s[r],s=this.#f(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#E&&this.#x){o.ttl=this.#E[r];let a=Qi.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#C&&(o.size=this.#C[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Qi.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,f=this.#I(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let l=this.#c===0?void 0:this.#a.get(t);if(l===void 0)l=this.#c===0?this.#p:this.#S.length!==0?this.#S.pop():this.#c===this.#e?this.#$(!1):this.#c,this.#u[l]=t,this.#s[l]=r,this.#a.set(t,l),this.#y[this.#p]=l,this.#v[l]=this.#p,this.#p=l,this.#c++,this.#T(l,f,c),c&&(c.set="add"),u=!1;else{this.#B(l);let h=this.#s[l];if(r!==h){if(this.#w&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!o&&(this.#b&&this.#t?.(p,t,"set"),this.#g&&this.#m?.push([p,t,"set"]))}else o||(this.#b&&this.#t?.(h,t,"set"),this.#g&&this.#m?.push([h,t,"set"]));if(this.#k(l),this.#T(l,f,c),this.#s[l]=r,c){c.set="replace";let p=h&&this.#f(h)?h.__staleWhileFetching:h;p!==void 0&&(c.oldValue=p)}}else c&&(c.set="update")}if(i!==0&&!this.#E&&this.#R(),this.#E&&(u||this.#L(l,i,s),c&&this.#i(c,l)),!o&&this.#g&&this.#m){let h=this.#m,p;for(;p=h?.shift();)this.#n?.(...p)}return this}pop(){try{for(;this.#c;){let t=this.#s[this.#d];if(this.#$(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#m){let t=this.#m,r;for(;r=t?.shift();)this.#n?.(...r)}}}#$(t){let r=this.#d,n=this.#u[r],i=this.#s[r];return this.#w&&this.#f(i)?i.__abortController.abort(new Error("evicted")):(this.#b||this.#g)&&(this.#b&&this.#t?.(i,n,"evict"),this.#g&&this.#m?.push([i,n,"evict"])),this.#k(r),t&&(this.#u[r]=void 0,this.#s[r]=void 0,this.#S.push(r)),this.#c===1?(this.#d=this.#p=0,this.#S.length=0):this.#d=this.#y[r],this.#a.delete(n),this.#c--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#A(s))i&&(i.has="stale",this.#i(i,s));else return n&&this.#O(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i===void 0||!n&&this.#A(i))return;let s=this.#s[i];return this.#f(s)?s.__staleWhileFetching:s}#M(t,r,n,i){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new au,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:i},u=(y,m=!1)=>{let{aborted:O}=o.signal,S=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(O&&!m?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),O&&!S&&!m)return l(o.signal.reason);let k=p;return this.#s[r]===p&&(y===void 0?k.__staleWhileFetching?this.#s[r]=k.__staleWhileFetching:this.#D(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,y,c.options))),y},f=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),l(y)),l=y=>{let{aborted:m}=o.signal,O=m&&n.allowStaleOnFetchAbort,S=O||n.allowStaleOnFetchRejection,k=S||n.noDeleteOnFetchRejection,F=p;if(this.#s[r]===p&&(!k||F.__staleWhileFetching===void 0?this.#D(t,"fetch"):O||(this.#s[r]=F.__staleWhileFetching)),S)return n.status&&F.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),F.__staleWhileFetching;if(F.__returned===F)throw y},h=(y,m)=>{let O=this.#o?.(t,s,c);O&&O instanceof Promise&&O.then(S=>y(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(u,f),d=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,d,{...c.options,status:void 0}),r=this.#a.get(t)):this.#s[r]=d,d}#f(t){if(!this.#w)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof au}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:y,forceRefresh:m=!1,status:O,signal:S}=r;if(!this.#w)return O&&(O.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:O});let k={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:O,signal:S},F=this.#a.get(t);if(F===void 0){O&&(O.fetch="miss");let b=this.#M(t,F,k,y);return b.__returned=b}else{let b=this.#s[F];if(this.#f(b)){let x=n&&b.__staleWhileFetching!==void 0;return O&&(O.fetch="inflight",x&&(O.returnedStale=!0)),x?b.__staleWhileFetching:b.__returned=b}let _=this.#A(F);if(!m&&!_)return O&&(O.fetch="hit"),this.#B(F),i&&this.#O(F),O&&this.#i(O,F),b;let L=this.#M(t,F,k,y),N=L.__staleWhileFetching!==void 0&&n;return O&&(O.fetch=_?"stale":"refresh",N&&_&&(O.returnedStale=!0)),N?L.__staleWhileFetching:L.__returned=L}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#h;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let c=n(t,a,{options:o,context:i});return this.set(t,c,o),c}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let c=this.#s[a],u=this.#f(c);return o&&this.#i(o,a),this.#A(a)?(o&&(o.get="stale"),u?(o&&n&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?c.__staleWhileFetching:void 0):(s||this.#D(t,"expire"),o&&n&&(o.returnedStale=!0),n?c:void 0)):(o&&(o.get="hit"),u?c.__staleWhileFetching:(this.#B(a),i&&this.#O(a),c))}else o&&(o.get="miss")}#j(t,r){this.#v[r]=t,this.#y[t]=r}#B(t){t!==this.#p&&(t===this.#d?this.#d=this.#y[t]:this.#j(this.#v[t],this.#y[t]),this.#j(this.#p,t),this.#p=t)}delete(t){return this.#D(t,"delete")}#D(t,r){let n=!1;if(this.#c!==0){let i=this.#a.get(t);if(i!==void 0)if(n=!0,this.#c===1)this.#W(r);else{this.#k(i);let s=this.#s[i];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#b||this.#g)&&(this.#b&&this.#t?.(s,t,r),this.#g&&this.#m?.push([s,t,r])),this.#a.delete(t),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#p)this.#p=this.#v[i];else if(i===this.#d)this.#d=this.#y[i];else{let o=this.#v[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#v[a]=this.#v[i]}this.#c--,this.#S.push(i)}}if(this.#g&&this.#m?.length){let i=this.#m,s;for(;s=i?.shift();)this.#n?.(...s)}return n}clear(){return this.#W("delete")}#W(t){for(let r of this.#P({allowStale:!0})){let n=this.#s[r];if(this.#f(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#u[r];this.#b&&this.#t?.(n,i,t),this.#g&&this.#m?.push([n,i,t])}}if(this.#a.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#E&&this.#x&&(this.#E.fill(0),this.#x.fill(0)),this.#C&&this.#C.fill(0),this.#d=0,this.#p=0,this.#S.length=0,this.#l=0,this.#c=0,this.#g&&this.#m){let r=this.#m,n;for(;n=r?.shift();)this.#n?.(...n)}}};uu.LRUCache=qf});var cv=R((N7,uv)=>{"use strict";var Le=(...e)=>e.every(t=>t)?e.join(""):"",Ze=e=>e?encodeURIComponent(e):"",av=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),lL={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${Le("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${Le("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${Le("/",n,"/",Ze(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Ze(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${Le("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${Le("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:av},Ln={};Ln.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${Le(e,"@")}raw.githubusercontent.com/${t}/${r}/${Ze(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Ze(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};Ln.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Ze(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};Ln.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Ze(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};Ln.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${Le("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${Le("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${Le("/",Ze(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${Le("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${Le("/",Ze(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${Le("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${Le("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${Le("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Ze(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+av(e)}};Ln.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Ze(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${Le("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Ze(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(Ln))Ln[e]=Object.assign({},lL,t);uv.exports=Ln});var Uf=R(($7,fv)=>{var fL=require("url"),Gf=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},lv=e=>{try{return new fL.URL(e)}catch{}},hL=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},pL=e=>{let t=Gf(e,"@","#"),r=Gf(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Gf(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};fv.exports=(e,t)=>{let r=t?hL(e,t):e;return lv(r)||lv(pL(r))}});var pv=R((M7,hv)=>{"use strict";var dL=Uf(),gL=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,c=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),p=!e.startsWith(".");return a&&l&&h&&p&&c&&u&&f};hv.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=gL(e)?`github:${e}`:e,s=dL(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],c=o||a;if(!c)return;let u=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,p=null,d=null;try{if(o){let y=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,m=y.indexOf("@");m>-1&&(y=y.slice(m+1));let O=y.lastIndexOf("/");O>-1?(h=decodeURIComponent(y.slice(0,O)),h||(h=null),p=decodeURIComponent(y.slice(O+1))):p=decodeURIComponent(y),p.endsWith(".git")&&(p=p.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),d="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let y=u.extract(s);if(!y)return;h=y.user&&decodeURIComponent(y.user),p=decodeURIComponent(y.project),l=decodeURIComponent(y.committish),d=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[c,h,f,p,l,d,t]}});var fu=R((j7,dv)=>{"use strict";var{LRUCache:mL}=cu(),yL=cv(),vL=pv(),AL=Uf(),Hf=new mL({max:1e3}),lu=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"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(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Hf.has(n)){let i=vL(t,r,{gitHosts:e.#e,protocols:e.#r});Hf.set(n,i?new e(...i):void 0)}return Hf.get(n)}static parseUrl(t){return AL(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(yL))lu.addHost(e,t);dv.exports=lu});var Av=R((B7,vv)=>{"use strict";vv.exports=mv;function mv(e,t,r){e instanceof RegExp&&(e=gv(e,r)),t instanceof RegExp&&(t=gv(t,r));var n=yv(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function gv(e,t){var r=t.match(e);return r?r[0]:null}mv.range=yv;function yv(e,t,r){var n,i,s,o,a,c=r.indexOf(e),u=r.indexOf(t,c+1),f=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],s=r.length;f>=0&&!a;)f==c?(n.push(f),c=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),u]:(i=n.pop(),i<s&&(s=i,o=u),u=r.indexOf(t,f+1)),f=c<u&&c>=0?c:u;n.length&&(a=[s,o])}return a}});var _v=R((W7,Ov)=>{var Ev=Av();Ov.exports=wL;var bv="\0SLASH"+Math.random()+"\0",wv="\0OPEN"+Math.random()+"\0",Yf="\0CLOSE"+Math.random()+"\0",Sv="\0COMMA"+Math.random()+"\0",Cv="\0PERIOD"+Math.random()+"\0";function zf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function EL(e){return e.split("\\\\").join(bv).split("\\{").join(wv).split("\\}").join(Yf).split("\\,").join(Sv).split("\\.").join(Cv)}function bL(e){return e.split(bv).join("\\").split(wv).join("{").split(Yf).join("}").split(Sv).join(",").split(Cv).join(".")}function xv(e){if(!e)return[""];var t=[],r=Ev("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=xv(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function wL(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),oo(EL(e),!0).map(bL)):[]}function SL(e){return"{"+e+"}"}function CL(e){return/^-?0\d/.test(e)}function xL(e,t){return e<=t}function OL(e,t){return e>=t}function oo(e,t){var r=[],n=Ev("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?oo(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=c||u,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+Yf+n.post,oo(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=xv(n.body),h.length===1&&(h=oo(h[0],!1).map(SL),h.length===1))return s.map(function(x){return n.pre+h[0]+x});var p;if(f){var d=zf(h[0]),y=zf(h[1]),m=Math.max(h[0].length,h[1].length),O=h.length==3?Math.abs(zf(h[2])):1,S=xL,k=y<d;k&&(O*=-1,S=OL);var F=h.some(CL);p=[];for(var b=d;S(b,y);b+=O){var _;if(u)_=String.fromCharCode(b),_==="\\"&&(_="");else if(_=String(b),F){var L=m-_.length;if(L>0){var D=new Array(L+1).join("0");b<0?_="-"+D+_.slice(1):_=D+_}}p.push(_)}}else{p=[];for(var N=0;N<h.length;N++)p.push.apply(p,oo(h[N],!1))}for(var N=0;N<p.length;N++)for(var o=0;o<s.length;o++){var a=i+p[N]+s[o];(!t||f||a)&&r.push(a)}}return r}});var Pv=R(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.assertValidPattern=void 0;var _L=1024*64,PL=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>_L)throw new TypeError("pattern is too long")};hu.assertValidPattern=PL});var Fv=R(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.parseClass=void 0;var RL={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ao=e=>e.replace(/[[\]\\-]/g,"\\$&"),FL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rv=e=>e.join(""),DL=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,c=!1,u=!1,f=r,l="";e:for(;s<e.length;){let y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){u=!0,s++;continue}if(y==="]"&&o&&!c){f=s+1;break}if(o=!0,y==="\\"&&!c){c=!0,s++;continue}if(y==="["&&!c){for(let[m,[O,S,k]]of Object.entries(RL))if(e.startsWith(m,s)){if(l)return["$.",!1,e.length-r,!0];s+=m.length,k?i.push(O):n.push(O),a=a||S;continue e}}if(c=!1,l){y>l?n.push(ao(l)+"-"+ao(y)):y===l&&n.push(ao(y)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(ao(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=y,s+=2;continue}n.push(ao(y)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let y=n[0].length===2?n[0].slice(-1):n[0];return[FL(y),!1,f-r,!1]}let h="["+(u?"^":"")+Rv(n)+"]",p="["+(u?"":"^")+Rv(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,a,f-r,!0]};pu.parseClass=DL});var gu=R(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.unescape=void 0;var LL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");du.unescape=LL});var Xf=R(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.AST=void 0;var kL=Fv(),mu=gu(),TL=new Set(["!","?","+","*","@"]),Dv=e=>TL.has(e),IL="(?!(?:^|/)\\.\\.?(?:$|/))",yu="(?!\\.)",NL=new Set(["[","."]),$L=new Set(["..","."]),ML=new Set("().*{}+?[]^$\\!"),jL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kf="[^/]",Lv=Kf+"*?",kv=Kf+"+?",Vf=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#c;#l=!1;#a;#u;#s=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#c=this.#e===this?[]:this.#e.#c,t==="!"&&!this.#e.#l&&this.#c.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#u=this.#n.map(t=>String(t)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#v(t,r,n,i){let s=!1,o=!1,a=-1,c=!1;if(r.type===null){let p=n,d="";for(;p<t.length;){let y=t.charAt(p++);if(s||y==="\\"){s=!s,d+=y;continue}if(o){p===a+1?(y==="^"||y==="!")&&(c=!0):y==="]"&&!(p===a+2&&c)&&(o=!1),d+=y;continue}else if(y==="["){o=!0,a=p,c=!1,d+=y;continue}if(!i.noext&&Dv(y)&&t.charAt(p)==="("){r.push(d),d="";let m=new e(y,r);p=e.#v(t,m,p,i),r.push(m);continue}d+=y}return r.push(d),p}let u=n+1,f=new e(null,r),l=[],h="";for(;u<t.length;){let p=t.charAt(u++);if(s||p==="\\"){s=!s,h+=p;continue}if(o){u===a+1?(p==="^"||p==="!")&&(c=!0):p==="]"&&!(u===a+2&&c)&&(o=!1),h+=p;continue}else if(p==="["){o=!0,a=u,c=!1,h+=p;continue}if(Dv(p)&&t.charAt(u)==="("){f.push(h),h="";let d=new e(p,f);f.push(d),u=e.#v(t,d,u,i);continue}if(p==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(p===")")return h===""&&r.#n.length===0&&(r.#s=!0),f.push(h),h="",r.push(...l,f),u;h+=p}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],u}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#v(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#y(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#n.map(p=>{let[d,y,m,O]=typeof p=="string"?e.#p(p,this.#r,c):p.toRegExpSource(t);return this.#r=this.#r||m,this.#t=this.#t||O,d}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&$L.has(this.#n[0]))){let d=NL,y=r&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),m=!r&&!t&&d.has(u.charAt(0));f=y?IL:m?yu:""}let l="";return this.isEnd()&&this.#e.#l&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+u+l,(0,mu.unescape)(u),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#d(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let c=this.toString();return this.#n=[c],this.type=null,this.#r=void 0,[c,(0,mu.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!yu?"":this.#d(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?yu:"")+kv;else{let c=this.type==="!"?"))"+(this.isStart()&&!r&&!t?yu:"")+Lv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+c}return[a,(0,mu.unescape)(s),this.#r=!!this.#r,this.#t]}#d(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#p(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,s+=(ML.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[u,f,l,h]=(0,kL.parseClass)(t,a);if(l){s+=u,o=o||f,a+=l-1,r=r||h;continue}}if(c==="*"){n&&t==="*"?s+=kv:s+=Lv,r=!0;continue}if(c==="?"){s+=Kf,r=!0;continue}s+=jL(c)}return[s,(0,mu.unescape)(t),!!r,o]}};vu.AST=Vf});var Jf=R(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.escape=void 0;var BL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");Au.escape=BL});var an=R(fe=>{"use strict";var WL=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.unescape=fe.escape=fe.AST=fe.Minimatch=fe.match=fe.makeRe=fe.braceExpand=fe.defaults=fe.filter=fe.GLOBSTAR=fe.sep=fe.minimatch=void 0;var qL=WL(_v()),Eu=Pv(),Nv=Xf(),GL=Jf(),UL=gu(),HL=(e,t,r={})=>((0,Eu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new yi(t,r).match(e));fe.minimatch=HL;var zL=/^\*+([^+@!?\*\[\(]*)$/,YL=e=>t=>!t.startsWith(".")&&t.endsWith(e),VL=e=>t=>t.endsWith(e),KL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),XL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),JL=/^\*+\.\*+$/,QL=e=>!e.startsWith(".")&&e.includes("."),ZL=e=>e!=="."&&e!==".."&&e.includes("."),ek=/^\.\*+$/,tk=e=>e!=="."&&e!==".."&&e.startsWith("."),rk=/^\*+$/,nk=e=>e.length!==0&&!e.startsWith("."),ik=e=>e.length!==0&&e!=="."&&e!=="..",sk=/^\?+([^+@!?\*\[\(]*)?$/,ok=([e,t=""])=>{let r=$v([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},ak=([e,t=""])=>{let r=Mv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},uk=([e,t=""])=>{let r=Mv([e]);return t?n=>r(n)&&n.endsWith(t):r},ck=([e,t=""])=>{let r=$v([e]);return t?n=>r(n)&&n.endsWith(t):r},$v=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},Mv=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},jv=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Tv={win32:{sep:"\\"},posix:{sep:"/"}};fe.sep=jv==="win32"?Tv.win32.sep:Tv.posix.sep;fe.minimatch.sep=fe.sep;fe.GLOBSTAR=Symbol("globstar **");fe.minimatch.GLOBSTAR=fe.GLOBSTAR;var lk="[^/]",fk=lk+"*?",hk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pk="(?:(?!(?:\\/|^)\\.).)*?",dk=(e,t={})=>r=>(0,fe.minimatch)(r,e,t);fe.filter=dk;fe.minimatch.filter=fe.filter;var lr=(e,t={})=>Object.assign({},e,t),gk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return fe.minimatch;let t=fe.minimatch;return Object.assign((n,i,s={})=>t(n,i,lr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,lr(e,s))}static defaults(i){return t.defaults(lr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,lr(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,lr(e,s))}},unescape:(n,i={})=>t.unescape(n,lr(e,i)),escape:(n,i={})=>t.escape(n,lr(e,i)),filter:(n,i={})=>t.filter(n,lr(e,i)),defaults:n=>t.defaults(lr(e,n)),makeRe:(n,i={})=>t.makeRe(n,lr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,lr(e,i)),match:(n,i,s={})=>t.match(n,i,lr(e,s)),sep:t.sep,GLOBSTAR:fe.GLOBSTAR})};fe.defaults=gk;fe.minimatch.defaults=fe.defaults;var mk=(e,t={})=>((0,Eu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,qL.default)(e));fe.braceExpand=mk;fe.minimatch.braceExpand=fe.braceExpand;var yk=(e,t={})=>new yi(e,t).makeRe();fe.makeRe=yk;fe.minimatch.makeRe=fe.makeRe;var vk=(e,t,r={})=>{let n=new yi(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};fe.match=vk;fe.minimatch.match=fe.match;var Iv=/[?*]|[+@!]\(.*?\)|\[|\]/,Ak=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yi=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,Eu.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||jv,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=s[0]===""&&s[1]===""&&(s[2]==="?"||!Iv.test(s[2]))&&!Iv.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],c=n[i+2],u=n[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let c=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...c),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),O=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!O&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),k=m?3:y?0:void 0,F=S?3:O?0:void 0;if(typeof k=="number"&&typeof F=="number"){let[b,_]=[t[k],r[F]];b.toLowerCase()===_.toLowerCase()&&(r[F]=b,F>k?r=r.slice(F):k>F&&(t=t.slice(k)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,c=t.length,u=r.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===fe.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,p=a+1;if(p===u){for(this.debug("** at the end");o<c;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<c;){var d=t[h];if(this.debug(`
9
- globstar while`,t,h,r,p,d),this.matchOne(t.slice(h),r.slice(p),n))return this.debug("globstar found match!",h,c,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,h,r,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(n&&(this.debug(`
10
- >>> no match, partial?`,t,h,r,p),h===c))}let y;if(typeof f=="string"?(y=l===f,this.debug("string match",f,l,y)):(y=f.test(l),this.debug("pattern match",f,l,y)),!y)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,fe.braceExpand)(this.pattern,this.options)}parse(t){(0,Eu.assertValidPattern)(t);let r=this.options;if(t==="**")return fe.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(rk))?i=r.dot?ik:nk:(n=t.match(zL))?i=(r.nocase?r.dot?XL:KL:r.dot?VL:YL)(n[1]):(n=t.match(sk))?i=(r.nocase?r.dot?ak:ok:r.dot?uk:ck)(n):(n=t.match(JL))?i=r.dot?ZL:QL:(n=t.match(ek))&&(i=tk);let s=Nv.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?fk:r.dot?hk:pk,i=new Set(r.nocase?["i"]:[]),s=t.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let l of f.flags.split(""))i.add(l);return typeof f=="string"?Ak(f):f===fe.GLOBSTAR?fe.GLOBSTAR:f._src});return u.forEach((f,l)=>{let h=u[l+1],p=u[l-1];f!==fe.GLOBSTAR||p===fe.GLOBSTAR||(p===void 0?h!==void 0&&h!==fe.GLOBSTAR?u[l+1]="(?:\\/|"+n+"\\/)?"+h:u[l]=n:h===void 0?u[l-1]=p+"(?:\\/|"+n+")?":h!==fe.GLOBSTAR&&(u[l-1]=p+"(?:\\/|\\/"+n+"\\/)"+h,u[l+1]=fe.GLOBSTAR))}),u.filter(f=>f!==fe.GLOBSTAR).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let c=s[a],u=i;if(n.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return fe.minimatch.defaults(t).Minimatch}};fe.Minimatch=yi;var Ek=Xf();Object.defineProperty(fe,"AST",{enumerable:!0,get:function(){return Ek.AST}});var bk=Jf();Object.defineProperty(fe,"escape",{enumerable:!0,get:function(){return bk.escape}});var wk=gu();Object.defineProperty(fe,"unescape",{enumerable:!0,get:function(){return wk.unescape}});fe.minimatch.AST=Nv.AST;fe.minimatch.Minimatch=yi;fe.minimatch.escape=GL.escape;fe.minimatch.unescape=UL.unescape});var sh=R(Lt=>{"use strict";var Sk=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Minipass=Lt.isWritable=Lt.isReadable=Lt.isStream=void 0;var Bv=typeof process=="object"&&process?process:{stdout:null,stderr:null},ih=require("node:events"),Uv=Sk(require("node:stream")),Ck=require("node:string_decoder"),xk=e=>!!e&&typeof e=="object"&&(e instanceof _u||e instanceof Uv.default||(0,Lt.isReadable)(e)||(0,Lt.isWritable)(e));Lt.isStream=xk;var Ok=e=>!!e&&typeof e=="object"&&e instanceof ih.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==Uv.default.Writable.prototype.pipe;Lt.isReadable=Ok;var _k=e=>!!e&&typeof e=="object"&&e instanceof ih.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";Lt.isWritable=_k;var un=Symbol("EOF"),cn=Symbol("maybeEmitEnd"),kn=Symbol("emittedEnd"),bu=Symbol("emittingEnd"),uo=Symbol("emittedError"),wu=Symbol("closed"),Wv=Symbol("read"),Su=Symbol("flush"),qv=Symbol("flushChunk"),Fr=Symbol("encoding"),es=Symbol("decoder"),at=Symbol("flowing"),co=Symbol("paused"),ts=Symbol("resume"),ut=Symbol("buffer"),Dt=Symbol("pipes"),ct=Symbol("bufferLength"),Qf=Symbol("bufferPush"),Cu=Symbol("bufferShift"),mt=Symbol("objectMode"),Xe=Symbol("destroyed"),Zf=Symbol("error"),eh=Symbol("emitData"),Gv=Symbol("emitEnd"),th=Symbol("emitEnd2"),Wr=Symbol("async"),rh=Symbol("abort"),xu=Symbol("aborted"),lo=Symbol("signal"),vi=Symbol("dataListeners"),tr=Symbol("discarded"),fo=e=>Promise.resolve().then(e),Pk=e=>e(),Rk=e=>e==="end"||e==="finish"||e==="prefinish",Fk=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Dk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Ou=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ts](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},nh=class extends Ou{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},Lk=e=>!!e.objectMode,kk=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",_u=class extends ih.EventEmitter{[at]=!1;[co]=!1;[Dt]=[];[ut]=[];[mt];[Fr];[Wr];[es];[un]=!1;[kn]=!1;[bu]=!1;[wu]=!1;[uo]=null;[ct]=0;[Xe]=!1;[lo];[xu]=!1;[vi]=0;[tr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Lk(r)?(this[mt]=!0,this[Fr]=null):kk(r)?(this[Fr]=r.encoding,this[mt]=!1):(this[mt]=!1,this[Fr]=null),this[Wr]=!!r.async,this[es]=this[Fr]?new Ck.StringDecoder(this[Fr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ut]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Dt]});let{signal:n}=r;n&&(this[lo]=n,n.aborted?this[rh]():n.addEventListener("abort",()=>this[rh]()))}get bufferLength(){return this[ct]}get encoding(){return this[Fr]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[mt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Wr]}set async(t){this[Wr]=this[Wr]||!!t}[rh](){this[xu]=!0,this.emit("abort",this[lo]?.reason),this.destroy(this[lo]?.reason)}get aborted(){return this[xu]}set aborted(t){}write(t,r,n){if(this[xu])return!1;if(this[un])throw new Error("write after end");if(this[Xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Wr]?fo:Pk;if(!this[mt]&&!Buffer.isBuffer(t)){if(Dk(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(Fk(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[mt]?(this[at]&&this[ct]!==0&&this[Su](!0),this[at]?this.emit("data",t):this[Qf](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):t.length?(typeof t=="string"&&!(r===this[Fr]&&!this[es]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Fr]&&(t=this[es].write(t)),this[at]&&this[ct]!==0&&this[Su](!0),this[at]?this.emit("data",t):this[Qf](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):(this[ct]!==0&&this.emit("readable"),n&&i(n),this[at])}read(t){if(this[Xe])return null;if(this[tr]=!1,this[ct]===0||t===0||t&&t>this[ct])return this[cn](),null;this[mt]&&(t=null),this[ut].length>1&&!this[mt]&&(this[ut]=[this[Fr]?this[ut].join(""):Buffer.concat(this[ut],this[ct])]);let r=this[Wv](t||null,this[ut][0]);return this[cn](),r}[Wv](t,r){if(this[mt])this[Cu]();else{let n=r;t===n.length||t===null?this[Cu]():typeof n=="string"?(this[ut][0]=n.slice(t),r=n.slice(0,t),this[ct]-=t):(this[ut][0]=n.subarray(t),r=n.subarray(0,t),this[ct]-=t)}return this.emit("data",r),!this[ut].length&&!this[un]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[un]=!0,this.writable=!1,(this[at]||!this[co])&&this[cn](),this}[ts](){this[Xe]||(!this[vi]&&!this[Dt].length&&(this[tr]=!0),this[co]=!1,this[at]=!0,this.emit("resume"),this[ut].length?this[Su]():this[un]?this[cn]():this.emit("drain"))}resume(){return this[ts]()}pause(){this[at]=!1,this[co]=!0,this[tr]=!1}get destroyed(){return this[Xe]}get flowing(){return this[at]}get paused(){return this[co]}[Qf](t){this[mt]?this[ct]+=1:this[ct]+=t.length,this[ut].push(t)}[Cu](){return this[mt]?this[ct]-=1:this[ct]-=this[ut][0].length,this[ut].shift()}[Su](t=!1){do;while(this[qv](this[Cu]())&&this[ut].length);!t&&!this[ut].length&&!this[un]&&this.emit("drain")}[qv](t){return this.emit("data",t),this[at]}pipe(t,r){if(this[Xe])return t;this[tr]=!1;let n=this[kn];return r=r||{},t===Bv.stdout||t===Bv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Dt].push(r.proxyErrors?new nh(this,t,r):new Ou(this,t,r)),this[Wr]?fo(()=>this[ts]()):this[ts]()),t}unpipe(t){let r=this[Dt].find(n=>n.dest===t);r&&(this[Dt].length===1?(this[at]&&this[vi]===0&&(this[at]=!1),this[Dt]=[]):this[Dt].splice(this[Dt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[tr]=!1,this[vi]++,!this[Dt].length&&!this[at]&&this[ts]();else if(t==="readable"&&this[ct]!==0)super.emit("readable");else if(Rk(t)&&this[kn])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[uo]){let i=r;this[Wr]?fo(()=>i.call(this,this[uo])):i.call(this,this[uo])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[vi]=this.listeners("data").length,this[vi]===0&&!this[tr]&&!this[Dt].length&&(this[at]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[vi]=0,!this[tr]&&!this[Dt].length&&(this[at]=!1)),r}get emittedEnd(){return this[kn]}[cn](){!this[bu]&&!this[kn]&&!this[Xe]&&this[ut].length===0&&this[un]&&(this[bu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[wu]&&this.emit("close"),this[bu]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Xe&&this[Xe])return!1;if(t==="data")return!this[mt]&&!n?!1:this[Wr]?(fo(()=>this[eh](n)),!0):this[eh](n);if(t==="end")return this[Gv]();if(t==="close"){if(this[wu]=!0,!this[kn]&&!this[Xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[uo]=n,super.emit(Zf,n);let s=!this[lo]||this.listeners("error").length?super.emit("error",n):!1;return this[cn](),s}else if(t==="resume"){let s=super.emit("resume");return this[cn](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[cn](),i}[eh](t){for(let n of this[Dt])n.dest.write(t)===!1&&this.pause();let r=this[tr]?!1:super.emit("data",t);return this[cn](),r}[Gv](){return this[kn]?!1:(this[kn]=!0,this.readable=!1,this[Wr]?(fo(()=>this[th]()),!0):this[th]())}[th](){if(this[es]){let r=this[es].end();if(r){for(let n of this[Dt])n.dest.write(r);this[tr]||super.emit("data",r)}}for(let r of this[Dt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[mt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[mt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[mt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Fr]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Xe,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[tr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[un])return r();let s,o,a=l=>{this.off("data",c),this.off("end",u),this.off(Xe,f),r(),o(l)},c=l=>{this.off("error",a),this.off("end",u),this.off(Xe,f),this.pause(),s({value:l,done:!!this[un]})},u=()=>{this.off("error",a),this.off("data",c),this.off(Xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Xe,f),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[tr]=!1;let t=!1,r=()=>(this.pause(),this.off(Zf,r),this.off(Xe,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(Zf,r),this.once(Xe,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Xe])return t?this.emit("error",t):this.emit(Xe),this;this[Xe]=!0,this[tr]=!0,this[ut].length=0,this[ct]=0;let r=this;return typeof r.close=="function"&&!this[wu]&&r.close(),t?this.emit("error",t):this.emit(Xe),this}static get isStream(){return Lt.isStream}};Lt.Minipass=_u});var sA=R(ke=>{"use strict";var Tk=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ik=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Nk=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Tk(t,e,r);return Ik(t,e),t};Object.defineProperty(ke,"__esModule",{value:!0});ke.PathScurry=ke.Path=ke.PathScurryDarwin=ke.PathScurryPosix=ke.PathScurryWin32=ke.PathScurryBase=ke.PathPosix=ke.PathWin32=ke.PathBase=ke.ChildrenCache=ke.ResolveCache=void 0;var Xv=cu(),Lu=require("node:path"),$k=require("node:url"),po=require("fs"),Mk=Nk(require("node:fs")),jk=po.realpathSync.native,Pu=require("node:fs/promises"),Hv=sh(),go={lstatSync:po.lstatSync,readdir:po.readdir,readdirSync:po.readdirSync,readlinkSync:po.readlinkSync,realpathSync:jk,promises:{lstat:Pu.lstat,readdir:Pu.readdir,readlink:Pu.readlink,realpath:Pu.realpath}},Jv=e=>!e||e===go||e===Mk?go:{...go,...e,promises:{...go.promises,...e.promises||{}}},Qv=/^\\\\\?\\([a-z]:)\\?$/i,Bk=e=>e.replace(/\//g,"\\").replace(Qv,"$1\\"),Wk=/[\\\/]/,hr=0,Zv=1,eA=2,qr=4,tA=6,rA=8,Ai=10,nA=12,fr=15,ho=~fr,oh=16,zv=32,mo=64,Dr=128,Ru=256,Du=512,Yv=mo|Dr|Du,qk=1023,ah=e=>e.isFile()?rA:e.isDirectory()?qr:e.isSymbolicLink()?Ai:e.isCharacterDevice()?eA:e.isBlockDevice()?tA:e.isSocket()?nA:e.isFIFO()?Zv:hr,Vv=new Map,yo=e=>{let t=Vv.get(e);if(t)return t;let r=e.normalize("NFKD");return Vv.set(e,r),r},Kv=new Map,Fu=e=>{let t=Kv.get(e);if(t)return t;let r=yo(e.toLowerCase());return Kv.set(e,r),r},vo=class extends Xv.LRUCache{constructor(){super({max:256})}};ke.ResolveCache=vo;var ku=class extends Xv.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};ke.ChildrenCache=ku;var iA=Symbol("PathScurry setAsCwd"),pt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#c;get rdev(){return this.#c}#l;get blksize(){return this.#l}#a;get ino(){return this.#a}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#v;get mtimeMs(){return this.#v}#d;get ctimeMs(){return this.#d}#p;get birthtimeMs(){return this.#p}#S;get atime(){return this.#S}#m;get mtime(){return this.#m}#C;get ctime(){return this.#C}#x;get birthtime(){return this.#x}#E;#b;#w;#g;#R;#O;#i;#L;#A;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=hr,n,i,s,o,a){this.name=t,this.#E=s?Fu(t):yo(t),this.#i=r&qk,this.nocase=s,this.roots=i,this.root=n||this,this.#L=o,this.#w=a.fullpath,this.#R=a.relative,this.#O=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=Jv(a.fs)}depth(){return this.#b!==void 0?this.#b:this.parent?this.#b=this.parent.depth()+1:this.#b=0}childrenCache(){return this.#L}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#k(i):this.#k(i)}#k(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#L.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~oh,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?Fu(t):yo(t);for(let c of n)if(c.#E===i)return c;let s=this.parent?this.sep:"",o=this.#w?this.#w+s+t:void 0,a=this.newChild(t,hr,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Dr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let t=this.name,r=this.parent;if(!r)return this.#R=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let t=this.name,r=this.parent;if(!r)return this.#O=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#w!==void 0)return this.#w;let t=this.name,r=this.parent;if(!r)return this.#w=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#w=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#g=n}isUnknown(){return(this.#i&fr)===hr}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&fr)===rA}isDirectory(){return(this.#i&fr)===qr}isCharacterDevice(){return(this.#i&fr)===eA}isBlockDevice(){return(this.#i&fr)===tA}isFIFO(){return(this.#i&fr)===Zv}isSocket(){return(this.#i&fr)===nA}isSymbolicLink(){return(this.#i&Ai)===Ai}lstatCached(){return this.#i&zv?this:void 0}readlinkCached(){return this.#A}realpathCached(){return this.#F}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#A)return!0;if(!this.parent)return!1;let t=this.#i&fr;return!(t!==hr&&t!==Ai||this.#i&Ru||this.#i&Dr)}calledReaddir(){return!!(this.#i&oh)}isENOENT(){return!!(this.#i&Dr)}isNamed(t){return this.nocase?this.#E===Fu(t):this.#E===yo(t)}async readlink(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}readlinkSync(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}#T(t){this.#i|=oh;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#I()}}#I(){this.#i&Dr||(this.#i=(this.#i|Dr)&ho,this.#_())}#_(){let t=this.children();t.provisional=0;for(let r of t)r.#I()}#P(){this.#i|=Du,this.#N()}#N(){if(this.#i&mo)return;let t=this.#i;(t&fr)===qr&&(t&=ho),this.#i=t|mo,this.#_()}#$(t=""){t==="ENOTDIR"||t==="EPERM"?this.#N():t==="ENOENT"?this.#I():this.children().provisional=0}#M(t=""){t==="ENOTDIR"?this.parent.#N():t==="ENOENT"&&this.#I()}#f(t=""){let r=this.#i;r|=Ru,t==="ENOENT"&&(r|=Dr),(t==="EINVAL"||t==="UNKNOWN")&&(r&=ho),this.#i=r,t==="ENOTDIR"&&this.parent&&this.parent.#N()}#j(t,r){return this.#D(t,r)||this.#B(t,r)}#B(t,r){let n=ah(t),i=this.newChild(t.name,n,{parent:this}),s=i.#i&fr;return s!==qr&&s!==Ai&&s!==hr&&(i.#i|=mo),r.unshift(i),r.provisional++,i}#D(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?Fu(t.name):yo(t.name))===i.#E)return this.#W(t,i,n,r)}}#W(t,r,n,i){let s=r.name;return r.#i=r.#i&ho|ah(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if(!(this.#i&Dr))try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#M(t.code)}}lstatSync(){if(!(this.#i&Dr))try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#M(t.code)}}#H(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:c,ctimeMs:u,dev:f,gid:l,ino:h,mode:p,mtime:d,mtimeMs:y,nlink:m,rdev:O,size:S,uid:k}=t;this.#S=r,this.#y=n,this.#x=i,this.#p=s,this.#l=o,this.#s=a,this.#C=c,this.#d=u,this.#r=f,this.#h=l,this.#a=h,this.#t=p,this.#m=d,this.#v=y,this.#n=m,this.#c=O,this.#u=S,this.#o=k;let F=ah(t);this.#i=this.#i&ho|F|zv,F!==hr&&F!==qr&&F!==Ai&&(this.#i|=mo)}#G=[];#U=!1;#z(t){this.#U=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#G.push(t),this.#U)return;this.#U=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#$(s.code),n.provisional=0;else{for(let a of o)this.#j(a,n);this.#T(n)}this.#z(n.slice(0,n.provisional))})}#q;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#q)await this.#q;else{let n=()=>{};this.#q=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(i,t);this.#T(t)}catch(i){this.#$(i.code),t.provisional=0}this.#q=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(n,t);this.#T(t)}catch(n){this.#$(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#i&Yv)return!1;let t=fr&this.#i;return t===hr||t===qr||t===Ai}shouldWalk(t,r){return(this.#i&qr)===qr&&!(this.#i&Yv)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#F)return this.#F;if(!((Du|Ru|Dr)&this.#i))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#F=this.resolve(t)}catch{this.#P()}}realpathSync(){if(this.#F)return this.#F;if(!((Du|Ru|Dr)&this.#i))try{let t=this.#e.realpathSync(this.fullpath());return this.#F=this.resolve(t)}catch{this.#P()}}[iA](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#R=n.join(this.sep),i.#O=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#R=void 0,i.#O=void 0,i=i.parent}};ke.PathBase=pt;var Ao=class e extends pt{sep="\\";splitSep=Wk;constructor(t,r=hr,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=hr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Lu.win32.parse(t).root}getRoot(t){if(t=Bk(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new wo(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(Qv,"$1\\"),t===r}};ke.PathWin32=Ao;var Eo=class e extends pt{splitSep="/";sep="/";constructor(t,r=hr,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=hr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};ke.PathPosix=Eo;var bo=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=go}={}){this.#n=Jv(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,$k.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new vo,this.#r=new vo,this.#t=new ku(s);let c=a.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let u=this.root,f=c.length-1,l=r.sep,h=this.rootPath,p=!1;for(let d of c){let y=f--;u=u.child(d,{relative:new Array(y).fill("..").join(l),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(p?"":l)+d}),p=!0}this.cwd=u}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set,u=(l,h)=>{c.add(l),l.readdirCB((p,d)=>{if(p)return h(p);let y=d.length;if(!y)return h();let m=()=>{--y===0&&h()};for(let O of d)(!s||s(O))&&a.push(n?O:O.fullpath()),i&&O.isSymbolicLink()?O.realpath().then(S=>S?.isUnknown()?S.lstat():S).then(S=>S?.shouldWalk(c,o)?u(S,m):m()):O.shouldWalk(c,o)?u(O,m):m()},!0)},f=t;return new Promise((l,h)=>{u(f,p=>{if(p)return h(p);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set([t]);for(let u of c){let f=u.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(c,o)&&c.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let c of a){let u=c.readdirSync();for(let f of u){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new Hv.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let c=new Set,u=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&a.end();return}f++,c.add(p);let d=(m,O,S=!1)=>{if(m)return a.emit("error",m);if(i&&!S){let k=[];for(let F of O)F.isSymbolicLink()&&k.push(F.realpath().then(b=>b?.isUnknown()?b.lstat():b));if(k.length){Promise.all(k).then(()=>d(null,O,!0));return}}for(let k of O)k&&(!s||s(k))&&(a.write(n?k:k.fullpath())||(h=!0));f--;for(let k of O){let F=k.realpathCached()||k;F.shouldWalk(c,o)&&u.push(F)}h&&!a.flowing?a.once("drain",l):y||l()},y=!0;p.readdirCB(d,!0),y=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof pt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new Hv.Minipass({objectMode:!0}),c=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let u=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&a.end();return}f++,c.add(p);let d=p.readdirSync();for(let y of d)(!s||s(y))&&(a.write(n?y:y.fullpath())||(h=!0));f--;for(let y of d){let m=y;if(y.isSymbolicLink()){if(!(i&&(m=y.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(c,o)&&u.push(m)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[iA](r)}};ke.PathScurryBase=bo;var wo=class extends bo{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,Lu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Lu.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ao(this.rootPath,qr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};ke.PathScurryWin32=wo;var So=class extends bo{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,Lu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new Eo(this.rootPath,qr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};ke.PathScurryPosix=So;var Tu=class extends So{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};ke.PathScurryDarwin=Tu;ke.Path=process.platform==="win32"?Ao:Eo;ke.PathScurry=process.platform==="win32"?wo:process.platform==="darwin"?Tu:So});var ch=R(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.Pattern=void 0;var Gk=an(),Uk=e=>e.length>=1,Hk=e=>e.length>=1,uh=class e{#e;#r;#t;length;#n;#o;#h;#c;#l;#a;#u=!0;constructor(t,r,n,i){if(!Uk(t))throw new TypeError("empty pattern list");if(!Hk(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,c,...u]=this.#e,[f,l,h,p,...d]=this.#r;u[0]===""&&(u.shift(),d.shift());let y=[s,o,a,c,""].join("/"),m=[f,l,h,p,""].join("/");this.#e=[y,...u],this.#r=[m,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...c]=this.#r;o[0]===""&&(o.shift(),c.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...c],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===Gk.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Iu.Pattern=uh});var fh=R(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.Ignore=void 0;var oA=an(),zk=ch(),Yk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",lh=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=Yk}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new oA.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new zk.Pattern(i,s,0,this.platform),a=new oA.Minimatch(o.globString(),this.mmopts),c=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};Nu.Ignore=lh});var uA=R(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Processor=Gr.SubWalks=Gr.MatchRecord=Gr.HasWalkedCache=void 0;var aA=an(),$u=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Gr.HasWalkedCache=$u;var Mu=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Gr.MatchRecord=Mu;var ju=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Gr.SubWalks=ju;var hh=class e{hasWalkedCache;matches=new Mu;subwalks=new ju;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new $u}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,u,f=!1;for(;typeof(c=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(c),s=u,f=!0;if(c=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof c=="string"){let l=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,l);continue}else if(c===aA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=u?.pattern(),h=u?.rest();if(!u||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else c instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),c=o.pattern(),u=o.rest();c===aA.GLOBSTAR?i.testGlobstar(s,o,u,a):c instanceof RegExp?i.testRegExp(s,c,u,a):i.testString(s,c,u,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};Gr.Processor=hh});var fA=R(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GlobStream=Tn.GlobWalker=Tn.GlobUtil=void 0;var Vk=sh(),cA=fh(),lA=uA(),Kk=(e,t)=>typeof e=="string"?new cA.Ignore([e],t):Array.isArray(e)?new cA.Ignore(e,t):e,Co=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=Kk(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new lA.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,n,o):a.readdirCB((u,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let[a,c]of n.subwalks.entries())s++,this.walkCB2(a,c,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new lA.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirSync();this.walkCB3Sync(a,c,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let[a,c]of n.subwalks.entries())s++,this.walkCB2Sync(a,c,n.child(),o);o()}};Tn.GlobUtil=Co;var ph=class extends Co{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Tn.GlobWalker=ph;var dh=class extends Co{results;constructor(t,r,n){super(t,r,n),this.results=new Vk.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Tn.GlobStream=dh});var mh=R(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.Glob=void 0;var Xk=an(),Jk=require("node:url"),Bu=sA(),Qk=ch(),Wu=fA(),Zk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gh=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,Jk.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=t,this.platform=r.platform||Zk,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=r.platform==="win32"?Bu.PathScurryWin32:r.platform==="darwin"?Bu.PathScurryDarwin:r.platform?Bu.PathScurryPosix:Bu.PathScurry;this.scurry=new c(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(c=>new Xk.Minimatch(c,i)),[o,a]=s.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=o.map((c,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new Qk.Pattern(c,f,0,this.platform)})}async walk(){return[...await new Wu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Wu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Wu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Wu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};qu.Glob=gh});var yh=R(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.hasMagic=void 0;var eT=an(),tT=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new eT.Minimatch(r,t).hasMagic())return!0;return!1};Gu.hasMagic=tT});var bh=R(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.glob=Pe.sync=Pe.iterate=Pe.iterateSync=Pe.stream=Pe.streamSync=Pe.Ignore=Pe.hasMagic=Pe.Glob=Pe.unescape=Pe.escape=void 0;Pe.globStreamSync=xo;Pe.globStream=vh;Pe.globSync=Ah;Pe.globIterateSync=Oo;Pe.globIterate=Eh;var hA=an(),Ei=mh(),rT=yh(),dA=an();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return dA.escape}});Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return dA.unescape}});var nT=mh();Object.defineProperty(Pe,"Glob",{enumerable:!0,get:function(){return nT.Glob}});var iT=yh();Object.defineProperty(Pe,"hasMagic",{enumerable:!0,get:function(){return iT.hasMagic}});var sT=fh();Object.defineProperty(Pe,"Ignore",{enumerable:!0,get:function(){return sT.Ignore}});function xo(e,t={}){return new Ei.Glob(e,t).streamSync()}function vh(e,t={}){return new Ei.Glob(e,t).stream()}function Ah(e,t={}){return new Ei.Glob(e,t).walkSync()}async function pA(e,t={}){return new Ei.Glob(e,t).walk()}function Oo(e,t={}){return new Ei.Glob(e,t).iterateSync()}function Eh(e,t={}){return new Ei.Glob(e,t).iterate()}Pe.streamSync=xo;Pe.stream=Object.assign(vh,{sync:xo});Pe.iterateSync=Oo;Pe.iterate=Object.assign(Eh,{sync:Oo});Pe.sync=Object.assign(Ah,{stream:xo,iterate:Oo});Pe.glob=Object.assign(pA,{glob:pA,globSync:Ah,sync:Pe.sync,globStream:vh,stream:Pe.stream,globStreamSync:xo,streamSync:Pe.streamSync,globIterate:Eh,iterate:Pe.iterate,globIterateSync:Oo,iterateSync:Pe.iterateSync,Glob:Ei.Glob,hasMagic:rT.hasMagic,escape:hA.escape,unescape:hA.unescape});Pe.glob.glob=Pe.glob});var mA=R(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.sync=rs.isexe=void 0;var oT=require("fs"),aT=require("fs/promises"),uT=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return gA(await(0,aT.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.isexe=uT;var cT=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return gA((0,oT.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.sync=cT;var gA=(e,t)=>e.isFile()&&lT(e,t),lT=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=u|f;return!!(o&l||o&f&&s.has(c)||o&u&&a===r||o&h&&r===0)}});var vA=R(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.sync=ns.isexe=void 0;var fT=require("fs"),hT=require("fs/promises"),pT=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return yA(await(0,hT.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.isexe=pT;var dT=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return yA((0,fT.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.sync=dT;var gT=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},yA=(e,t,r)=>e.isFile()&&gT(t,r)});var EA=R(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0})});var OA=R(nt=>{"use strict";var bA=nt&&nt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mT=nt&&nt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wA=nt&&nt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&bA(t,e,r);return mT(t,e),t},yT=nt&&nt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bA(t,e,r)};Object.defineProperty(nt,"__esModule",{value:!0});nt.sync=nt.isexe=nt.posix=nt.win32=void 0;var SA=wA(mA());nt.posix=SA;var CA=wA(vA());nt.win32=CA;yT(EA(),nt);var vT=process.env._ISEXE_TEST_PLATFORM_||process.platform,xA=vT==="win32"?CA:SA;nt.isexe=xA.isexe;nt.sync=xA.sync});var wh=R((c5,IA)=>{var{isexe:AT,sync:ET}=OA(),{join:bT,delimiter:wT,sep:_A,posix:PA}=require("path"),RA=process.platform==="win32",FA=new RegExp(`[${PA.sep}${_A===PA.sep?"":_A}]`.replace(/(\\)/g,"\\$1")),ST=new RegExp(`^\\.${FA.source}`),DA=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),LA=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=wT})=>{let i=e.match(FA)?[""]:[...RA?[process.cwd()]:[],...(t||"").split(n)];if(RA){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},kA=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&ST.test(t)?t.slice(0,2):"")+bT(r,t)},TA=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=LA(e,t),s=[];for(let o of r){let a=kA(o,e);for(let c of n){let u=a+c;if(await AT(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw DA(e)},CT=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=LA(e,t),s=[];for(let o of r){let a=kA(o,e);for(let c of n){let u=a+c;if(ET(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw DA(e)};IA.exports=TA;TA.sync=CT});var $A=R((l5,NA)=>{"use strict";var xT=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},OT=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";NA.exports={cmd:xT,sh:OT}});var qA=R((f5,WA)=>{"use strict";var{spawn:_T}=require("child_process"),PT=require("os"),RT=wh(),MA=$A(),Ch=(e,t,r={},n={})=>{if(r.shell)return BA(e,t,r,n);let i,s,o=new Promise((p,d)=>{i=p,s=d}),a=new Error("command failed"),c=[],u=[],f=p=>({cmd:e,args:t,...p,...DT(c,u,r),...n}),l=(p,d)=>{let y=f(d);s(Object.assign(p,y))},h=_T(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",p=>c.push(p)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",p=>u.push(p)),h.stderr.on("error",l)),h.on("close",(p,d)=>{p||d?l(a,{code:p,signal:d}):i(f({code:p,signal:d}))}),o},BA=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec:"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let u=!1,f="",l=!1;for(let p=0;p<e.length;++p){let d=e.charAt(p);if(d===" "&&!l)break;f+=d,(d==='"'||d==="'")&&(l=!l)}let h;try{h=RT.sync(f,{path:s.env&&jA(s.env,"PATH")||process.env.PATH,pathext:s.env&&jA(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}u=h.endsWith(".cmd")||h.endsWith(".bat");for(let p of t)a+=` ${MA.cmd(p,u)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let u of t)a+=` ${MA.sh(u)}`;o.push("-c",a)}return Ch(i,o,s,n)},FT=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&PT.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),BA(o,i,n,r)};Ch.open=FT;var Sh=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Sh(e[t],t):!1,DT=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Sh(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Sh(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},jA=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};WA.exports=Ch});var HA=R((h5,UA)=>{"use strict";function GA(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function LT(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return GA(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),GA(new i,r)}}UA.exports=LT});var YA=R((p5,zA)=>{function pr(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}zA.exports=pr;pr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};pr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};pr.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};pr.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};pr.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};pr.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};pr.prototype.start=pr.prototype.try;pr.prototype.errors=function(){return this._errors};pr.prototype.attempts=function(){return this._attempts};pr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var VA=R(bi=>{var kT=YA();bi.operation=function(e){var t=bi.timeouts(e);return new kT(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};bi.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};bi.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};bi.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(c){var u=bi.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){u.retry(h)||(h&&(arguments[0]=u.mainError()),l.apply(this,arguments))}),u.attempt(function(){c.apply(e,f)})}.bind(e,o),e[s].options=t}}});var XA=R((g5,KA)=>{KA.exports=VA()});var ZA=R((m5,QA)=>{"use strict";var TT=HA(),IT=XA(),NT=Object.prototype.hasOwnProperty;function JA(e){return e&&e.code==="EPROMISERETRY"&&NT.call(e,"retried")}function $T(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=IT.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw JA(a)&&(a=a.retried),TT(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){JA(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}QA.exports=$T});var Ph=R((y5,eE)=>{var _o=class extends Error{shouldRetry(){return!1}},xh=class extends _o{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Oh=class extends _o{constructor(){super("The git reference could not be found")}},_h=class extends _o{constructor(){super("An unknown git error occurred")}};eE.exports={GitConnectionError:xh,GitPathspecError:Oh,GitUnknownError:_h}});var rE=R((v5,tE)=>{var{GitConnectionError:MT,GitPathspecError:jT,GitUnknownError:BT}=Ph(),WT=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),qT=/pathspec .* did not match any file\(s\) known to git/;function GT(e){let t=e.stderr,r;return WT.test(t)?r=new MT(t):qT.test(t)?r=new jT(t):r=new BT(t),Object.assign(r,e)}tE.exports=GT});var oE=R((A5,Rh)=>{var nE=require("node:fs"),UT=require("node:os"),HT=require("node:path"),zT=yf(),iE=HT.join(UT.homedir(),".gitconfig"),Po=null,sE=()=>{if(Po===null)try{if(Po={},nE.existsSync(iE)){let e=nE.readFileSync(iE,"utf-8");Po=zT.parse(e)}}catch{Po={}}return Po},YT=()=>{let e=sE();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},VT=process.env.GIT_SSH_COMMAND!==void 0,KT=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:XT,askPassSetInConfig:JT}=YT(),QT={...KT||JT?{}:{GIT_ASKPASS:"echo"},...VT||XT?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Rh.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...QT,...process.env}});Rh.exports.loadGitConfig=sE});var uE=R((E5,aE)=>{var ZT=wh(),Fh;try{Fh=ZT.sync("git")}catch{}aE.exports=(e={})=>e.git?e.git:!Fh||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Fh});var Ro=R((b5,cE)=>{var eI=qA(),tI=ZA(),{log:rI}=no(),nI=rE(),iI=oE();cE.exports=(e,t={})=>{let n=uE()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),tI((o,a)=>(a!==1&&rI.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),eI(n,i,iI(t)).catch(c=>{let u=nI(c);if(!u.shouldRetry(a))throw u;o(u)})),s)}});var hE=R((w5,fE)=>{var lE=gt(),sI=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new lE(e instanceof lE?e.version:e,r).inc(t,n,i).version}catch{return null}};fE.exports=sI});var gE=R((S5,dE)=>{var pE=mi(),oI=(e,t)=>{let r=pE(e,null,!0),n=pE(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=c?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};dE.exports=oI});var yE=R((C5,mE)=>{var aI=gt(),uI=(e,t)=>new aI(e,t).major;mE.exports=uI});var AE=R((x5,vE)=>{var cI=gt(),lI=(e,t)=>new cI(e,t).minor;vE.exports=lI});var bE=R((O5,EE)=>{var fI=gt(),hI=(e,t)=>new fI(e,t).patch;EE.exports=hI});var SE=R((_5,wE)=>{var pI=mi(),dI=(e,t)=>{let r=pI(e,t);return r&&r.prerelease.length?r.prerelease:null};wE.exports=dI});var dr=R((P5,xE)=>{var CE=gt(),gI=(e,t,r)=>new CE(e,r).compare(new CE(t,r));xE.exports=gI});var _E=R((R5,OE)=>{var mI=dr(),yI=(e,t,r)=>mI(t,e,r);OE.exports=yI});var RE=R((F5,PE)=>{var vI=dr(),AI=(e,t)=>vI(e,t,!0);PE.exports=AI});var Uu=R((D5,DE)=>{var FE=gt(),EI=(e,t,r)=>{let n=new FE(e,r),i=new FE(t,r);return n.compare(i)||n.compareBuild(i)};DE.exports=EI});var kE=R((L5,LE)=>{var bI=Uu(),wI=(e,t)=>e.sort((r,n)=>bI(r,n,t));LE.exports=wI});var IE=R((k5,TE)=>{var SI=Uu(),CI=(e,t)=>e.sort((r,n)=>SI(n,r,t));TE.exports=CI});var Fo=R((T5,NE)=>{var xI=dr(),OI=(e,t,r)=>xI(e,t,r)>0;NE.exports=OI});var Hu=R((I5,$E)=>{var _I=dr(),PI=(e,t,r)=>_I(e,t,r)<0;$E.exports=PI});var Dh=R((N5,ME)=>{var RI=dr(),FI=(e,t,r)=>RI(e,t,r)===0;ME.exports=FI});var Lh=R(($5,jE)=>{var DI=dr(),LI=(e,t,r)=>DI(e,t,r)!==0;jE.exports=LI});var zu=R((M5,BE)=>{var kI=dr(),TI=(e,t,r)=>kI(e,t,r)>=0;BE.exports=TI});var Yu=R((j5,WE)=>{var II=dr(),NI=(e,t,r)=>II(e,t,r)<=0;WE.exports=NI});var kh=R((B5,qE)=>{var $I=Dh(),MI=Lh(),jI=Fo(),BI=zu(),WI=Hu(),qI=Yu(),GI=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return $I(e,r,n);case"!=":return MI(e,r,n);case">":return jI(e,r,n);case">=":return BI(e,r,n);case"<":return WI(e,r,n);case"<=":return qI(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};qE.exports=GI});var UE=R((W5,GE)=>{var UI=gt(),HI=mi(),{safeRe:Vu,t:Ku}=Ki(),zI=(e,t)=>{if(e instanceof UI)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Vu[Ku.COERCEFULL]:Vu[Ku.COERCE]);else{let c=t.includePrerelease?Vu[Ku.COERCERTLFULL]:Vu[Ku.COERCERTL],u;for(;(u=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return HI(`${n}.${i}.${s}${o}${a}`,t)};GE.exports=zI});var zE=R((q5,HE)=>{var Th=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};HE.exports=Th});var gr=R((G5,XE)=>{var YI=/\s+/g,Ih=class e{constructor(t,r){if(r=KI(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Nh)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(YI," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!VE(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&rN(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&eN)|(this.options.loose&&tN))+":"+t,i=YE.get(n);if(i)return i;let s=this.options.loose,o=s?Mt[kt.HYPHENRANGELOOSE]:Mt[kt.HYPHENRANGE];t=t.replace(o,hN(this.options.includePrerelease)),Ge("hyphen replace",t),t=t.replace(Mt[kt.COMPARATORTRIM],JI),Ge("comparator trim",t),t=t.replace(Mt[kt.TILDETRIM],QI),Ge("tilde trim",t),t=t.replace(Mt[kt.CARETTRIM],ZI),Ge("caret trim",t);let a=t.split(" ").map(l=>nN(l,this.options)).join(" ").split(/\s+/).map(l=>fN(l,this.options));s&&(a=a.filter(l=>(Ge("loose invalid filter",l,this.options),!!l.match(Mt[kt.COMPARATORLOOSE])))),Ge("range list",a);let c=new Map,u=a.map(l=>new Nh(l,this.options));for(let l of u){if(VE(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return YE.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>KE(n,r)&&t.set.some(i=>KE(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new XI(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(pN(this.set[r],t,this.options))return!0;return!1}};XE.exports=Ih;var VI=zE(),YE=new VI,KI=Za(),Nh=Do(),Ge=io(),XI=gt(),{safeRe:Mt,t:kt,comparatorTrimReplace:JI,tildeTrimReplace:QI,caretTrimReplace:ZI}=Ki(),{FLAG_INCLUDE_PRERELEASE:eN,FLAG_LOOSE:tN}=so(),VE=e=>e.value==="<0.0.0-0",rN=e=>e.value==="",KE=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},nN=(e,t)=>(Ge("comp",e,t),e=oN(e,t),Ge("caret",e),e=iN(e,t),Ge("tildes",e),e=uN(e,t),Ge("xrange",e),e=lN(e,t),Ge("stars",e),e),Tt=e=>!e||e.toLowerCase()==="x"||e==="*",iN=(e,t)=>e.trim().split(/\s+/).map(r=>sN(r,t)).join(" "),sN=(e,t)=>{let r=t.loose?Mt[kt.TILDELOOSE]:Mt[kt.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ge("tilde",e,n,i,s,o,a);let c;return Tt(i)?c="":Tt(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Tt(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ge("replaceTilde pr",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ge("tilde return",c),c})},oN=(e,t)=>e.trim().split(/\s+/).map(r=>aN(r,t)).join(" "),aN=(e,t)=>{Ge("caret",e,t);let r=t.loose?Mt[kt.CARETLOOSE]:Mt[kt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,c)=>{Ge("caret",e,i,s,o,a,c);let u;return Tt(s)?u="":Tt(o)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Tt(a)?s==="0"?u=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(Ge("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Ge("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ge("caret return",u),u})},uN=(e,t)=>(Ge("replaceXRanges",e,t),e.split(/\s+/).map(r=>cN(r,t)).join(" ")),cN=(e,t)=>{e=e.trim();let r=t.loose?Mt[kt.XRANGELOOSE]:Mt[kt.XRANGE];return e.replace(r,(n,i,s,o,a,c)=>{Ge("xRange",e,n,i,s,o,a,c);let u=Tt(s),f=u||Tt(o),l=f||Tt(a),h=l;return i==="="&&h&&(i=""),c=t.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):f?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Ge("xRange return",n),n})},lN=(e,t)=>(Ge("replaceStars",e,t),e.trim().replace(Mt[kt.STAR],"")),fN=(e,t)=>(Ge("replaceGTE0",e,t),e.trim().replace(Mt[t.includePrerelease?kt.GTE0PRE:kt.GTE0],"")),hN=e=>(t,r,n,i,s,o,a,c,u,f,l,h)=>(Tt(n)?r="":Tt(i)?r=`>=${n}.0.0${e?"-0":""}`:Tt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Tt(u)?c="":Tt(f)?c=`<${+u+1}.0.0-0`:Tt(l)?c=`<${u}.${+f+1}.0-0`:h?c=`<=${u}.${f}.${l}-${h}`:e?c=`<${u}.${f}.${+l+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),pN=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ge(e[n].semver),e[n].semver!==Nh.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Do=R((U5,rb)=>{var Lo=Symbol("SemVer ANY"),jh=class e{static get ANY(){return Lo}constructor(t,r){if(r=JE(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Mh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Lo?this.value="":this.value=this.operator+this.semver.version,Mh("comp",this)}parse(t){let r=this.options.loose?QE[ZE.COMPARATORLOOSE]:QE[ZE.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new eb(n[2],this.options.loose):this.semver=Lo}toString(){return this.value}test(t){if(Mh("Comparator.test",t,this.options.loose),this.semver===Lo||t===Lo)return!0;if(typeof t=="string")try{t=new eb(t,this.options)}catch{return!1}return $h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new tb(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new tb(this.value,r).test(t.semver):(r=JE(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||$h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||$h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};rb.exports=jh;var JE=Za(),{safeRe:QE,t:ZE}=Ki(),$h=kh(),Mh=io(),eb=gt(),tb=gr()});var is=R((H5,nb)=>{var dN=gr(),gN=(e,t,r)=>{try{t=new dN(t,r)}catch{return!1}return t.test(e)};nb.exports=gN});var sb=R((z5,ib)=>{var mN=gr(),yN=(e,t)=>new mN(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));ib.exports=yN});var ab=R((Y5,ob)=>{var vN=gt(),AN=gr(),EN=(e,t,r)=>{let n=null,i=null,s=null;try{s=new AN(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new vN(n,r))}),n};ob.exports=EN});var cb=R((V5,ub)=>{var bN=gt(),wN=gr(),SN=(e,t,r)=>{let n=null,i=null,s=null;try{s=new wN(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new bN(n,r))}),n};ub.exports=SN});var hb=R((K5,fb)=>{var Bh=gt(),CN=gr(),lb=Fo(),xN=(e,t)=>{e=new CN(e,t);let r=new Bh("0.0.0");if(e.test(r)||(r=new Bh("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new Bh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||lb(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||lb(r,s))&&(r=s)}return r&&e.test(r)?r:null};fb.exports=xN});var Wh=R((X5,pb)=>{var ON=gr(),_N=(e,t)=>{try{return new ON(e,t).range||"*"}catch{return null}};pb.exports=_N});var Xu=R((J5,yb)=>{var PN=gt(),mb=Do(),{ANY:RN}=mb,FN=gr(),DN=is(),db=Fo(),gb=Hu(),LN=Yu(),kN=zu(),TN=(e,t,r,n)=>{e=new PN(e,n),t=new FN(t,n);let i,s,o,a,c;switch(r){case">":i=db,s=LN,o=gb,a=">",c=">=";break;case"<":i=gb,s=kN,o=db,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(DN(e,t,n))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],l=null,h=null;if(f.forEach(p=>{p.semver===RN&&(p=new mb(">=0.0.0")),l=l||p,h=h||p,i(p.semver,l.semver,n)?l=p:o(p.semver,h.semver,n)&&(h=p)}),l.operator===a||l.operator===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};yb.exports=TN});var Ab=R((Q5,vb)=>{var IN=Xu(),NN=(e,t,r)=>IN(e,t,">",r);vb.exports=NN});var bb=R((Z5,Eb)=>{var $N=Xu(),MN=(e,t,r)=>$N(e,t,"<",r);Eb.exports=MN});var Cb=R((eV,Sb)=>{var wb=gr(),jN=(e,t,r)=>(e=new wb(e,r),t=new wb(t,r),e.intersects(t,r));Sb.exports=jN});var Ob=R((tV,xb)=>{var BN=is(),WN=dr();xb.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>WN(f,l,r));for(let f of o)BN(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var Lb=R((rV,Db)=>{var _b=gr(),Gh=Do(),{ANY:qh}=Gh,ko=is(),Uh=dr(),qN=(e,t,r={})=>{if(e===t)return!0;e=new _b(e,r),t=new _b(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=UN(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},GN=[new Gh(">=0.0.0-0")],Pb=[new Gh(">=0.0.0")],UN=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qh){if(t.length===1&&t[0].semver===qh)return!0;r.includePrerelease?e=GN:e=Pb}if(t.length===1&&t[0].semver===qh){if(r.includePrerelease)return!0;t=Pb}let n=new Set,i,s;for(let p of e)p.operator===">"||p.operator===">="?i=Rb(i,p,r):p.operator==="<"||p.operator==="<="?s=Fb(s,p,r):n.add(p.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Uh(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!ko(p,String(i),r)||s&&!ko(p,String(s),r))return null;for(let d of t)if(!ko(p,String(d),r))return!1;return!0}let a,c,u,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let p of t){if(f=f||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(a=Rb(i,p,r),a===p&&a!==i)return!1}else if(i.operator===">="&&!ko(i.semver,String(p),r))return!1}if(s){if(l&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===l.major&&p.semver.minor===l.minor&&p.semver.patch===l.patch&&(l=!1),p.operator==="<"||p.operator==="<="){if(c=Fb(s,p,r),c===p&&c!==s)return!1}else if(s.operator==="<="&&!ko(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},Rb=(e,t,r)=>{if(!e)return t;let n=Uh(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Fb=(e,t,r)=>{if(!e)return t;let n=Uh(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Db.exports=qN});var To=R((nV,Ib)=>{var Hh=Ki(),kb=so(),HN=gt(),Tb=_f(),zN=mi(),YN=nu(),VN=jf(),KN=hE(),XN=gE(),JN=yE(),QN=AE(),ZN=bE(),e2=SE(),t2=dr(),r2=_E(),n2=RE(),i2=Uu(),s2=kE(),o2=IE(),a2=Fo(),u2=Hu(),c2=Dh(),l2=Lh(),f2=zu(),h2=Yu(),p2=kh(),d2=UE(),g2=Do(),m2=gr(),y2=is(),v2=sb(),A2=ab(),E2=cb(),b2=hb(),w2=Wh(),S2=Xu(),C2=Ab(),x2=bb(),O2=Cb(),_2=Ob(),P2=Lb();Ib.exports={parse:zN,valid:YN,clean:VN,inc:KN,diff:XN,major:JN,minor:QN,patch:ZN,prerelease:e2,compare:t2,rcompare:r2,compareLoose:n2,compareBuild:i2,sort:s2,rsort:o2,gt:a2,lt:u2,eq:c2,neq:l2,gte:f2,lte:h2,cmp:p2,coerce:d2,Comparator:g2,Range:m2,satisfies:y2,toComparators:v2,maxSatisfying:A2,minSatisfying:E2,minVersion:b2,validRange:w2,outside:S2,gtr:C2,ltr:x2,intersects:O2,simplifyRange:_2,subset:P2,SemVer:HN,re:Hh.re,src:Hh.src,tokens:Hh.t,SEMVER_SPEC_VERSION:kb.SEMVER_SPEC_VERSION,RELEASE_TYPES:kb.RELEASE_TYPES,compareIdentifiers:Tb.compareIdentifiers,rcompareIdentifiers:Tb.rcompareIdentifiers}});var Mb=R((iV,$b)=>{var Nb=To();$b.exports=e=>R2(e.reduce(I2,{versions:{},"dist-tags":{},refs:{},shas:{}}));var R2=e=>L2(F2(D2(e))),F2=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),D2=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),L2=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},k2=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",T2=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=k2(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},I2=(e,t)=>{let r=T2(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&Nb.valid(n[1],!0)&&(e.versions[Nb.clean(n[1],!0)]=r)}return e}});var zh=R((sV,Bb)=>{var N2=Ro(),{LRUCache:$2}=cu(),M2=Mb(),jb=new $2({max:100,ttl:5*60*1e3});Bb.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=jb.get(e);if(i)return i}let{stdout:r}=await N2(["ls-remote",e],t),n=M2(r.trim().split(`
11
- `));return jb.set(e,n),n}});var qb=R(Wb=>{var j2=e=>(e.fakePlatform||process.platform)==="win32";Wb.isWindows=j2});var Ub=R((aV,Gb)=>{"use strict";var{builtinModules:B2}=require("module"),W2=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),q2=["node_modules","favicon.ico"];function G2(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),Io(t,r);if(e===void 0)return r.push("name cannot be undefined"),Io(t,r);if(typeof e!="string")return r.push("name must be a string"),Io(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),q2.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),B2.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(W2);if(n){var i=n[1],s=n[2];if(encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return Io(t,r)}r.push("name can only contain URL-friendly characters")}return Io(t,r)}var Io=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};Gb.exports=G2});var Zb=R((uV,jo)=>{"use strict";var Mo=process.platform==="win32",{URL:Yh}=require("node:url"),ss=Mo?require("node:path/win32"):require("node:path"),{homedir:U2}=require("node:os"),H2=fu(),Hb=To(),Kb=Ub(),{log:z2}=no(),Xb=Mo?/\\|[/]/:/[/]/,Jb=/^(?:git[+])?[a-z]+:/i,Y2=/^[^@]+@[^:.]+\.[^:]+:.+$/i,Kh=/[.](?:tgz|tar.gz|tar)$/i,V2=/:[0-9]+(\/|$)/i,K2=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,X2=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,zb="https://registry.npmjs.org";function No(e,t){let r,n;if(typeof e=="object")return e instanceof $o&&(!t||t===e.where)?e:e.name&&e.rawSpec?No.resolve(e.name,e.rawSpec,t||e.where):No(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return Jb.test(e)?n=e:Y2.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(Xb.test(s)||Kh.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):Kb(e).validForOldPackages?(r=e,n="*"):n=e,Qb(r,n,t,e)}function J2(e){return e?e.toLowerCase().startsWith("file:")?!0:Mo?K2.test(e):X2.test(e):!1}function Q2(e){return e?e.toLowerCase().startsWith("npm:"):!1}function Qb(e,t,r,n){let i=new $o({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),J2(t))return Vb(i,r);if(Q2(t))return a$(i,r);let s=H2.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?i$(i,s):t&&Jb.test(t)?o$(i):t&&(Xb.test(t)||Kh.test(t))?Vb(i,r):u$(i)}function Z2(e,t=zb){let r=No(e);if(r.type!=="version")throw r$(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==zb&&(n+="?repository_url="+t),n}function e$(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function t$(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function r$(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var $o=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=Kb(t);if(!r.validForOldPackages)throw e$(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function Vh(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}z2.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var n$=new Map([["\0","%00"],[" ","%09"],[`
12
- `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Mo?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function Yb(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${n$.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function Vb(e,t){e.type=Kh.test(e.rawSpec)?"file":"directory",e.where=t;let r=Yb(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new Yh(r,`${Yb(ss.resolve(t))}/`),i=new Yh(r)}catch(a){let c=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(c,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return Mo&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=ss.resolve(U2(),s.substr(3))):ss.isAbsolute(r.slice(5))?e.saveSpec=`file:${ss.resolve(o)}`:e.saveSpec=`file:${ss.relative(t,o)}`,e.fetchSpec=ss.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function i$(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),Vh(e,t.committish),e}function s$(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function o$(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(V2))return e.type="git",Vh(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new Yh(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",Vh(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw s$(r.protocol,t)}return e}function a$(e,t){let r=No(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function u$(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=Hb.valid(t,!0),n=Hb.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw t$(t,e.raw);e.type="tag"}return e}jo.exports=No;jo.exports.resolve=Qb;jo.exports.toPurl=Z2;jo.exports.Result=$o});var iw=R((cV,nw)=>{var wi=require("node:process"),c$=require("node:os"),l$=require("node:fs");function f$(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function ew(){return wi.platform}function tw(){return wi.arch}var h$="/usr/bin/ldd";function p$(){try{let e=l$.readFileSync(h$,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function d$(){let e=wi.report.excludeNetwork;wi.report.excludeNetwork=!0;let t=wi.report.getReport();return wi.report.excludeNetwork=e,t.header?.glibcVersionRuntime?ln="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(f$)?ln="musl":ln=null,ln}var ln;function rw(e){if(e==="linux")return ln===void 0&&(ln=p$(),ln===void 0&&(ln=d$())),ln}function g$(e={}){let t=e.os||ew();return{cpu:{name:e.cpu||tw()},libc:{name:e.libc||rw(t)},os:{name:t,version:e.osVersion||c$.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||wi.version}}}nw.exports={cpu:tw,libc:rw,os:ew,devEngines:g$}});var ow=R((lV,sw)=>{var m$=is(),y$=Wh(),v$=["ignore","warn","error","download"],A$=["name","version","onFail"],E$=["packageManager","runtime","cpu","libc","os"];function b$(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!A$.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!v$.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(y$(e.version)){if(!m$(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function w$(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error("Invalid non-object value for devEngines");let n=[];for(let i of Object.keys(e)){if(!E$.includes(i))throw new Error(`Invalid property "${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let c=[];for(let f of o){let l=b$(f,a,{...r,engine:i});l&&c.push(l)}if(c.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid engine "${i}"`),{errors:c,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}sw.exports={checkDevEngines:w$}});var cw=R((fV,uw)=>{var aw=To(),Ju=iw(),{checkDevEngines:S$}=ow(),C$=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!aw.satisfies(i,s.node,o),c=t&&s.npm&&!aw.satisfies(t,s.npm,o);if(a||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},x$=(e,t=!1,r={})=>{if(t)return;let n=r.os||Ju.os(),i=r.cpu||Ju.cpu(),s=r.libc||Ju.libc(n),o=e.os?Xh(n,e.os):!0,a=e.cpu?Xh(i,e.cpu):!0,c=e.libc?Xh(s,e.libc):!0;if(e.libc&&!s&&(c=!1),!o||!a||!c)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},Xh=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};uw.exports={checkEngine:C$,checkPlatform:x$,checkDevEngines:S$,currentEnv:Ju}});var pw=R((hV,hw)=>{var{join:lw,basename:fw}=require("path"),O$=e=>e.bin?typeof e.bin=="string"?_$(e):Array.isArray(e.bin)?P$(e):typeof e.bin=="object"?Qh(e):Jh(e):Jh(e),_$=e=>e.name?(e.bin={[e.name]:e.bin},Qh(e)):Jh(e),P$=e=>(e.bin=e.bin.reduce((t,r)=>(t[fw(r)]=r,t),{}),Qh(e)),Jh=e=>(delete e.bin,e),Qh=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=lw("/",fw(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=lw("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};hw.exports=O$});var mw=R((pV,gw)=>{"use strict";var dw=Zb(),Bo=To(),{checkEngine:R$}=cw(),F$=pw(),Zh=(e,t,r)=>{try{return R$(e,t,r),!0}catch{return!1}},Qu=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,D$={includePrerelease:!0,loose:!0},Zu=(e,t)=>t&&Bo.satisfies(e,t,D$),ep=(e,t)=>e&&Zu(e.version,t)?{...e,_shouldAvoid:!0}:e,Wo=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:c=null,avoidStrict:u=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(u){let D={...r,avoidStrict:!1},N=Wo(e,t,D);if(!N||!N._shouldAvoid)return N;let x=Wo(e,`^${N.version}`,D);if(!x||!x._shouldAvoid)return{...x,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=Wo(e,"*",D);if(!g||!g._shouldAvoid)return{...g,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:c,before:i,versions:Object.keys(h)})}let p=a&&e.stagedVersions&&e.stagedVersions.versions||{},d=e.policyRestrictions&&e.policyRestrictions.versions||{},y=i&&l?+new Date(i):1/0,O=dw.resolve(f,t||n).type,S=e["dist-tags"]||{};if(O!=="tag"&&O!=="version"&&O!=="range")throw new Error("Only tag, version, and range are supported");if(t&&O==="tag"){let D=S[t];return Qu(l,D,y)?ep(h[D]||p[D]||d[D],c):Wo(e,`<=${D}`,r)}if(t&&O==="version"){let D=Bo.clean(t,{loose:!0}),N=h[D]||p[D]||d[D];return Qu(l,D,y)?ep(N,c):null}let k=O==="range"?t:"*",F=S[n];if(F&&(k==="*"||Bo.satisfies(F,k,{loose:!0}))&&!d[F]&&!Zu(F,c)){let D=h[F];if(D&&Qu(l,F,y)&&Zh(D,o,s)&&!D.deprecated&&!p[F])return D}let b=Object.entries(h).concat(Object.entries(p)).concat(Object.entries(d)).filter(([D])=>Qu(l,D,y));if(!b.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:O,wanted:t,before:i,versions:Object.keys(h)});let _={loose:!0},L=b.filter(([D])=>Bo.satisfies(D,k,{loose:!0})).sort((D,N)=>{let[x,g]=D,[v,A]=N,C=!Zu(x,c),E=!Zu(v,c),w=!d[x],T=!d[v],$=!p[x],M=!p[v],U=!g.deprecated,V=!A.deprecated,X=Zh(g,o,s),he=Zh(A,o,s);return E-C||T-w||M-$||(V&&he)-(U&&X)||he-X||V-U||Bo.rcompare(x,v,_)});return ep(L[0]&&L[0][1],c)};gw.exports=(e,t,r={})=>{let n=Wo(e,t,r),i=n&&F$(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:c="latest"}=r,u=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${u}`:""),h=i&&!!o[i.version],p=h?s.message:"",d=h?`Could not download ${l} due to policy violations:
13
- ${p}`:`No matching version found for ${l}.`,y=h?"E403":"ETARGET";throw Object.assign(new Error(d),{code:y,type:dw.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:c})}});var Ew=R((dV,Aw)=>{var L$=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:k$}=require("url"),yw=require("path"),T$=zh(),qo=Ro(),{isWindows:ec}=qb(),I$=mw(),tp=require("fs/promises");Aw.exports=(e,t="HEAD",r=null,n={})=>T$(e,n).then(i=>$$(e,i,t,M$(i,t,n),r||N$(e,n.cwd),n));var rp=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:L$.has(k$(e).host),N$=(e,t=process.cwd())=>yw.resolve(t,yw.basename(e.replace(/[/\\]?\.git$/,""))),$$=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?W$(e,n,i,s):n.type==="tag"||n.type==="branch"?B$(e,n,i,s):j$(e,n,i,s):q$(e,r,i,s),M$=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?I$(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},j$=(e,t,r,n)=>{let i=rp(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>qo(a,{...n,cwd:r});return tp.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>ec(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>vw(r,n)).then(()=>t.sha)},B$=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return rp(e,n)&&i.push("--depth=1"),ec(n)&&i.push("--config","core.longpaths=true"),qo(i,n).then(()=>t.sha)},W$=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return rp(e,n)&&i.push("--depth=1"),ec(n)&&i.push("--config","core.longpaths=true"),qo(i,n).then(()=>t.sha)},vw=async(e,t)=>await tp.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?qo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,q$=(e,t,r,n)=>{let i=ec(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>qo(a,{...n,cwd:r});return tp.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>vw(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var np=R((gV,bw)=>{var{stat:G$}=require("fs/promises");bw.exports=({cwd:e=process.cwd()}={})=>G$(e+"/.git").then(()=>!0,()=>!1)});var Sw=R((mV,ww)=>{var U$=np(),{dirname:H$}=require("path");ww.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await U$({cwd:e}))return e;let r=H$(e);if(e===t||e===r)return null;e=r}}});var xw=R((yV,Cw)=>{var z$=Ro();Cw.exports=(e={})=>z$(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var _w=R((vV,Ow)=>{Ow.exports={clone:Ew(),revs:zh(),spawn:Ro(),is:np(),find:Sw(),isClean:xw(),errors:Ph()}});var ip=R((AV,Y$)=>{Y$.exports=["0BSD","3D-Slicer-1.0","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","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","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-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","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-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","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-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","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-AU","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-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","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","CMU-Mach-nodoc","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","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","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","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","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","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","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","LPD-document","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","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","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","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.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","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","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","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Pw=R((EV,V$)=>{V$.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","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Rw=R((bV,K$)=>{K$.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Dw=R((wV,Fw)=>{"use strict";var X$=[].concat(ip()).concat(Pw()),J$=Rw();Fw.exports=function(e){var t=0;function r(){return t<e.length}function n(d){if(d instanceof RegExp){var y=e.slice(t),m=y.match(d);if(m)return t+=m[0].length,m[0]}else if(e.indexOf(d,t)===t)return t+=d.length,d}function i(){n(/[ ]*/)}function s(){for(var d,y=["WITH","AND","OR","(",")",":","+"],m=0;m<y.length&&(d=n(y[m]),!d);m++);if(d==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var d=o();if(!d)throw new Error("Expected idstring at offset "+t);return d}function c(){if(n("DocumentRef-")){var d=a();return{type:"DOCUMENTREF",string:d}}}function u(){if(n("LicenseRef-")){var d=a();return{type:"LICENSEREF",string:d}}}function f(){var d=t,y=o();if(X$.indexOf(y)!==-1)return{type:"LICENSE",string:y};if(J$.indexOf(y)!==-1)return{type:"EXCEPTION",string:y};t=d}function l(){return s()||c()||u()||f()}for(var h=[];r()&&(i(),!!r());){var p=l();if(!p)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(p)}return h}});var kw=R((SV,Lw)=>{"use strict";Lw.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(y){var m=n();if(m&&m.type==="OPERATOR"&&y===m.string)return i(),m.string}function o(){if(s("WITH")){var y=n();if(y&&y.type==="EXCEPTION")return i(),y.string;throw new Error("Expected exception after `WITH`")}}function a(){var y=t,m="",O=n();if(O.type==="DOCUMENTREF"&&(i(),m+="DocumentRef-"+O.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(O=n(),O.type==="LICENSEREF")return i(),m+="LicenseRef-"+O.string,{license:m};t=y}function c(){var y=n();if(y&&y.type==="LICENSE"){i();var m={license:y.string};s("+")&&(m.plus=!0);var O=o();return O&&(m.exception=O),m}}function u(){var y=s("(");if(y){var m=p();if(!s(")"))throw new Error("Expected `)`");return m}}function f(){return u()||a()||c()}function l(y,m){return function O(){var S=m();if(S){if(!s(y))return S;var k=O();if(!k)throw new Error("Expected expression");return{left:S,conjunction:y.toLowerCase(),right:k}}}}var h=l("AND",f),p=l("OR",h),d=p();if(!d||r())throw new Error("Syntax error");return d}});var sp=R((CV,Tw)=>{"use strict";var Q$=Dw(),Z$=kw();Tw.exports=function(e){return Z$(Q$(e))}});var Gw=R((xV,qw)=>{var eM=sp(),tM=ip();function tc(e){try{return eM(e),!0}catch{return!1}}function Ww(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Iw=[["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(Ww),rM=0,nM=1,Nw=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],op=tM.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),iM=Object.keys(op).map(function(t){return[t,op[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});op=void 0;var $w=[["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(iM).sort(Ww),sM=0,oM=1,Mw=function(e){for(var t=0;t<Nw.length;t++){var r=Nw[t](e).trim();if(r!==e&&tc(r))return r}return null},jw=function(e){for(var t=e.toUpperCase(),r=0;r<$w.length;r++){var n=$w[r];if(t.indexOf(n[sM])>-1)return n[oM]}return null},Bw=function(e,t){for(var r=0;r<Iw.length;r++){var n=Iw[r],i=n[rM];if(e.indexOf(i)>-1){var s=e.replace(i,n[nM]),o=t(s);if(o!==null)return o}}return null};qw.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?aM(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),tc(e))return n(e);var s=e.replace(/\+$/,"").trim();if(tc(s))return n(s);var o=Mw(e);return o!==null||(o=Bw(e,function(a){return tc(a)?a:Mw(a)}),o!==null)||(o=jw(e),o!==null)||(o=Bw(e,jw),o!==null)?n(o):null};function aM(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-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(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var Yw=R((OV,zw)=>{var uM=sp(),cM=Gw(),Uw='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',lM=/^SEE LICEN[CS]E IN (.+)$/;function Hw(e,t){return t.slice(0,e.length)===e}function ap(e){if(e.hasOwnProperty("license")){var t=e.license;return Hw("LicenseRef",t)||Hw("DocumentRef",t)}else return ap(e.left)||ap(e.right)}zw.exports=function(e){var t;try{t=uM(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=lM.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Uw]};if(e.trim().length!==0){var i=cM(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return ap(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Uw]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var Zw=R((_V,Qw)=>{var up=require("node:url"),Vw=fu(),fM=Yw(),Kw={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"},Xw=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function hM(e){let t=e.trim().split(`
14
- `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function Jw(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",c=e.email||e.mail,u=c?" <"+c+">":"";e=s+u+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function pM(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=hM(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=Vw.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")Xw(e.bugs)?e.bugs={email:e.bugs}:up.parse(e.bugs).protocol?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(typeof o.url=="string"&&up.parse(o.url).protocol?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&Xw(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=Vw.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):up.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):fM(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=Jw(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(Jw))});for(let o in Kw)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${Kw[o]}.`)}Qw.exports={normalizeData:pM}});var iS=R((PV,nS)=>{var dM=nu(),gM=jf(),In=require("node:fs/promises"),Ue=require("node:path"),{log:mM}=no(),cp;function eS(){return cp||(cp=fu()),cp}var lp;function rc(){return lp||(lp=bh().glob),lp}function tS(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[Ue.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=Ue.basename(Go(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=Go(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name was cleaned`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function yM(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(Go(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function vM(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function AM(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function rS(e){return e.replace(/\\|:/g,"/")}function Go(e){let t=rS(Ue.join(".",Ue.join("/",rS(e))));return t.startsWith("./")?"":t}var EM=async(e,{strict:t,steps:r,root:n,changes:i,allowLegacyCase:s})=>{if(!e.content)throw new Error("Can not normalize without content");let o=e.content,a=o.scripts||{},c=`${o.name??""}@${o.version??""}`;if(r.includes("fixNameField")||r.includes("normalizeData"))if(!o.name&&!t)i?.push('Missing "name" field was set to an empty string'),o.name="";else{if(typeof o.name!="string")throw new Error("name field must be a string.");if(!t){let u=o.name.trim();o.name!==u&&(i?.push('Whitespace was trimmed from "name"'),o.name=u)}if(o.name.startsWith(".")||!(AM(o.name)||vM(o.name))||t&&!s&&o.name!==o.name.toLowerCase()||o.name.toLowerCase()==="node_modules"||o.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(o.name))}if(r.includes("fixVersionField")||r.includes("normalizeData")){let u=!t;if(!o.version)o.version="";else{if(!dM(o.version,u))throw new Error(`Invalid version: "${o.version}"`);let f=gM(o.version,u);f!==o.version&&(i?.push(`"version" was cleaned and set to "${f}"`),o.version=f)}}if(r.includes("_attributes"))for(let u in o)u.startsWith("_")&&(i?.push(`"${u}" was removed`),delete e.content[u]);if(r.includes("_id")&&o.name&&o.version&&(i?.push(`"_id" was set to ${c}`),o._id=c),r.includes("bundledDependencies")&&(o.bundleDependencies===void 0&&o.bundledDependencies!==void 0&&(o.bundleDependencies=o.bundledDependencies),i?.push('Deleted incorrect "bundledDependencies"'),delete o.bundledDependencies),r.includes("bundleDependencies")){let u=o.bundleDependencies;u===!1&&!r.includes("bundleDependenciesDeleteFalse")?(i?.push('"bundleDependencies" was changed from "false" to "[]"'),o.bundleDependencies=[]):u===!0?(i?.push('"bundleDependencies" was auto-populated from "dependencies"'),o.bundleDependencies=Object.keys(o.dependencies||{})):u&&typeof u=="object"?Array.isArray(u)||(i?.push('"bundleDependencies" was changed from an object to an array'),o.bundleDependencies=Object.keys(u)):"bundleDependencies"in o&&(i?.push('"bundleDependencies" was removed'),delete o.bundleDependencies)}if(r.includes("optionalDedupe")&&o.dependencies&&o.optionalDependencies&&typeof o.optionalDependencies=="object"){for(let u in o.optionalDependencies)i?.push(`optionalDependencies."${u}" was removed`),delete o.dependencies[u];Object.keys(o.dependencies).length||(i?.push('Empty "optionalDependencies" was removed'),delete o.dependencies)}if(r.includes("gypfile")&&!a.install&&!a.preinstall&&o.gypfile!==!1&&(await rc()("*.gyp",{cwd:e.path})).length&&(a.install="node-gyp rebuild",o.scripts=a,o.gypfile=!0,i?.push('"scripts.install" was set to "node-gyp rebuild"'),i?.push('"gypfile" was set to "true"')),r.includes("serverjs")&&!a.start)try{await In.access(Ue.join(e.path,"server.js")),a.start="node server.js",o.scripts=a,i?.push('"scripts.start" was set to "node server.js"')}catch{}if((r.includes("scripts")||r.includes("scriptpath"))&&o.scripts!==void 0){let u=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof o.scripts=="object")for(let f in o.scripts)typeof o.scripts[f]!="string"?(delete o.scripts[f],i?.push(`Invalid scripts."${f}" was removed`)):r.includes("scriptpath")&&u.test(o.scripts[f])&&(o.scripts[f]=o.scripts[f].replace(u,""),i?.push(`scripts entry "${f}" was fixed to remove node_modules/.bin reference`));else i?.push('Removed invalid "scripts"'),delete o.scripts}if(r.includes("funding")&&o.funding&&typeof o.funding=="string"&&(o.funding={url:o.funding},i?.push('"funding" was changed to an object with a url attribute')),r.includes("authors")&&!o.contributors)try{let f=(await In.readFile(Ue.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(l=>l.replace(/^\s*#.*$/,"").trim()).filter(l=>l);o.contributors=f,i?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(r.includes("readme")&&!o.readme){let u=/\.m?a?r?k?d?o?w?n?$/i,f=await rc()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),l;for(let h of f)if(!h.endsWith(Ue.sep)){if(h.match(u)){l=h;break}h.endsWith("README")&&(l=h)}if(l){let h=await In.readFile(Ue.join(e.path,l),"utf8");o.readme=h,o.readmeFilename=l,i?.push(`"readme" was set to the contents of ${l}`),i?.push(`"readmeFilename" was set to ${l}`)}o.readme||(o.readme="ERROR: No README data found!")}if(r.includes("mans")){if(o.directories?.man&&!o.man){let u=Go(o.directories.man),f=Ue.resolve(e.path,u),l=await rc()("**/*.[0-9]",{cwd:f});o.man=l.map(h=>Ue.relative(e.path,Ue.join(f,h)).split(Ue.sep).join("/"))}yM(o,i)}if((r.includes("bin")||r.includes("binDir")||r.includes("binRefs"))&&tS(o,i),r.includes("binDir")&&o.directories?.bin&&!o.bin){let u=Ue.resolve(e.path,Go(o.directories.bin)),f=await rc()("**",{cwd:u});o.bin=f.reduce((l,h)=>{if(h&&!h.startsWith(".")){let p=Ue.basename(h);l[p]=Ue.join(o.directories.bin,h)}return l},{}),tS(o,i)}if(r.includes("gitHead")&&!o.gitHead){let f=await _w().find({cwd:e.path,root:n}),l;if(f)try{l=await In.readFile(Ue.resolve(f,".git/HEAD"),"utf8")}catch{}let h;if(l)if(l.startsWith("ref: ")){let p=l.replace(/^ref: /,"").trim(),d=Ue.resolve(f,".git",p);try{h=await In.readFile(d,"utf8"),h=h.replace(/^ref: /,"").trim()}catch{}if(!h){let y=Ue.resolve(f,".git/packed-refs");try{let m=await In.readFile(y,"utf8");if(m){m=m.split(`
15
- `);for(let O=0;O<m.length;O++){let S=m[O].match(/^([0-9a-f]{40}) (.+)$/);if(S&&S[2].trim()===p){h=S[1];break}}}}catch{}}}else h=l.trim();h&&(o.gitHead=h)}if(r.includes("fillTypes")){let u=o.main||"index.js";if(typeof u!="string")throw new TypeError('The "main" attribute must be of type string.');let l=`./${Ue.join(Ue.dirname(u),Ue.basename(u,Ue.extname(u)))}.d.ts`;if(!("types"in o||"typings"in o))try{await In.access(Ue.join(e.path,l)),o.types=l.split(Ue.sep).join("/")}catch{}}if((r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(o.repositories&&(i?.push(`"repository" was set to the first entry in "repositories" (${o.repository})`),o.repository=o.repositories[0]),o.repository&&(typeof o.repository=="string"&&(i?.push('"repository" was changed from a string to an object'),o.repository={type:"git",url:o.repository}),o.repository.url))){let u=eS().fromUrl(o.repository.url),f;u&&(u.getDefaultRepresentation()==="shortcut"?f=u.https():f=u.toString(),f!==o.repository.url&&(i?.push(`"repository.url" was normalized to "${f}"`),o.repository.url=f))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let u of["dependencies","devDependencies","optionalDependencies"])if(o[u]){let f=!0;if(typeof o[u]=="string"&&(i?.push(`"${u}" was converted from a string into an object`),o[u]=o[u].trim().split(/[\n\r\s\t ,]+/),f=!1),Array.isArray(o[u])){f&&i?.push(`"${u}" was converted from an array into an object`);let l={};for(let h of o[u])if(typeof h=="string"){let p=h.trim().split(/(:?[@\s><=])/),d=p.shift(),y=p.join("").replace(/^@/,"").trim();l[d]=y}o[u]=l}}for(let u of["dependencies","devDependencies"])if(u in o)if(!o[u]||typeof o[u]!="object")i?.push(`Removed invalid "${u}"`),delete o[u];else for(let f in o[u]){typeof o[u][f]!="string"&&(i?.push(`Removed invalid "${u}.${f}"`),delete o[u][f]);let h=eS().fromUrl(o[u][f])?.toString();h&&h!==o[u][f]&&(i?.push(`Normalized git reference to "${u}.${f}"`),o[u][f]=h.toString())}}if(r.includes("normalizeData")){let{normalizeData:u}=Zw();u(o,i)}if(r.includes("binRefs")&&o.bin instanceof Object)for(let u in o.bin)try{await In.access(Ue.resolve(e.path,o.bin[u]))}catch{mM.warn("package-json",c,`No bin file found at ${o.bin[u]}`)}};nS.exports=EM});var uS=R((RV,aS)=>{var{readFile:bM}=require("fs/promises"),wM=$f();async function sS(e){try{return await bM(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function oS(e){try{return wM(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function SM(e){let t=await sS(e);return oS(t)}aS.exports={read:sS,parse:oS,readPackage:SM}});var lS=R((FV,cS)=>{function CM(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:c,funding:u,license:f,author:l,maintainers:h,contributors:p,type:d,imports:y,exports:m,main:O,browser:S,types:k,bin:F,man:b,directories:_,files:L,workspaces:D,scripts:N,config:x,dependencies:g,devDependencies:v,peerDependencies:A,peerDependenciesMeta:C,optionalDependencies:E,bundledDependencies:w,bundleDependencies:T,engines:$,os:M,cpu:U,publishConfig:V,devEngines:X,licenses:he,overrides:q,...H}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof c<"u"?{repository:c}:{},...typeof u<"u"?{funding:u}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof p<"u"?{contributors:p}:{},...typeof d<"u"?{type:d}:{},...typeof y<"u"?{imports:y}:{},...typeof m<"u"?{exports:m}:{},...typeof O<"u"?{main:O}:{},...typeof S<"u"?{browser:S}:{},...typeof k<"u"?{types:k}:{},...typeof F<"u"?{bin:F}:{},...typeof b<"u"?{man:b}:{},...typeof _<"u"?{directories:_}:{},...typeof L<"u"?{files:L}:{},...typeof D<"u"?{workspaces:D}:{},...typeof N<"u"?{scripts:N}:{},...typeof x<"u"?{config:x}:{},...typeof g<"u"?{dependencies:g}:{},...typeof v<"u"?{devDependencies:v}:{},...typeof A<"u"?{peerDependencies:A}:{},...typeof C<"u"?{peerDependenciesMeta:C}:{},...typeof E<"u"?{optionalDependencies:E}:{},...typeof w<"u"?{bundledDependencies:w}:{},...typeof T<"u"?{bundleDependencies:T}:{},...typeof $<"u"?{engines:$}:{},...typeof M<"u"?{os:M}:{},...typeof U<"u"?{cpu:U}:{},...typeof V<"u"?{publishConfig:V}:{},...typeof X<"u"?{devEngines:X}:{},...typeof he<"u"?{licenses:he}:{},...typeof q<"u"?{overrides:q}:{},...H}}cS.exports={packageSort:CM}});var pp=R((DV,pS)=>{var{readFile:xM,writeFile:OM}=require("node:fs/promises"),{resolve:fS}=require("node:path"),_M=$f(),hS=Jy(),PM=Zy(),RM=tv(),fp=iS(),{read:FM,parse:DM}=uS(),{packageSort:LM}=lS(),kM=new Set([hS,PM,RM]),TM=new Set([...hS.knownKeys,"scripts","workspaces"]),hp=class e{static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin"]);static fixSteps=Object.freeze(["binRefs","bundleDependencies","bundleDependenciesFalse","fixNameField","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await FM(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=fS(this.path,"index.js"),s;try{s=await xM(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=DM(t),this}fromContent(t){return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=_M(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return fS(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of kM)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))TM.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
16
- `:n,a=t?LM(i):i,c=`${JSON.stringify(a,null,s)}
17
- `.replace(/\n/g,o);if(c.trim()!==this.#t.trim()){let u=await OM(this.filename,c);return this.#t=c,u}}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await fp(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await fp(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await fp(this,t),this}};pS.exports=hp});var mS=R((LV,gS)=>{var{basename:dS,dirname:IM}=require("path"),NM=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;gS.exports=e=>e?NM(dS(IM(e)),dS(e)):!1});var wS=R((kV,bS)=>{var yS=require("path"),$M=mS(),{minimatch:Uo}=an(),MM=pp(),{glob:jM}=bh();function BM(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];Uo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of Uo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function vS(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw nc({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return BM(t)}function AS(e,t){return e.name||$M(t)}function WM(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function nc({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function qM(e){return new Map(Array.from(e,t=>t.reverse()))}async function ES(e={}){if(!e||!e.pkg)throw nc({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=vS(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await jM(r.map(f=>WM(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let c=[];for(let f of r)c.push(...a.filter(l=>Uo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of c){let l;try{l=await MM.normalize(yS.join(e.cwd,f))}catch(d){if(d.code==="ENOENT"||d.code==="ENOTDIR")continue;throw d}let h=AS(l.content,l.path),p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(l.path)}let u=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?GM(u,f,l):i.set(f,l.values().next().value);if(u.length>1)throw nc({Type:Error,message:u.join(`
18
- `),code:"EDUPLICATEWORKSPACE"});return i}function GM(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}ES.virtual=function(e={}){if(!e||!e.lockfile)throw nc({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=vS(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let c of Uo.match(o,a))o.splice(o.indexOf(c),1);for(let a of i)for(let c of Uo.match(o,a)){let u=yS.join(e.cwd,c),f=AS(t[c],u);n.set(u,f)}return qM(n)};bS.exports=ES});var _S=R((TV,OS)=>{var{walkUp:UM}=H0(),SS=yf(),os=Sf(),{log:Lr,time:HM}=no(),{resolve:Yo,dirname:ic,join:dp}=require("node:path"),{homedir:zM}=require("node:os"),{readFile:YM,writeFile:VM,chmod:KM,unlink:XM,stat:CS,mkdir:JM}=require("node:fs/promises"),QM=["global-prefix","local-prefix","npm-version","node-gyp"],gp=(...e)=>CS(Yo(...e)).then(t=>t.isFile()).catch(()=>!1),ZM=(...e)=>CS(Yo(...e)).then(t=>t.isDirectory()).catch(()=>!1),sc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),as=iu(),Si=Dy(),ej=Lf(),tj=Iy(),rj=jy(),xS=new Set(["global","user","project"]),Ho=new Set(["default","builtin",...xS,"env","cli"]),mp=class{#e=!1;#r;#t=null;static get typeDefs(){return as}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:c=process.platform,execPath:u=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},p={};this.deprecated={};for(let[m,O]of Object.entries(t))p[m]=O.default,h[m]=O.type,O.deprecated&&(this.deprecated[m]=O.deprecated.trim().replace(/\n +/,`
19
- `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=p,this.npmPath=s,this.npmBin=dp(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=u,this.platform=c,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let d=[...Ho];this.data=new Map;let y=null;for(let m of d)this.data.set(m,y=new yp(y));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:m}of this.data.values())this.list.unshift(m);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(sc(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!Ho.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||sc(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Ho.has(n))throw new Error("invalid config location param: "+n);this.#c(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[us]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=HM.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Ho.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=require(dp(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Yo(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||zM()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=ic(this.execPath):(this.globalPrefix=ic(ic(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=dp(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&Lr.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);os.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=os(this.types,this.shorthands,this.argv);os.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[us]=!0,os.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),os.clean(r.data,this.types,as),os.invalidHandler=null,r[us]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=Si(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=Wy();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...Ho],i=this.data.get(r).data;return sc(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!sc(o,t)})}invalidHandler(t,r,n,i,s){let o=Uy();Lr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[us]=!1,Array.isArray(n)&&(n.includes(as.url.type)?n=as.url.type:n.includes(as.path.type)&&(n=as.path.type));let a=o(n),c=a.filter(l=>l!==void 0&&l!==Array),u="Must be"+this.#o(c,a),f=c.length===1?c[0]:[...new Set(c.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");Lr.warn("invalid config",u,f)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&Lr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let c=ej(o,this.env),u=this.parseField(a,c);if(r!=="default"&&(this.#c(c),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} can not be provided when using --${f}`)}r!=="default"&&this.checkUnknown(r,o),s.data[c]=u}}}checkUnknown(t,r){if(!this.definitions[r]){if(QM.includes(r))return;if(!r.includes(":")){Lr.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&Lr.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#c(t){this.deprecated[t]&&Lr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return tj(t,r,this,n)}async#l(t,r){Lr.silly("config",`load:file:${t}`),await YM(t,"utf8").then(n=>{let i=SS.parse(n);return r==="project"&&i.prefix&&Lr.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#l(Yo(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await gp(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Yo(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#l(t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of UM(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await gp(i,"package.json");if(!this.localPrefix&&(s||await ZM(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=pp(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let u=await wS()({cwd:i,pkg:a});for(let f of u.values())if(f===this.localPrefix){await gp(this.localPrefix,".npmrc")&&Lr.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,Lr.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#l(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#l(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!xS.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[zo]=null,t==="user"){let o=Si(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=SS.stringify(r.raw).trim()+`
20
- `;if(!n.trim()){await XM(r.source).catch(()=>{});return}let i=ic(r.source);await JM(i,{recursive:!0}),await VM(r.source,n,"utf8");let s=t==="user"?384:438;await KM(r.source,s)}clearCredentialsByURI(t,r="user"){let n=Si(t);if(Si(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=Si(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let c=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,c,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=Si(t),n=Si(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let c=this.get(`${r}:_authToken`);if(c)return i.token=c,i;let u=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(u&&f){i.username=u,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let p=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=p.shift(),i.password=p.join(":"),i.auth=l,i}return i}setEnvs(){rj(this)}},zo=Symbol("loadError"),us=Symbol("valid"),yp=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[us]=!0}get data(){return this.#e}get valid(){return this[us]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[zo]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[zo]=t}get loadError(){return this[zo]}set raw(t){if(Object.keys(this.#t).length||this[zo])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};OS.exports=mp});var ac=R(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.getPackageDependencies=void 0;function nj(e,t){let r=e.dependencies?.[t]||e.devDependencies?.[t]||e.peerDependencies?.[t]||e.optionalDependencies?.[t];return r?!r.startsWith("npm:")&&!r.startsWith("file:"):!1}function ij(e,t,r={withDevDependencies:!0}){let n=[];if(e.dependencies)for(let s of Object.keys(e.dependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.devDependencies&&r.withDevDependencies)for(let s of Object.keys(e.devDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.peerDependencies&&r.withPeerDependencies)for(let s of Object.keys(e.peerDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.optionalDependencies&&r.withOptionalDependencies)for(let s of Object.keys(e.optionalDependencies))s!==e.name&&t.has(s)&&n.push(s);return n.filter(s=>nj(e,s))}oc.getPackageDependencies=ij});var ls=R(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.isCachingEnabled=cs.setCachingEnabled=void 0;var PS=!0;function sj(e){PS=e}cs.setCachingEnabled=sj;function oj(){return PS}cs.isCachingEnabled=oj});var RS=R(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getTransitiveProviders=Nn.getTransitiveConsumers=Nn.getDependentMap=void 0;var aj=ac(),uj=ls(),vp=new Map;function cj(e,t=[]){return JSON.stringify({packages:e,scope:t})}function Ap(e,t=[]){let r=new Set(Object.keys(e)),n=cj(e,t);if((0,uj.isCachingEnabled)()&&vp.has(n))return vp.get(n);let i=[],s=new Set,o=t.length>0?[...t]:Object.keys(e);for(;o.length>0;){let a=o.pop();if(s.has(a))continue;s.add(a);let c=e[a],u=(0,aj.getPackageDependencies)(c,r);if(u.length>0)for(let f of u)o.push(f),i.push([f,a]);else i.push([null,a])}return vp.set(n,i),i}function lj(e){let t=Ap(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}Nn.getDependentMap=lj;function fj(e,t,r=[]){let n=Ap(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,c]of n)a===o&&i.push(c)}}return[...s].filter(o=>!e.includes(o))}Nn.getTransitiveConsumers=fj;function hj(e,t){let r=Ap(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}Nn.getTransitiveProviders=hj});var FS=R(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.getInternalDeps=mr.getTransitiveConsumers=mr.getTransitiveDependents=mr.getTransitiveProviders=mr.getTransitiveDependencies=void 0;var uc=RS();Object.defineProperty(mr,"getTransitiveConsumers",{enumerable:!0,get:function(){return uc.getTransitiveConsumers}});Object.defineProperty(mr,"getTransitiveProviders",{enumerable:!0,get:function(){return uc.getTransitiveProviders}});var pj=ac();mr.getTransitiveDependencies=uc.getTransitiveProviders;mr.getTransitiveDependents=uc.getTransitiveConsumers;mr.getInternalDeps=pj.getPackageDependencies});var Ep=R(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.infoFromPackageJson=void 0;function dj(e,t){return{packageJsonPath:t,...e}}cc.infoFromPackageJson=dj});var bp=R(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.getWorkspaceRoot=void 0;var gj=fs();function mj(e,t){return(0,gj.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}lc.getWorkspaceRoot=mj});var Vo=R(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.gitFailFast=yr.git=yr.clearGitObservers=yr.addGitObserver=yr.GitError=void 0;var yj=require("child_process"),fc=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};yr.GitError=fc;var vj=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,DS=!!process.env.GIT_DEBUG,hs=[],wp;function Aj(e){return hs.push(e),()=>bj(e)}yr.addGitObserver=Aj;function Ej(){hs.splice(0,hs.length)}yr.clearGitObservers=Ej;function bj(e){let t=hs.indexOf(e);t>-1&&hs.splice(t,1)}function LS(e,t){DS&&console.log(`git ${e.join(" ")}`);let r=(0,yj.spawnSync)("git",e,{maxBuffer:vj,...t}),n={...r,stderr:(r.stderr||"").toString().trimEnd(),stdout:(r.stdout||"").toString().trimEnd(),success:r.status===0};if(DS&&(console.log("exited with code "+r.status),n.stdout&&console.log(`git stdout:
7
+ `):e==null||e===!1?"":typeof e=="object"?null:String(e),Ky=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:oL(e,t),oL=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Xy=(e,t,r)=>{let n=Bf(r),i=sL(t,n);i&&n!==null&&(e[i]=n)},aL=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let c in i){let{deprecated:u,envExport:f=!0}=n[c]||{};u||f===!1||(Ky(r[c],i[c])?Ky(s[c],i[c])||Xy(t,c,i[c]):a.has(c)&&!o.has(c)||Xy(t,c,i[c]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};Jy.exports=aL});var ev=R((GY,Zy)=>{"use strict";var Wf=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};Zy.exports={ErrInvalidAuth:Wf}});var nv=R((UY,rv)=>{var uL=ou(),tv=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>tv(t));for(let{type:t,description:r}of Object.values(uL))if(t===e)return r||t;return e};rv.exports=e=>[].concat(tv(e)).filter(t=>t!==void 0)});var Gf=R((HY,av)=>{"use strict";var cL=Symbol.for("indent"),lL=Symbol.for("newline"),fL=`
8
+ `,hL=" ",dL=/^\uFEFF/,pL=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,gL=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,iv=/^Unexpected token '?(.)'?(,)? /i,mL=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},sv=e=>String(e).replace(dL,""),qf=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),yL=(e,t,r=20)=>{let n=e.message;if(!t)return qf(n,"empty string");let i=n.match(iv),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(iv,`Unexpected token ${JSON.stringify(i[1])} (${mL(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return qf(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,c=o+r>=t.length?t.length:o+r,u=`${a?"...":""}${t.slice(a,c)}${c===t.length?"":"..."}`;return qf(n,`${t===u?"":"near "}${JSON.stringify(u)}`,o)},au=class extends SyntaxError{constructor(t,r,n,i){let s=yL(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},ov=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(gL)||e.match(pL)||[null,"",""];r[lL]=n[1]??fL,r[cL]=n[2]??hL}return r},uu=(e,t,r)=>{let n=sv(e);try{return ov(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new au(i,n,r,uu)}};av.exports=uu;uu.JSONParseError=au;uu.noExceptions=(e,t)=>{try{return ov(sv(e),t)}catch{}}});var lv=R((zY,cv)=>{var Uf=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),vL=e=>{for(let t of Uf)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},uv=({content:e,originalContent:t})=>{let r=vL({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of Uf)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};uv.knownKeys=Uf;cv.exports=uv});var hv=R((YY,fv)=>{var AL=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};fv.exports=AL});var pv=R((VY,dv)=>{var EL=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};dv.exports=EL});var Hf=R((KY,gv)=>{var bL=mi(),wL=(e,t)=>{let r=bL(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};gv.exports=wL});var fu=R(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.LRUCache=void 0;var Qi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,yv=new Set,zf=typeof process=="object"&&process?process:{},vv=(e,t,r,n)=>{typeof zf.emitWarning=="function"?zf.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},cu=globalThis.AbortController,mv=globalThis.AbortSignal;if(typeof cu>"u"){mv=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},cu=class{constructor(){t()}signal=new mv;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=zf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,vv("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",t))}}var SL=e=>!yv.has(e),QY=Symbol("type"),Dn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Av=e=>Dn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Zi:null:null,Zi=class extends Array{constructor(t){super(t),this.fill(0)}},Yf=class e{heap;length;static#e=!1;static create(t){let r=Av(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Vf=class e{#e;#r;#t;#n;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#a;#u;#s;#y;#v;#p;#d;#S;#m;#C;#x;#E;#b;#w;#g;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#E,sizes:t.#C,keyMap:t.#a,keyList:t.#u,valList:t.#s,next:t.#y,prev:t.#v,get head(){return t.#p},get tail(){return t.#d},free:t.#S,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,n,i,s)=>t.#M(r,n,i,s),moveToTail:r=>t.#B(r),indexes:r=>t.#P(r),rindexes:r=>t.#_(r),isStale:r=>t.#A(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#t}get disposeAfter(){return this.#n}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:f,noDisposeOnSet:l,noUpdateTTL:h,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:y,fetchMethod:m,memoMethod:O,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:b,ignoreFetchAbort:P}=t;if(r!==0&&!Dn(r))throw new TypeError("max option must be a nonnegative integer");let L=r?Av(r):Array;if(!L)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=p||this.#r,this.sizeCalculation=y,this.sizeCalculation){if(!this.#r&&!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(O!==void 0&&typeof O!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=O,m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=m,this.#w=!!m,this.#a=new Map,this.#u=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new L(r),this.#v=new L(r),this.#p=0,this.#d=0,this.#S=Yf.create(r),this.#c=0,this.#l=0,typeof u=="function"&&(this.#t=u),typeof f=="function"?(this.#n=f,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#b=!!this.#t,this.#g=!!this.#n,this.noDisposeOnSet=!!l,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!F,this.allowStaleOnFetchAbort=!!b,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!Dn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Dn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Dn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!Dn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let D="LRU_CACHE_UNBOUNDED";SL(D)&&(yv.add(D),vv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,e))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#R(){let t=new Zi(this.#e),r=new Zi(this.#e);this.#E=t,this.#x=r,this.#L=(s,o,a=Qi.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#A(s)&&this.#D(this.#u[s],"expire")},o+1);c.unref&&c.unref()}},this.#O=s=>{r[s]=t[s]!==0?Qi.now():0},this.#i=(s,o)=>{if(t[o]){let a=t[o],c=r[o];if(!a||!c)return;s.ttl=a,s.start=c,s.now=n||i();let u=s.now-c;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Qi.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],c=r[o];if(!a||!c)return 1/0;let u=(n||i())-c;return a-u},this.#A=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#O=()=>{};#i=()=>{};#L=()=>{};#A=()=>!1;#F(){let t=new Zi(this.#e);this.#l=0,this.#C=t,this.#k=r=>{this.#l-=t[r],t[r]=0},this.#I=(r,n,i,s)=>{if(this.#f(n))return 0;if(!Dn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!Dn(i))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 i},this.#T=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#l>s;)this.#$(!0)}this.#l+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#k=t=>{};#T=(t,r,n)=>{};#I=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#P({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#d;!(!this.#N(r)||((t||!this.#A(r))&&(yield r),r===this.#p));)r=this.#v[r]}*#_({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#p;!(!this.#N(r)||((t||!this.#A(r))&&(yield r),r===this.#d));)r=this.#y[r]}#N(t){return t!==void 0&&this.#a.get(this.#u[t])===t}*entries(){for(let t of this.#P())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*rentries(){for(let t of this.#_())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*keys(){for(let t of this.#P()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*rkeys(){for(let t of this.#_()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*values(){for(let t of this.#P())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}*rvalues(){for(let t of this.#_())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#P()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#u[n],this))return this.get(this.#u[n],r)}}forEach(t,r=this){for(let n of this.#P()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}rforEach(t,r=this){for(let n of this.#_()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}purgeStale(){let t=!1;for(let r of this.#_({allowStale:!0}))this.#A(r)&&(this.#D(this.#u[r],"expire"),t=!0);return t}info(t){let r=this.#a.get(t);if(r===void 0)return;let n=this.#s[r],i=this.#f(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#E&&this.#x){let o=this.#E[r],a=this.#x[r];if(o&&a){let c=o-(Qi.now()-a);s.ttl=c,s.start=Date.now()}}return this.#C&&(s.size=this.#C[r]),s}dump(){let t=[];for(let r of this.#P({allowStale:!0})){let n=this.#u[r],i=this.#s[r],s=this.#f(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#E&&this.#x){o.ttl=this.#E[r];let a=Qi.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#C&&(o.size=this.#C[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Qi.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,f=this.#I(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let l=this.#c===0?void 0:this.#a.get(t);if(l===void 0)l=this.#c===0?this.#d:this.#S.length!==0?this.#S.pop():this.#c===this.#e?this.#$(!1):this.#c,this.#u[l]=t,this.#s[l]=r,this.#a.set(t,l),this.#y[this.#d]=l,this.#v[l]=this.#d,this.#d=l,this.#c++,this.#T(l,f,c),c&&(c.set="add"),u=!1;else{this.#B(l);let h=this.#s[l];if(r!==h){if(this.#w&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#b&&this.#t?.(d,t,"set"),this.#g&&this.#m?.push([d,t,"set"]))}else o||(this.#b&&this.#t?.(h,t,"set"),this.#g&&this.#m?.push([h,t,"set"]));if(this.#k(l),this.#T(l,f,c),this.#s[l]=r,c){c.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(c.oldValue=d)}}else c&&(c.set="update")}if(i!==0&&!this.#E&&this.#R(),this.#E&&(u||this.#L(l,i,s),c&&this.#i(c,l)),!o&&this.#g&&this.#m){let h=this.#m,d;for(;d=h?.shift();)this.#n?.(...d)}return this}pop(){try{for(;this.#c;){let t=this.#s[this.#p];if(this.#$(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#m){let t=this.#m,r;for(;r=t?.shift();)this.#n?.(...r)}}}#$(t){let r=this.#p,n=this.#u[r],i=this.#s[r];return this.#w&&this.#f(i)?i.__abortController.abort(new Error("evicted")):(this.#b||this.#g)&&(this.#b&&this.#t?.(i,n,"evict"),this.#g&&this.#m?.push([i,n,"evict"])),this.#k(r),t&&(this.#u[r]=void 0,this.#s[r]=void 0,this.#S.push(r)),this.#c===1?(this.#p=this.#d=0,this.#S.length=0):this.#p=this.#y[r],this.#a.delete(n),this.#c--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#A(s))i&&(i.has="stale",this.#i(i,s));else return n&&this.#O(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i===void 0||!n&&this.#A(i))return;let s=this.#s[i];return this.#f(s)?s.__staleWhileFetching:s}#M(t,r,n,i){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new cu,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:i},u=(y,m=!1)=>{let{aborted:O}=o.signal,S=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(O&&!m?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),O&&!S&&!m)return l(o.signal.reason);let k=d;return this.#s[r]===d&&(y===void 0?k.__staleWhileFetching?this.#s[r]=k.__staleWhileFetching:this.#D(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,y,c.options))),y},f=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),l(y)),l=y=>{let{aborted:m}=o.signal,O=m&&n.allowStaleOnFetchAbort,S=O||n.allowStaleOnFetchRejection,k=S||n.noDeleteOnFetchRejection,F=d;if(this.#s[r]===d&&(!k||F.__staleWhileFetching===void 0?this.#D(t,"fetch"):O||(this.#s[r]=F.__staleWhileFetching)),S)return n.status&&F.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),F.__staleWhileFetching;if(F.__returned===F)throw y},h=(y,m)=>{let O=this.#o?.(t,s,c);O&&O instanceof Promise&&O.then(S=>y(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=S=>u(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,p,{...c.options,status:void 0}),r=this.#a.get(t)):this.#s[r]=p,p}#f(t){if(!this.#w)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof cu}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:y,forceRefresh:m=!1,status:O,signal:S}=r;if(!this.#w)return O&&(O.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:O});let k={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:O,signal:S},F=this.#a.get(t);if(F===void 0){O&&(O.fetch="miss");let b=this.#M(t,F,k,y);return b.__returned=b}else{let b=this.#s[F];if(this.#f(b)){let x=n&&b.__staleWhileFetching!==void 0;return O&&(O.fetch="inflight",x&&(O.returnedStale=!0)),x?b.__staleWhileFetching:b.__returned=b}let P=this.#A(F);if(!m&&!P)return O&&(O.fetch="hit"),this.#B(F),i&&this.#O(F),O&&this.#i(O,F),b;let L=this.#M(t,F,k,y),N=L.__staleWhileFetching!==void 0&&n;return O&&(O.fetch=P?"stale":"refresh",N&&P&&(O.returnedStale=!0)),N?L.__staleWhileFetching:L.__returned=L}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#h;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let c=n(t,a,{options:o,context:i});return this.set(t,c,o),c}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let c=this.#s[a],u=this.#f(c);return o&&this.#i(o,a),this.#A(a)?(o&&(o.get="stale"),u?(o&&n&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?c.__staleWhileFetching:void 0):(s||this.#D(t,"expire"),o&&n&&(o.returnedStale=!0),n?c:void 0)):(o&&(o.get="hit"),u?c.__staleWhileFetching:(this.#B(a),i&&this.#O(a),c))}else o&&(o.get="miss")}#j(t,r){this.#v[r]=t,this.#y[t]=r}#B(t){t!==this.#d&&(t===this.#p?this.#p=this.#y[t]:this.#j(this.#v[t],this.#y[t]),this.#j(this.#d,t),this.#d=t)}delete(t){return this.#D(t,"delete")}#D(t,r){let n=!1;if(this.#c!==0){let i=this.#a.get(t);if(i!==void 0)if(n=!0,this.#c===1)this.#W(r);else{this.#k(i);let s=this.#s[i];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#b||this.#g)&&(this.#b&&this.#t?.(s,t,r),this.#g&&this.#m?.push([s,t,r])),this.#a.delete(t),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#d)this.#d=this.#v[i];else if(i===this.#p)this.#p=this.#y[i];else{let o=this.#v[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#v[a]=this.#v[i]}this.#c--,this.#S.push(i)}}if(this.#g&&this.#m?.length){let i=this.#m,s;for(;s=i?.shift();)this.#n?.(...s)}return n}clear(){return this.#W("delete")}#W(t){for(let r of this.#_({allowStale:!0})){let n=this.#s[r];if(this.#f(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#u[r];this.#b&&this.#t?.(n,i,t),this.#g&&this.#m?.push([n,i,t])}}if(this.#a.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#E&&this.#x&&(this.#E.fill(0),this.#x.fill(0)),this.#C&&this.#C.fill(0),this.#p=0,this.#d=0,this.#S.length=0,this.#l=0,this.#c=0,this.#g&&this.#m){let r=this.#m,n;for(;n=r?.shift();)this.#n?.(...n)}}};lu.LRUCache=Vf});var wv=R((e5,bv)=>{"use strict";var Le=(...e)=>e.every(t=>t)?e.join(""):"",Ze=e=>e?encodeURIComponent(e):"",Ev=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),CL={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${Le("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${Le("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${Ze(n||"HEAD")}/${s}${Le("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${Le("/",n,"/",Ze(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Ze(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${Le("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${Le("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:Ev},Ln={};Ln.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${Le(e,"@")}raw.githubusercontent.com/${t}/${r}/${Ze(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Ze(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};Ln.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${Le("/",i,"/",Ze(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Ze(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};Ln.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Le(e,"@")}${t}/${r}/${n}.git${Le("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Ze(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};Ln.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${Le("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${Le("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${Le("/",Ze(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Le("/",Ze(r))}${Le("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Le("/",Ze(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${Le("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${Le("/",Ze(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${Le("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${Le("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${Le("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Ze(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+Ev(e)}};Ln.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Ze(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${Le("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Ze(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(Ln))Ln[e]=Object.assign({},CL,t);bv.exports=Ln});var Xf=R((t5,Cv)=>{var xL=require("url"),Kf=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Sv=e=>{try{return new xL.URL(e)}catch{}},OL=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},PL=e=>{let t=Kf(e,"@","#"),r=Kf(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Kf(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};Cv.exports=(e,t)=>{let r=t?OL(e,t):e;return Sv(r)||Sv(PL(r))}});var Ov=R((r5,xv)=>{"use strict";var _L=Xf(),RL=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,c=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&l&&h&&d&&c&&u&&f};xv.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=RL(e)?`github:${e}`:e,s=_L(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],c=o||a;if(!c)return;let u=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,d=null,p=null;try{if(o){let y=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,m=y.indexOf("@");m>-1&&(y=y.slice(m+1));let O=y.lastIndexOf("/");O>-1?(h=decodeURIComponent(y.slice(0,O)),h||(h=null),d=decodeURIComponent(y.slice(O+1))):d=decodeURIComponent(y),d.endsWith(".git")&&(d=d.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),p="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let y=u.extract(s);if(!y)return;h=y.user&&decodeURIComponent(y.user),d=decodeURIComponent(y.project),l=decodeURIComponent(y.committish),p=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(y){if(y instanceof URIError)return;throw y}return[c,h,f,d,l,p,t]}});var du=R((n5,Pv)=>{"use strict";var{LRUCache:FL}=fu(),DL=wv(),LL=Ov(),kL=Xf(),Jf=new FL({max:1e3}),hu=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"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(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Jf.has(n)){let i=LL(t,r,{gitHosts:e.#e,protocols:e.#r});Jf.set(n,i?new e(...i):void 0)}return Jf.get(n)}static parseUrl(t){return kL(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(DL))hu.addHost(e,t);Pv.exports=hu});var Lv=R((i5,Dv)=>{"use strict";Dv.exports=Rv;function Rv(e,t,r){e instanceof RegExp&&(e=_v(e,r)),t instanceof RegExp&&(t=_v(t,r));var n=Fv(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function _v(e,t){var r=t.match(e);return r?r[0]:null}Rv.range=Fv;function Fv(e,t,r){var n,i,s,o,a,c=r.indexOf(e),u=r.indexOf(t,c+1),f=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],s=r.length;f>=0&&!a;)f==c?(n.push(f),c=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),u]:(i=n.pop(),i<s&&(s=i,o=u),u=r.indexOf(t,f+1)),f=c<u&&c>=0?c:u;n.length&&(a=[s,o])}return a}});var Bv=R((s5,jv)=>{var kv=Lv();jv.exports=NL;var Tv="\0SLASH"+Math.random()+"\0",Iv="\0OPEN"+Math.random()+"\0",Zf="\0CLOSE"+Math.random()+"\0",Nv="\0COMMA"+Math.random()+"\0",$v="\0PERIOD"+Math.random()+"\0";function Qf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function TL(e){return e.split("\\\\").join(Tv).split("\\{").join(Iv).split("\\}").join(Zf).split("\\,").join(Nv).split("\\.").join($v)}function IL(e){return e.split(Tv).join("\\").split(Iv).join("{").split(Zf).join("}").split(Nv).join(",").split($v).join(".")}function Mv(e){if(!e)return[""];var t=[],r=kv("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=Mv(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function NL(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),oo(TL(e),!0).map(IL)):[]}function $L(e){return"{"+e+"}"}function ML(e){return/^-?0\d/.test(e)}function jL(e,t){return e<=t}function BL(e,t){return e>=t}function oo(e,t){var r=[],n=kv("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?oo(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=c||u,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+Zf+n.post,oo(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=Mv(n.body),h.length===1&&(h=oo(h[0],!1).map($L),h.length===1))return s.map(function(x){return n.pre+h[0]+x});var d;if(f){var p=Qf(h[0]),y=Qf(h[1]),m=Math.max(h[0].length,h[1].length),O=h.length==3?Math.abs(Qf(h[2])):1,S=jL,k=y<p;k&&(O*=-1,S=BL);var F=h.some(ML);d=[];for(var b=p;S(b,y);b+=O){var P;if(u)P=String.fromCharCode(b),P==="\\"&&(P="");else if(P=String(b),F){var L=m-P.length;if(L>0){var D=new Array(L+1).join("0");b<0?P="-"+D+P.slice(1):P=D+P}}d.push(P)}}else{d=[];for(var N=0;N<h.length;N++)d.push.apply(d,oo(h[N],!1))}for(var N=0;N<d.length;N++)for(var o=0;o<s.length;o++){var a=i+d[N]+s[o];(!t||f||a)&&r.push(a)}}return r}});var Wv=R(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.assertValidPattern=void 0;var WL=1024*64,qL=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>WL)throw new TypeError("pattern is too long")};pu.assertValidPattern=qL});var Gv=R(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.parseClass=void 0;var GL={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ao=e=>e.replace(/[[\]\\-]/g,"\\$&"),UL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qv=e=>e.join(""),HL=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,c=!1,u=!1,f=r,l="";e:for(;s<e.length;){let y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){u=!0,s++;continue}if(y==="]"&&o&&!c){f=s+1;break}if(o=!0,y==="\\"&&!c){c=!0,s++;continue}if(y==="["&&!c){for(let[m,[O,S,k]]of Object.entries(GL))if(e.startsWith(m,s)){if(l)return["$.",!1,e.length-r,!0];s+=m.length,k?i.push(O):n.push(O),a=a||S;continue e}}if(c=!1,l){y>l?n.push(ao(l)+"-"+ao(y)):y===l&&n.push(ao(y)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(ao(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=y,s+=2;continue}n.push(ao(y)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let y=n[0].length===2?n[0].slice(-1):n[0];return[UL(y),!1,f-r,!1]}let h="["+(u?"^":"")+qv(n)+"]",d="["+(u?"":"^")+qv(i)+"]";return[n.length&&i.length?"("+h+"|"+d+")":n.length?h:d,a,f-r,!0]};gu.parseClass=HL});var yu=R(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.unescape=void 0;var zL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");mu.unescape=zL});var rh=R(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.AST=void 0;var YL=Gv(),vu=yu(),VL=new Set(["!","?","+","*","@"]),Uv=e=>VL.has(e),KL="(?!(?:^|/)\\.\\.?(?:$|/))",Au="(?!\\.)",XL=new Set(["[","."]),JL=new Set(["..","."]),QL=new Set("().*{}+?[]^$\\!"),ZL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),th="[^/]",Hv=th+"*?",zv=th+"+?",eh=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#c;#l=!1;#a;#u;#s=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#c=this.#e===this?[]:this.#e.#c,t==="!"&&!this.#e.#l&&this.#c.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#u=this.#n.map(t=>String(t)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#v(t,r,n,i){let s=!1,o=!1,a=-1,c=!1;if(r.type===null){let d=n,p="";for(;d<t.length;){let y=t.charAt(d++);if(s||y==="\\"){s=!s,p+=y;continue}if(o){d===a+1?(y==="^"||y==="!")&&(c=!0):y==="]"&&!(d===a+2&&c)&&(o=!1),p+=y;continue}else if(y==="["){o=!0,a=d,c=!1,p+=y;continue}if(!i.noext&&Uv(y)&&t.charAt(d)==="("){r.push(p),p="";let m=new e(y,r);d=e.#v(t,m,d,i),r.push(m);continue}p+=y}return r.push(p),d}let u=n+1,f=new e(null,r),l=[],h="";for(;u<t.length;){let d=t.charAt(u++);if(s||d==="\\"){s=!s,h+=d;continue}if(o){u===a+1?(d==="^"||d==="!")&&(c=!0):d==="]"&&!(u===a+2&&c)&&(o=!1),h+=d;continue}else if(d==="["){o=!0,a=u,c=!1,h+=d;continue}if(Uv(d)&&t.charAt(u)==="("){f.push(h),h="";let p=new e(d,f);f.push(p),u=e.#v(t,p,u,i);continue}if(d==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(d===")")return h===""&&r.#n.length===0&&(r.#s=!0),f.push(h),h="",r.push(...l,f),u;h+=d}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],u}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#v(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#y(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#n.map(d=>{let[p,y,m,O]=typeof d=="string"?e.#d(d,this.#r,c):d.toRegExpSource(t);return this.#r=this.#r||m,this.#t=this.#t||O,p}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&JL.has(this.#n[0]))){let p=XL,y=r&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),m=!r&&!t&&p.has(u.charAt(0));f=y?KL:m?Au:""}let l="";return this.isEnd()&&this.#e.#l&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+u+l,(0,vu.unescape)(u),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#p(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let c=this.toString();return this.#n=[c],this.type=null,this.#r=void 0,[c,(0,vu.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!Au?"":this.#p(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?Au:"")+zv;else{let c=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Au:"")+Hv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+c}return[a,(0,vu.unescape)(s),this.#r=!!this.#r,this.#t]}#p(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#d(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,s+=(QL.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[u,f,l,h]=(0,YL.parseClass)(t,a);if(l){s+=u,o=o||f,a+=l-1,r=r||h;continue}}if(c==="*"){n&&t==="*"?s+=zv:s+=Hv,r=!0;continue}if(c==="?"){s+=th,r=!0;continue}s+=ZL(c)}return[s,(0,vu.unescape)(t),!!r,o]}};Eu.AST=eh});var nh=R(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.escape=void 0;var ek=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");bu.escape=ek});var un=R(fe=>{"use strict";var tk=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.unescape=fe.escape=fe.AST=fe.Minimatch=fe.match=fe.makeRe=fe.braceExpand=fe.defaults=fe.filter=fe.GLOBSTAR=fe.sep=fe.minimatch=void 0;var rk=tk(Bv()),wu=Wv(),Kv=rh(),nk=nh(),ik=yu(),sk=(e,t,r={})=>((0,wu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new yi(t,r).match(e));fe.minimatch=sk;var ok=/^\*+([^+@!?\*\[\(]*)$/,ak=e=>t=>!t.startsWith(".")&&t.endsWith(e),uk=e=>t=>t.endsWith(e),ck=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),lk=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),fk=/^\*+\.\*+$/,hk=e=>!e.startsWith(".")&&e.includes("."),dk=e=>e!=="."&&e!==".."&&e.includes("."),pk=/^\.\*+$/,gk=e=>e!=="."&&e!==".."&&e.startsWith("."),mk=/^\*+$/,yk=e=>e.length!==0&&!e.startsWith("."),vk=e=>e.length!==0&&e!=="."&&e!=="..",Ak=/^\?+([^+@!?\*\[\(]*)?$/,Ek=([e,t=""])=>{let r=Xv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},bk=([e,t=""])=>{let r=Jv([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},wk=([e,t=""])=>{let r=Jv([e]);return t?n=>r(n)&&n.endsWith(t):r},Sk=([e,t=""])=>{let r=Xv([e]);return t?n=>r(n)&&n.endsWith(t):r},Xv=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},Jv=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Qv=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Yv={win32:{sep:"\\"},posix:{sep:"/"}};fe.sep=Qv==="win32"?Yv.win32.sep:Yv.posix.sep;fe.minimatch.sep=fe.sep;fe.GLOBSTAR=Symbol("globstar **");fe.minimatch.GLOBSTAR=fe.GLOBSTAR;var Ck="[^/]",xk=Ck+"*?",Ok="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Pk="(?:(?!(?:\\/|^)\\.).)*?",_k=(e,t={})=>r=>(0,fe.minimatch)(r,e,t);fe.filter=_k;fe.minimatch.filter=fe.filter;var fr=(e,t={})=>Object.assign({},e,t),Rk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return fe.minimatch;let t=fe.minimatch;return Object.assign((n,i,s={})=>t(n,i,fr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,fr(e,s))}static defaults(i){return t.defaults(fr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,fr(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,fr(e,s))}},unescape:(n,i={})=>t.unescape(n,fr(e,i)),escape:(n,i={})=>t.escape(n,fr(e,i)),filter:(n,i={})=>t.filter(n,fr(e,i)),defaults:n=>t.defaults(fr(e,n)),makeRe:(n,i={})=>t.makeRe(n,fr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,fr(e,i)),match:(n,i,s={})=>t.match(n,i,fr(e,s)),sep:t.sep,GLOBSTAR:fe.GLOBSTAR})};fe.defaults=Rk;fe.minimatch.defaults=fe.defaults;var Fk=(e,t={})=>((0,wu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,rk.default)(e));fe.braceExpand=Fk;fe.minimatch.braceExpand=fe.braceExpand;var Dk=(e,t={})=>new yi(e,t).makeRe();fe.makeRe=Dk;fe.minimatch.makeRe=fe.makeRe;var Lk=(e,t,r={})=>{let n=new yi(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};fe.match=Lk;fe.minimatch.match=fe.match;var Vv=/[?*]|[+@!]\(.*?\)|\[|\]/,kk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yi=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,wu.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Qv,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=s[0]===""&&s[1]===""&&(s[2]==="?"||!Vv.test(s[2]))&&!Vv.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],c=n[i+2],u=n[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let c=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...c),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),O=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!O&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),k=m?3:y?0:void 0,F=S?3:O?0:void 0;if(typeof k=="number"&&typeof F=="number"){let[b,P]=[t[k],r[F]];b.toLowerCase()===P.toLowerCase()&&(r[F]=b,F>k?r=r.slice(F):k>F&&(t=t.slice(k)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,c=t.length,u=r.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===fe.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,d=a+1;if(d===u){for(this.debug("** at the end");o<c;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<c;){var p=t[h];if(this.debug(`
9
+ globstar while`,t,h,r,d,p),this.matchOne(t.slice(h),r.slice(d),n))return this.debug("globstar found match!",h,c,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(n&&(this.debug(`
10
+ >>> no match, partial?`,t,h,r,d),h===c))}let y;if(typeof f=="string"?(y=l===f,this.debug("string match",f,l,y)):(y=f.test(l),this.debug("pattern match",f,l,y)),!y)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,fe.braceExpand)(this.pattern,this.options)}parse(t){(0,wu.assertValidPattern)(t);let r=this.options;if(t==="**")return fe.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(mk))?i=r.dot?vk:yk:(n=t.match(ok))?i=(r.nocase?r.dot?lk:ck:r.dot?uk:ak)(n[1]):(n=t.match(Ak))?i=(r.nocase?r.dot?bk:Ek:r.dot?wk:Sk)(n):(n=t.match(fk))?i=r.dot?dk:hk:(n=t.match(pk))&&(i=gk);let s=Kv.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?xk:r.dot?Ok:Pk,i=new Set(r.nocase?["i"]:[]),s=t.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let l of f.flags.split(""))i.add(l);return typeof f=="string"?kk(f):f===fe.GLOBSTAR?fe.GLOBSTAR:f._src});return u.forEach((f,l)=>{let h=u[l+1],d=u[l-1];f!==fe.GLOBSTAR||d===fe.GLOBSTAR||(d===void 0?h!==void 0&&h!==fe.GLOBSTAR?u[l+1]="(?:\\/|"+n+"\\/)?"+h:u[l]=n:h===void 0?u[l-1]=d+"(?:\\/|"+n+")?":h!==fe.GLOBSTAR&&(u[l-1]=d+"(?:\\/|\\/"+n+"\\/)"+h,u[l+1]=fe.GLOBSTAR))}),u.filter(f=>f!==fe.GLOBSTAR).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let c=s[a],u=i;if(n.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return fe.minimatch.defaults(t).Minimatch}};fe.Minimatch=yi;var Tk=rh();Object.defineProperty(fe,"AST",{enumerable:!0,get:function(){return Tk.AST}});var Ik=nh();Object.defineProperty(fe,"escape",{enumerable:!0,get:function(){return Ik.escape}});var Nk=yu();Object.defineProperty(fe,"unescape",{enumerable:!0,get:function(){return Nk.unescape}});fe.minimatch.AST=Kv.AST;fe.minimatch.Minimatch=yi;fe.minimatch.escape=nk.escape;fe.minimatch.unescape=ik.unescape});var fh=R(Lt=>{"use strict";var $k=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Minipass=Lt.isWritable=Lt.isReadable=Lt.isStream=void 0;var Zv=typeof process=="object"&&process?process:{stdout:null,stderr:null},lh=require("node:events"),nA=$k(require("node:stream")),Mk=require("node:string_decoder"),jk=e=>!!e&&typeof e=="object"&&(e instanceof Ru||e instanceof nA.default||(0,Lt.isReadable)(e)||(0,Lt.isWritable)(e));Lt.isStream=jk;var Bk=e=>!!e&&typeof e=="object"&&e instanceof lh.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==nA.default.Writable.prototype.pipe;Lt.isReadable=Bk;var Wk=e=>!!e&&typeof e=="object"&&e instanceof lh.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";Lt.isWritable=Wk;var cn=Symbol("EOF"),ln=Symbol("maybeEmitEnd"),kn=Symbol("emittedEnd"),Su=Symbol("emittingEnd"),uo=Symbol("emittedError"),Cu=Symbol("closed"),eA=Symbol("read"),xu=Symbol("flush"),tA=Symbol("flushChunk"),Dr=Symbol("encoding"),es=Symbol("decoder"),at=Symbol("flowing"),co=Symbol("paused"),ts=Symbol("resume"),ut=Symbol("buffer"),Dt=Symbol("pipes"),ct=Symbol("bufferLength"),ih=Symbol("bufferPush"),Ou=Symbol("bufferShift"),mt=Symbol("objectMode"),Xe=Symbol("destroyed"),sh=Symbol("error"),oh=Symbol("emitData"),rA=Symbol("emitEnd"),ah=Symbol("emitEnd2"),qr=Symbol("async"),uh=Symbol("abort"),Pu=Symbol("aborted"),lo=Symbol("signal"),vi=Symbol("dataListeners"),rr=Symbol("discarded"),fo=e=>Promise.resolve().then(e),qk=e=>e(),Gk=e=>e==="end"||e==="finish"||e==="prefinish",Uk=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,Hk=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),_u=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[ts](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ch=class extends _u{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},zk=e=>!!e.objectMode,Yk=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Ru=class extends lh.EventEmitter{[at]=!1;[co]=!1;[Dt]=[];[ut]=[];[mt];[Dr];[qr];[es];[cn]=!1;[kn]=!1;[Su]=!1;[Cu]=!1;[uo]=null;[ct]=0;[Xe]=!1;[lo];[Pu]=!1;[vi]=0;[rr]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");zk(r)?(this[mt]=!0,this[Dr]=null):Yk(r)?(this[Dr]=r.encoding,this[mt]=!1):(this[mt]=!1,this[Dr]=null),this[qr]=!!r.async,this[es]=this[Dr]?new Mk.StringDecoder(this[Dr]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ut]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Dt]});let{signal:n}=r;n&&(this[lo]=n,n.aborted?this[uh]():n.addEventListener("abort",()=>this[uh]()))}get bufferLength(){return this[ct]}get encoding(){return this[Dr]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[mt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[qr]}set async(t){this[qr]=this[qr]||!!t}[uh](){this[Pu]=!0,this.emit("abort",this[lo]?.reason),this.destroy(this[lo]?.reason)}get aborted(){return this[Pu]}set aborted(t){}write(t,r,n){if(this[Pu])return!1;if(this[cn])throw new Error("write after end");if(this[Xe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[qr]?fo:qk;if(!this[mt]&&!Buffer.isBuffer(t)){if(Hk(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(Uk(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[mt]?(this[at]&&this[ct]!==0&&this[xu](!0),this[at]?this.emit("data",t):this[ih](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):t.length?(typeof t=="string"&&!(r===this[Dr]&&!this[es]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[Dr]&&(t=this[es].write(t)),this[at]&&this[ct]!==0&&this[xu](!0),this[at]?this.emit("data",t):this[ih](t),this[ct]!==0&&this.emit("readable"),n&&i(n),this[at]):(this[ct]!==0&&this.emit("readable"),n&&i(n),this[at])}read(t){if(this[Xe])return null;if(this[rr]=!1,this[ct]===0||t===0||t&&t>this[ct])return this[ln](),null;this[mt]&&(t=null),this[ut].length>1&&!this[mt]&&(this[ut]=[this[Dr]?this[ut].join(""):Buffer.concat(this[ut],this[ct])]);let r=this[eA](t||null,this[ut][0]);return this[ln](),r}[eA](t,r){if(this[mt])this[Ou]();else{let n=r;t===n.length||t===null?this[Ou]():typeof n=="string"?(this[ut][0]=n.slice(t),r=n.slice(0,t),this[ct]-=t):(this[ut][0]=n.subarray(t),r=n.subarray(0,t),this[ct]-=t)}return this.emit("data",r),!this[ut].length&&!this[cn]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[cn]=!0,this.writable=!1,(this[at]||!this[co])&&this[ln](),this}[ts](){this[Xe]||(!this[vi]&&!this[Dt].length&&(this[rr]=!0),this[co]=!1,this[at]=!0,this.emit("resume"),this[ut].length?this[xu]():this[cn]?this[ln]():this.emit("drain"))}resume(){return this[ts]()}pause(){this[at]=!1,this[co]=!0,this[rr]=!1}get destroyed(){return this[Xe]}get flowing(){return this[at]}get paused(){return this[co]}[ih](t){this[mt]?this[ct]+=1:this[ct]+=t.length,this[ut].push(t)}[Ou](){return this[mt]?this[ct]-=1:this[ct]-=this[ut][0].length,this[ut].shift()}[xu](t=!1){do;while(this[tA](this[Ou]())&&this[ut].length);!t&&!this[ut].length&&!this[cn]&&this.emit("drain")}[tA](t){return this.emit("data",t),this[at]}pipe(t,r){if(this[Xe])return t;this[rr]=!1;let n=this[kn];return r=r||{},t===Zv.stdout||t===Zv.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Dt].push(r.proxyErrors?new ch(this,t,r):new _u(this,t,r)),this[qr]?fo(()=>this[ts]()):this[ts]()),t}unpipe(t){let r=this[Dt].find(n=>n.dest===t);r&&(this[Dt].length===1?(this[at]&&this[vi]===0&&(this[at]=!1),this[Dt]=[]):this[Dt].splice(this[Dt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[rr]=!1,this[vi]++,!this[Dt].length&&!this[at]&&this[ts]();else if(t==="readable"&&this[ct]!==0)super.emit("readable");else if(Gk(t)&&this[kn])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[uo]){let i=r;this[qr]?fo(()=>i.call(this,this[uo])):i.call(this,this[uo])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[vi]=this.listeners("data").length,this[vi]===0&&!this[rr]&&!this[Dt].length&&(this[at]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[vi]=0,!this[rr]&&!this[Dt].length&&(this[at]=!1)),r}get emittedEnd(){return this[kn]}[ln](){!this[Su]&&!this[kn]&&!this[Xe]&&this[ut].length===0&&this[cn]&&(this[Su]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Cu]&&this.emit("close"),this[Su]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Xe&&this[Xe])return!1;if(t==="data")return!this[mt]&&!n?!1:this[qr]?(fo(()=>this[oh](n)),!0):this[oh](n);if(t==="end")return this[rA]();if(t==="close"){if(this[Cu]=!0,!this[kn]&&!this[Xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[uo]=n,super.emit(sh,n);let s=!this[lo]||this.listeners("error").length?super.emit("error",n):!1;return this[ln](),s}else if(t==="resume"){let s=super.emit("resume");return this[ln](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[ln](),i}[oh](t){for(let n of this[Dt])n.dest.write(t)===!1&&this.pause();let r=this[rr]?!1:super.emit("data",t);return this[ln](),r}[rA](){return this[kn]?!1:(this[kn]=!0,this.readable=!1,this[qr]?(fo(()=>this[ah]()),!0):this[ah]())}[ah](){if(this[es]){let r=this[es].end();if(r){for(let n of this[Dt])n.dest.write(r);this[rr]||super.emit("data",r)}}for(let r of this[Dt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[mt]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[mt]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[mt])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Dr]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Xe,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[rr]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[cn])return r();let s,o,a=l=>{this.off("data",c),this.off("end",u),this.off(Xe,f),r(),o(l)},c=l=>{this.off("error",a),this.off("end",u),this.off(Xe,f),this.pause(),s({value:l,done:!!this[cn]})},u=()=>{this.off("error",a),this.off("data",c),this.off(Xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Xe,f),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[rr]=!1;let t=!1,r=()=>(this.pause(),this.off(sh,r),this.off(Xe,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(sh,r),this.once(Xe,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Xe])return t?this.emit("error",t):this.emit(Xe),this;this[Xe]=!0,this[rr]=!0,this[ut].length=0,this[ct]=0;let r=this;return typeof r.close=="function"&&!this[Cu]&&r.close(),t?this.emit("error",t):this.emit(Xe),this}static get isStream(){return Lt.isStream}};Lt.Minipass=Ru});var vA=R(ke=>{"use strict";var Vk=ke&&ke.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Kk=ke&&ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xk=ke&&ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Vk(t,e,r);return Kk(t,e),t};Object.defineProperty(ke,"__esModule",{value:!0});ke.PathScurry=ke.Path=ke.PathScurryDarwin=ke.PathScurryPosix=ke.PathScurryWin32=ke.PathScurryBase=ke.PathPosix=ke.PathWin32=ke.PathBase=ke.ChildrenCache=ke.ResolveCache=void 0;var cA=fu(),Tu=require("node:path"),Jk=require("node:url"),po=require("fs"),Qk=Xk(require("node:fs")),Zk=po.realpathSync.native,Fu=require("node:fs/promises"),iA=fh(),go={lstatSync:po.lstatSync,readdir:po.readdir,readdirSync:po.readdirSync,readlinkSync:po.readlinkSync,realpathSync:Zk,promises:{lstat:Fu.lstat,readdir:Fu.readdir,readlink:Fu.readlink,realpath:Fu.realpath}},lA=e=>!e||e===go||e===Qk?go:{...go,...e,promises:{...go.promises,...e.promises||{}}},fA=/^\\\\\?\\([a-z]:)\\?$/i,eT=e=>e.replace(/\//g,"\\").replace(fA,"$1\\"),tT=/[\\\/]/,dr=0,hA=1,dA=2,Gr=4,pA=6,gA=8,Ai=10,mA=12,hr=15,ho=~hr,hh=16,sA=32,mo=64,Lr=128,Du=256,ku=512,oA=mo|Lr|ku,rT=1023,dh=e=>e.isFile()?gA:e.isDirectory()?Gr:e.isSymbolicLink()?Ai:e.isCharacterDevice()?dA:e.isBlockDevice()?pA:e.isSocket()?mA:e.isFIFO()?hA:dr,aA=new Map,yo=e=>{let t=aA.get(e);if(t)return t;let r=e.normalize("NFKD");return aA.set(e,r),r},uA=new Map,Lu=e=>{let t=uA.get(e);if(t)return t;let r=yo(e.toLowerCase());return uA.set(e,r),r},vo=class extends cA.LRUCache{constructor(){super({max:256})}};ke.ResolveCache=vo;var Iu=class extends cA.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};ke.ChildrenCache=Iu;var yA=Symbol("PathScurry setAsCwd"),dt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#c;get rdev(){return this.#c}#l;get blksize(){return this.#l}#a;get ino(){return this.#a}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#v;get mtimeMs(){return this.#v}#p;get ctimeMs(){return this.#p}#d;get birthtimeMs(){return this.#d}#S;get atime(){return this.#S}#m;get mtime(){return this.#m}#C;get ctime(){return this.#C}#x;get birthtime(){return this.#x}#E;#b;#w;#g;#R;#O;#i;#L;#A;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=dr,n,i,s,o,a){this.name=t,this.#E=s?Lu(t):yo(t),this.#i=r&rT,this.nocase=s,this.roots=i,this.root=n||this,this.#L=o,this.#w=a.fullpath,this.#R=a.relative,this.#O=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=lA(a.fs)}depth(){return this.#b!==void 0?this.#b:this.parent?this.#b=this.parent.depth()+1:this.#b=0}childrenCache(){return this.#L}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#k(i):this.#k(i)}#k(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#L.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~hh,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?Lu(t):yo(t);for(let c of n)if(c.#E===i)return c;let s=this.parent?this.sep:"",o=this.#w?this.#w+s+t:void 0,a=this.newChild(t,dr,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Lr),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let t=this.name,r=this.parent;if(!r)return this.#R=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let t=this.name,r=this.parent;if(!r)return this.#O=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#w!==void 0)return this.#w;let t=this.name,r=this.parent;if(!r)return this.#w=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#w=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#g=n}isUnknown(){return(this.#i&hr)===dr}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&hr)===gA}isDirectory(){return(this.#i&hr)===Gr}isCharacterDevice(){return(this.#i&hr)===dA}isBlockDevice(){return(this.#i&hr)===pA}isFIFO(){return(this.#i&hr)===hA}isSocket(){return(this.#i&hr)===mA}isSymbolicLink(){return(this.#i&Ai)===Ai}lstatCached(){return this.#i&sA?this:void 0}readlinkCached(){return this.#A}realpathCached(){return this.#F}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#A)return!0;if(!this.parent)return!1;let t=this.#i&hr;return!(t!==dr&&t!==Ai||this.#i&Du||this.#i&Lr)}calledReaddir(){return!!(this.#i&hh)}isENOENT(){return!!(this.#i&Lr)}isNamed(t){return this.nocase?this.#E===Lu(t):this.#E===yo(t)}async readlink(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}readlinkSync(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}#T(t){this.#i|=hh;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#I()}}#I(){this.#i&Lr||(this.#i=(this.#i|Lr)&ho,this.#P())}#P(){let t=this.children();t.provisional=0;for(let r of t)r.#I()}#_(){this.#i|=ku,this.#N()}#N(){if(this.#i&mo)return;let t=this.#i;(t&hr)===Gr&&(t&=ho),this.#i=t|mo,this.#P()}#$(t=""){t==="ENOTDIR"||t==="EPERM"?this.#N():t==="ENOENT"?this.#I():this.children().provisional=0}#M(t=""){t==="ENOTDIR"?this.parent.#N():t==="ENOENT"&&this.#I()}#f(t=""){let r=this.#i;r|=Du,t==="ENOENT"&&(r|=Lr),(t==="EINVAL"||t==="UNKNOWN")&&(r&=ho),this.#i=r,t==="ENOTDIR"&&this.parent&&this.parent.#N()}#j(t,r){return this.#D(t,r)||this.#B(t,r)}#B(t,r){let n=dh(t),i=this.newChild(t.name,n,{parent:this}),s=i.#i&hr;return s!==Gr&&s!==Ai&&s!==dr&&(i.#i|=mo),r.unshift(i),r.provisional++,i}#D(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?Lu(t.name):yo(t.name))===i.#E)return this.#W(t,i,n,r)}}#W(t,r,n,i){let s=r.name;return r.#i=r.#i&ho|dh(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if(!(this.#i&Lr))try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#M(t.code)}}lstatSync(){if(!(this.#i&Lr))try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#M(t.code)}}#H(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:c,ctimeMs:u,dev:f,gid:l,ino:h,mode:d,mtime:p,mtimeMs:y,nlink:m,rdev:O,size:S,uid:k}=t;this.#S=r,this.#y=n,this.#x=i,this.#d=s,this.#l=o,this.#s=a,this.#C=c,this.#p=u,this.#r=f,this.#h=l,this.#a=h,this.#t=d,this.#m=p,this.#v=y,this.#n=m,this.#c=O,this.#u=S,this.#o=k;let F=dh(t);this.#i=this.#i&ho|F|sA,F!==dr&&F!==Gr&&F!==Ai&&(this.#i|=mo)}#G=[];#U=!1;#z(t){this.#U=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#G.push(t),this.#U)return;this.#U=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#$(s.code),n.provisional=0;else{for(let a of o)this.#j(a,n);this.#T(n)}this.#z(n.slice(0,n.provisional))})}#q;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#q)await this.#q;else{let n=()=>{};this.#q=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(i,t);this.#T(t)}catch(i){this.#$(i.code),t.provisional=0}this.#q=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(n,t);this.#T(t)}catch(n){this.#$(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#i&oA)return!1;let t=hr&this.#i;return t===dr||t===Gr||t===Ai}shouldWalk(t,r){return(this.#i&Gr)===Gr&&!(this.#i&oA)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#F)return this.#F;if(!((ku|Du|Lr)&this.#i))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#F=this.resolve(t)}catch{this.#_()}}realpathSync(){if(this.#F)return this.#F;if(!((ku|Du|Lr)&this.#i))try{let t=this.#e.realpathSync(this.fullpath());return this.#F=this.resolve(t)}catch{this.#_()}}[yA](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#R=n.join(this.sep),i.#O=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#R=void 0,i.#O=void 0,i=i.parent}};ke.PathBase=dt;var Ao=class e extends dt{sep="\\";splitSep=tT;constructor(t,r=dr,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=dr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return Tu.win32.parse(t).root}getRoot(t){if(t=eT(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new wo(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(fA,"$1\\"),t===r}};ke.PathWin32=Ao;var Eo=class e extends dt{splitSep="/";sep="/";constructor(t,r=dr,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=dr,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};ke.PathPosix=Eo;var bo=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=go}={}){this.#n=lA(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,Jk.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new vo,this.#r=new vo,this.#t=new Iu(s);let c=a.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let u=this.root,f=c.length-1,l=r.sep,h=this.rootPath,d=!1;for(let p of c){let y=f--;u=u.child(p,{relative:new Array(y).fill("..").join(l),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(d?"":l)+p}),d=!0}this.cwd=u}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set,u=(l,h)=>{c.add(l),l.readdirCB((d,p)=>{if(d)return h(d);let y=p.length;if(!y)return h();let m=()=>{--y===0&&h()};for(let O of p)(!s||s(O))&&a.push(n?O:O.fullpath()),i&&O.isSymbolicLink()?O.realpath().then(S=>S?.isUnknown()?S.lstat():S).then(S=>S?.shouldWalk(c,o)?u(S,m):m()):O.shouldWalk(c,o)?u(O,m):m()},!0)},f=t;return new Promise((l,h)=>{u(f,d=>{if(d)return h(d);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set([t]);for(let u of c){let f=u.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(c,o)&&c.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let c of a){let u=c.readdirSync();for(let f of u){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new iA.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let c=new Set,u=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,c.add(d);let p=(m,O,S=!1)=>{if(m)return a.emit("error",m);if(i&&!S){let k=[];for(let F of O)F.isSymbolicLink()&&k.push(F.realpath().then(b=>b?.isUnknown()?b.lstat():b));if(k.length){Promise.all(k).then(()=>p(null,O,!0));return}}for(let k of O)k&&(!s||s(k))&&(a.write(n?k:k.fullpath())||(h=!0));f--;for(let k of O){let F=k.realpathCached()||k;F.shouldWalk(c,o)&&u.push(F)}h&&!a.flowing?a.once("drain",l):y||l()},y=!0;d.readdirCB(p,!0),y=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof dt||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new iA.Minipass({objectMode:!0}),c=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let u=[t],f=0,l=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,c.add(d);let p=d.readdirSync();for(let y of p)(!s||s(y))&&(a.write(n?y:y.fullpath())||(h=!0));f--;for(let y of p){let m=y;if(y.isSymbolicLink()){if(!(i&&(m=y.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(c,o)&&u.push(m)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[yA](r)}};ke.PathScurryBase=bo;var wo=class extends bo{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,Tu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Tu.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ao(this.rootPath,Gr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};ke.PathScurryWin32=wo;var So=class extends bo{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,Tu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new Eo(this.rootPath,Gr,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};ke.PathScurryPosix=So;var Nu=class extends So{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};ke.PathScurryDarwin=Nu;ke.Path=process.platform==="win32"?Ao:Eo;ke.PathScurry=process.platform==="win32"?wo:process.platform==="darwin"?Nu:So});var gh=R($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.Pattern=void 0;var nT=un(),iT=e=>e.length>=1,sT=e=>e.length>=1,ph=class e{#e;#r;#t;length;#n;#o;#h;#c;#l;#a;#u=!0;constructor(t,r,n,i){if(!iT(t))throw new TypeError("empty pattern list");if(!sT(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,c,...u]=this.#e,[f,l,h,d,...p]=this.#r;u[0]===""&&(u.shift(),p.shift());let y=[s,o,a,c,""].join("/"),m=[f,l,h,d,""].join("/");this.#e=[y,...u],this.#r=[m,...p],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...c]=this.#r;o[0]===""&&(o.shift(),c.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...c],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===nT.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};$u.Pattern=ph});var yh=R(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.Ignore=void 0;var AA=un(),oT=gh(),aT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",mh=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=aT}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new AA.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new oT.Pattern(i,s,0,this.platform),a=new AA.Minimatch(o.globString(),this.mmopts),c=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};Mu.Ignore=mh});var bA=R(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Processor=Ur.SubWalks=Ur.MatchRecord=Ur.HasWalkedCache=void 0;var EA=un(),ju=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Ur.HasWalkedCache=ju;var Bu=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Ur.MatchRecord=Bu;var Wu=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Ur.SubWalks=Wu;var vh=class e{hasWalkedCache;matches=new Bu;subwalks=new Wu;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new ju}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,u,f=!1;for(;typeof(c=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(c),s=u,f=!0;if(c=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof c=="string"){let l=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,l);continue}else if(c===EA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=u?.pattern(),h=u?.rest();if(!u||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let d=i.parent||i;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else c instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),c=o.pattern(),u=o.rest();c===EA.GLOBSTAR?i.testGlobstar(s,o,u,a):c instanceof RegExp?i.testRegExp(s,c,u,a):i.testString(s,c,u,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};Ur.Processor=vh});var CA=R(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GlobStream=Tn.GlobWalker=Tn.GlobUtil=void 0;var uT=fh(),wA=yh(),SA=bA(),cT=(e,t)=>typeof e=="string"?new wA.Ignore([e],t):Array.isArray(e)?new wA.Ignore(e,t):e,Co=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=cT(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new SA.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,n,o):a.readdirCB((u,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let[a,c]of n.subwalks.entries())s++,this.walkCB2(a,c,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new SA.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirSync();this.walkCB3Sync(a,c,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let[a,c]of n.subwalks.entries())s++,this.walkCB2Sync(a,c,n.child(),o);o()}};Tn.GlobUtil=Co;var Ah=class extends Co{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Tn.GlobWalker=Ah;var Eh=class extends Co{results;constructor(t,r,n){super(t,r,n),this.results=new uT.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Tn.GlobStream=Eh});var wh=R(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.Glob=void 0;var lT=un(),fT=require("node:url"),qu=vA(),hT=gh(),Gu=CA(),dT=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bh=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,fT.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=t,this.platform=r.platform||dT,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=r.platform==="win32"?qu.PathScurryWin32:r.platform==="darwin"?qu.PathScurryDarwin:r.platform?qu.PathScurryPosix:qu.PathScurry;this.scurry=new c(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(c=>new lT.Minimatch(c,i)),[o,a]=s.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=o.map((c,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new hT.Pattern(c,f,0,this.platform)})}async walk(){return[...await new Gu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Gu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Gu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Gu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Uu.Glob=bh});var Sh=R(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.hasMagic=void 0;var pT=un(),gT=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new pT.Minimatch(r,t).hasMagic())return!0;return!1};Hu.hasMagic=gT});var Ph=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.glob=_e.sync=_e.iterate=_e.iterateSync=_e.stream=_e.streamSync=_e.Ignore=_e.hasMagic=_e.Glob=_e.unescape=_e.escape=void 0;_e.globStreamSync=xo;_e.globStream=Ch;_e.globSync=xh;_e.globIterateSync=Oo;_e.globIterate=Oh;var xA=un(),Ei=wh(),mT=Sh(),PA=un();Object.defineProperty(_e,"escape",{enumerable:!0,get:function(){return PA.escape}});Object.defineProperty(_e,"unescape",{enumerable:!0,get:function(){return PA.unescape}});var yT=wh();Object.defineProperty(_e,"Glob",{enumerable:!0,get:function(){return yT.Glob}});var vT=Sh();Object.defineProperty(_e,"hasMagic",{enumerable:!0,get:function(){return vT.hasMagic}});var AT=yh();Object.defineProperty(_e,"Ignore",{enumerable:!0,get:function(){return AT.Ignore}});function xo(e,t={}){return new Ei.Glob(e,t).streamSync()}function Ch(e,t={}){return new Ei.Glob(e,t).stream()}function xh(e,t={}){return new Ei.Glob(e,t).walkSync()}async function OA(e,t={}){return new Ei.Glob(e,t).walk()}function Oo(e,t={}){return new Ei.Glob(e,t).iterateSync()}function Oh(e,t={}){return new Ei.Glob(e,t).iterate()}_e.streamSync=xo;_e.stream=Object.assign(Ch,{sync:xo});_e.iterateSync=Oo;_e.iterate=Object.assign(Oh,{sync:Oo});_e.sync=Object.assign(xh,{stream:xo,iterate:Oo});_e.glob=Object.assign(OA,{glob:OA,globSync:xh,sync:_e.sync,globStream:Ch,stream:_e.stream,globStreamSync:xo,streamSync:_e.streamSync,globIterate:Oh,iterate:_e.iterate,globIterateSync:Oo,iterateSync:_e.iterateSync,Glob:Ei.Glob,hasMagic:mT.hasMagic,escape:xA.escape,unescape:xA.unescape});_e.glob.glob=_e.glob});var RA=R(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.sync=rs.isexe=void 0;var ET=require("fs"),bT=require("fs/promises"),wT=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return _A(await(0,bT.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.isexe=wT;var ST=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return _A((0,ET.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};rs.sync=ST;var _A=(e,t)=>e.isFile()&&CT(e,t),CT=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=u|f;return!!(o&l||o&f&&s.has(c)||o&u&&a===r||o&h&&r===0)}});var DA=R(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.sync=ns.isexe=void 0;var xT=require("fs"),OT=require("fs/promises"),PT=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return FA(await(0,OT.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.isexe=PT;var _T=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return FA((0,xT.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};ns.sync=_T;var RT=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},FA=(e,t,r)=>e.isFile()&&RT(t,r)});var kA=R(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0})});var jA=R(nt=>{"use strict";var TA=nt&&nt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),FT=nt&&nt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IA=nt&&nt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&TA(t,e,r);return FT(t,e),t},DT=nt&&nt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&TA(t,e,r)};Object.defineProperty(nt,"__esModule",{value:!0});nt.sync=nt.isexe=nt.posix=nt.win32=void 0;var NA=IA(RA());nt.posix=NA;var $A=IA(DA());nt.win32=$A;DT(kA(),nt);var LT=process.env._ISEXE_TEST_PLATFORM_||process.platform,MA=LT==="win32"?$A:NA;nt.isexe=MA.isexe;nt.sync=MA.sync});var _h=R((P5,VA)=>{var{isexe:kT,sync:TT}=jA(),{join:IT,delimiter:NT,sep:BA,posix:WA}=require("path"),qA=process.platform==="win32",GA=new RegExp(`[${WA.sep}${BA===WA.sep?"":BA}]`.replace(/(\\)/g,"\\$1")),$T=new RegExp(`^\\.${GA.source}`),UA=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),HA=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=NT})=>{let i=e.match(GA)?[""]:[...qA?[process.cwd()]:[],...(t||"").split(n)];if(qA){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},zA=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&$T.test(t)?t.slice(0,2):"")+IT(r,t)},YA=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=HA(e,t),s=[];for(let o of r){let a=zA(o,e);for(let c of n){let u=a+c;if(await kT(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw UA(e)},MT=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=HA(e,t),s=[];for(let o of r){let a=zA(o,e);for(let c of n){let u=a+c;if(TT(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw UA(e)};VA.exports=YA;YA.sync=MT});var XA=R((_5,KA)=>{"use strict";var jT=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},BT=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";KA.exports={cmd:jT,sh:BT}});var tE=R((R5,eE)=>{"use strict";var{spawn:WT}=require("child_process"),qT=require("os"),GT=_h(),JA=XA(),Fh=(e,t,r={},n={})=>{if(r.shell)return ZA(e,t,r,n);let i,s,o=new Promise((d,p)=>{i=d,s=p}),a=new Error("command failed"),c=[],u=[],f=d=>({cmd:e,args:t,...d,...HT(c,u,r),...n}),l=(d,p)=>{let y=f(p);s(Object.assign(d,y))},h=WT(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",d=>c.push(d)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",d=>u.push(d)),h.stderr.on("error",l)),h.on("close",(d,p)=>{d||p?l(a,{code:d,signal:p}):i(f({code:d,signal:p}))}),o},ZA=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec:"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let u=!1,f="",l=!1;for(let d=0;d<e.length;++d){let p=e.charAt(d);if(p===" "&&!l)break;f+=p,(p==='"'||p==="'")&&(l=!l)}let h;try{h=GT.sync(f,{path:s.env&&QA(s.env,"PATH")||process.env.PATH,pathext:s.env&&QA(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}u=h.endsWith(".cmd")||h.endsWith(".bat");for(let d of t)a+=` ${JA.cmd(d,u)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let u of t)a+=` ${JA.sh(u)}`;o.push("-c",a)}return Fh(i,o,s,n)},UT=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&qT.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),ZA(o,i,n,r)};Fh.open=UT;var Rh=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Rh(e[t],t):!1,HT=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Rh(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Rh(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},QA=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};eE.exports=Fh});var iE=R((F5,nE)=>{"use strict";function rE(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function zT(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return rE(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),rE(new i,r)}}nE.exports=zT});var oE=R((D5,sE)=>{function pr(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}sE.exports=pr;pr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};pr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};pr.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};pr.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};pr.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};pr.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};pr.prototype.start=pr.prototype.try;pr.prototype.errors=function(){return this._errors};pr.prototype.attempts=function(){return this._attempts};pr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var aE=R(bi=>{var YT=oE();bi.operation=function(e){var t=bi.timeouts(e);return new YT(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};bi.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};bi.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};bi.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(c){var u=bi.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){u.retry(h)||(h&&(arguments[0]=u.mainError()),l.apply(this,arguments))}),u.attempt(function(){c.apply(e,f)})}.bind(e,o),e[s].options=t}}});var cE=R((k5,uE)=>{uE.exports=aE()});var hE=R((T5,fE)=>{"use strict";var VT=iE(),KT=cE(),XT=Object.prototype.hasOwnProperty;function lE(e){return e&&e.code==="EPROMISERETRY"&&XT.call(e,"retried")}function JT(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=KT.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw lE(a)&&(a=a.retried),VT(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){lE(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}fE.exports=JT});var Th=R((I5,dE)=>{var Po=class extends Error{shouldRetry(){return!1}},Dh=class extends Po{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Lh=class extends Po{constructor(){super("The git reference could not be found")}},kh=class extends Po{constructor(){super("An unknown git error occurred")}};dE.exports={GitConnectionError:Dh,GitPathspecError:Lh,GitUnknownError:kh}});var gE=R((N5,pE)=>{var{GitConnectionError:QT,GitPathspecError:ZT,GitUnknownError:eI}=Th(),tI=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),rI=/pathspec .* did not match any file\(s\) known to git/;function nI(e){let t=e.stderr,r;return tI.test(t)?r=new QT(t):rI.test(t)?r=new ZT(t):r=new eI(t),Object.assign(r,e)}pE.exports=nI});var AE=R(($5,Ih)=>{var mE=require("node:fs"),iI=require("node:os"),sI=require("node:path"),oI=Sf(),yE=sI.join(iI.homedir(),".gitconfig"),_o=null,vE=()=>{if(_o===null)try{if(_o={},mE.existsSync(yE)){let e=mE.readFileSync(yE,"utf-8");_o=oI.parse(e)}}catch{_o={}}return _o},aI=()=>{let e=vE();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},uI=process.env.GIT_SSH_COMMAND!==void 0,cI=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:lI,askPassSetInConfig:fI}=aI(),hI={...cI||fI?{}:{GIT_ASKPASS:"echo"},...uI||lI?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Ih.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...hI,...process.env}});Ih.exports.loadGitConfig=vE});var bE=R((M5,EE)=>{var dI=_h(),Nh;try{Nh=dI.sync("git")}catch{}EE.exports=(e={})=>e.git?e.git:!Nh||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Nh});var Ro=R((j5,wE)=>{var pI=tE(),gI=hE(),{log:mI}=no(),yI=gE(),vI=AE();wE.exports=(e,t={})=>{let n=bE()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),gI((o,a)=>(a!==1&&mI.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),pI(n,i,vI(t)).catch(c=>{let u=yI(c);if(!u.shouldRetry(a))throw u;o(u)})),s)}});var xE=R((B5,CE)=>{var SE=gt(),AI=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new SE(e instanceof SE?e.version:e,r).inc(t,n,i).version}catch{return null}};CE.exports=AI});var _E=R((W5,PE)=>{var OE=mi(),EI=(e,t)=>{let r=OE(e,null,!0),n=OE(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=c?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};PE.exports=EI});var FE=R((q5,RE)=>{var bI=gt(),wI=(e,t)=>new bI(e,t).major;RE.exports=wI});var LE=R((G5,DE)=>{var SI=gt(),CI=(e,t)=>new SI(e,t).minor;DE.exports=CI});var TE=R((U5,kE)=>{var xI=gt(),OI=(e,t)=>new xI(e,t).patch;kE.exports=OI});var NE=R((H5,IE)=>{var PI=mi(),_I=(e,t)=>{let r=PI(e,t);return r&&r.prerelease.length?r.prerelease:null};IE.exports=_I});var gr=R((z5,ME)=>{var $E=gt(),RI=(e,t,r)=>new $E(e,r).compare(new $E(t,r));ME.exports=RI});var BE=R((Y5,jE)=>{var FI=gr(),DI=(e,t,r)=>FI(t,e,r);jE.exports=DI});var qE=R((V5,WE)=>{var LI=gr(),kI=(e,t)=>LI(e,t,!0);WE.exports=kI});var zu=R((K5,UE)=>{var GE=gt(),TI=(e,t,r)=>{let n=new GE(e,r),i=new GE(t,r);return n.compare(i)||n.compareBuild(i)};UE.exports=TI});var zE=R((X5,HE)=>{var II=zu(),NI=(e,t)=>e.sort((r,n)=>II(r,n,t));HE.exports=NI});var VE=R((J5,YE)=>{var $I=zu(),MI=(e,t)=>e.sort((r,n)=>$I(n,r,t));YE.exports=MI});var Fo=R((Q5,KE)=>{var jI=gr(),BI=(e,t,r)=>jI(e,t,r)>0;KE.exports=BI});var Yu=R((Z5,XE)=>{var WI=gr(),qI=(e,t,r)=>WI(e,t,r)<0;XE.exports=qI});var $h=R((eV,JE)=>{var GI=gr(),UI=(e,t,r)=>GI(e,t,r)===0;JE.exports=UI});var Mh=R((tV,QE)=>{var HI=gr(),zI=(e,t,r)=>HI(e,t,r)!==0;QE.exports=zI});var Vu=R((rV,ZE)=>{var YI=gr(),VI=(e,t,r)=>YI(e,t,r)>=0;ZE.exports=VI});var Ku=R((nV,eb)=>{var KI=gr(),XI=(e,t,r)=>KI(e,t,r)<=0;eb.exports=XI});var jh=R((iV,tb)=>{var JI=$h(),QI=Mh(),ZI=Fo(),eN=Vu(),tN=Yu(),rN=Ku(),nN=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return JI(e,r,n);case"!=":return QI(e,r,n);case">":return ZI(e,r,n);case">=":return eN(e,r,n);case"<":return tN(e,r,n);case"<=":return rN(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};tb.exports=nN});var nb=R((sV,rb)=>{var iN=gt(),sN=mi(),{safeRe:Xu,t:Ju}=Ki(),oN=(e,t)=>{if(e instanceof iN)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Xu[Ju.COERCEFULL]:Xu[Ju.COERCE]);else{let c=t.includePrerelease?Xu[Ju.COERCERTLFULL]:Xu[Ju.COERCERTL],u;for(;(u=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return sN(`${n}.${i}.${s}${o}${a}`,t)};rb.exports=oN});var sb=R((oV,ib)=>{var Bh=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};ib.exports=Bh});var mr=R((aV,cb)=>{var aN=/\s+/g,Wh=class e{constructor(t,r){if(r=cN(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof qh)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(aN," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!ab(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&mN(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&pN)|(this.options.loose&&gN))+":"+t,i=ob.get(n);if(i)return i;let s=this.options.loose,o=s?jt[kt.HYPHENRANGELOOSE]:jt[kt.HYPHENRANGE];t=t.replace(o,ON(this.options.includePrerelease)),Ge("hyphen replace",t),t=t.replace(jt[kt.COMPARATORTRIM],fN),Ge("comparator trim",t),t=t.replace(jt[kt.TILDETRIM],hN),Ge("tilde trim",t),t=t.replace(jt[kt.CARETTRIM],dN),Ge("caret trim",t);let a=t.split(" ").map(l=>yN(l,this.options)).join(" ").split(/\s+/).map(l=>xN(l,this.options));s&&(a=a.filter(l=>(Ge("loose invalid filter",l,this.options),!!l.match(jt[kt.COMPARATORLOOSE])))),Ge("range list",a);let c=new Map,u=a.map(l=>new qh(l,this.options));for(let l of u){if(ab(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return ob.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>ub(n,r)&&t.set.some(i=>ub(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new lN(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(PN(this.set[r],t,this.options))return!0;return!1}};cb.exports=Wh;var uN=sb(),ob=new uN,cN=tu(),qh=Do(),Ge=io(),lN=gt(),{safeRe:jt,t:kt,comparatorTrimReplace:fN,tildeTrimReplace:hN,caretTrimReplace:dN}=Ki(),{FLAG_INCLUDE_PRERELEASE:pN,FLAG_LOOSE:gN}=so(),ab=e=>e.value==="<0.0.0-0",mN=e=>e.value==="",ub=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},yN=(e,t)=>(Ge("comp",e,t),e=EN(e,t),Ge("caret",e),e=vN(e,t),Ge("tildes",e),e=wN(e,t),Ge("xrange",e),e=CN(e,t),Ge("stars",e),e),Tt=e=>!e||e.toLowerCase()==="x"||e==="*",vN=(e,t)=>e.trim().split(/\s+/).map(r=>AN(r,t)).join(" "),AN=(e,t)=>{let r=t.loose?jt[kt.TILDELOOSE]:jt[kt.TILDE];return e.replace(r,(n,i,s,o,a)=>{Ge("tilde",e,n,i,s,o,a);let c;return Tt(i)?c="":Tt(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Tt(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ge("replaceTilde pr",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ge("tilde return",c),c})},EN=(e,t)=>e.trim().split(/\s+/).map(r=>bN(r,t)).join(" "),bN=(e,t)=>{Ge("caret",e,t);let r=t.loose?jt[kt.CARETLOOSE]:jt[kt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,c)=>{Ge("caret",e,i,s,o,a,c);let u;return Tt(s)?u="":Tt(o)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Tt(a)?s==="0"?u=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(Ge("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Ge("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ge("caret return",u),u})},wN=(e,t)=>(Ge("replaceXRanges",e,t),e.split(/\s+/).map(r=>SN(r,t)).join(" ")),SN=(e,t)=>{e=e.trim();let r=t.loose?jt[kt.XRANGELOOSE]:jt[kt.XRANGE];return e.replace(r,(n,i,s,o,a,c)=>{Ge("xRange",e,n,i,s,o,a,c);let u=Tt(s),f=u||Tt(o),l=f||Tt(a),h=l;return i==="="&&h&&(i=""),c=t.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):f?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Ge("xRange return",n),n})},CN=(e,t)=>(Ge("replaceStars",e,t),e.trim().replace(jt[kt.STAR],"")),xN=(e,t)=>(Ge("replaceGTE0",e,t),e.trim().replace(jt[t.includePrerelease?kt.GTE0PRE:kt.GTE0],"")),ON=e=>(t,r,n,i,s,o,a,c,u,f,l,h)=>(Tt(n)?r="":Tt(i)?r=`>=${n}.0.0${e?"-0":""}`:Tt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Tt(u)?c="":Tt(f)?c=`<${+u+1}.0.0-0`:Tt(l)?c=`<${u}.${+f+1}.0-0`:h?c=`<=${u}.${f}.${l}-${h}`:e?c=`<${u}.${f}.${+l+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),PN=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Ge(e[n].semver),e[n].semver!==qh.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Do=R((uV,gb)=>{var Lo=Symbol("SemVer ANY"),Hh=class e{static get ANY(){return Lo}constructor(t,r){if(r=lb(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Uh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Lo?this.value="":this.value=this.operator+this.semver.version,Uh("comp",this)}parse(t){let r=this.options.loose?fb[hb.COMPARATORLOOSE]:fb[hb.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new db(n[2],this.options.loose):this.semver=Lo}toString(){return this.value}test(t){if(Uh("Comparator.test",t,this.options.loose),this.semver===Lo||t===Lo)return!0;if(typeof t=="string")try{t=new db(t,this.options)}catch{return!1}return Gh(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new pb(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new pb(this.value,r).test(t.semver):(r=lb(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Gh(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Gh(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};gb.exports=Hh;var lb=tu(),{safeRe:fb,t:hb}=Ki(),Gh=jh(),Uh=io(),db=gt(),pb=mr()});var is=R((cV,mb)=>{var _N=mr(),RN=(e,t,r)=>{try{t=new _N(t,r)}catch{return!1}return t.test(e)};mb.exports=RN});var vb=R((lV,yb)=>{var FN=mr(),DN=(e,t)=>new FN(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));yb.exports=DN});var Eb=R((fV,Ab)=>{var LN=gt(),kN=mr(),TN=(e,t,r)=>{let n=null,i=null,s=null;try{s=new kN(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new LN(n,r))}),n};Ab.exports=TN});var wb=R((hV,bb)=>{var IN=gt(),NN=mr(),$N=(e,t,r)=>{let n=null,i=null,s=null;try{s=new NN(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new IN(n,r))}),n};bb.exports=$N});var xb=R((dV,Cb)=>{var zh=gt(),MN=mr(),Sb=Fo(),jN=(e,t)=>{e=new MN(e,t);let r=new zh("0.0.0");if(e.test(r)||(r=new zh("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new zh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Sb(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Sb(r,s))&&(r=s)}return r&&e.test(r)?r:null};Cb.exports=jN});var Yh=R((pV,Ob)=>{var BN=mr(),WN=(e,t)=>{try{return new BN(e,t).range||"*"}catch{return null}};Ob.exports=WN});var Qu=R((gV,Fb)=>{var qN=gt(),Rb=Do(),{ANY:GN}=Rb,UN=mr(),HN=is(),Pb=Fo(),_b=Yu(),zN=Ku(),YN=Vu(),VN=(e,t,r,n)=>{e=new qN(e,n),t=new UN(t,n);let i,s,o,a,c;switch(r){case">":i=Pb,s=zN,o=_b,a=">",c=">=";break;case"<":i=_b,s=YN,o=Pb,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(HN(e,t,n))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],l=null,h=null;if(f.forEach(d=>{d.semver===GN&&(d=new Rb(">=0.0.0")),l=l||d,h=h||d,i(d.semver,l.semver,n)?l=d:o(d.semver,h.semver,n)&&(h=d)}),l.operator===a||l.operator===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};Fb.exports=VN});var Lb=R((mV,Db)=>{var KN=Qu(),XN=(e,t,r)=>KN(e,t,">",r);Db.exports=XN});var Tb=R((yV,kb)=>{var JN=Qu(),QN=(e,t,r)=>JN(e,t,"<",r);kb.exports=QN});var $b=R((vV,Nb)=>{var Ib=mr(),ZN=(e,t,r)=>(e=new Ib(e,r),t=new Ib(t,r),e.intersects(t,r));Nb.exports=ZN});var jb=R((AV,Mb)=>{var e2=is(),t2=gr();Mb.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>t2(f,l,r));for(let f of o)e2(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var Hb=R((EV,Ub)=>{var Bb=mr(),Kh=Do(),{ANY:Vh}=Kh,ko=is(),Xh=gr(),r2=(e,t,r={})=>{if(e===t)return!0;e=new Bb(e,r),t=new Bb(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=i2(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},n2=[new Kh(">=0.0.0-0")],Wb=[new Kh(">=0.0.0")],i2=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Vh){if(t.length===1&&t[0].semver===Vh)return!0;r.includePrerelease?e=n2:e=Wb}if(t.length===1&&t[0].semver===Vh){if(r.includePrerelease)return!0;t=Wb}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=qb(i,d,r):d.operator==="<"||d.operator==="<="?s=Gb(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Xh(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!ko(d,String(i),r)||s&&!ko(d,String(s),r))return null;for(let p of t)if(!ko(d,String(p),r))return!1;return!0}let a,c,u,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let d of t){if(f=f||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",i){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=qb(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!ko(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(c=Gb(s,d,r),c===d&&c!==s)return!1}else if(s.operator==="<="&&!ko(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},qb=(e,t,r)=>{if(!e)return t;let n=Xh(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Gb=(e,t,r)=>{if(!e)return t;let n=Xh(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Ub.exports=r2});var To=R((bV,Vb)=>{var Jh=Ki(),zb=so(),s2=gt(),Yb=kf(),o2=mi(),a2=su(),u2=Hf(),c2=xE(),l2=_E(),f2=FE(),h2=LE(),d2=TE(),p2=NE(),g2=gr(),m2=BE(),y2=qE(),v2=zu(),A2=zE(),E2=VE(),b2=Fo(),w2=Yu(),S2=$h(),C2=Mh(),x2=Vu(),O2=Ku(),P2=jh(),_2=nb(),R2=Do(),F2=mr(),D2=is(),L2=vb(),k2=Eb(),T2=wb(),I2=xb(),N2=Yh(),$2=Qu(),M2=Lb(),j2=Tb(),B2=$b(),W2=jb(),q2=Hb();Vb.exports={parse:o2,valid:a2,clean:u2,inc:c2,diff:l2,major:f2,minor:h2,patch:d2,prerelease:p2,compare:g2,rcompare:m2,compareLoose:y2,compareBuild:v2,sort:A2,rsort:E2,gt:b2,lt:w2,eq:S2,neq:C2,gte:x2,lte:O2,cmp:P2,coerce:_2,Comparator:R2,Range:F2,satisfies:D2,toComparators:L2,maxSatisfying:k2,minSatisfying:T2,minVersion:I2,validRange:N2,outside:$2,gtr:M2,ltr:j2,intersects:B2,simplifyRange:W2,subset:q2,SemVer:s2,re:Jh.re,src:Jh.src,tokens:Jh.t,SEMVER_SPEC_VERSION:zb.SEMVER_SPEC_VERSION,RELEASE_TYPES:zb.RELEASE_TYPES,compareIdentifiers:Yb.compareIdentifiers,rcompareIdentifiers:Yb.rcompareIdentifiers}});var Jb=R((wV,Xb)=>{var Kb=To();Xb.exports=e=>G2(e.reduce(K2,{versions:{},"dist-tags":{},refs:{},shas:{}}));var G2=e=>z2(U2(H2(e))),U2=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),H2=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),z2=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},Y2=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",V2=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=Y2(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},K2=(e,t)=>{let r=V2(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&Kb.valid(n[1],!0)&&(e.versions[Kb.clean(n[1],!0)]=r)}return e}});var Qh=R((SV,Zb)=>{var X2=Ro(),{LRUCache:J2}=fu(),Q2=Jb(),Qb=new J2({max:100,ttl:5*60*1e3});Zb.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=Qb.get(e);if(i)return i}let{stdout:r}=await X2(["ls-remote",e],t),n=Q2(r.trim().split(`
11
+ `));return Qb.set(e,n),n}});var tw=R(ew=>{var Z2=e=>(e.fakePlatform||process.platform)==="win32";ew.isWindows=Z2});var nw=R((xV,rw)=>{"use strict";var{builtinModules:e$}=require("module"),t$=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),r$=["node_modules","favicon.ico"];function n$(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),Io(t,r);if(e===void 0)return r.push("name cannot be undefined"),Io(t,r);if(typeof e!="string")return r.push("name must be a string"),Io(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),r$.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),e$.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(t$);if(n){var i=n[1],s=n[2];if(encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return Io(t,r)}r.push("name can only contain URL-friendly characters")}return Io(t,r)}var Io=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};rw.exports=n$});var hw=R((OV,jo)=>{"use strict";var Mo=process.platform==="win32",{URL:Zh}=require("node:url"),ss=Mo?require("node:path/win32"):require("node:path"),{homedir:i$}=require("node:os"),s$=du(),iw=To(),uw=nw(),{log:o$}=no(),cw=Mo?/\\|[/]/:/[/]/,lw=/^(?:git[+])?[a-z]+:/i,a$=/^[^@]+@[^:.]+\.[^:]+:.+$/i,td=/[.](?:tgz|tar.gz|tar)$/i,u$=/:[0-9]+(\/|$)/i,c$=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,l$=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,sw="https://registry.npmjs.org";function No(e,t){let r,n;if(typeof e=="object")return e instanceof $o&&(!t||t===e.where)?e:e.name&&e.rawSpec?No.resolve(e.name,e.rawSpec,t||e.where):No(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return lw.test(e)?n=e:a$.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(cw.test(s)||td.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):uw(e).validForOldPackages?(r=e,n="*"):n=e,fw(r,n,t,e)}function f$(e){return e?e.toLowerCase().startsWith("file:")?!0:Mo?c$.test(e):l$.test(e):!1}function h$(e){return e?e.toLowerCase().startsWith("npm:"):!1}function fw(e,t,r,n){let i=new $o({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),f$(t))return aw(i,r);if(h$(t))return b$(i,r);let s=s$.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?v$(i,s):t&&lw.test(t)?E$(i):t&&(cw.test(t)||td.test(t))?aw(i,r):w$(i)}function d$(e,t=sw){let r=No(e);if(r.type!=="version")throw m$(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==sw&&(n+="?repository_url="+t),n}function p$(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function g$(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function m$(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var $o=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=uw(t);if(!r.validForOldPackages)throw p$(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function ed(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}o$.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var y$=new Map([["\0","%00"],[" ","%09"],[`
12
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Mo?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function ow(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${y$.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function aw(e,t){e.type=td.test(e.rawSpec)?"file":"directory",e.where=t;let r=ow(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new Zh(r,`${ow(ss.resolve(t))}/`),i=new Zh(r)}catch(a){let c=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(c,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return Mo&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=ss.resolve(i$(),s.substr(3))):ss.isAbsolute(r.slice(5))?e.saveSpec=`file:${ss.resolve(o)}`:e.saveSpec=`file:${ss.relative(t,o)}`,e.fetchSpec=ss.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function v$(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),ed(e,t.committish),e}function A$(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function E$(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(u$))return e.type="git",ed(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new Zh(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",ed(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw A$(r.protocol,t)}return e}function b$(e,t){let r=No(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function w$(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=iw.valid(t,!0),n=iw.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw g$(t,e.raw);e.type="tag"}return e}jo.exports=No;jo.exports.resolve=fw;jo.exports.toPurl=d$;jo.exports.Result=$o});var yw=R((PV,mw)=>{var wi=require("node:process"),S$=require("node:os"),C$=require("node:fs");function x$(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function dw(){return wi.platform}function pw(){return wi.arch}var O$="/usr/bin/ldd";function P$(){try{let e=C$.readFileSync(O$,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function _$(){let e=wi.report.excludeNetwork;wi.report.excludeNetwork=!0;let t=wi.report.getReport();return wi.report.excludeNetwork=e,t.header?.glibcVersionRuntime?fn="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(x$)?fn="musl":fn=null,fn}var fn;function gw(e){if(e==="linux")return fn===void 0&&(fn=P$(),fn===void 0&&(fn=_$())),fn}function R$(e={}){let t=e.os||dw();return{cpu:{name:e.cpu||pw()},libc:{name:e.libc||gw(t)},os:{name:t,version:e.osVersion||S$.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||wi.version}}}mw.exports={cpu:pw,libc:gw,os:dw,devEngines:R$}});var Aw=R((_V,vw)=>{var F$=is(),D$=Yh(),L$=["ignore","warn","error","download"],k$=["name","version","onFail"],T$=["packageManager","runtime","cpu","libc","os"];function I$(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!k$.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!L$.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(D$(e.version)){if(!F$(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function N$(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error("Invalid non-object value for devEngines");let n=[];for(let i of Object.keys(e)){if(!T$.includes(i))throw new Error(`Invalid property "${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let c=[];for(let f of o){let l=I$(f,a,{...r,engine:i});l&&c.push(l)}if(c.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid engine "${i}"`),{errors:c,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}vw.exports={checkDevEngines:N$}});var ww=R((RV,bw)=>{var Ew=To(),Zu=yw(),{checkDevEngines:$$}=Aw(),M$=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!Ew.satisfies(i,s.node,o),c=t&&s.npm&&!Ew.satisfies(t,s.npm,o);if(a||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},j$=(e,t=!1,r={})=>{if(t)return;let n=r.os||Zu.os(),i=r.cpu||Zu.cpu(),s=r.libc||Zu.libc(n),o=e.os?rd(n,e.os):!0,a=e.cpu?rd(i,e.cpu):!0,c=e.libc?rd(s,e.libc):!0;if(e.libc&&!s&&(c=!1),!o||!a||!c)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},rd=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};bw.exports={checkEngine:M$,checkPlatform:j$,checkDevEngines:$$,currentEnv:Zu}});var Ow=R((FV,xw)=>{var{join:Sw,basename:Cw}=require("path"),B$=e=>e.bin?typeof e.bin=="string"?W$(e):Array.isArray(e.bin)?q$(e):typeof e.bin=="object"?id(e):nd(e):nd(e),W$=e=>e.name?(e.bin={[e.name]:e.bin},id(e)):nd(e),q$=e=>(e.bin=e.bin.reduce((t,r)=>(t[Cw(r)]=r,t),{}),id(e)),nd=e=>(delete e.bin,e),id=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=Sw("/",Cw(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=Sw("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};xw.exports=B$});var Rw=R((DV,_w)=>{"use strict";var Pw=hw(),Bo=To(),{checkEngine:G$}=ww(),U$=Ow(),sd=(e,t,r)=>{try{return G$(e,t,r),!0}catch{return!1}},ec=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,H$={includePrerelease:!0,loose:!0},tc=(e,t)=>t&&Bo.satisfies(e,t,H$),od=(e,t)=>e&&tc(e.version,t)?{...e,_shouldAvoid:!0}:e,Wo=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:c=null,avoidStrict:u=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(u){let D={...r,avoidStrict:!1},N=Wo(e,t,D);if(!N||!N._shouldAvoid)return N;let x=Wo(e,`^${N.version}`,D);if(!x||!x._shouldAvoid)return{...x,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=Wo(e,"*",D);if(!g||!g._shouldAvoid)return{...g,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:c,before:i,versions:Object.keys(h)})}let d=a&&e.stagedVersions&&e.stagedVersions.versions||{},p=e.policyRestrictions&&e.policyRestrictions.versions||{},y=i&&l?+new Date(i):1/0,O=Pw.resolve(f,t||n).type,S=e["dist-tags"]||{};if(O!=="tag"&&O!=="version"&&O!=="range")throw new Error("Only tag, version, and range are supported");if(t&&O==="tag"){let D=S[t];return ec(l,D,y)?od(h[D]||d[D]||p[D],c):Wo(e,`<=${D}`,r)}if(t&&O==="version"){let D=Bo.clean(t,{loose:!0}),N=h[D]||d[D]||p[D];return ec(l,D,y)?od(N,c):null}let k=O==="range"?t:"*",F=S[n];if(F&&(k==="*"||Bo.satisfies(F,k,{loose:!0}))&&!p[F]&&!tc(F,c)){let D=h[F];if(D&&ec(l,F,y)&&sd(D,o,s)&&!D.deprecated&&!d[F])return D}let b=Object.entries(h).concat(Object.entries(d)).concat(Object.entries(p)).filter(([D])=>ec(l,D,y));if(!b.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:O,wanted:t,before:i,versions:Object.keys(h)});let P={loose:!0},L=b.filter(([D])=>Bo.satisfies(D,k,{loose:!0})).sort((D,N)=>{let[x,g]=D,[v,A]=N,C=!tc(x,c),E=!tc(v,c),w=!p[x],T=!p[v],$=!d[x],M=!d[v],U=!g.deprecated,V=!A.deprecated,X=sd(g,o,s),he=sd(A,o,s);return E-C||T-w||M-$||(V&&he)-(U&&X)||he-X||V-U||Bo.rcompare(x,v,P)});return od(L[0]&&L[0][1],c)};_w.exports=(e,t,r={})=>{let n=Wo(e,t,r),i=n&&U$(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:c="latest"}=r,u=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${u}`:""),h=i&&!!o[i.version],d=h?s.message:"",p=h?`Could not download ${l} due to policy violations:
13
+ ${d}`:`No matching version found for ${l}.`,y=h?"E403":"ETARGET";throw Object.assign(new Error(p),{code:y,type:Pw.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:c})}});var kw=R((LV,Lw)=>{var z$=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:Y$}=require("url"),Fw=require("path"),V$=Qh(),qo=Ro(),{isWindows:rc}=tw(),K$=Rw(),ad=require("fs/promises");Lw.exports=(e,t="HEAD",r=null,n={})=>V$(e,n).then(i=>J$(e,i,t,Q$(i,t,n),r||X$(e,n.cwd),n));var ud=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:z$.has(Y$(e).host),X$=(e,t=process.cwd())=>Fw.resolve(t,Fw.basename(e.replace(/[/\\]?\.git$/,""))),J$=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?tM(e,n,i,s):n.type==="tag"||n.type==="branch"?eM(e,n,i,s):Z$(e,n,i,s):rM(e,r,i,s),Q$=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?K$(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},Z$=(e,t,r,n)=>{let i=ud(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>qo(a,{...n,cwd:r});return ad.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>rc(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>Dw(r,n)).then(()=>t.sha)},eM=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return ud(e,n)&&i.push("--depth=1"),rc(n)&&i.push("--config","core.longpaths=true"),qo(i,n).then(()=>t.sha)},tM=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return ud(e,n)&&i.push("--depth=1"),rc(n)&&i.push("--config","core.longpaths=true"),qo(i,n).then(()=>t.sha)},Dw=async(e,t)=>await ad.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?qo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,rM=(e,t,r,n)=>{let i=rc(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>qo(a,{...n,cwd:r});return ad.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>Dw(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var cd=R((kV,Tw)=>{var{stat:nM}=require("fs/promises");Tw.exports=({cwd:e=process.cwd()}={})=>nM(e+"/.git").then(()=>!0,()=>!1)});var Nw=R((TV,Iw)=>{var iM=cd(),{dirname:sM}=require("path");Iw.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await iM({cwd:e}))return e;let r=sM(e);if(e===t||e===r)return null;e=r}}});var Mw=R((IV,$w)=>{var oM=Ro();$w.exports=(e={})=>oM(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var Bw=R((NV,jw)=>{jw.exports={clone:kw(),revs:Qh(),spawn:Ro(),is:cd(),find:Nw(),isClean:Mw(),errors:Th()}});var ld=R(($V,aM)=>{aM.exports=["0BSD","3D-Slicer-1.0","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","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","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-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","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-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","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-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","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-AU","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-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","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","CMU-Mach-nodoc","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","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","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","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","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","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","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","LPD-document","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","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","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","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.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","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","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","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Ww=R((MV,uM)=>{uM.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","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var qw=R((jV,cM)=>{cM.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Uw=R((BV,Gw)=>{"use strict";var lM=[].concat(ld()).concat(Ww()),fM=qw();Gw.exports=function(e){var t=0;function r(){return t<e.length}function n(p){if(p instanceof RegExp){var y=e.slice(t),m=y.match(p);if(m)return t+=m[0].length,m[0]}else if(e.indexOf(p,t)===t)return t+=p.length,p}function i(){n(/[ ]*/)}function s(){for(var p,y=["WITH","AND","OR","(",")",":","+"],m=0;m<y.length&&(p=n(y[m]),!p);m++);if(p==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return p&&{type:"OPERATOR",string:p}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var p=o();if(!p)throw new Error("Expected idstring at offset "+t);return p}function c(){if(n("DocumentRef-")){var p=a();return{type:"DOCUMENTREF",string:p}}}function u(){if(n("LicenseRef-")){var p=a();return{type:"LICENSEREF",string:p}}}function f(){var p=t,y=o();if(lM.indexOf(y)!==-1)return{type:"LICENSE",string:y};if(fM.indexOf(y)!==-1)return{type:"EXCEPTION",string:y};t=p}function l(){return s()||c()||u()||f()}for(var h=[];r()&&(i(),!!r());){var d=l();if(!d)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(d)}return h}});var zw=R((WV,Hw)=>{"use strict";Hw.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(y){var m=n();if(m&&m.type==="OPERATOR"&&y===m.string)return i(),m.string}function o(){if(s("WITH")){var y=n();if(y&&y.type==="EXCEPTION")return i(),y.string;throw new Error("Expected exception after `WITH`")}}function a(){var y=t,m="",O=n();if(O.type==="DOCUMENTREF"&&(i(),m+="DocumentRef-"+O.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(O=n(),O.type==="LICENSEREF")return i(),m+="LicenseRef-"+O.string,{license:m};t=y}function c(){var y=n();if(y&&y.type==="LICENSE"){i();var m={license:y.string};s("+")&&(m.plus=!0);var O=o();return O&&(m.exception=O),m}}function u(){var y=s("(");if(y){var m=d();if(!s(")"))throw new Error("Expected `)`");return m}}function f(){return u()||a()||c()}function l(y,m){return function O(){var S=m();if(S){if(!s(y))return S;var k=O();if(!k)throw new Error("Expected expression");return{left:S,conjunction:y.toLowerCase(),right:k}}}}var h=l("AND",f),d=l("OR",h),p=d();if(!p||r())throw new Error("Syntax error");return p}});var fd=R((qV,Yw)=>{"use strict";var hM=Uw(),dM=zw();Yw.exports=function(e){return dM(hM(e))}});var rS=R((GV,tS)=>{var pM=fd(),gM=ld();function nc(e){try{return pM(e),!0}catch{return!1}}function eS(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Vw=[["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(eS),mM=0,yM=1,Kw=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],hd=gM.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),vM=Object.keys(hd).map(function(t){return[t,hd[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});hd=void 0;var Xw=[["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(vM).sort(eS),AM=0,EM=1,Jw=function(e){for(var t=0;t<Kw.length;t++){var r=Kw[t](e).trim();if(r!==e&&nc(r))return r}return null},Qw=function(e){for(var t=e.toUpperCase(),r=0;r<Xw.length;r++){var n=Xw[r];if(t.indexOf(n[AM])>-1)return n[EM]}return null},Zw=function(e,t){for(var r=0;r<Vw.length;r++){var n=Vw[r],i=n[mM];if(e.indexOf(i)>-1){var s=e.replace(i,n[yM]),o=t(s);if(o!==null)return o}}return null};tS.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?bM(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),nc(e))return n(e);var s=e.replace(/\+$/,"").trim();if(nc(s))return n(s);var o=Jw(e);return o!==null||(o=Zw(e,function(a){return nc(a)?a:Jw(a)}),o!==null)||(o=Qw(e),o!==null)||(o=Zw(e,Qw),o!==null)?n(o):null};function bM(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-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(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var oS=R((UV,sS)=>{var wM=fd(),SM=rS(),nS='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',CM=/^SEE LICEN[CS]E IN (.+)$/;function iS(e,t){return t.slice(0,e.length)===e}function dd(e){if(e.hasOwnProperty("license")){var t=e.license;return iS("LicenseRef",t)||iS("DocumentRef",t)}else return dd(e.left)||dd(e.right)}sS.exports=function(e){var t;try{t=wM(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=CM.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[nS]};if(e.trim().length!==0){var i=SM(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return dd(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[nS]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var hS=R((HV,fS)=>{var pd=require("node:url"),aS=du(),xM=oS(),uS={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"},cS=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function OM(e){let t=e.trim().split(`
14
+ `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function lS(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",c=e.email||e.mail,u=c?" <"+c+">":"";e=s+u+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function PM(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=OM(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=aS.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")cS(e.bugs)?e.bugs={email:e.bugs}:pd.parse(e.bugs).protocol?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(typeof o.url=="string"&&pd.parse(o.url).protocol?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&cS(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=aS.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):pd.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):xM(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=lS(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(lS))});for(let o in uS)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${uS[o]}.`)}fS.exports={normalizeData:PM}});var yS=R((zV,mS)=>{var _M=su(),RM=Hf(),In=require("node:fs/promises"),Ue=require("node:path"),{log:FM}=no(),gd;function dS(){return gd||(gd=du()),gd}var md;function ic(){return md||(md=Ph().glob),md}function pS(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[Ue.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=Ue.basename(Go(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=Go(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name was cleaned`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function DM(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(Go(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function LM(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function kM(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function gS(e){return e.replace(/\\|:/g,"/")}function Go(e){let t=gS(Ue.join(".",Ue.join("/",gS(e))));return t.startsWith("./")?"":t}var TM=async(e,{strict:t,steps:r,root:n,changes:i,allowLegacyCase:s})=>{if(!e.content)throw new Error("Can not normalize without content");let o=e.content,a=o.scripts||{},c=`${o.name??""}@${o.version??""}`;if(r.includes("fixNameField")||r.includes("normalizeData"))if(!o.name&&!t)i?.push('Missing "name" field was set to an empty string'),o.name="";else{if(typeof o.name!="string")throw new Error("name field must be a string.");if(!t){let u=o.name.trim();o.name!==u&&(i?.push('Whitespace was trimmed from "name"'),o.name=u)}if(o.name.startsWith(".")||!(kM(o.name)||LM(o.name))||t&&!s&&o.name!==o.name.toLowerCase()||o.name.toLowerCase()==="node_modules"||o.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(o.name))}if(r.includes("fixVersionField")||r.includes("normalizeData")){let u=!t;if(!o.version)o.version="";else{if(!_M(o.version,u))throw new Error(`Invalid version: "${o.version}"`);let f=RM(o.version,u);f!==o.version&&(i?.push(`"version" was cleaned and set to "${f}"`),o.version=f)}}if(r.includes("_attributes"))for(let u in o)u.startsWith("_")&&(i?.push(`"${u}" was removed`),delete e.content[u]);if(r.includes("_id")&&o.name&&o.version&&(i?.push(`"_id" was set to ${c}`),o._id=c),r.includes("bundledDependencies")&&(o.bundleDependencies===void 0&&o.bundledDependencies!==void 0&&(o.bundleDependencies=o.bundledDependencies),i?.push('Deleted incorrect "bundledDependencies"'),delete o.bundledDependencies),r.includes("bundleDependencies")){let u=o.bundleDependencies;u===!1&&!r.includes("bundleDependenciesDeleteFalse")?(i?.push('"bundleDependencies" was changed from "false" to "[]"'),o.bundleDependencies=[]):u===!0?(i?.push('"bundleDependencies" was auto-populated from "dependencies"'),o.bundleDependencies=Object.keys(o.dependencies||{})):u&&typeof u=="object"?Array.isArray(u)||(i?.push('"bundleDependencies" was changed from an object to an array'),o.bundleDependencies=Object.keys(u)):"bundleDependencies"in o&&(i?.push('"bundleDependencies" was removed'),delete o.bundleDependencies)}if(r.includes("optionalDedupe")&&o.dependencies&&o.optionalDependencies&&typeof o.optionalDependencies=="object"){for(let u in o.optionalDependencies)i?.push(`optionalDependencies."${u}" was removed`),delete o.dependencies[u];Object.keys(o.dependencies).length||(i?.push('Empty "optionalDependencies" was removed'),delete o.dependencies)}if(r.includes("gypfile")&&!a.install&&!a.preinstall&&o.gypfile!==!1&&(await ic()("*.gyp",{cwd:e.path})).length&&(a.install="node-gyp rebuild",o.scripts=a,o.gypfile=!0,i?.push('"scripts.install" was set to "node-gyp rebuild"'),i?.push('"gypfile" was set to "true"')),r.includes("serverjs")&&!a.start)try{await In.access(Ue.join(e.path,"server.js")),a.start="node server.js",o.scripts=a,i?.push('"scripts.start" was set to "node server.js"')}catch{}if((r.includes("scripts")||r.includes("scriptpath"))&&o.scripts!==void 0){let u=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof o.scripts=="object")for(let f in o.scripts)typeof o.scripts[f]!="string"?(delete o.scripts[f],i?.push(`Invalid scripts."${f}" was removed`)):r.includes("scriptpath")&&u.test(o.scripts[f])&&(o.scripts[f]=o.scripts[f].replace(u,""),i?.push(`scripts entry "${f}" was fixed to remove node_modules/.bin reference`));else i?.push('Removed invalid "scripts"'),delete o.scripts}if(r.includes("funding")&&o.funding&&typeof o.funding=="string"&&(o.funding={url:o.funding},i?.push('"funding" was changed to an object with a url attribute')),r.includes("authors")&&!o.contributors)try{let f=(await In.readFile(Ue.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(l=>l.replace(/^\s*#.*$/,"").trim()).filter(l=>l);o.contributors=f,i?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(r.includes("readme")&&!o.readme){let u=/\.m?a?r?k?d?o?w?n?$/i,f=await ic()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),l;for(let h of f)if(!h.endsWith(Ue.sep)){if(h.match(u)){l=h;break}h.endsWith("README")&&(l=h)}if(l){let h=await In.readFile(Ue.join(e.path,l),"utf8");o.readme=h,o.readmeFilename=l,i?.push(`"readme" was set to the contents of ${l}`),i?.push(`"readmeFilename" was set to ${l}`)}o.readme||(o.readme="ERROR: No README data found!")}if(r.includes("mans")){if(o.directories?.man&&!o.man){let u=Go(o.directories.man),f=Ue.resolve(e.path,u),l=await ic()("**/*.[0-9]",{cwd:f});o.man=l.map(h=>Ue.relative(e.path,Ue.join(f,h)).split(Ue.sep).join("/"))}DM(o,i)}if((r.includes("bin")||r.includes("binDir")||r.includes("binRefs"))&&pS(o,i),r.includes("binDir")&&o.directories?.bin&&!o.bin){let u=Ue.resolve(e.path,Go(o.directories.bin)),f=await ic()("**",{cwd:u});o.bin=f.reduce((l,h)=>{if(h&&!h.startsWith(".")){let d=Ue.basename(h);l[d]=Ue.join(o.directories.bin,h)}return l},{}),pS(o,i)}if(r.includes("gitHead")&&!o.gitHead){let f=await Bw().find({cwd:e.path,root:n}),l;if(f)try{l=await In.readFile(Ue.resolve(f,".git/HEAD"),"utf8")}catch{}let h;if(l)if(l.startsWith("ref: ")){let d=l.replace(/^ref: /,"").trim(),p=Ue.resolve(f,".git",d);try{h=await In.readFile(p,"utf8"),h=h.replace(/^ref: /,"").trim()}catch{}if(!h){let y=Ue.resolve(f,".git/packed-refs");try{let m=await In.readFile(y,"utf8");if(m){m=m.split(`
15
+ `);for(let O=0;O<m.length;O++){let S=m[O].match(/^([0-9a-f]{40}) (.+)$/);if(S&&S[2].trim()===d){h=S[1];break}}}}catch{}}}else h=l.trim();h&&(o.gitHead=h)}if(r.includes("fillTypes")){let u=o.main||"index.js";if(typeof u!="string")throw new TypeError('The "main" attribute must be of type string.');let l=`./${Ue.join(Ue.dirname(u),Ue.basename(u,Ue.extname(u)))}.d.ts`;if(!("types"in o||"typings"in o))try{await In.access(Ue.join(e.path,l)),o.types=l.split(Ue.sep).join("/")}catch{}}if((r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(o.repositories&&(i?.push(`"repository" was set to the first entry in "repositories" (${o.repository})`),o.repository=o.repositories[0]),o.repository&&(typeof o.repository=="string"&&(i?.push('"repository" was changed from a string to an object'),o.repository={type:"git",url:o.repository}),o.repository.url))){let u=dS().fromUrl(o.repository.url),f;u&&(u.getDefaultRepresentation()==="shortcut"?f=u.https():f=u.toString(),f!==o.repository.url&&(i?.push(`"repository.url" was normalized to "${f}"`),o.repository.url=f))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let u of["dependencies","devDependencies","optionalDependencies"])if(o[u]){let f=!0;if(typeof o[u]=="string"&&(i?.push(`"${u}" was converted from a string into an object`),o[u]=o[u].trim().split(/[\n\r\s\t ,]+/),f=!1),Array.isArray(o[u])){f&&i?.push(`"${u}" was converted from an array into an object`);let l={};for(let h of o[u])if(typeof h=="string"){let d=h.trim().split(/(:?[@\s><=])/),p=d.shift(),y=d.join("").replace(/^@/,"").trim();l[p]=y}o[u]=l}}for(let u of["dependencies","devDependencies"])if(u in o)if(!o[u]||typeof o[u]!="object")i?.push(`Removed invalid "${u}"`),delete o[u];else for(let f in o[u]){typeof o[u][f]!="string"&&(i?.push(`Removed invalid "${u}.${f}"`),delete o[u][f]);let h=dS().fromUrl(o[u][f])?.toString();h&&h!==o[u][f]&&(i?.push(`Normalized git reference to "${u}.${f}"`),o[u][f]=h.toString())}}if(r.includes("normalizeData")){let{normalizeData:u}=hS();u(o,i)}if(r.includes("binRefs")&&o.bin instanceof Object)for(let u in o.bin)try{await In.access(Ue.resolve(e.path,o.bin[u]))}catch{FM.warn("package-json",c,`No bin file found at ${o.bin[u]}`)}};mS.exports=TM});var bS=R((YV,ES)=>{var{readFile:IM}=require("fs/promises"),NM=Gf();async function vS(e){try{return await IM(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function AS(e){try{return NM(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function $M(e){let t=await vS(e);return AS(t)}ES.exports={read:vS,parse:AS,readPackage:$M}});var SS=R((VV,wS)=>{function MM(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:c,funding:u,license:f,author:l,maintainers:h,contributors:d,type:p,imports:y,exports:m,main:O,browser:S,types:k,bin:F,man:b,directories:P,files:L,workspaces:D,scripts:N,config:x,dependencies:g,devDependencies:v,peerDependencies:A,peerDependenciesMeta:C,optionalDependencies:E,bundledDependencies:w,bundleDependencies:T,engines:$,os:M,cpu:U,publishConfig:V,devEngines:X,licenses:he,overrides:q,...H}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof c<"u"?{repository:c}:{},...typeof u<"u"?{funding:u}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof d<"u"?{contributors:d}:{},...typeof p<"u"?{type:p}:{},...typeof y<"u"?{imports:y}:{},...typeof m<"u"?{exports:m}:{},...typeof O<"u"?{main:O}:{},...typeof S<"u"?{browser:S}:{},...typeof k<"u"?{types:k}:{},...typeof F<"u"?{bin:F}:{},...typeof b<"u"?{man:b}:{},...typeof P<"u"?{directories:P}:{},...typeof L<"u"?{files:L}:{},...typeof D<"u"?{workspaces:D}:{},...typeof N<"u"?{scripts:N}:{},...typeof x<"u"?{config:x}:{},...typeof g<"u"?{dependencies:g}:{},...typeof v<"u"?{devDependencies:v}:{},...typeof A<"u"?{peerDependencies:A}:{},...typeof C<"u"?{peerDependenciesMeta:C}:{},...typeof E<"u"?{optionalDependencies:E}:{},...typeof w<"u"?{bundledDependencies:w}:{},...typeof T<"u"?{bundleDependencies:T}:{},...typeof $<"u"?{engines:$}:{},...typeof M<"u"?{os:M}:{},...typeof U<"u"?{cpu:U}:{},...typeof V<"u"?{publishConfig:V}:{},...typeof X<"u"?{devEngines:X}:{},...typeof he<"u"?{licenses:he}:{},...typeof q<"u"?{overrides:q}:{},...H}}wS.exports={packageSort:MM}});var Ad=R((KV,OS)=>{var{readFile:jM,writeFile:BM}=require("node:fs/promises"),{resolve:CS}=require("node:path"),WM=Gf(),xS=lv(),qM=hv(),GM=pv(),yd=yS(),{read:UM,parse:HM}=bS(),{packageSort:zM}=SS(),YM=new Set([xS,qM,GM]),VM=new Set([...xS.knownKeys,"scripts","workspaces"]),vd=class e{static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin"]);static fixSteps=Object.freeze(["binRefs","bundleDependencies","bundleDependenciesFalse","fixNameField","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await UM(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=CS(this.path,"index.js"),s;try{s=await jM(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=HM(t),this}fromContent(t){return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=WM(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return CS(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of YM)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))VM.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
16
+ `:n,a=t?zM(i):i,c=`${JSON.stringify(a,null,s)}
17
+ `.replace(/\n/g,o);if(c.trim()!==this.#t.trim()){let u=await BM(this.filename,c);return this.#t=c,u}}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await yd(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await yd(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await yd(this,t),this}};OS.exports=vd});var RS=R((XV,_S)=>{var{basename:PS,dirname:KM}=require("path"),XM=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;_S.exports=e=>e?XM(PS(KM(e)),PS(e)):!1});var IS=R((JV,TS)=>{var FS=require("path"),JM=RS(),{minimatch:Uo}=un(),QM=Ad(),{glob:ZM}=Ph();function ej(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];Uo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of Uo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function DS(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw sc({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return ej(t)}function LS(e,t){return e.name||JM(t)}function tj(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function sc({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function rj(e){return new Map(Array.from(e,t=>t.reverse()))}async function kS(e={}){if(!e||!e.pkg)throw sc({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=DS(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await ZM(r.map(f=>tj(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let c=[];for(let f of r)c.push(...a.filter(l=>Uo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of c){let l;try{l=await QM.normalize(FS.join(e.cwd,f))}catch(p){if(p.code==="ENOENT"||p.code==="ENOTDIR")continue;throw p}let h=LS(l.content,l.path),d=s.get(h);d||(d=new Set,s.set(h,d)),d.add(l.path)}let u=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?nj(u,f,l):i.set(f,l.values().next().value);if(u.length>1)throw sc({Type:Error,message:u.join(`
18
+ `),code:"EDUPLICATEWORKSPACE"});return i}function nj(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}kS.virtual=function(e={}){if(!e||!e.lockfile)throw sc({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=DS(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let c of Uo.match(o,a))o.splice(o.indexOf(c),1);for(let a of i)for(let c of Uo.match(o,a)){let u=FS.join(e.cwd,c),f=LS(t[c],u);n.set(u,f)}return rj(n)};TS.exports=kS});var BS=R((QV,jS)=>{var{walkUp:ij}=iy(),NS=Sf(),os=Rf(),{log:kr,time:sj}=no(),{resolve:Yo,dirname:oc,join:Ed}=require("node:path"),{homedir:oj}=require("node:os"),{readFile:aj,writeFile:uj,chmod:cj,unlink:lj,stat:$S,mkdir:fj}=require("node:fs/promises"),hj=["global-prefix","local-prefix","npm-version","node-gyp"],bd=(...e)=>$S(Yo(...e)).then(t=>t.isFile()).catch(()=>!1),dj=(...e)=>$S(Yo(...e)).then(t=>t.isDirectory()).catch(()=>!1),ac=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),as=ou(),Si=Uy(),pj=Mf(),gj=Vy(),mj=Qy(),MS=new Set(["global","user","project"]),Ho=new Set(["default","builtin",...MS,"env","cli"]),wd=class{#e=!1;#r;#t=null;static get typeDefs(){return as}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:c=process.platform,execPath:u=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},d={};this.deprecated={};for(let[m,O]of Object.entries(t))d[m]=O.default,h[m]=O.type,O.deprecated&&(this.deprecated[m]=O.deprecated.trim().replace(/\n +/,`
19
+ `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=d,this.npmPath=s,this.npmBin=Ed(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=u,this.platform=c,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let p=[...Ho];this.data=new Map;let y=null;for(let m of p)this.data.set(m,y=new Sd(y));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:m}of this.data.values())this.list.unshift(m);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(ac(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!Ho.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||ac(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Ho.has(n))throw new Error("invalid config location param: "+n);this.#c(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[us]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=sj.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Ho.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=require(Ed(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>Yo(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||oj()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=oc(this.execPath):(this.globalPrefix=oc(oc(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=Ed(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&kr.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);os.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=os(this.types,this.shorthands,this.argv);os.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[us]=!0,os.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),os.clean(r.data,this.types,as),os.invalidHandler=null,r[us]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=Si(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=ev();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...Ho],i=this.data.get(r).data;return ac(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!ac(o,t)})}invalidHandler(t,r,n,i,s){let o=nv();kr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[us]=!1,Array.isArray(n)&&(n.includes(as.url.type)?n=as.url.type:n.includes(as.path.type)&&(n=as.path.type));let a=o(n),c=a.filter(l=>l!==void 0&&l!==Array),u="Must be"+this.#o(c,a),f=c.length===1?c[0]:[...new Set(c.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");kr.warn("invalid config",u,f)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&kr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let c=pj(o,this.env),u=this.parseField(a,c);if(r!=="default"&&(this.#c(c),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} can not be provided when using --${f}`)}r!=="default"&&this.checkUnknown(r,o),s.data[c]=u}}}checkUnknown(t,r){if(!this.definitions[r]){if(hj.includes(r))return;if(!r.includes(":")){kr.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&kr.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#c(t){this.deprecated[t]&&kr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return gj(t,r,this,n)}async#l(t,r){kr.silly("config",`load:file:${t}`),await aj(t,"utf8").then(n=>{let i=NS.parse(n);return r==="project"&&i.prefix&&kr.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#l(Yo(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await bd(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=Yo(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#l(t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of ij(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await bd(i,"package.json");if(!this.localPrefix&&(s||await dj(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=Ad(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let u=await IS()({cwd:i,pkg:a});for(let f of u.values())if(f===this.localPrefix){await bd(this.localPrefix,".npmrc")&&kr.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,kr.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#l(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#l(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!MS.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[zo]=null,t==="user"){let o=Si(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=NS.stringify(r.raw).trim()+`
20
+ `;if(!n.trim()){await lj(r.source).catch(()=>{});return}let i=oc(r.source);await fj(i,{recursive:!0}),await uj(r.source,n,"utf8");let s=t==="user"?384:438;await cj(r.source,s)}clearCredentialsByURI(t,r="user"){let n=Si(t);if(Si(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=Si(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let c=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,c,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=Si(t),n=Si(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let c=this.get(`${r}:_authToken`);if(c)return i.token=c,i;let u=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(u&&f){i.username=u,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let d=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=d.shift(),i.password=d.join(":"),i.auth=l,i}return i}setEnvs(){mj(this)}},zo=Symbol("loadError"),us=Symbol("valid"),Sd=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[us]=!0}get data(){return this.#e}get valid(){return this[us]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[zo]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[zo]=t}get loadError(){return this[zo]}set raw(t){if(Object.keys(this.#t).length||this[zo])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};jS.exports=wd});var cc=R(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getPackageDependencies=void 0;function yj(e,t){let r=e.dependencies?.[t]||e.devDependencies?.[t]||e.peerDependencies?.[t]||e.optionalDependencies?.[t];return r?!r.startsWith("npm:")&&!r.startsWith("file:"):!1}function vj(e,t,r={withDevDependencies:!0}){let n=[];if(e.dependencies)for(let s of Object.keys(e.dependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.devDependencies&&r.withDevDependencies)for(let s of Object.keys(e.devDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.peerDependencies&&r.withPeerDependencies)for(let s of Object.keys(e.peerDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.optionalDependencies&&r.withOptionalDependencies)for(let s of Object.keys(e.optionalDependencies))s!==e.name&&t.has(s)&&n.push(s);return n.filter(s=>yj(e,s))}uc.getPackageDependencies=vj});var ls=R(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.isCachingEnabled=cs.setCachingEnabled=void 0;var WS=!0;function Aj(e){WS=e}cs.setCachingEnabled=Aj;function Ej(){return WS}cs.isCachingEnabled=Ej});var qS=R(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getTransitiveProviders=Nn.getTransitiveConsumers=Nn.getDependentMap=void 0;var bj=cc(),wj=ls(),Cd=new Map;function Sj(e,t=[]){return JSON.stringify({packages:e,scope:t})}function xd(e,t=[]){let r=new Set(Object.keys(e)),n=Sj(e,t);if((0,wj.isCachingEnabled)()&&Cd.has(n))return Cd.get(n);let i=[],s=new Set,o=t.length>0?[...t]:Object.keys(e);for(;o.length>0;){let a=o.pop();if(s.has(a))continue;s.add(a);let c=e[a],u=(0,bj.getPackageDependencies)(c,r);if(u.length>0)for(let f of u)o.push(f),i.push([f,a]);else i.push([null,a])}return Cd.set(n,i),i}function Cj(e){let t=xd(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}Nn.getDependentMap=Cj;function xj(e,t,r=[]){let n=xd(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,c]of n)a===o&&i.push(c)}}return[...s].filter(o=>!e.includes(o))}Nn.getTransitiveConsumers=xj;function Oj(e,t){let r=xd(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}Nn.getTransitiveProviders=Oj});var GS=R(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.getInternalDeps=yr.getTransitiveConsumers=yr.getTransitiveDependents=yr.getTransitiveProviders=yr.getTransitiveDependencies=void 0;var lc=qS();Object.defineProperty(yr,"getTransitiveConsumers",{enumerable:!0,get:function(){return lc.getTransitiveConsumers}});Object.defineProperty(yr,"getTransitiveProviders",{enumerable:!0,get:function(){return lc.getTransitiveProviders}});var Pj=cc();yr.getTransitiveDependencies=lc.getTransitiveProviders;yr.getTransitiveDependents=lc.getTransitiveConsumers;yr.getInternalDeps=Pj.getPackageDependencies});var Od=R(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.infoFromPackageJson=void 0;function _j(e,t){return{packageJsonPath:t,...e}}fc.infoFromPackageJson=_j});var Pd=R(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.getWorkspaceRoot=void 0;var Rj=fs();function Fj(e,t){return(0,Rj.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}hc.getWorkspaceRoot=Fj});var Vo=R(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.gitFailFast=vr.git=vr.clearGitObservers=vr.addGitObserver=vr.GitError=void 0;var Dj=require("child_process"),dc=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};vr.GitError=dc;var Lj=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,US=!!process.env.GIT_DEBUG,hs=[],_d;function kj(e){return hs.push(e),()=>Ij(e)}vr.addGitObserver=kj;function Tj(){hs.splice(0,hs.length)}vr.clearGitObservers=Tj;function Ij(e){let t=hs.indexOf(e);t>-1&&hs.splice(t,1)}function HS(e,t){US&&console.log(`git ${e.join(" ")}`);let r=(0,Dj.spawnSync)("git",e,{maxBuffer:Lj,...t}),n={...r,stderr:(r.stderr||"").toString().trimEnd(),stdout:(r.stdout||"").toString().trimEnd(),success:r.status===0};if(US&&(console.log("exited with code "+r.status),n.stdout&&console.log(`git stdout:
21
21
  `,n.stdout),n.stderr&&console.warn(`git stderr:
22
- `,n.stderr)),!wp){wp=!0;for(let i of hs)i(e,n);wp=!1}return n}yr.git=LS;function wj(e,t){let r=LS(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new fc(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
22
+ `,n.stderr)),!_d){_d=!0;for(let i of hs)i(e,n);_d=!1}return n}vr.git=HS;function Nj(e,t){let r=HS(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new dc(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
23
23
  ${r.stdout?.toString().trimEnd()}
24
- ${r.stderr?.toString().trimEnd()}`)}yr.gitFailFast=wj});var Sp=R((qV,kS)=>{"use strict";kS.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var IS=R((GV,TS)=>{"use strict";var Sj=Sp();function Cj(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=Sj(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}TS.exports=Cj});var MS=R((UV,$S)=>{"use strict";var xj=IS();function Oj(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _j=Oj(xj),Pj="text/plain",Rj="us-ascii",NS=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),Fj=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,p=""]=l.split("=").map(d=>d.trim());return h==="charset"&&(p=p.toLowerCase(),p===Rj)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||c&&c!==Pj)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function Dj(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return Fj(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,c="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,p=i.pathname.slice(a,h);c+=p.replace(/\/{2,}/g,"/"),c+=l,a=h+l.length}let u=i.pathname.slice(a,i.pathname.length);c+=u.replace(/\/{2,}/g,"/"),i.pathname=c}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];NS(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])NS(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var Cp=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>Cp.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=Dj(e,t));let i=_j.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};Cp.MAX_INPUT_LENGTH=2048;$S.exports=Cp});var WS=R((HV,BS)=>{"use strict";var Lj=Sp();function jS(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=Lj(e);if(e=e.substring(e.indexOf("://")+3),jS(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}BS.exports=jS});var US=R((zV,GS)=>{"use strict";var kj=MS(),qS=WS();function Tj(e){var t=kj(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),qS(t.protocols)||t.protocols.length===0&&qS(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}GS.exports=Tj});var zS=R((YV,HS)=>{"use strict";var Ij=US();function xp(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=Ij(e),n=r.resource.split("."),i=null;switch(r.toString=function(m){return xp.stringify(this,m)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:c>0?c-1:u>0?u-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],u&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var p=i.length>s&&i[s+1]==="-"?s+1:s;i.length>p+2&&["raw","src","blob","tree","edit"].indexOf(i[p+1])>=0&&(r.filepathtype=i[p+1],r.ref=i[p+2],i.length>p+3&&(r.filepath=i.slice(p+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var d=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,y=d.exec(r.pathname);return y!=null&&(r.source="bitbucket-server",y[1]==="users"?r.owner="~"+y[2]:r.owner=y[2],r.organization=r.owner,r.name=y[3],i=y[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}xp.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?Nj(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+$j(e)+i;default:return e.href}};function Nj(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function $j(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}HS.exports=xp});var YS=R(ps=>{"use strict";var Mj=ps&&ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ps,"__esModule",{value:!0});ps.getRepositoryName=void 0;var jj=Mj(zS());function Bj(e){try{let t=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),r=(0,jj.default)(t),n=t.includes(".visualstudio.com"),i=t.includes("dev.azure.com");if(!n&&!i)return r.full_name;let s=r.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(s)return`${s[2]}/${s[3]}/${r.name}`;let o=r.organization;return!o&&n&&(o=r.resource.match(/([^.@]+)\.visualstudio\.com/)?.[1]),`${o}/${r.owner}/${r.name}`}catch{return""}}ps.getRepositoryName=Bj});var Op=R(ds=>{"use strict";var KS=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.getDefaultRemote=void 0;var Wj=KS(require("fs")),qj=KS(require("path")),Gj=Ko(),VS=YS(),Uj=Vo();function Hj(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=O=>i&&console.log(O),o=O=>{if(n)throw new Error(O);s(O)},a=(0,Gj.findGitRoot)(r),c={},u=qj.default.join(a,"package.json");try{c=JSON.parse(Wj.default.readFileSync(u,"utf8").trim())}catch{o(`Could not read "${u}"`)}let{repository:f}=c,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${u}". Consider adding this info for more accurate git remote detection.`);let h=(0,VS.getRepositoryName)(l),p=(0,Uj.git)(["remote","-v"],{cwd:r});p.success||o(`Could not determine available git remotes under "${r}"`);let d={};if(p.stdout.split(`
25
- `).forEach(O=>{let[S,k]=O.split(/\s+/),F=(0,VS.getRepositoryName)(k);F&&(d[F]=S)}),h){if(d[h])return d[h];o(`Could not find remote pointing to repository "${h}".`)}let y=Object.values(d),m=["upstream","origin",...y];for(let O of m)if(y.includes(O))return s(`Default to remote "${O}"`),O;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}ds.getDefaultRemote=Hj});var _p=R(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.listAllTrackedFiles=Ae.getDefaultBranch=Ae.parseRemoteBranch=Ae.getRemoteBranch=Ae.getParentBranch=Ae.revertLocalChanges=Ae.stageAndCommit=Ae.commit=Ae.stage=Ae.init=Ae.getFileAddedHash=Ae.getCurrentHash=Ae.getShortBranchName=Ae.getFullBranchRef=Ae.getBranchName=Ae.getUserEmail=Ae.getRecentCommitMessages=Ae.getStagedChanges=Ae.getChangesBetweenRefs=Ae.getBranchChanges=Ae.getChanges=Ae.getUnstagedChanges=Ae.fetchRemoteBranch=Ae.fetchRemote=Ae.getUntrackedChanges=void 0;var Ce=Vo();function zj(e){try{return Xo((0,Ce.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about untracked changes",t)}}Ae.getUntrackedChanges=zj;function Yj(e,t){if(!(0,Ce.git)(["fetch","--",e],{cwd:t}).success)throw new Ce.GitError(`Cannot fetch remote "${e}"`)}Ae.fetchRemote=Yj;function Vj(e,t,r){if(!(0,Ce.git)(["fetch","--",e,t],{cwd:r}).success)throw new Ce.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}Ae.fetchRemoteBranch=Vj;function Kj(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about unstaged changes",t)}}Ae.getUnstagedChanges=Kj;function Xj(e,t){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new Ce.GitError("Cannot gather information about changes",r)}}Ae.getChanges=Xj;function Jj(e,t){return XS(e,"",[],"",t)}Ae.getBranchChanges=Jj;function XS(e,t,r,n,i){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new Ce.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}Ae.getChangesBetweenRefs=XS;function Qj(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about staged changes",t)}}Ae.getStagedChanges=Qj;function Zj(e,t){try{let r=(0,Ce.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()).filter(n=>!!n):[]}catch(r){throw new Ce.GitError("Cannot gather information about recent commits",r)}}Ae.getRecentCommitMessages=Zj;function eB(e){try{let t=(0,Ce.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot gather information about user.email",t)}}Ae.getUserEmail=eB;function JS(e){try{let t=(0,Ce.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get branch name",t)}}Ae.getBranchName=JS;function tB(e,t){let r=(0,Ce.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}Ae.getFullBranchRef=tB;function rB(e,t){let r=(0,Ce.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}Ae.getShortBranchName=rB;function nB(e){try{let t=(0,Ce.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get current git hash",t)}}Ae.getCurrentHash=nB;function iB(e,t){let r=(0,Ce.git)(["rev-list","--max-count=1","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim()}Ae.getFileAddedHash=iB;function sB(e,t,r){(0,Ce.git)(["init"],{cwd:e});let n=(0,Ce.git)(["config","--list"],{cwd:e}).stdout.split(`
26
- `);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new Ce.GitError("must include a username when initializing git repo");(0,Ce.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,Ce.git)(["config","user.email",t],{cwd:e})}}Ae.init=sB;function QS(e,t){try{e.forEach(r=>{(0,Ce.git)(["add",r],{cwd:t})})}catch(r){throw new Ce.GitError("Cannot stage changes",r)}}Ae.stage=QS;function ZS(e,t,r=[]){try{let n=(0,Ce.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new Ce.GitError("Cannot commit changes",n)}}Ae.commit=ZS;function oB(e,t,r,n=[]){QS(e,r),ZS(t,r,n)}Ae.stageAndCommit=oB;function aB(e){let t=`workspace-tools_${new Date().getTime()}`;(0,Ce.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,Ce.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,Ce.git)(["stash","drop",s[0]]),!0}}return!1}Ae.revertLocalChanges=aB;function uB(e){let t=JS(e);if(!t||t==="HEAD")return null;let r=(0,Ce.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ae.getParentBranch=uB;function cB(e,t){let r=(0,Ce.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}Ae.getRemoteBranch=cB;function lB(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}Ae.parseRemoteBranch=lB;function fB(e){let t=(0,Ce.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}Ae.getDefaultBranch=fB;function hB(e,t){let r=(0,Ce.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}Ae.listAllTrackedFiles=hB;function Xo(e){if(!e.success){if(e.stderr)throw new Error(e.stderr);return[]}return e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules"))}});var e1=R(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.getDefaultRemoteBranch=void 0;var pB=Op(),dB=Vo(),gB=_p();function mB(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,pB.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,dB.git)(["remote","show",o],{cwd:i}),c;return a.success&&(c=a.stdout.split(/\n/).find(u=>u.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),`${o}/${c||(0,gB.getDefaultBranch)(i)}`}hc.getDefaultRemoteBranch=mB});var dc=R(Ur=>{"use strict";var yB=Ur&&Ur.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),pc=Ur&&Ur.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yB(t,e,r)};Object.defineProperty(Ur,"__esModule",{value:!0});pc(Vo(),Ur);pc(Op(),Ur);pc(e1(),Ur);pc(_p(),Ur)});var Ci=R(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.logVerboseWarning=void 0;function vB(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
27
- `:""}`,t?.stack||t||"")}gc.logVerboseWarning=vB});var Ko=R(jt=>{"use strict";var r1=jt&&jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jt,"__esModule",{value:!0});jt.isChildOf=jt.findProjectRoot=jt.findPackageRoot=jt.findGitRoot=jt.searchUp=void 0;var $n=r1(require("path")),AB=r1(require("fs")),EB=bp(),bB=dc(),t1=Ci();function n1(e,t){let r=typeof e=="string"?[e]:e;t=$n.default.resolve(t);let n=$n.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>AB.default.existsSync($n.default.join(t,s))),!i);)t=$n.default.dirname(t);return i?$n.default.join(t,i):void 0}jt.searchUp=n1;function i1(e){let t=(0,bB.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return $n.default.normalize(t.stdout)}jt.findGitRoot=i1;function wB(e){let t=n1("package.json",e);return t&&$n.default.dirname(t)}jt.findPackageRoot=wB;function SB(e){let t;try{t=(0,EB.getWorkspaceRoot)(e)}catch(r){(0,t1.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,t1.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||i1(e)}jt.findProjectRoot=SB;function CB(e,t){let r=$n.default.relative(e,t);return/^[.\/\\]+$/.test(r)}jt.isChildOf=CB});var gs=R(Mn=>{"use strict";var xB=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.getWorkspaceManagerAndRoot=Mn.getPreferredWorkspaceManager=void 0;var s1=xB(require("path")),OB=Ko(),_B=ls(),PB=new Map,Jo={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function o1(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Jo[e]?e:void 0}Mn.getPreferredWorkspaceManager=o1;function RB(e,t,r){if(t=t||PB,(0,_B.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||o1();let n=(0,OB.searchUp)(r&&Jo[r]||Object.values(Jo),e);if(n){let i=s1.default.basename(n);t.set(e,{manager:Object.keys(Jo).find(s=>Jo[s]===i),root:s1.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Mn.getWorkspaceManagerAndRoot=RB});var a1=R(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.splitWhen=ms.flatten=void 0;function FB(e){return e.reduce((t,r)=>[].concat(t,r),[])}ms.flatten=FB;function DB(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}ms.splitWhen=DB});var u1=R(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.isEnoentCodeError=void 0;function LB(e){return e.code==="ENOENT"}mc.isEnoentCodeError=LB});var c1=R(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.createDirentFromStats=void 0;var Pp=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function kB(e,t){return new Pp(e,t)}yc.createDirentFromStats=kB});var p1=R(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPosixPathToPattern=et.convertWindowsPathToPattern=et.convertPathToPattern=et.escapePosixPath=et.escapeWindowsPath=et.escape=et.removeLeadingDotSegment=et.makeAbsolute=et.unixify=void 0;var TB=require("os"),IB=require("path"),l1=TB.platform()==="win32",NB=2,$B=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,MB=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,jB=/^\\\\([.?])/,BB=/\\(?![!()+@[\]{}])/g;function WB(e){return e.replace(/\\/g,"/")}et.unixify=WB;function qB(e,t){return IB.resolve(e,t)}et.makeAbsolute=qB;function GB(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(NB)}return e}et.removeLeadingDotSegment=GB;et.escape=l1?Rp:Fp;function Rp(e){return e.replace(MB,"\\$2")}et.escapeWindowsPath=Rp;function Fp(e){return e.replace($B,"\\$2")}et.escapePosixPath=Fp;et.convertPathToPattern=l1?f1:h1;function f1(e){return Rp(e).replace(jB,"//$1").replace(BB,"/")}et.convertWindowsPathToPattern=f1;function h1(e){return Fp(e)}et.convertPosixPathToPattern=h1});var g1=R((oK,d1)=>{d1.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var v1=R((aK,y1)=>{var UB=g1(),m1={"{":"}","(":")","[":"]"},HB=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=m1[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},zB=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=m1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};y1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(UB(t))return!0;var n=HB;return r&&r.strict===!1&&(n=zB),n(t)}});var E1=R((uK,A1)=>{"use strict";var YB=v1(),VB=require("path").posix.dirname,KB=require("os").platform()==="win32",Dp="/",XB=/\\/g,JB=/[\{\[].*[\}\]]$/,QB=/(^|[^\\])([\{\[]|\([^\)]+$)/,ZB=/\\([\!\*\?\|\[\]\(\)\{\}])/g;A1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&KB&&t.indexOf(Dp)<0&&(t=t.replace(XB,Dp)),JB.test(t)&&(t+=Dp),t+="a";do t=VB(t);while(YB(t)||QB.test(t));return t.replace(ZB,"$1")}});var vc=R(vr=>{"use strict";vr.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;vr.find=(e,t)=>e.nodes.find(r=>r.type===t);vr.exceedsLimit=(e,t,r=1,n)=>n===!1||!vr.isInteger(e)||!vr.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;vr.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};vr.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);vr.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;vr.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;vr.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);vr.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ac=R((lK,w1)=>{"use strict";var b1=vc();w1.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&b1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&b1.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var C1=R((fK,S1)=>{"use strict";S1.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var k1=R((hK,L1)=>{"use strict";var x1=C1(),xi=(e,t,r)=>{if(x1(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(x1(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+i+s+o+a;if(xi.cache.hasOwnProperty(c))return xi.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let l=D1(e)||D1(t),h={min:e,max:t,a:u,b:f},p=[],d=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),u<0){let y=f<0?Math.abs(f):1;d=O1(y,Math.abs(u),h,n),u=h.a=0}return f>=0&&(p=O1(u,f,h,n)),h.negatives=d,h.positives=p,h.result=e3(d,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+d.length>1&&(h.result=`(?:${h.result})`),xi.cache[c]=h,h.result};function e3(e,t,r){let n=Lp(e,t,"-",!1,r)||[],i=Lp(t,e,"",!1,r)||[],s=Lp(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function t3(e,t){let r=1,n=1,i=P1(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=P1(e,r);for(i=R1(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=R1(t+1,n)-1;return s=[...s],s.sort(i3),s}function r3(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=n3(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=s3(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function O1(e,t,r,n){let i=t3(e,t),s=[],o=e,a;for(let c=0;c<i.length;c++){let u=i[c],f=r3(String(o),String(u),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+F1(a.count),o=u+1;continue}r.isPadded&&(l=o3(u,r,n)),f.string=l+f.pattern+F1(f.count),s.push(f),o=u+1,a=f}return s}function Lp(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!_1(t,"string",a)&&s.push(r+a),n&&_1(t,"string",a)&&s.push(r+a)}return s}function n3(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function i3(e,t){return e>t?1:t>e?-1:0}function _1(e,t,r){return e.some(n=>n[t]===r)}function P1(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function R1(e,t){return e-e%Math.pow(10,t)}function F1(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function s3(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function D1(e){return/^-?(0+)\d/.test(e)}function o3(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}xi.cache={};xi.clearCache=()=>xi.cache={};L1.exports=xi});var Ip=R((pK,B1)=>{"use strict";var a3=require("util"),I1=k1(),T1=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),u3=e=>t=>e===!0?Number(t):String(t),kp=e=>typeof e=="number"||typeof e=="string"&&e!=="",Qo=e=>Number.isInteger(+e),Tp=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},c3=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,l3=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},bc=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},f3=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>bc(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>bc(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},N1=(e,t,r,n)=>{if(r)return I1(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},$1=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return I1(e,t,r)},M1=(...e)=>new RangeError("Invalid range arguments: "+a3.inspect(...e)),j1=(e,t,r)=>{if(r.strictRanges===!0)throw M1([e,t]);return[]},h3=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},p3=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw M1([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=Tp(a)||Tp(c)||Tp(u),l=f?Math.max(a.length,c.length,u.length):0,h=f===!1&&c3(e,t,n)===!1,p=n.transform||u3(h);if(n.toRegex&&r===1)return N1(bc(e,l),bc(t,l),!0,n);let d={negatives:[],positives:[]},y=S=>d[S<0?"negatives":"positives"].push(Math.abs(S)),m=[],O=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(l3(p(i,O),l,h)),i=o?i-r:i+r,O++;return n.toRegex===!0?r>1?f3(d,n,l):$1(m,null,{wrap:!1,...n}):m},d3=(e,t,r=1,n={})=>{if(!Qo(e)&&e.length>1||!Qo(t)&&t.length>1)return j1(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return N1(c,u,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?$1(f,null,{wrap:!1,options:n}):f},Ec=(e,t,r,n={})=>{if(t==null&&kp(e))return[e];if(!kp(e)||!kp(t))return j1(e,t,n);if(typeof r=="function")return Ec(e,t,1,{transform:r});if(T1(r))return Ec(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Qo(r)?Qo(e)&&Qo(t)?p3(e,t,r,i):d3(e,t,Math.max(Math.abs(r),1),i):r!=null&&!T1(r)?h3(r,i):Ec(e,t,1,r)};B1.exports=Ec});var G1=R((dK,q1)=>{"use strict";var g3=Ip(),W1=vc(),m3=(e,t={})=>{let r=(n,i={})=>{let s=W1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=W1.reduce(n.nodes),l=g3(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(e)};q1.exports=m3});var z1=R((gK,H1)=>{"use strict";var y3=Ip(),U1=Ac(),ys=vc(),Oi=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ys.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Oi(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Oi(i,s,r):i+s);return ys.flatten(n)},v3=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Oi(a.pop(),U1(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Oi(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=ys.reduce(i.nodes);if(ys.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=y3(...l,t);h.length===0&&(h=U1(i,t)),a.push(Oi(a.pop(),h)),i.nodes=[];return}let c=ys.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(Oi(a.pop(),u,c));continue}if(h.value&&h.type!=="open"){u.push(Oi(u.pop(),h.value));continue}h.nodes&&n(h,i)}return u};return ys.flatten(n(e))};H1.exports=v3});var V1=R((mK,Y1)=>{"use strict";Y1.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
28
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Z1=R((yK,Q1)=>{"use strict";var A3=Ac(),{MAX_LENGTH:K1,CHAR_BACKSLASH:Np,CHAR_BACKTICK:E3,CHAR_COMMA:b3,CHAR_DOT:w3,CHAR_LEFT_PARENTHESES:S3,CHAR_RIGHT_PARENTHESES:C3,CHAR_LEFT_CURLY_BRACE:x3,CHAR_RIGHT_CURLY_BRACE:O3,CHAR_LEFT_SQUARE_BRACKET:X1,CHAR_RIGHT_SQUARE_BRACKET:J1,CHAR_DOUBLE_QUOTE:_3,CHAR_SINGLE_QUOTE:P3,CHAR_NO_BREAK_SPACE:R3,CHAR_ZERO_WIDTH_NOBREAK_SPACE:F3}=V1(),D3=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(K1,r.maxLength):K1;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,c=0,u=e.length,f=0,l=0,h,p=()=>e[f++],d=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(d({type:"bos"});f<u;)if(o=s[s.length-1],h=p(),!(h===F3||h===R3)){if(h===Np){d({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===J1){d({type:"text",value:"\\"+h});continue}if(h===X1){c++;let y;for(;f<u&&(y=p());){if(h+=y,y===X1){c++;continue}if(y===Np){h+=p();continue}if(y===J1&&(c--,c===0))break}d({type:"text",value:h});continue}if(h===S3){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===C3){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===_3||h===P3||h===E3){let y=h,m;for(t.keepQuotes!==!0&&(h="");f<u&&(m=p());){if(m===Np){h+=m+p();continue}if(m===y){t.keepQuotes===!0&&(h+=m);break}h+=m}d({type:"text",value:h});continue}if(h===x3){l++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=d(m),s.push(o),d({type:"open",value:h});continue}if(h===O3){if(o.type!=="brace"){d({type:"text",value:h});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:h}),l--,o=s[s.length-1];continue}if(h===b3&&l>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:A3(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===w3&&l>0&&o.commas===0){let y=o.nodes;if(l===0||y.length===0){d({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let m=y[y.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),i};Q1.exports=D3});var rC=R((vK,tC)=>{"use strict";var eC=Ac(),L3=G1(),k3=z1(),T3=Z1(),rr=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=rr.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(rr.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};rr.parse=(e,t={})=>T3(e,t);rr.stringify=(e,t={})=>eC(typeof e=="string"?rr.parse(e,t):e,t);rr.compile=(e,t={})=>(typeof e=="string"&&(e=rr.parse(e,t)),L3(e,t));rr.expand=(e,t={})=>{typeof e=="string"&&(e=rr.parse(e,t));let r=k3(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};rr.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?rr.compile(e,t):rr.expand(e,t);tC.exports=rr});var Zo=R((AK,aC)=>{"use strict";var I3=require("path"),Hr="\\\\/",nC=`[^${Hr}]`,fn="\\.",N3="\\+",$3="\\?",wc="\\/",M3="(?=.)",iC="[^/]",$p=`(?:${wc}|$)`,sC=`(?:^|${wc})`,Mp=`${fn}{1,2}${$p}`,j3=`(?!${fn})`,B3=`(?!${sC}${Mp})`,W3=`(?!${fn}{0,1}${$p})`,q3=`(?!${Mp})`,G3=`[^.${wc}]`,U3=`${iC}*?`,oC={DOT_LITERAL:fn,PLUS_LITERAL:N3,QMARK_LITERAL:$3,SLASH_LITERAL:wc,ONE_CHAR:M3,QMARK:iC,END_ANCHOR:$p,DOTS_SLASH:Mp,NO_DOT:j3,NO_DOTS:B3,NO_DOT_SLASH:W3,NO_DOTS_SLASH:q3,QMARK_NO_DOT:G3,STAR:U3,START_ANCHOR:sC},H3={...oC,SLASH_LITERAL:`[${Hr}]`,QMARK:nC,STAR:`${nC}*?`,DOTS_SLASH:`${fn}{1,2}(?:[${Hr}]|$)`,NO_DOT:`(?!${fn})`,NO_DOTS:`(?!(?:^|[${Hr}])${fn}{1,2}(?:[${Hr}]|$))`,NO_DOT_SLASH:`(?!${fn}{0,1}(?:[${Hr}]|$))`,NO_DOTS_SLASH:`(?!${fn}{1,2}(?:[${Hr}]|$))`,QMARK_NO_DOT:`[^.${Hr}]`,START_ANCHOR:`(?:^|[${Hr}])`,END_ANCHOR:`(?:[${Hr}]|$)`},z3={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};aC.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:z3,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:I3.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?H3:oC}}});var ea=R(Bt=>{"use strict";var Y3=require("path"),V3=process.platform==="win32",{REGEX_BACKSLASH:K3,REGEX_REMOVE_BACKSLASH:X3,REGEX_SPECIAL_CHARS:J3,REGEX_SPECIAL_CHARS_GLOBAL:Q3}=Zo();Bt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Bt.hasRegexChars=e=>J3.test(e);Bt.isRegexChar=e=>e.length===1&&Bt.hasRegexChars(e);Bt.escapeRegex=e=>e.replace(Q3,"\\$1");Bt.toPosixSlashes=e=>e.replace(K3,"/");Bt.removeBackslashes=e=>e.replace(X3,t=>t==="\\"?"":t);Bt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Bt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:V3===!0||Y3.sep==="\\";Bt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Bt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Bt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Bt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var gC=R((bK,dC)=>{"use strict";var uC=ea(),{CHAR_ASTERISK:jp,CHAR_AT:Z3,CHAR_BACKWARD_SLASH:ta,CHAR_COMMA:eW,CHAR_DOT:Bp,CHAR_EXCLAMATION_MARK:Wp,CHAR_FORWARD_SLASH:pC,CHAR_LEFT_CURLY_BRACE:qp,CHAR_LEFT_PARENTHESES:Gp,CHAR_LEFT_SQUARE_BRACKET:tW,CHAR_PLUS:rW,CHAR_QUESTION_MARK:cC,CHAR_RIGHT_CURLY_BRACE:nW,CHAR_RIGHT_PARENTHESES:lC,CHAR_RIGHT_SQUARE_BRACKET:iW}=Zo(),fC=e=>e===pC||e===ta,hC=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},sW=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=e,u=-1,f=0,l=0,h=!1,p=!1,d=!1,y=!1,m=!1,O=!1,S=!1,k=!1,F=!1,b=!1,_=0,L,D,N={value:"",depth:0,isGlob:!1},x=()=>u>=n,g=()=>c.charCodeAt(u+1),v=()=>(L=D,c.charCodeAt(++u));for(;u<n;){D=v();let T;if(D===ta){S=N.backslashes=!0,D=v(),D===qp&&(O=!0);continue}if(O===!0||D===qp){for(_++;x()!==!0&&(D=v());){if(D===ta){S=N.backslashes=!0,v();continue}if(D===qp){_++;continue}if(O!==!0&&D===Bp&&(D=v())===Bp){if(h=N.isBrace=!0,d=N.isGlob=!0,b=!0,i===!0)continue;break}if(O!==!0&&D===eW){if(h=N.isBrace=!0,d=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===nW&&(_--,_===0)){O=!1,h=N.isBrace=!0,b=!0;break}}if(i===!0)continue;break}if(D===pC){if(s.push(u),o.push(N),N={value:"",depth:0,isGlob:!1},b===!0)continue;if(L===Bp&&u===f+1){f+=2;continue}l=u+1;continue}if(r.noext!==!0&&(D===rW||D===Z3||D===jp||D===cC||D===Wp)===!0&&g()===Gp){if(d=N.isGlob=!0,y=N.isExtglob=!0,b=!0,D===Wp&&u===f&&(F=!0),i===!0){for(;x()!==!0&&(D=v());){if(D===ta){S=N.backslashes=!0,D=v();continue}if(D===lC){d=N.isGlob=!0,b=!0;break}}continue}break}if(D===jp){if(L===jp&&(m=N.isGlobstar=!0),d=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===cC){if(d=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===tW){for(;x()!==!0&&(T=v());){if(T===ta){S=N.backslashes=!0,v();continue}if(T===iW){p=N.isBracket=!0,d=N.isGlob=!0,b=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===Wp&&u===f){k=N.negated=!0,f++;continue}if(r.noparen!==!0&&D===Gp){if(d=N.isGlob=!0,i===!0){for(;x()!==!0&&(D=v());){if(D===Gp){S=N.backslashes=!0,D=v();continue}if(D===lC){b=!0;break}}continue}break}if(d===!0){if(b=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,d=!1);let A=c,C="",E="";f>0&&(C=c.slice(0,f),c=c.slice(f),l-=f),A&&d===!0&&l>0?(A=c.slice(0,l),E=c.slice(l)):d===!0?(A="",E=c):A=c,A&&A!==""&&A!=="/"&&A!==c&&fC(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),r.unescape===!0&&(E&&(E=uC.removeBackslashes(E)),A&&S===!0&&(A=uC.removeBackslashes(A)));let w={prefix:C,input:e,start:f,base:A,glob:E,isBrace:h,isBracket:p,isGlob:d,isExtglob:y,isGlobstar:m,negated:k,negatedExtglob:F};if(r.tokens===!0&&(w.maxDepth=0,fC(D)||o.push(N),w.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let $=0;$<s.length;$++){let M=T?T+1:f,U=s[$],V=e.slice(M,U);r.tokens&&($===0&&f!==0?(o[$].isPrefix=!0,o[$].value=C):o[$].value=V,hC(o[$]),w.maxDepth+=o[$].depth),($!==0||V!=="")&&a.push(V),T=U}if(T&&T+1<e.length){let $=e.slice(T+1);a.push($),r.tokens&&(o[o.length-1].value=$,hC(o[o.length-1]),w.maxDepth+=o[o.length-1].depth)}w.slashes=s,w.parts=a}return w};dC.exports=sW});var vC=R((wK,yC)=>{"use strict";var Sc=Zo(),nr=ea(),{MAX_LENGTH:Cc,POSIX_REGEX_SOURCE:oW,REGEX_NON_SPECIAL_CHARS:aW,REGEX_SPECIAL_CHARS_BACKREF:uW,REPLACEMENTS:mC}=Sc,cW=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>nr.escapeRegex(i)).join("..")}return r},vs=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Up=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=mC[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Cc,r.maxLength):Cc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=nr.isWindows(t),u=Sc.globChars(c),f=Sc.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:O,NO_DOTS_SLASH:S,QMARK:k,QMARK_NO_DOT:F,STAR:b,START_ANCHOR:_}=u,L=G=>`(${a}(?:(?!${_}${G.dot?y:l}).)*?)`,D=r.dot?"":m,N=r.dot?k:F,x=r.bash===!0?L(r):b;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=nr.removePrefix(e,g),i=e.length;let v=[],A=[],C=[],E=s,w,T=()=>g.index===i-1,$=g.peek=(G=1)=>e[g.index+G],M=g.advance=()=>e[++g.index]||"",U=()=>e.slice(g.index+1),V=(G="",re=0)=>{g.consumed+=G,g.index+=re},X=G=>{g.output+=G.output!=null?G.output:G.value,V(G.value)},he=()=>{let G=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)M(),g.start++,G++;return G%2===0?!1:(g.negated=!0,g.start++,!0)},q=G=>{g[G]++,C.push(G)},H=G=>{g[G]--,C.pop()},W=G=>{if(E.type==="globstar"){let re=g.braces>0&&(G.type==="comma"||G.type==="brace"),Y=G.extglob===!0||v.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!re&&!Y&&(g.output=g.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=x,g.output+=E.output)}if(v.length&&G.type!=="paren"&&(v[v.length-1].inner+=G.value),(G.value||G.output)&&X(G),E&&E.type==="text"&&G.type==="text"){E.value+=G.value,E.output=(E.output||"")+G.value;return}G.prev=E,o.push(G),E=G},Z=(G,re)=>{let Y={...f[re],conditions:1,inner:""};Y.prev=E,Y.parens=g.parens,Y.output=g.output;let ue=(r.capture?"(":"")+Y.open;q("parens"),W({type:G,value:re,output:g.output?"":d}),W({type:"paren",extglob:!0,value:M(),output:ue}),v.push(Y)},ee=G=>{let re=G.close+(r.capture?")":""),Y;if(G.type==="negate"){let ue=x;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ue=L(r)),(ue!==x||T()||/^\)+$/.test(U()))&&(re=G.close=`)$))${ue}`),G.inner.includes("*")&&(Y=U())&&/^\.[^\\/.]+$/.test(Y)){let ve=Up(Y,{...t,fastpaths:!1}).output;re=G.close=`)${ve})${ue})`}G.prev.type==="bos"&&(g.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:re}),H("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let G=!1,re=e.replace(uW,(Y,ue,ve,De,I,j)=>De==="\\"?(G=!0,Y):De==="?"?ue?ue+De+(I?k.repeat(I.length):""):j===0?N+(I?k.repeat(I.length):""):k.repeat(ve.length):De==="."?l.repeat(ve.length):De==="*"?ue?ue+De+(I?x:""):x:ue?Y:`\\${Y}`);return G===!0&&(r.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),re===e&&r.contains===!0?(g.output=e,g):(g.output=nr.wrapOutput(re,g,t),g)}for(;!T();){if(w=M(),w==="\0")continue;if(w==="\\"){let Y=$();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){w+="\\",W({type:"text",value:w});continue}let ue=/^\\+/.exec(U()),ve=0;if(ue&&ue[0].length>2&&(ve=ue[0].length,g.index+=ve,ve%2!==0&&(w+="\\")),r.unescape===!0?w=M():w+=M(),g.brackets===0){W({type:"text",value:w});continue}}if(g.brackets>0&&(w!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&w===":"){let Y=E.value.slice(1);if(Y.includes("[")&&(E.posix=!0,Y.includes(":"))){let ue=E.value.lastIndexOf("["),ve=E.value.slice(0,ue),De=E.value.slice(ue+2),I=oW[De];if(I){E.value=ve+I,g.backtrack=!0,M(),!s.output&&o.indexOf(E)===1&&(s.output=d);continue}}}(w==="["&&$()!==":"||w==="-"&&$()==="]")&&(w=`\\${w}`),w==="]"&&(E.value==="["||E.value==="[^")&&(w=`\\${w}`),r.posix===!0&&w==="!"&&E.value==="["&&(w="^"),E.value+=w,X({value:w});continue}if(g.quotes===1&&w!=='"'){w=nr.escapeRegex(w),E.value+=w,X({value:w});continue}if(w==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){q("parens"),W({type:"paren",value:w});continue}if(w===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vs("opening","("));let Y=v[v.length-1];if(Y&&g.parens===Y.parens+1){ee(v.pop());continue}W({type:"paren",value:w,output:g.parens?")":"\\)"}),H("parens");continue}if(w==="["){if(r.nobracket===!0||!U().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));w=`\\${w}`}else q("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vs("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}H("brackets");let Y=E.value.slice(1);if(E.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(w=`/${w}`),E.value+=w,X({value:w}),r.literalBrackets===!1||nr.hasRegexChars(Y))continue;let ue=nr.escapeRegex(E.value);if(g.output=g.output.slice(0,-E.value.length),r.literalBrackets===!0){g.output+=ue,E.value=ue;continue}E.value=`(${a}${ue}|${E.value})`,g.output+=E.value;continue}if(w==="{"&&r.nobrace!==!0){q("braces");let Y={type:"brace",value:w,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};A.push(Y),W(Y);continue}if(w==="}"){let Y=A[A.length-1];if(r.nobrace===!0||!Y){W({type:"text",value:w,output:w});continue}let ue=")";if(Y.dots===!0){let ve=o.slice(),De=[];for(let I=ve.length-1;I>=0&&(o.pop(),ve[I].type!=="brace");I--)ve[I].type!=="dots"&&De.unshift(ve[I].value);ue=cW(De,r),g.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let ve=g.output.slice(0,Y.outputIndex),De=g.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",w=ue="\\}",g.output=ve;for(let I of De)g.output+=I.output||I.value}W({type:"brace",value:w,output:ue}),H("braces"),A.pop();continue}if(w==="|"){v.length>0&&v[v.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let Y=w,ue=A[A.length-1];ue&&C[C.length-1]==="braces"&&(ue.comma=!0,Y="|"),W({type:"comma",value:w,output:Y});continue}if(w==="/"){if(E.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),E=s;continue}W({type:"slash",value:w,output:p});continue}if(w==="."){if(g.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let Y=A[A.length-1];E.type="dots",E.output+=w,E.value+=w,Y.dots=!0;continue}if(g.braces+g.parens===0&&E.type!=="bos"&&E.type!=="slash"){W({type:"text",value:w,output:l});continue}W({type:"dot",value:w,output:l});continue}if(w==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Z("qmark",w);continue}if(E&&E.type==="paren"){let ue=$(),ve=w;if(ue==="<"&&!nr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(U()))&&(ve=`\\${w}`),W({type:"text",value:w,output:ve});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){W({type:"qmark",value:w,output:F});continue}W({type:"qmark",value:w,output:k});continue}if(w==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){Z("negate",w);continue}if(r.nonegate!==!0&&g.index===0){he();continue}}if(w==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Z("plus",w);continue}if(E&&E.value==="("||r.regex===!1){W({type:"plus",value:w,output:h});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||g.parens>0){W({type:"plus",value:w});continue}W({type:"plus",value:h});continue}if(w==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){W({type:"at",extglob:!0,value:w,output:""});continue}W({type:"text",value:w});continue}if(w!=="*"){(w==="$"||w==="^")&&(w=`\\${w}`);let Y=aW.exec(U());Y&&(w+=Y[0],g.index+=Y[0].length),W({type:"text",value:w});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=w,E.output=x,g.backtrack=!0,g.globstar=!0,V(w);continue}let G=U();if(r.noextglob!==!0&&/^\([^?]/.test(G)){Z("star",w);continue}if(E.type==="star"){if(r.noglobstar===!0){V(w);continue}let Y=E.prev,ue=Y.prev,ve=Y.type==="slash"||Y.type==="bos",De=ue&&(ue.type==="star"||ue.type==="globstar");if(r.bash===!0&&(!ve||G[0]&&G[0]!=="/")){W({type:"star",value:w,output:""});continue}let I=g.braces>0&&(Y.type==="comma"||Y.type==="brace"),j=v.length&&(Y.type==="pipe"||Y.type==="paren");if(!ve&&Y.type!=="paren"&&!I&&!j){W({type:"star",value:w,output:""});continue}for(;G.slice(0,3)==="/**";){let K=e[g.index+4];if(K&&K!=="/")break;G=G.slice(3),V("/**",3)}if(Y.type==="bos"&&T()){E.type="globstar",E.value+=w,E.output=L(r),g.output=E.output,g.globstar=!0,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!De&&T()){g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=L(r)+(r.strictSlashes?")":"|$)"),E.value+=w,g.globstar=!0,g.output+=Y.output+E.output,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&G[0]==="/"){let K=G[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=`${L(r)}${p}|${p}${K})`,E.value+=w,g.output+=Y.output+E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&G[0]==="/"){E.type="globstar",E.value+=w,E.output=`(?:^|${p}|${L(r)}${p})`,g.output=E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-E.output.length),E.type="globstar",E.output=L(r),E.value+=w,g.output+=E.output,g.globstar=!0,V(w);continue}let re={type:"star",value:w,output:x};if(r.bash===!0){re.output=".*?",(E.type==="bos"||E.type==="slash")&&(re.output=D+re.output),W(re);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){re.output=w,W(re);continue}(g.index===g.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(g.output+=O,E.output+=O):r.dot===!0?(g.output+=S,E.output+=S):(g.output+=D,E.output+=D),$()!=="*"&&(g.output+=d,E.output+=d)),W(re)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));g.output=nr.escapeLast(g.output,"["),H("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing",")"));g.output=nr.escapeLast(g.output,"("),H("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","}"));g.output=nr.escapeLast(g.output,"{"),H("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${p}?`}),g.backtrack===!0){g.output="";for(let G of g.tokens)g.output+=G.output!=null?G.output:G.value,G.suffix&&(g.output+=G.suffix)}return g};Up.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Cc,r.maxLength):Cc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=mC[e]||e;let s=nr.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:d}=Sc.globChars(s),y=r.dot?l:f,m=r.dot?h:f,O=r.capture?"":"?:",S={negated:!1,prefix:""},k=r.bash===!0?".*?":p;r.capture&&(k=`(${k})`);let F=D=>D.noglobstar===!0?k:`(${O}(?:(?!${d}${D.dot?u:o}).)*?)`,b=D=>{switch(D){case"*":return`${y}${c}${k}`;case".*":return`${o}${c}${k}`;case"*.*":return`${y}${k}${o}${c}${k}`;case"*/*":return`${y}${k}${a}${c}${m}${k}`;case"**":return y+F(r);case"**/*":return`(?:${y}${F(r)}${a})?${m}${c}${k}`;case"**/*.*":return`(?:${y}${F(r)}${a})?${m}${k}${o}${c}${k}`;case"**/.*":return`(?:${y}${F(r)}${a})?${o}${c}${k}`;default:{let N=/^(.*?)\.(\w+)$/.exec(D);if(!N)return;let x=b(N[1]);return x?x+o+N[2]:void 0}}},_=nr.removePrefix(e,S),L=b(_);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};yC.exports=Up});var EC=R((SK,AC)=>{"use strict";var lW=require("path"),fW=gC(),Hp=vC(),zp=ea(),hW=Zo(),pW=e=>e&&typeof e=="object"&&!Array.isArray(e),Je=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Je(h,t,r));return h=>{for(let p of f){let d=p(h);if(d)return d}return!1}}let n=pW(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=zp.isWindows(t),o=n?Je.compileRe(e,t):Je.makeRe(e,t,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=Je(i.ignore,f,r)}let u=(f,l=!1)=>{let{isMatch:h,match:p,output:d}=Je.test(f,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:f,output:d,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,l?y:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),l?y:!0)};return r&&(u.state=a),u};Je.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?zp.toPosixSlashes:null),a=e===n,c=a&&o?o(e):e;return a===!1&&(c=o?o(e):e,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Je.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Je.matchBase=(e,t,r,n=zp.isWindows(r))=>(t instanceof RegExp?t:Je.makeRe(t,r)).test(lW.basename(e));Je.isMatch=(e,t,r)=>Je(t,r)(e);Je.parse=(e,t)=>Array.isArray(e)?e.map(r=>Je.parse(r,t)):Hp(e,{...t,fastpaths:!1});Je.scan=(e,t)=>fW(e,t);Je.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Je.toRegex(a,t);return n===!0&&(c.state=e),c};Je.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Hp.fastpaths(e,t)),i.output||(i=Hp(e,t)),Je.compileRe(i,t,r,n)};Je.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Je.constants=hW;AC.exports=Je});var wC=R((CK,bC)=>{"use strict";bC.exports=EC()});var ra=R((xK,_C)=>{"use strict";var CC=require("util"),xC=rC(),zr=wC(),Yp=ea(),SC=e=>e===""||e==="./",OC=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},He=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=zr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let p of e){let d=l(p,!0);(h?!d.isMatch:d.isMatch)&&(h?n.add(d.output):(n.delete(d.output),i.add(d.output)))}}let u=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u};He.match=He;He.matcher=(e,t)=>zr(e,t);He.isMatch=(e,t,r)=>zr(t,r)(e);He.any=He.isMatch;He.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(He(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};He.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${CC.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>He.contains(e,n,r));if(typeof t=="string"){if(SC(e)||SC(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return He.isMatch(e,t,{...r,contains:!0})};He.matchKeys=(e,t,r)=>{if(!Yp.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=He(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};He.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};He.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=zr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};He.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${CC.inspect(e)}"`);return[].concat(t).every(n=>zr(n,r)(e))};He.capture=(e,t,r)=>{let n=Yp.isWindows(r),s=zr.makeRe(String(e),{...r,capture:!0}).exec(n?Yp.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};He.makeRe=(...e)=>zr.makeRe(...e);He.scan=(...e)=>zr.scan(...e);He.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of xC(String(n),t))r.push(zr.parse(i,t));return r};He.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!OC(e)?[e]:xC(e,t)};He.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return He.braces(e,{...t,expand:!0})};He.hasBraces=OC;_C.exports=He});var $C=R(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isAbsolute=Ee.partitionAbsoluteAndRelative=Ee.removeDuplicateSlashes=Ee.matchAny=Ee.convertPatternsToRe=Ee.makeRe=Ee.getPatternParts=Ee.expandBraceExpansion=Ee.expandPatternsWithBraceExpansion=Ee.isAffectDepthOfReadingPattern=Ee.endsWithSlashGlobStar=Ee.hasGlobStar=Ee.getBaseDirectory=Ee.isPatternRelatedToParentDirectory=Ee.getPatternsOutsideCurrentDirectory=Ee.getPatternsInsideCurrentDirectory=Ee.getPositivePatterns=Ee.getNegativePatterns=Ee.isPositivePattern=Ee.isNegativePattern=Ee.convertToNegativePattern=Ee.convertToPositivePattern=Ee.isDynamicPattern=Ee.isStaticPattern=void 0;var PC=require("path"),dW=E1(),Vp=ra(),RC="**",gW="\\",mW=/[*?]|^!/,yW=/\[[^[]*]/,vW=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,AW=/[!*+?@]\([^(]*\)/,EW=/,|\.\./,bW=/(?!^)\/{2,}/g;function FC(e,t={}){return!DC(e,t)}Ee.isStaticPattern=FC;function DC(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(gW)||mW.test(e)||yW.test(e)||vW.test(e)||t.extglob!==!1&&AW.test(e)||t.braceExpansion!==!1&&wW(e))}Ee.isDynamicPattern=DC;function wW(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return EW.test(n)}function SW(e){return xc(e)?e.slice(1):e}Ee.convertToPositivePattern=SW;function CW(e){return"!"+e}Ee.convertToNegativePattern=CW;function xc(e){return e.startsWith("!")&&e[1]!=="("}Ee.isNegativePattern=xc;function LC(e){return!xc(e)}Ee.isPositivePattern=LC;function xW(e){return e.filter(xc)}Ee.getNegativePatterns=xW;function OW(e){return e.filter(LC)}Ee.getPositivePatterns=OW;function _W(e){return e.filter(t=>!Kp(t))}Ee.getPatternsInsideCurrentDirectory=_W;function PW(e){return e.filter(Kp)}Ee.getPatternsOutsideCurrentDirectory=PW;function Kp(e){return e.startsWith("..")||e.startsWith("./..")}Ee.isPatternRelatedToParentDirectory=Kp;function RW(e){return dW(e,{flipBackslashes:!1})}Ee.getBaseDirectory=RW;function FW(e){return e.includes(RC)}Ee.hasGlobStar=FW;function kC(e){return e.endsWith("/"+RC)}Ee.endsWithSlashGlobStar=kC;function DW(e){let t=PC.basename(e);return kC(e)||FC(t)}Ee.isAffectDepthOfReadingPattern=DW;function LW(e){return e.reduce((t,r)=>t.concat(TC(r)),[])}Ee.expandPatternsWithBraceExpansion=LW;function TC(e){let t=Vp.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}Ee.expandBraceExpansion=TC;function kW(e,t){let{parts:r}=Vp.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Ee.getPatternParts=kW;function IC(e,t){return Vp.makeRe(e,t)}Ee.makeRe=IC;function TW(e,t){return e.map(r=>IC(r,t))}Ee.convertPatternsToRe=TW;function IW(e,t){return t.some(r=>r.test(e))}Ee.matchAny=IW;function NW(e){return e.replace(bW,"/")}Ee.removeDuplicateSlashes=NW;function $W(e){let t=[],r=[];for(let n of e)NC(n)?t.push(n):r.push(n);return[t,r]}Ee.partitionAbsoluteAndRelative=$W;function NC(e){return PC.isAbsolute(e)}Ee.isAbsolute=NC});var WC=R((_K,BC)=>{"use strict";var MW=require("stream"),MC=MW.PassThrough,jW=Array.prototype.slice;BC.exports=BW;function BW(){let e=[],t=jW.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=MC(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(jC(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,c())}function p(d){function y(){d.removeListener("merge2UnpipeEnd",y),d.removeListener("end",y),s&&d.removeListener("error",m),h()}function m(O){o.emit("error",O)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",y),d.on("end",y),s&&d.on("error",m),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<f.length;d++)p(f[d]);h()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function jC(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=jC(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(MC(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var GC=R(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.merge=void 0;var WW=WC();function qW(e){let t=WW(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>qC(e)),t.once("end",()=>qC(e)),t}Oc.merge=qW;function qC(e){e.forEach(t=>t.emit("close"))}});var UC=R(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isEmpty=As.isString=void 0;function GW(e){return typeof e=="string"}As.isString=GW;function UW(e){return e===""}As.isEmpty=UW});var hn=R(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.string=yt.stream=yt.pattern=yt.path=yt.fs=yt.errno=yt.array=void 0;var HW=a1();yt.array=HW;var zW=u1();yt.errno=zW;var YW=c1();yt.fs=YW;var VW=p1();yt.path=VW;var KW=$C();yt.pattern=KW;var XW=GC();yt.stream=XW;var JW=UC();yt.string=JW});var VC=R(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.convertPatternGroupToTask=vt.convertPatternGroupsToTasks=vt.groupPatternsByBaseDirectory=vt.getNegativePatternsAsPositive=vt.getPositivePatterns=vt.convertPatternsToTasks=vt.generate=void 0;var kr=hn();function QW(e,t){let r=HC(e,t),n=HC(t.ignore,t),i=zC(r),s=YC(r,n),o=i.filter(f=>kr.pattern.isStaticPattern(f,t)),a=i.filter(f=>kr.pattern.isDynamicPattern(f,t)),c=Xp(o,s,!1),u=Xp(a,s,!0);return c.concat(u)}vt.generate=QW;function HC(e,t){let r=e;return t.braceExpansion&&(r=kr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>kr.pattern.removeDuplicateSlashes(n))}function Xp(e,t,r){let n=[],i=kr.pattern.getPatternsOutsideCurrentDirectory(e),s=kr.pattern.getPatternsInsideCurrentDirectory(e),o=Jp(i),a=Jp(s);return n.push(...Qp(o,t,r)),"."in a?n.push(Zp(".",s,t,r)):n.push(...Qp(a,t,r)),n}vt.convertPatternsToTasks=Xp;function zC(e){return kr.pattern.getPositivePatterns(e)}vt.getPositivePatterns=zC;function YC(e,t){return kr.pattern.getNegativePatterns(e).concat(t).map(kr.pattern.convertToPositivePattern)}vt.getNegativePatternsAsPositive=YC;function Jp(e){let t={};return e.reduce((r,n)=>{let i=kr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}vt.groupPatternsByBaseDirectory=Jp;function Qp(e,t,r){return Object.keys(e).map(n=>Zp(n,e[n],t,r))}vt.convertPatternGroupsToTasks=Qp;function Zp(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(kr.pattern.convertToNegativePattern))}}vt.convertPatternGroupToTask=Zp});var XC=R(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.read=void 0;function ZW(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){KC(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){ed(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){KC(r,s);return}ed(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ed(r,o)})})}_c.read=ZW;function KC(e,t){e(t)}function ed(e,t){e(null,t)}});var JC=R(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.read=void 0;function eq(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Pc.read=eq});var QC=R(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.createFileSystemAdapter=jn.FILE_SYSTEM_ADAPTER=void 0;var Rc=require("fs");jn.FILE_SYSTEM_ADAPTER={lstat:Rc.lstat,stat:Rc.stat,lstatSync:Rc.lstatSync,statSync:Rc.statSync};function tq(e){return e===void 0?jn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jn.FILE_SYSTEM_ADAPTER),e)}jn.createFileSystemAdapter=tq});var ZC=R(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var rq=QC(),td=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=rq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};rd.default=td});var _i=R(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.statSync=Bn.stat=Bn.Settings=void 0;var ex=XC(),nq=JC(),nd=ZC();Bn.Settings=nd.default;function iq(e,t,r){if(typeof t=="function"){ex.read(e,id(),t);return}ex.read(e,id(t),r)}Bn.stat=iq;function sq(e,t){let r=id(t);return nq.read(e,r)}Bn.statSync=sq;function id(e={}){return e instanceof nd.default?e:new nd.default(e)}});var nx=R(($K,rx)=>{var tx;rx.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(tx||(tx=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var sx=R((MK,ix)=>{ix.exports=aq;var oq=nx();function aq(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(c){function u(){t&&t(c,r),t=null}s?oq(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,l){a(u,f,l)})}):o(null),s=!1}});var sd=R(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Fc=process.versions.node.split(".");if(Fc[0]===void 0||Fc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ox=Number.parseInt(Fc[0],10),uq=Number.parseInt(Fc[1],10),ax=10,cq=10,lq=ox>ax,fq=ox===ax&&uq>=cq;Dc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=lq||fq});var ux=R(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.createDirentFromStats=void 0;var od=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function hq(e,t){return new od(e,t)}Lc.createDirentFromStats=hq});var ad=R(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.fs=void 0;var pq=ux();kc.fs=pq});var ud=R(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.joinPathSegments=void 0;function dq(e,t,r){return e.endsWith(r)?e+t:e+r+t}Tc.joinPathSegments=dq});var dx=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.readdir=Wn.readdirWithFileTypes=Wn.read=void 0;var gq=_i(),cx=sx(),mq=sd(),lx=ad(),fx=ud();function yq(e,t,r){if(!t.stats&&mq.IS_SUPPORT_READDIR_WITH_FILE_TYPES){hx(e,t,r);return}px(e,t,r)}Wn.read=yq;function hx(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Ic(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:fx.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){cd(r,s);return}let o=s.map(a=>vq(a,t));cx(o,(a,c)=>{if(a!==null){Ic(r,a);return}cd(r,c)})})}Wn.readdirWithFileTypes=hx;function vq(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=lx.fs.createDirentFromStats(e.name,i),r(null,e)})}}function px(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Ic(r,n);return}let s=i.map(o=>{let a=fx.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{gq.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let l={name:o,path:a,dirent:lx.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),c(null,l)})}});cx(s,(o,a)=>{if(o!==null){Ic(r,o);return}cd(r,a)})})}Wn.readdir=px;function Ic(e,t){e(t)}function cd(e,t){e(null,t)}});var Ax=R(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.readdir=qn.readdirWithFileTypes=qn.read=void 0;var Aq=_i(),Eq=sd(),gx=ad(),mx=ud();function bq(e,t){return!t.stats&&Eq.IS_SUPPORT_READDIR_WITH_FILE_TYPES?yx(e,t):vx(e,t)}qn.read=bq;function yx(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:mx.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=gx.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qn.readdirWithFileTypes=yx;function vx(e,t){return t.fs.readdirSync(e).map(n=>{let i=mx.joinPathSegments(e,n,t.pathSegmentSeparator),s=Aq.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:gx.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qn.readdir=vx});var Ex=R(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createFileSystemAdapter=Gn.FILE_SYSTEM_ADAPTER=void 0;var Es=require("fs");Gn.FILE_SYSTEM_ADAPTER={lstat:Es.lstat,stat:Es.stat,lstatSync:Es.lstatSync,statSync:Es.statSync,readdir:Es.readdir,readdirSync:Es.readdirSync};function wq(e){return e===void 0?Gn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Gn.FILE_SYSTEM_ADAPTER),e)}Gn.createFileSystemAdapter=wq});var bx=R(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var Sq=require("path"),Cq=_i(),xq=Ex(),ld=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=xq.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Sq.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Cq.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};fd.default=ld});var Nc=R(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Settings=Un.scandirSync=Un.scandir=void 0;var wx=dx(),Oq=Ax(),hd=bx();Un.Settings=hd.default;function _q(e,t,r){if(typeof t=="function"){wx.read(e,pd(),t);return}wx.read(e,pd(t),r)}Un.scandir=_q;function Pq(e,t){let r=pd(t);return Oq.read(e,r)}Un.scandirSync=Pq;function pd(e={}){return e instanceof hd.default?e:new hd.default(e)}});var Cx=R((VK,Sx)=>{"use strict";function Rq(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Sx.exports=Rq});var Ox=R((KK,dd)=>{"use strict";var Fq=Cx();function xx(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Fq(Dq),i=null,s=null,o=0,a=null,c={push:y,drain:Ar,saturated:Ar,pause:f,paused:!1,get concurrency(){return r},set concurrency(b){if(!(b>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=b,!c.paused)for(;i&&o<r;)o++,O()},running:u,resume:p,idle:d,length:l,getQueue:h,unshift:m,empty:Ar,kill:S,killAndDrain:k,error:F};return c;function u(){return o}function f(){c.paused=!0}function l(){for(var b=i,_=0;b;)b=b.next,_++;return _}function h(){for(var b=i,_=[];b;)_.push(b.value),b=b.next;return _}function p(){if(c.paused){if(c.paused=!1,i===null){o++,O();return}for(;i&&o<r;)o++,O()}}function d(){return o===0&&c.length()===0}function y(b,_){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=_||Ar,L.errorHandler=a,o>=r||c.paused?s?(s.next=L,s=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function m(b,_){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=_||Ar,L.errorHandler=a,o>=r||c.paused?i?(L.next=i,i=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function O(b){b&&n.release(b);var _=i;_&&o<=r?c.paused?o--:(s===i&&(s=null),i=_.next,_.next=null,t.call(e,_.value,_.worked),s===null&&c.empty()):--o===0&&c.drain()}function S(){i=null,s=null,c.drain=Ar}function k(){i=null,s=null,c.drain(),c.drain=Ar}function F(b){a=b}}function Ar(){}function Dq(){this.value=null,this.callback=Ar,this.next=null,this.release=Ar,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=Ar,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Lq(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=xx(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var l=new Promise(function(h,p){s(f,function(d,y){if(d){p(d);return}h(y)})});return l.catch(Ar),l}function c(f){var l=new Promise(function(h,p){o(f,function(d,y){if(d){p(d);return}h(y)})});return l.catch(Ar),l}function u(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}dd.exports=xx;dd.exports.promise=Lq});var $c=R(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.joinPathSegments=Yr.replacePathSegmentSeparator=Yr.isAppliedFilter=Yr.isFatalError=void 0;function kq(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Yr.isFatalError=kq;function Tq(e,t){return e===null||e(t)}Yr.isAppliedFilter=Tq;function Iq(e,t){return e.split(/[/\\]/).join(t)}Yr.replacePathSegmentSeparator=Iq;function Nq(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Yr.joinPathSegments=Nq});var yd=R(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var $q=$c(),gd=class{constructor(t,r){this._root=t,this._settings=r,this._root=$q.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};md.default=gd});var Ed=R(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Mq=require("events"),jq=Nc(),Bq=Ox(),Mc=$c(),Wq=yd(),vd=class extends Wq.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=jq.scandir,this._emitter=new Mq.EventEmitter,this._queue=Bq(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Mc.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Mc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Mc.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Mc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ad.default=vd});var _x=R(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var qq=Ed(),bd=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new qq.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Gq(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Uq(t,this._storage)}),this._reader.read()}};wd.default=bd;function Gq(e,t){e(t)}function Uq(e,t){e(null,t)}});var Px=R(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var Hq=require("stream"),zq=Ed(),Sd=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new zq.default(this._root,this._settings),this._stream=new Hq.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Cd.default=Sd});var Rx=R(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Yq=Nc(),jc=$c(),Vq=yd(),xd=class extends Vq.default{constructor(){super(...arguments),this._scandir=Yq.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(jc.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=jc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),jc.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&jc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Od.default=xd});var Fx=R(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var Kq=Rx(),_d=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Kq.default(this._root,this._settings)}read(){return this._reader.read()}};Pd.default=_d});var Dx=R(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var Xq=require("path"),Jq=Nc(),Rd=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xq.sep),this.fsScandirSettings=new Jq.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Fd.default=Rd});var Wc=R(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Settings=Vr.walkStream=Vr.walkSync=Vr.walk=void 0;var Lx=_x(),Qq=Px(),Zq=Fx(),Dd=Dx();Vr.Settings=Dd.default;function eG(e,t,r){if(typeof t=="function"){new Lx.default(e,Bc()).read(t);return}new Lx.default(e,Bc(t)).read(r)}Vr.walk=eG;function tG(e,t){let r=Bc(t);return new Zq.default(e,r).read()}Vr.walkSync=tG;function rG(e,t){let r=Bc(t);return new Qq.default(e,r).read()}Vr.walkStream=rG;function Bc(e={}){return e instanceof Dd.default?e:new Dd.default(e)}});var qc=R(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var nG=require("path"),iG=_i(),kx=hn(),Ld=class{constructor(t){this._settings=t,this._fsStatSettings=new iG.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return nG.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:kx.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!kx.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};kd.default=Ld});var Nd=R(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var sG=require("stream"),oG=_i(),aG=Wc(),uG=qc(),Td=class extends uG.default{constructor(){super(...arguments),this._walkStream=aG.walkStream,this._stat=oG.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new sG.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Id.default=Td});var Tx=R(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var cG=Wc(),lG=qc(),fG=Nd(),$d=class extends lG.default{constructor(){super(...arguments),this._walkAsync=cG.walk,this._readerStream=new fG.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Md.default=$d});var Ix=R(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var na=hn(),jd=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return na.pattern.getPatternParts(t,this._micromatchOptions).map(n=>na.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:na.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return na.array.splitWhen(t,r=>r.dynamic&&na.pattern.hasGlobStar(r.pattern))}};Bd.default=jd});var Nx=R(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var hG=Ix(),Wd=class extends hG.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};qd.default=Wd});var $x=R(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var Gc=hn(),pG=Nx(),Gd=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new pG.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Gc.pattern.isAffectDepthOfReadingPattern);return Gc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Gc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Gc.pattern.matchAny(t,r)}};Ud.default=Gd});var Mx=R(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Hn=hn(),Hd=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=Hn.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:Hn.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Hn.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Hn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=Hn.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=Hn.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=Hn.pattern.matchAny(t,r);return!i&&n?Hn.pattern.matchAny(t+"/",r):i}};zd.default=Hd});var jx=R(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var dG=hn(),Yd=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return dG.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Vd.default=Yd});var Wx=R(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var Bx=hn(),Kd=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Bx.path.makeAbsolute(this._settings.cwd,r),r=Bx.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Xd.default=Kd});var Uc=R(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var gG=require("path"),mG=$x(),yG=Mx(),vG=jx(),AG=Wx(),Jd=class{constructor(t){this._settings=t,this.errorFilter=new vG.default(this._settings),this.entryFilter=new yG.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new mG.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new AG.default(this._settings)}_getRootDirectory(t){return gG.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Qd.default=Jd});var qx=R(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var EG=Tx(),bG=Uc(),Zd=class extends bG.default{constructor(){super(...arguments),this._reader=new EG.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};eg.default=Zd});var Gx=R(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var wG=require("stream"),SG=Nd(),CG=Uc(),tg=class extends CG.default{constructor(){super(...arguments),this._reader=new SG.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new wG.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};rg.default=tg});var Ux=R(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var xG=_i(),OG=Wc(),_G=qc(),ng=class extends _G.default{constructor(){super(...arguments),this._walkSync=OG.walkSync,this._statSync=xG.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ig.default=ng});var Hx=R(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var PG=Ux(),RG=Uc(),sg=class extends RG.default{constructor(){super(...arguments),this._reader=new PG.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};og.default=sg});var zx=R(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bs=require("fs"),FG=require("os"),DG=Math.max(FG.cpus().length,1);ws.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bs.lstat,lstatSync:bs.lstatSync,stat:bs.stat,statSync:bs.statSync,readdir:bs.readdir,readdirSync:bs.readdirSync};var ag=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,DG),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ws.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ws.default=ag});var Kx=R((EX,Vx)=>{"use strict";var Yx=VC(),LG=qx(),kG=Gx(),TG=Hx(),ug=zx(),Er=hn();async function cg(e,t){Tr(e);let r=lg(e,LG.default,t),n=await Promise.all(r);return Er.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){Tr(u);let l=lg(u,TG.default,f);return Er.array.flatten(l)}e.sync=t;function r(u,f){Tr(u);let l=lg(u,kG.default,f);return Er.stream.merge(l)}e.stream=r;function n(u,f){Tr(u);let l=[].concat(u),h=new ug.default(f);return Yx.generate(l,h)}e.generateTasks=n;function i(u,f){Tr(u);let l=new ug.default(f);return Er.pattern.isDynamicPattern(u,l)}e.isDynamicPattern=i;function s(u){return Tr(u),Er.path.escape(u)}e.escapePath=s;function o(u){return Tr(u),Er.path.convertPathToPattern(u)}e.convertPathToPattern=o;let a;(function(u){function f(h){return Tr(h),Er.path.escapePosixPath(h)}u.escapePath=f;function l(h){return Tr(h),Er.path.convertPosixPathToPattern(h)}u.convertPathToPattern=l})(a=e.posix||(e.posix={}));let c;(function(u){function f(h){return Tr(h),Er.path.escapeWindowsPath(h)}u.escapePath=f;function l(h){return Tr(h),Er.path.convertWindowsPathToPattern(h)}u.convertPathToPattern=l})(c=e.win32||(e.win32={}))})(cg||(cg={}));function lg(e,t,r){let n=[].concat(e),i=new ug.default(r),s=Yx.generate(n,i),o=new t(i);return s.map(o.read,o)}function Tr(e){if(![].concat(e).every(n=>Er.string.isString(n)&&!Er.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Vx.exports=cg});var zc=R(Yn=>{"use strict";var Xx=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getPackagePathsAsync=Yn.getPackagePaths=void 0;var Hc=Xx(require("path")),Jx=Xx(Kx()),Qx=ls(),zn={},Zx={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function IG(e,t){return(0,Qx.isCachingEnabled)()&&zn[e]||(zn[e]=Jx.default.sync(eO(t),{cwd:e,...Zx}).map(tO)),zn[e]}Yn.getPackagePaths=IG;async function NG(e,t){return(0,Qx.isCachingEnabled)()&&zn[e]||(zn[e]=(await(0,Jx.default)(eO(t),{cwd:e,...Zx})).map(tO)),zn[e]}Yn.getPackagePathsAsync=NG;function eO(e){return e.map(t=>Hc.default.join(t,"package.json").replace(/\\/g,"/"))}function tO(e){let t=Hc.default.dirname(e);return Hc.default.sep==="/"?t:t.replace(/\//g,Hc.default.sep)}});var ia=R(Vn=>{"use strict";var fg=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getWorkspacePackageInfoAsync=Vn.getWorkspacePackageInfo=void 0;var rO=fg(require("path")),$G=fg(require("fs")),MG=fg(require("fs/promises")),nO=Ci(),iO=Ep();function jG(e){return e?e.map(t=>{let r,n=rO.default.join(t,"package.json");try{r=JSON.parse($G.default.readFileSync(n,"utf-8"))}catch(i){return(0,nO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}return{name:r.name,path:t,packageJson:(0,iO.infoFromPackageJson)(r,n)}}).filter(Boolean):[]}Vn.getWorkspacePackageInfo=jG;async function BG(e){if(!e)return[];let t=e.map(async r=>{let n=rO.default.join(r,"package.json");try{let i=JSON.parse(await MG.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,iO.infoFromPackageJson)(i,n)}}catch(i){return(0,nO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}Vn.getWorkspacePackageInfoAsync=BG});var hg=R(br=>{"use strict";var sO=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.getWorkspaceInfoFromWorkspaceRootAsync=br.getWorkspaceInfoFromWorkspaceRoot=br.getPackagePathsFromWorkspaceRootAsync=br.getPackagePathsFromWorkspaceRoot=void 0;var WG=sO(require("fs")),qG=sO(require("path")),oO=zc(),aO=ia(),Yc=Ci();function uO(e){let t=qG.default.join(e,"package.json"),r;try{r=JSON.parse(WG.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function cO(e){try{let t=uO(e);return t?(0,oO.getPackagePaths)(e,t):[]}catch(t){return(0,Yc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}br.getPackagePathsFromWorkspaceRoot=cO;async function lO(e){try{let t=uO(e);return t?(0,oO.getPackagePathsAsync)(e,t):[]}catch(t){return(0,Yc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}br.getPackagePathsFromWorkspaceRootAsync=lO;function GG(e){try{let t=cO(e);return(0,aO.getWorkspacePackageInfo)(t)}catch(t){return(0,Yc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}br.getWorkspaceInfoFromWorkspaceRoot=GG;async function UG(e){try{let t=await lO(e);return(0,aO.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Yc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}br.getWorkspaceInfoFromWorkspaceRootAsync=UG});var pg=R(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getWorkspacesAsync=At.getWorkspaces=At.getYarnWorkspacesAsync=At.getYarnWorkspaces=At.getWorkspacePackagePathsAsync=At.getWorkspacePackagePaths=At.getYarnWorkspaceRoot=void 0;var HG=fs(),Vc=hg();function sa(e){let t=(0,HG.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}At.getYarnWorkspaceRoot=sa;function zG(e){let t=sa(e);return(0,Vc.getPackagePathsFromWorkspaceRoot)(t)}At.getWorkspacePackagePaths=zG;function YG(e){let t=sa(e);return(0,Vc.getPackagePathsFromWorkspaceRootAsync)(t)}At.getWorkspacePackagePathsAsync=YG;function fO(e){let t=sa(e);return(0,Vc.getWorkspaceInfoFromWorkspaceRoot)(t)}At.getYarnWorkspaces=fO;At.getWorkspaces=fO;function hO(e){let t=sa(e);return(0,Vc.getWorkspaceInfoFromWorkspaceRootAsync)(t)}At.getYarnWorkspacesAsync=hO;At.getWorkspacesAsync=hO});var Ss=R((xX,Pi)=>{"use strict";function pO(e){return typeof e>"u"||e===null}function VG(e){return typeof e=="object"&&e!==null}function KG(e){return Array.isArray(e)?e:pO(e)?[]:[e]}function XG(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function JG(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function QG(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Pi.exports.isNothing=pO;Pi.exports.isObject=VG;Pi.exports.toArray=KG;Pi.exports.repeat=JG;Pi.exports.isNegativeZero=QG;Pi.exports.extend=XG});var Cs=R((OX,gO)=>{"use strict";function dO(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
24
+ ${r.stderr?.toString().trimEnd()}`)}vr.gitFailFast=Nj});var Rd=R((oK,zS)=>{"use strict";zS.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var VS=R((aK,YS)=>{"use strict";var $j=Rd();function Mj(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=$j(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}YS.exports=Mj});var JS=R((uK,XS)=>{"use strict";var jj=VS();function Bj(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Wj=Bj(jj),qj="text/plain",Gj="us-ascii",KS=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),Uj=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(p=>p.trim());return h==="charset"&&(d=d.toLowerCase(),d===Gj)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||c&&c!==qj)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function Hj(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return Uj(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,c="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);c+=d.replace(/\/{2,}/g,"/"),c+=l,a=h+l.length}let u=i.pathname.slice(a,i.pathname.length);c+=u.replace(/\/{2,}/g,"/"),i.pathname=c}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];KS(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])KS(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var Fd=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>Fd.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=Hj(e,t));let i=Wj.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};Fd.MAX_INPUT_LENGTH=2048;XS.exports=Fd});var e1=R((cK,ZS)=>{"use strict";var zj=Rd();function QS(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=zj(e);if(e=e.substring(e.indexOf("://")+3),QS(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}ZS.exports=QS});var n1=R((lK,r1)=>{"use strict";var Yj=JS(),t1=e1();function Vj(e){var t=Yj(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),t1(t.protocols)||t.protocols.length===0&&t1(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}r1.exports=Vj});var s1=R((fK,i1)=>{"use strict";var Kj=n1();function Dd(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=Kj(e),n=r.resource.split("."),i=null;switch(r.toString=function(m){return Dd.stringify(this,m)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:c>0?c-1:u>0?u-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],u&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var d=i.length>s&&i[s+1]==="-"?s+1:s;i.length>d+2&&["raw","src","blob","tree","edit"].indexOf(i[d+1])>=0&&(r.filepathtype=i[d+1],r.ref=i[d+2],i.length>d+3&&(r.filepath=i.slice(d+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var p=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,y=p.exec(r.pathname);return y!=null&&(r.source="bitbucket-server",y[1]==="users"?r.owner="~"+y[2]:r.owner=y[2],r.organization=r.owner,r.name=y[3],i=y[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}Dd.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?Xj(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+Jj(e)+i;default:return e.href}};function Xj(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function Jj(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}i1.exports=Dd});var o1=R(ds=>{"use strict";var Qj=ds&&ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ds,"__esModule",{value:!0});ds.getRepositoryName=void 0;var Zj=Qj(s1());function eB(e){try{let t=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),r=(0,Zj.default)(t),n=t.includes(".visualstudio.com"),i=t.includes("dev.azure.com");if(!n&&!i)return r.full_name;let s=r.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(s)return`${s[2]}/${s[3]}/${r.name}`;let o=r.organization;return!o&&n&&(o=r.resource.match(/([^.@]+)\.visualstudio\.com/)?.[1]),`${o}/${r.owner}/${r.name}`}catch{return""}}ds.getRepositoryName=eB});var Ld=R(ps=>{"use strict";var u1=ps&&ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ps,"__esModule",{value:!0});ps.getDefaultRemote=void 0;var tB=u1(require("fs")),rB=u1(require("path")),nB=Ko(),a1=o1(),iB=Vo();function sB(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=O=>i&&console.log(O),o=O=>{if(n)throw new Error(O);s(O)},a=(0,nB.findGitRoot)(r),c={},u=rB.default.join(a,"package.json");try{c=JSON.parse(tB.default.readFileSync(u,"utf8").trim())}catch{o(`Could not read "${u}"`)}let{repository:f}=c,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${u}". Consider adding this info for more accurate git remote detection.`);let h=(0,a1.getRepositoryName)(l),d=(0,iB.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let p={};if(d.stdout.split(`
25
+ `).forEach(O=>{let[S,k]=O.split(/\s+/),F=(0,a1.getRepositoryName)(k);F&&(p[F]=S)}),h){if(p[h])return p[h];o(`Could not find remote pointing to repository "${h}".`)}let y=Object.values(p),m=["upstream","origin",...y];for(let O of m)if(y.includes(O))return s(`Default to remote "${O}"`),O;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}ps.getDefaultRemote=sB});var kd=R(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.listAllTrackedFiles=Ae.getDefaultBranch=Ae.parseRemoteBranch=Ae.getRemoteBranch=Ae.getParentBranch=Ae.revertLocalChanges=Ae.stageAndCommit=Ae.commit=Ae.stage=Ae.init=Ae.getFileAddedHash=Ae.getCurrentHash=Ae.getShortBranchName=Ae.getFullBranchRef=Ae.getBranchName=Ae.getUserEmail=Ae.getRecentCommitMessages=Ae.getStagedChanges=Ae.getChangesBetweenRefs=Ae.getBranchChanges=Ae.getChanges=Ae.getUnstagedChanges=Ae.fetchRemoteBranch=Ae.fetchRemote=Ae.getUntrackedChanges=void 0;var Ce=Vo();function oB(e){try{return Xo((0,Ce.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about untracked changes",t)}}Ae.getUntrackedChanges=oB;function aB(e,t){if(!(0,Ce.git)(["fetch","--",e],{cwd:t}).success)throw new Ce.GitError(`Cannot fetch remote "${e}"`)}Ae.fetchRemote=aB;function uB(e,t,r){if(!(0,Ce.git)(["fetch","--",e,t],{cwd:r}).success)throw new Ce.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}Ae.fetchRemoteBranch=uB;function cB(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about unstaged changes",t)}}Ae.getUnstagedChanges=cB;function lB(e,t){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new Ce.GitError("Cannot gather information about changes",r)}}Ae.getChanges=lB;function fB(e,t){return c1(e,"",[],"",t)}Ae.getBranchChanges=fB;function c1(e,t,r,n,i){try{return Xo((0,Ce.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new Ce.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}Ae.getChangesBetweenRefs=c1;function hB(e){try{return Xo((0,Ce.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new Ce.GitError("Cannot gather information about staged changes",t)}}Ae.getStagedChanges=hB;function dB(e,t){try{let r=(0,Ce.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()).filter(n=>!!n):[]}catch(r){throw new Ce.GitError("Cannot gather information about recent commits",r)}}Ae.getRecentCommitMessages=dB;function pB(e){try{let t=(0,Ce.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot gather information about user.email",t)}}Ae.getUserEmail=pB;function l1(e){try{let t=(0,Ce.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get branch name",t)}}Ae.getBranchName=l1;function gB(e,t){let r=(0,Ce.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}Ae.getFullBranchRef=gB;function mB(e,t){let r=(0,Ce.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}Ae.getShortBranchName=mB;function yB(e){try{let t=(0,Ce.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new Ce.GitError("Cannot get current git hash",t)}}Ae.getCurrentHash=yB;function vB(e,t){let r=(0,Ce.git)(["rev-list","--max-count=1","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim()}Ae.getFileAddedHash=vB;function AB(e,t,r){(0,Ce.git)(["init"],{cwd:e});let n=(0,Ce.git)(["config","--list"],{cwd:e}).stdout.split(`
26
+ `);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new Ce.GitError("must include a username when initializing git repo");(0,Ce.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,Ce.git)(["config","user.email",t],{cwd:e})}}Ae.init=AB;function f1(e,t){try{e.forEach(r=>{(0,Ce.git)(["add",r],{cwd:t})})}catch(r){throw new Ce.GitError("Cannot stage changes",r)}}Ae.stage=f1;function h1(e,t,r=[]){try{let n=(0,Ce.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new Ce.GitError("Cannot commit changes",n)}}Ae.commit=h1;function EB(e,t,r,n=[]){f1(e,r),h1(t,r,n)}Ae.stageAndCommit=EB;function bB(e){let t=`workspace-tools_${new Date().getTime()}`;(0,Ce.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,Ce.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,Ce.git)(["stash","drop",s[0]]),!0}}return!1}Ae.revertLocalChanges=bB;function wB(e){let t=l1(e);if(!t||t==="HEAD")return null;let r=(0,Ce.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}Ae.getParentBranch=wB;function SB(e,t){let r=(0,Ce.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}Ae.getRemoteBranch=SB;function CB(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}Ae.parseRemoteBranch=CB;function xB(e){let t=(0,Ce.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}Ae.getDefaultBranch=xB;function OB(e,t){let r=(0,Ce.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}Ae.listAllTrackedFiles=OB;function Xo(e){if(!e.success){if(e.stderr)throw new Error(e.stderr);return[]}return e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules"))}});var d1=R(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.getDefaultRemoteBranch=void 0;var PB=Ld(),_B=Vo(),RB=kd();function FB(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,PB.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,_B.git)(["remote","show",o],{cwd:i}),c;return a.success&&(c=a.stdout.split(/\n/).find(u=>u.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),`${o}/${c||(0,RB.getDefaultBranch)(i)}`}pc.getDefaultRemoteBranch=FB});var mc=R(Hr=>{"use strict";var DB=Hr&&Hr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),gc=Hr&&Hr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&DB(t,e,r)};Object.defineProperty(Hr,"__esModule",{value:!0});gc(Vo(),Hr);gc(Ld(),Hr);gc(d1(),Hr);gc(kd(),Hr)});var Ci=R(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.logVerboseWarning=void 0;function LB(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
27
+ `:""}`,t?.stack||t||"")}yc.logVerboseWarning=LB});var Ko=R(Bt=>{"use strict";var g1=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isChildOf=Bt.findProjectRoot=Bt.findPackageRoot=Bt.findGitRoot=Bt.searchUp=void 0;var $n=g1(require("path")),kB=g1(require("fs")),TB=Pd(),IB=mc(),p1=Ci();function m1(e,t){let r=typeof e=="string"?[e]:e;t=$n.default.resolve(t);let n=$n.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>kB.default.existsSync($n.default.join(t,s))),!i);)t=$n.default.dirname(t);return i?$n.default.join(t,i):void 0}Bt.searchUp=m1;function y1(e){let t=(0,IB.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return $n.default.normalize(t.stdout)}Bt.findGitRoot=y1;function NB(e){let t=m1("package.json",e);return t&&$n.default.dirname(t)}Bt.findPackageRoot=NB;function $B(e){let t;try{t=(0,TB.getWorkspaceRoot)(e)}catch(r){(0,p1.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,p1.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||y1(e)}Bt.findProjectRoot=$B;function MB(e,t){let r=$n.default.relative(e,t);return/^[.\/\\]+$/.test(r)}Bt.isChildOf=MB});var gs=R(Mn=>{"use strict";var jB=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.getWorkspaceManagerAndRoot=Mn.getPreferredWorkspaceManager=void 0;var v1=jB(require("path")),BB=Ko(),WB=ls(),qB=new Map,Jo={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function A1(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Jo[e]?e:void 0}Mn.getPreferredWorkspaceManager=A1;function GB(e,t,r){if(t=t||qB,(0,WB.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||A1();let n=(0,BB.searchUp)(r&&Jo[r]||Object.values(Jo),e);if(n){let i=v1.default.basename(n);t.set(e,{manager:Object.keys(Jo).find(s=>Jo[s]===i),root:v1.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Mn.getWorkspaceManagerAndRoot=GB});var E1=R(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.splitWhen=ms.flatten=void 0;function UB(e){return e.reduce((t,r)=>[].concat(t,r),[])}ms.flatten=UB;function HB(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}ms.splitWhen=HB});var b1=R(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.isEnoentCodeError=void 0;function zB(e){return e.code==="ENOENT"}vc.isEnoentCodeError=zB});var w1=R(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.createDirentFromStats=void 0;var Td=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function YB(e,t){return new Td(e,t)}Ac.createDirentFromStats=YB});var O1=R(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPosixPathToPattern=et.convertWindowsPathToPattern=et.convertPathToPattern=et.escapePosixPath=et.escapeWindowsPath=et.escape=et.removeLeadingDotSegment=et.makeAbsolute=et.unixify=void 0;var VB=require("os"),KB=require("path"),S1=VB.platform()==="win32",XB=2,JB=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,QB=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,ZB=/^\\\\([.?])/,e3=/\\(?![!()+@[\]{}])/g;function t3(e){return e.replace(/\\/g,"/")}et.unixify=t3;function r3(e,t){return KB.resolve(e,t)}et.makeAbsolute=r3;function n3(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(XB)}return e}et.removeLeadingDotSegment=n3;et.escape=S1?Id:Nd;function Id(e){return e.replace(QB,"\\$2")}et.escapeWindowsPath=Id;function Nd(e){return e.replace(JB,"\\$2")}et.escapePosixPath=Nd;et.convertPathToPattern=S1?C1:x1;function C1(e){return Id(e).replace(ZB,"//$1").replace(e3,"/")}et.convertWindowsPathToPattern=C1;function x1(e){return Nd(e)}et.convertPosixPathToPattern=x1});var _1=R((CK,P1)=>{P1.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var D1=R((xK,F1)=>{var i3=_1(),R1={"{":"}","(":")","[":"]"},s3=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=R1[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},o3=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=R1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};F1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(i3(t))return!0;var n=s3;return r&&r.strict===!1&&(n=o3),n(t)}});var k1=R((OK,L1)=>{"use strict";var a3=D1(),u3=require("path").posix.dirname,c3=require("os").platform()==="win32",$d="/",l3=/\\/g,f3=/[\{\[].*[\}\]]$/,h3=/(^|[^\\])([\{\[]|\([^\)]+$)/,d3=/\\([\!\*\?\|\[\]\(\)\{\}])/g;L1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&c3&&t.indexOf($d)<0&&(t=t.replace(l3,$d)),f3.test(t)&&(t+=$d),t+="a";do t=u3(t);while(a3(t)||h3.test(t));return t.replace(d3,"$1")}});var Ec=R(Ar=>{"use strict";Ar.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ar.find=(e,t)=>e.nodes.find(r=>r.type===t);Ar.exceedsLimit=(e,t,r=1,n)=>n===!1||!Ar.isInteger(e)||!Ar.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Ar.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Ar.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Ar.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ar.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ar.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ar.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var bc=R((_K,I1)=>{"use strict";var T1=Ec();I1.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&T1.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&T1.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var $1=R((RK,N1)=>{"use strict";N1.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var z1=R((FK,H1)=>{"use strict";var M1=$1(),xi=(e,t,r)=>{if(M1(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(M1(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+i+s+o+a;if(xi.cache.hasOwnProperty(c))return xi.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let y=e+"|"+t;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let l=U1(e)||U1(t),h={min:e,max:t,a:u,b:f},d=[],p=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),u<0){let y=f<0?Math.abs(f):1;p=j1(y,Math.abs(u),h,n),u=h.a=0}return f>=0&&(d=j1(u,f,h,n)),h.negatives=p,h.positives=d,h.result=p3(p,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+p.length>1&&(h.result=`(?:${h.result})`),xi.cache[c]=h,h.result};function p3(e,t,r){let n=Md(e,t,"-",!1,r)||[],i=Md(t,e,"",!1,r)||[],s=Md(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function g3(e,t){let r=1,n=1,i=W1(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=W1(e,r);for(i=q1(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=q1(t+1,n)-1;return s=[...s],s.sort(v3),s}function m3(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=y3(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=A3(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function j1(e,t,r,n){let i=g3(e,t),s=[],o=e,a;for(let c=0;c<i.length;c++){let u=i[c],f=m3(String(o),String(u),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+G1(a.count),o=u+1;continue}r.isPadded&&(l=E3(u,r,n)),f.string=l+f.pattern+G1(f.count),s.push(f),o=u+1,a=f}return s}function Md(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!B1(t,"string",a)&&s.push(r+a),n&&B1(t,"string",a)&&s.push(r+a)}return s}function y3(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function v3(e,t){return e>t?1:t>e?-1:0}function B1(e,t,r){return e.some(n=>n[t]===r)}function W1(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function q1(e,t){return e-e%Math.pow(10,t)}function G1(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function A3(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function U1(e){return/^-?(0+)\d/.test(e)}function E3(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}xi.cache={};xi.clearCache=()=>xi.cache={};H1.exports=xi});var Wd=R((DK,Z1)=>{"use strict";var b3=require("util"),V1=z1(),Y1=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),w3=e=>t=>e===!0?Number(t):String(t),jd=e=>typeof e=="number"||typeof e=="string"&&e!=="",Qo=e=>Number.isInteger(+e),Bd=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},S3=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,C3=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Sc=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},x3=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Sc(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Sc(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},K1=(e,t,r,n)=>{if(r)return V1(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},X1=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return V1(e,t,r)},J1=(...e)=>new RangeError("Invalid range arguments: "+b3.inspect(...e)),Q1=(e,t,r)=>{if(r.strictRanges===!0)throw J1([e,t]);return[]},O3=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},P3=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw J1([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=Bd(a)||Bd(c)||Bd(u),l=f?Math.max(a.length,c.length,u.length):0,h=f===!1&&S3(e,t,n)===!1,d=n.transform||w3(h);if(n.toRegex&&r===1)return K1(Sc(e,l),Sc(t,l),!0,n);let p={negatives:[],positives:[]},y=S=>p[S<0?"negatives":"positives"].push(Math.abs(S)),m=[],O=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?y(i):m.push(C3(d(i,O),l,h)),i=o?i-r:i+r,O++;return n.toRegex===!0?r>1?x3(p,n,l):X1(m,null,{wrap:!1,...n}):m},_3=(e,t,r=1,n={})=>{if(!Qo(e)&&e.length>1||!Qo(t)&&t.length>1)return Q1(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return K1(c,u,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?X1(f,null,{wrap:!1,options:n}):f},wc=(e,t,r,n={})=>{if(t==null&&jd(e))return[e];if(!jd(e)||!jd(t))return Q1(e,t,n);if(typeof r=="function")return wc(e,t,1,{transform:r});if(Y1(r))return wc(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Qo(r)?Qo(e)&&Qo(t)?P3(e,t,r,i):_3(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Y1(r)?O3(r,i):wc(e,t,1,r)};Z1.exports=wc});var rC=R((LK,tC)=>{"use strict";var R3=Wd(),eC=Ec(),F3=(e,t={})=>{let r=(n,i={})=>{let s=eC.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=eC.reduce(n.nodes),l=R3(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(e)};tC.exports=F3});var sC=R((kK,iC)=>{"use strict";var D3=Wd(),nC=bc(),ys=Ec(),Oi=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ys.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Oi(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Oi(i,s,r):i+s);return ys.flatten(n)},L3=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Oi(a.pop(),nC(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Oi(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=ys.reduce(i.nodes);if(ys.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=D3(...l,t);h.length===0&&(h=nC(i,t)),a.push(Oi(a.pop(),h)),i.nodes=[];return}let c=ys.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(Oi(a.pop(),u,c));continue}if(h.value&&h.type!=="open"){u.push(Oi(u.pop(),h.value));continue}h.nodes&&n(h,i)}return u};return ys.flatten(n(e))};iC.exports=L3});var aC=R((TK,oC)=>{"use strict";oC.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
28
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var hC=R((IK,fC)=>{"use strict";var k3=bc(),{MAX_LENGTH:uC,CHAR_BACKSLASH:qd,CHAR_BACKTICK:T3,CHAR_COMMA:I3,CHAR_DOT:N3,CHAR_LEFT_PARENTHESES:$3,CHAR_RIGHT_PARENTHESES:M3,CHAR_LEFT_CURLY_BRACE:j3,CHAR_RIGHT_CURLY_BRACE:B3,CHAR_LEFT_SQUARE_BRACKET:cC,CHAR_RIGHT_SQUARE_BRACKET:lC,CHAR_DOUBLE_QUOTE:W3,CHAR_SINGLE_QUOTE:q3,CHAR_NO_BREAK_SPACE:G3,CHAR_ZERO_WIDTH_NOBREAK_SPACE:U3}=aC(),H3=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(uC,r.maxLength):uC;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,c=0,u=e.length,f=0,l=0,h,d=()=>e[f++],p=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=a,a=y,y};for(p({type:"bos"});f<u;)if(o=s[s.length-1],h=d(),!(h===U3||h===G3)){if(h===qd){p({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===lC){p({type:"text",value:"\\"+h});continue}if(h===cC){c++;let y;for(;f<u&&(y=d());){if(h+=y,y===cC){c++;continue}if(y===qd){h+=d();continue}if(y===lC&&(c--,c===0))break}p({type:"text",value:h});continue}if(h===$3){o=p({type:"paren",nodes:[]}),s.push(o),p({type:"text",value:h});continue}if(h===M3){if(o.type!=="paren"){p({type:"text",value:h});continue}o=s.pop(),p({type:"text",value:h}),o=s[s.length-1];continue}if(h===W3||h===q3||h===T3){let y=h,m;for(t.keepQuotes!==!0&&(h="");f<u&&(m=d());){if(m===qd){h+=m+d();continue}if(m===y){t.keepQuotes===!0&&(h+=m);break}h+=m}p({type:"text",value:h});continue}if(h===j3){l++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=p(m),s.push(o),p({type:"open",value:h});continue}if(h===B3){if(o.type!=="brace"){p({type:"text",value:h});continue}let y="close";o=s.pop(),o.close=!0,p({type:y,value:h}),l--,o=s[s.length-1];continue}if(h===I3&&l>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:k3(o)}]}p({type:"comma",value:h}),o.commas++;continue}if(h===N3&&l>0&&o.commas===0){let y=o.nodes;if(l===0||y.length===0){p({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){y.pop();let m=y[y.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}p({type:"dot",value:h});continue}p({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let y=s[s.length-1],m=y.nodes.indexOf(o);y.nodes.splice(m,1,...o.nodes)}while(s.length>0);return p({type:"eos"}),i};fC.exports=H3});var gC=R((NK,pC)=>{"use strict";var dC=bc(),z3=rC(),Y3=sC(),V3=hC(),nr=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=nr.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(nr.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};nr.parse=(e,t={})=>V3(e,t);nr.stringify=(e,t={})=>dC(typeof e=="string"?nr.parse(e,t):e,t);nr.compile=(e,t={})=>(typeof e=="string"&&(e=nr.parse(e,t)),z3(e,t));nr.expand=(e,t={})=>{typeof e=="string"&&(e=nr.parse(e,t));let r=Y3(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};nr.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?nr.compile(e,t):nr.expand(e,t);pC.exports=nr});var Zo=R(($K,EC)=>{"use strict";var K3=require("path"),zr="\\\\/",mC=`[^${zr}]`,hn="\\.",X3="\\+",J3="\\?",Cc="\\/",Q3="(?=.)",yC="[^/]",Gd=`(?:${Cc}|$)`,vC=`(?:^|${Cc})`,Ud=`${hn}{1,2}${Gd}`,Z3=`(?!${hn})`,eW=`(?!${vC}${Ud})`,tW=`(?!${hn}{0,1}${Gd})`,rW=`(?!${Ud})`,nW=`[^.${Cc}]`,iW=`${yC}*?`,AC={DOT_LITERAL:hn,PLUS_LITERAL:X3,QMARK_LITERAL:J3,SLASH_LITERAL:Cc,ONE_CHAR:Q3,QMARK:yC,END_ANCHOR:Gd,DOTS_SLASH:Ud,NO_DOT:Z3,NO_DOTS:eW,NO_DOT_SLASH:tW,NO_DOTS_SLASH:rW,QMARK_NO_DOT:nW,STAR:iW,START_ANCHOR:vC},sW={...AC,SLASH_LITERAL:`[${zr}]`,QMARK:mC,STAR:`${mC}*?`,DOTS_SLASH:`${hn}{1,2}(?:[${zr}]|$)`,NO_DOT:`(?!${hn})`,NO_DOTS:`(?!(?:^|[${zr}])${hn}{1,2}(?:[${zr}]|$))`,NO_DOT_SLASH:`(?!${hn}{0,1}(?:[${zr}]|$))`,NO_DOTS_SLASH:`(?!${hn}{1,2}(?:[${zr}]|$))`,QMARK_NO_DOT:`[^.${zr}]`,START_ANCHOR:`(?:^|[${zr}])`,END_ANCHOR:`(?:[${zr}]|$)`},oW={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};EC.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:oW,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:K3.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?sW:AC}}});var ea=R(Wt=>{"use strict";var aW=require("path"),uW=process.platform==="win32",{REGEX_BACKSLASH:cW,REGEX_REMOVE_BACKSLASH:lW,REGEX_SPECIAL_CHARS:fW,REGEX_SPECIAL_CHARS_GLOBAL:hW}=Zo();Wt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Wt.hasRegexChars=e=>fW.test(e);Wt.isRegexChar=e=>e.length===1&&Wt.hasRegexChars(e);Wt.escapeRegex=e=>e.replace(hW,"\\$1");Wt.toPosixSlashes=e=>e.replace(cW,"/");Wt.removeBackslashes=e=>e.replace(lW,t=>t==="\\"?"":t);Wt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Wt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:uW===!0||aW.sep==="\\";Wt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Wt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Wt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Wt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var _C=R((jK,PC)=>{"use strict";var bC=ea(),{CHAR_ASTERISK:Hd,CHAR_AT:dW,CHAR_BACKWARD_SLASH:ta,CHAR_COMMA:pW,CHAR_DOT:zd,CHAR_EXCLAMATION_MARK:Yd,CHAR_FORWARD_SLASH:OC,CHAR_LEFT_CURLY_BRACE:Vd,CHAR_LEFT_PARENTHESES:Kd,CHAR_LEFT_SQUARE_BRACKET:gW,CHAR_PLUS:mW,CHAR_QUESTION_MARK:wC,CHAR_RIGHT_CURLY_BRACE:yW,CHAR_RIGHT_PARENTHESES:SC,CHAR_RIGHT_SQUARE_BRACKET:vW}=Zo(),CC=e=>e===OC||e===ta,xC=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},AW=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=e,u=-1,f=0,l=0,h=!1,d=!1,p=!1,y=!1,m=!1,O=!1,S=!1,k=!1,F=!1,b=!1,P=0,L,D,N={value:"",depth:0,isGlob:!1},x=()=>u>=n,g=()=>c.charCodeAt(u+1),v=()=>(L=D,c.charCodeAt(++u));for(;u<n;){D=v();let T;if(D===ta){S=N.backslashes=!0,D=v(),D===Vd&&(O=!0);continue}if(O===!0||D===Vd){for(P++;x()!==!0&&(D=v());){if(D===ta){S=N.backslashes=!0,v();continue}if(D===Vd){P++;continue}if(O!==!0&&D===zd&&(D=v())===zd){if(h=N.isBrace=!0,p=N.isGlob=!0,b=!0,i===!0)continue;break}if(O!==!0&&D===pW){if(h=N.isBrace=!0,p=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===yW&&(P--,P===0)){O=!1,h=N.isBrace=!0,b=!0;break}}if(i===!0)continue;break}if(D===OC){if(s.push(u),o.push(N),N={value:"",depth:0,isGlob:!1},b===!0)continue;if(L===zd&&u===f+1){f+=2;continue}l=u+1;continue}if(r.noext!==!0&&(D===mW||D===dW||D===Hd||D===wC||D===Yd)===!0&&g()===Kd){if(p=N.isGlob=!0,y=N.isExtglob=!0,b=!0,D===Yd&&u===f&&(F=!0),i===!0){for(;x()!==!0&&(D=v());){if(D===ta){S=N.backslashes=!0,D=v();continue}if(D===SC){p=N.isGlob=!0,b=!0;break}}continue}break}if(D===Hd){if(L===Hd&&(m=N.isGlobstar=!0),p=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===wC){if(p=N.isGlob=!0,b=!0,i===!0)continue;break}if(D===gW){for(;x()!==!0&&(T=v());){if(T===ta){S=N.backslashes=!0,v();continue}if(T===vW){d=N.isBracket=!0,p=N.isGlob=!0,b=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&D===Yd&&u===f){k=N.negated=!0,f++;continue}if(r.noparen!==!0&&D===Kd){if(p=N.isGlob=!0,i===!0){for(;x()!==!0&&(D=v());){if(D===Kd){S=N.backslashes=!0,D=v();continue}if(D===SC){b=!0;break}}continue}break}if(p===!0){if(b=!0,i===!0)continue;break}}r.noext===!0&&(y=!1,p=!1);let A=c,C="",E="";f>0&&(C=c.slice(0,f),c=c.slice(f),l-=f),A&&p===!0&&l>0?(A=c.slice(0,l),E=c.slice(l)):p===!0?(A="",E=c):A=c,A&&A!==""&&A!=="/"&&A!==c&&CC(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),r.unescape===!0&&(E&&(E=bC.removeBackslashes(E)),A&&S===!0&&(A=bC.removeBackslashes(A)));let w={prefix:C,input:e,start:f,base:A,glob:E,isBrace:h,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:m,negated:k,negatedExtglob:F};if(r.tokens===!0&&(w.maxDepth=0,CC(D)||o.push(N),w.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let $=0;$<s.length;$++){let M=T?T+1:f,U=s[$],V=e.slice(M,U);r.tokens&&($===0&&f!==0?(o[$].isPrefix=!0,o[$].value=C):o[$].value=V,xC(o[$]),w.maxDepth+=o[$].depth),($!==0||V!=="")&&a.push(V),T=U}if(T&&T+1<e.length){let $=e.slice(T+1);a.push($),r.tokens&&(o[o.length-1].value=$,xC(o[o.length-1]),w.maxDepth+=o[o.length-1].depth)}w.slashes=s,w.parts=a}return w};PC.exports=AW});var DC=R((BK,FC)=>{"use strict";var xc=Zo(),ir=ea(),{MAX_LENGTH:Oc,POSIX_REGEX_SOURCE:EW,REGEX_NON_SPECIAL_CHARS:bW,REGEX_SPECIAL_CHARS_BACKREF:wW,REPLACEMENTS:RC}=xc,SW=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ir.escapeRegex(i)).join("..")}return r},vs=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=RC[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Oc,r.maxLength):Oc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=ir.isWindows(t),u=xc.globChars(c),f=xc.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:O,NO_DOTS_SLASH:S,QMARK:k,QMARK_NO_DOT:F,STAR:b,START_ANCHOR:P}=u,L=G=>`(${a}(?:(?!${P}${G.dot?y:l}).)*?)`,D=r.dot?"":m,N=r.dot?k:F,x=r.bash===!0?L(r):b;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ir.removePrefix(e,g),i=e.length;let v=[],A=[],C=[],E=s,w,T=()=>g.index===i-1,$=g.peek=(G=1)=>e[g.index+G],M=g.advance=()=>e[++g.index]||"",U=()=>e.slice(g.index+1),V=(G="",re=0)=>{g.consumed+=G,g.index+=re},X=G=>{g.output+=G.output!=null?G.output:G.value,V(G.value)},he=()=>{let G=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)M(),g.start++,G++;return G%2===0?!1:(g.negated=!0,g.start++,!0)},q=G=>{g[G]++,C.push(G)},H=G=>{g[G]--,C.pop()},W=G=>{if(E.type==="globstar"){let re=g.braces>0&&(G.type==="comma"||G.type==="brace"),Y=G.extglob===!0||v.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!re&&!Y&&(g.output=g.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=x,g.output+=E.output)}if(v.length&&G.type!=="paren"&&(v[v.length-1].inner+=G.value),(G.value||G.output)&&X(G),E&&E.type==="text"&&G.type==="text"){E.value+=G.value,E.output=(E.output||"")+G.value;return}G.prev=E,o.push(G),E=G},Z=(G,re)=>{let Y={...f[re],conditions:1,inner:""};Y.prev=E,Y.parens=g.parens,Y.output=g.output;let ue=(r.capture?"(":"")+Y.open;q("parens"),W({type:G,value:re,output:g.output?"":p}),W({type:"paren",extglob:!0,value:M(),output:ue}),v.push(Y)},ee=G=>{let re=G.close+(r.capture?")":""),Y;if(G.type==="negate"){let ue=x;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ue=L(r)),(ue!==x||T()||/^\)+$/.test(U()))&&(re=G.close=`)$))${ue}`),G.inner.includes("*")&&(Y=U())&&/^\.[^\\/.]+$/.test(Y)){let ve=Xd(Y,{...t,fastpaths:!1}).output;re=G.close=`)${ve})${ue})`}G.prev.type==="bos"&&(g.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:re}),H("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let G=!1,re=e.replace(wW,(Y,ue,ve,De,I,j)=>De==="\\"?(G=!0,Y):De==="?"?ue?ue+De+(I?k.repeat(I.length):""):j===0?N+(I?k.repeat(I.length):""):k.repeat(ve.length):De==="."?l.repeat(ve.length):De==="*"?ue?ue+De+(I?x:""):x:ue?Y:`\\${Y}`);return G===!0&&(r.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,Y=>Y.length%2===0?"\\\\":Y?"\\":"")),re===e&&r.contains===!0?(g.output=e,g):(g.output=ir.wrapOutput(re,g,t),g)}for(;!T();){if(w=M(),w==="\0")continue;if(w==="\\"){let Y=$();if(Y==="/"&&r.bash!==!0||Y==="."||Y===";")continue;if(!Y){w+="\\",W({type:"text",value:w});continue}let ue=/^\\+/.exec(U()),ve=0;if(ue&&ue[0].length>2&&(ve=ue[0].length,g.index+=ve,ve%2!==0&&(w+="\\")),r.unescape===!0?w=M():w+=M(),g.brackets===0){W({type:"text",value:w});continue}}if(g.brackets>0&&(w!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&w===":"){let Y=E.value.slice(1);if(Y.includes("[")&&(E.posix=!0,Y.includes(":"))){let ue=E.value.lastIndexOf("["),ve=E.value.slice(0,ue),De=E.value.slice(ue+2),I=EW[De];if(I){E.value=ve+I,g.backtrack=!0,M(),!s.output&&o.indexOf(E)===1&&(s.output=p);continue}}}(w==="["&&$()!==":"||w==="-"&&$()==="]")&&(w=`\\${w}`),w==="]"&&(E.value==="["||E.value==="[^")&&(w=`\\${w}`),r.posix===!0&&w==="!"&&E.value==="["&&(w="^"),E.value+=w,X({value:w});continue}if(g.quotes===1&&w!=='"'){w=ir.escapeRegex(w),E.value+=w,X({value:w});continue}if(w==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){q("parens"),W({type:"paren",value:w});continue}if(w===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vs("opening","("));let Y=v[v.length-1];if(Y&&g.parens===Y.parens+1){ee(v.pop());continue}W({type:"paren",value:w,output:g.parens?")":"\\)"}),H("parens");continue}if(w==="["){if(r.nobracket===!0||!U().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));w=`\\${w}`}else q("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vs("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}H("brackets");let Y=E.value.slice(1);if(E.posix!==!0&&Y[0]==="^"&&!Y.includes("/")&&(w=`/${w}`),E.value+=w,X({value:w}),r.literalBrackets===!1||ir.hasRegexChars(Y))continue;let ue=ir.escapeRegex(E.value);if(g.output=g.output.slice(0,-E.value.length),r.literalBrackets===!0){g.output+=ue,E.value=ue;continue}E.value=`(${a}${ue}|${E.value})`,g.output+=E.value;continue}if(w==="{"&&r.nobrace!==!0){q("braces");let Y={type:"brace",value:w,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};A.push(Y),W(Y);continue}if(w==="}"){let Y=A[A.length-1];if(r.nobrace===!0||!Y){W({type:"text",value:w,output:w});continue}let ue=")";if(Y.dots===!0){let ve=o.slice(),De=[];for(let I=ve.length-1;I>=0&&(o.pop(),ve[I].type!=="brace");I--)ve[I].type!=="dots"&&De.unshift(ve[I].value);ue=SW(De,r),g.backtrack=!0}if(Y.comma!==!0&&Y.dots!==!0){let ve=g.output.slice(0,Y.outputIndex),De=g.tokens.slice(Y.tokensIndex);Y.value=Y.output="\\{",w=ue="\\}",g.output=ve;for(let I of De)g.output+=I.output||I.value}W({type:"brace",value:w,output:ue}),H("braces"),A.pop();continue}if(w==="|"){v.length>0&&v[v.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let Y=w,ue=A[A.length-1];ue&&C[C.length-1]==="braces"&&(ue.comma=!0,Y="|"),W({type:"comma",value:w,output:Y});continue}if(w==="/"){if(E.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),E=s;continue}W({type:"slash",value:w,output:d});continue}if(w==="."){if(g.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let Y=A[A.length-1];E.type="dots",E.output+=w,E.value+=w,Y.dots=!0;continue}if(g.braces+g.parens===0&&E.type!=="bos"&&E.type!=="slash"){W({type:"text",value:w,output:l});continue}W({type:"dot",value:w,output:l});continue}if(w==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Z("qmark",w);continue}if(E&&E.type==="paren"){let ue=$(),ve=w;if(ue==="<"&&!ir.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(U()))&&(ve=`\\${w}`),W({type:"text",value:w,output:ve});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){W({type:"qmark",value:w,output:F});continue}W({type:"qmark",value:w,output:k});continue}if(w==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){Z("negate",w);continue}if(r.nonegate!==!0&&g.index===0){he();continue}}if(w==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){Z("plus",w);continue}if(E&&E.value==="("||r.regex===!1){W({type:"plus",value:w,output:h});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||g.parens>0){W({type:"plus",value:w});continue}W({type:"plus",value:h});continue}if(w==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){W({type:"at",extglob:!0,value:w,output:""});continue}W({type:"text",value:w});continue}if(w!=="*"){(w==="$"||w==="^")&&(w=`\\${w}`);let Y=bW.exec(U());Y&&(w+=Y[0],g.index+=Y[0].length),W({type:"text",value:w});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=w,E.output=x,g.backtrack=!0,g.globstar=!0,V(w);continue}let G=U();if(r.noextglob!==!0&&/^\([^?]/.test(G)){Z("star",w);continue}if(E.type==="star"){if(r.noglobstar===!0){V(w);continue}let Y=E.prev,ue=Y.prev,ve=Y.type==="slash"||Y.type==="bos",De=ue&&(ue.type==="star"||ue.type==="globstar");if(r.bash===!0&&(!ve||G[0]&&G[0]!=="/")){W({type:"star",value:w,output:""});continue}let I=g.braces>0&&(Y.type==="comma"||Y.type==="brace"),j=v.length&&(Y.type==="pipe"||Y.type==="paren");if(!ve&&Y.type!=="paren"&&!I&&!j){W({type:"star",value:w,output:""});continue}for(;G.slice(0,3)==="/**";){let K=e[g.index+4];if(K&&K!=="/")break;G=G.slice(3),V("/**",3)}if(Y.type==="bos"&&T()){E.type="globstar",E.value+=w,E.output=L(r),g.output=E.output,g.globstar=!0,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&!De&&T()){g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=L(r)+(r.strictSlashes?")":"|$)"),E.value+=w,g.globstar=!0,g.output+=Y.output+E.output,V(w);continue}if(Y.type==="slash"&&Y.prev.type!=="bos"&&G[0]==="/"){let K=G[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(Y.output+E.output).length),Y.output=`(?:${Y.output}`,E.type="globstar",E.output=`${L(r)}${d}|${d}${K})`,E.value+=w,g.output+=Y.output+E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}if(Y.type==="bos"&&G[0]==="/"){E.type="globstar",E.value+=w,E.output=`(?:^|${d}|${L(r)}${d})`,g.output=E.output,g.globstar=!0,V(w+M()),W({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-E.output.length),E.type="globstar",E.output=L(r),E.value+=w,g.output+=E.output,g.globstar=!0,V(w);continue}let re={type:"star",value:w,output:x};if(r.bash===!0){re.output=".*?",(E.type==="bos"||E.type==="slash")&&(re.output=D+re.output),W(re);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){re.output=w,W(re);continue}(g.index===g.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(g.output+=O,E.output+=O):r.dot===!0?(g.output+=S,E.output+=S):(g.output+=D,E.output+=D),$()!=="*"&&(g.output+=p,E.output+=p)),W(re)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","]"));g.output=ir.escapeLast(g.output,"["),H("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing",")"));g.output=ir.escapeLast(g.output,"("),H("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vs("closing","}"));g.output=ir.escapeLast(g.output,"{"),H("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${d}?`}),g.backtrack===!0){g.output="";for(let G of g.tokens)g.output+=G.output!=null?G.output:G.value,G.suffix&&(g.output+=G.suffix)}return g};Xd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Oc,r.maxLength):Oc,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=RC[e]||e;let s=ir.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:p}=xc.globChars(s),y=r.dot?l:f,m=r.dot?h:f,O=r.capture?"":"?:",S={negated:!1,prefix:""},k=r.bash===!0?".*?":d;r.capture&&(k=`(${k})`);let F=D=>D.noglobstar===!0?k:`(${O}(?:(?!${p}${D.dot?u:o}).)*?)`,b=D=>{switch(D){case"*":return`${y}${c}${k}`;case".*":return`${o}${c}${k}`;case"*.*":return`${y}${k}${o}${c}${k}`;case"*/*":return`${y}${k}${a}${c}${m}${k}`;case"**":return y+F(r);case"**/*":return`(?:${y}${F(r)}${a})?${m}${c}${k}`;case"**/*.*":return`(?:${y}${F(r)}${a})?${m}${k}${o}${c}${k}`;case"**/.*":return`(?:${y}${F(r)}${a})?${o}${c}${k}`;default:{let N=/^(.*?)\.(\w+)$/.exec(D);if(!N)return;let x=b(N[1]);return x?x+o+N[2]:void 0}}},P=ir.removePrefix(e,S),L=b(P);return L&&r.strictSlashes!==!0&&(L+=`${a}?`),L};FC.exports=Xd});var kC=R((WK,LC)=>{"use strict";var CW=require("path"),xW=_C(),Jd=DC(),Qd=ea(),OW=Zo(),PW=e=>e&&typeof e=="object"&&!Array.isArray(e),Je=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Je(h,t,r));return h=>{for(let d of f){let p=d(h);if(p)return p}return!1}}let n=PW(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Qd.isWindows(t),o=n?Je.compileRe(e,t):Je.makeRe(e,t,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=Je(i.ignore,f,r)}let u=(f,l=!1)=>{let{isMatch:h,match:d,output:p}=Je.test(f,o,t,{glob:e,posix:s}),y={glob:e,state:a,regex:o,posix:s,input:f,output:p,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(y),h===!1?(y.isMatch=!1,l?y:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,l?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),l?y:!0)};return r&&(u.state=a),u};Je.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Qd.toPosixSlashes:null),a=e===n,c=a&&o?o(e):e;return a===!1&&(c=o?o(e):e,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Je.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Je.matchBase=(e,t,r,n=Qd.isWindows(r))=>(t instanceof RegExp?t:Je.makeRe(t,r)).test(CW.basename(e));Je.isMatch=(e,t,r)=>Je(t,r)(e);Je.parse=(e,t)=>Array.isArray(e)?e.map(r=>Je.parse(r,t)):Jd(e,{...t,fastpaths:!1});Je.scan=(e,t)=>xW(e,t);Je.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Je.toRegex(a,t);return n===!0&&(c.state=e),c};Je.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Jd.fastpaths(e,t)),i.output||(i=Jd(e,t)),Je.compileRe(i,t,r,n)};Je.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Je.constants=OW;LC.exports=Je});var IC=R((qK,TC)=>{"use strict";TC.exports=kC()});var ra=R((GK,BC)=>{"use strict";var $C=require("util"),MC=gC(),Yr=IC(),Zd=ea(),NC=e=>e===""||e==="./",jC=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},He=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=Yr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let p=l(d,!0);(h?!p.isMatch:p.isMatch)&&(h?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let u=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u};He.match=He;He.matcher=(e,t)=>Yr(e,t);He.isMatch=(e,t,r)=>Yr(t,r)(e);He.any=He.isMatch;He.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(He(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};He.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${$C.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>He.contains(e,n,r));if(typeof t=="string"){if(NC(e)||NC(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return He.isMatch(e,t,{...r,contains:!0})};He.matchKeys=(e,t,r)=>{if(!Zd.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=He(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};He.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Yr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};He.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Yr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};He.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${$C.inspect(e)}"`);return[].concat(t).every(n=>Yr(n,r)(e))};He.capture=(e,t,r)=>{let n=Zd.isWindows(r),s=Yr.makeRe(String(e),{...r,capture:!0}).exec(n?Zd.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};He.makeRe=(...e)=>Yr.makeRe(...e);He.scan=(...e)=>Yr.scan(...e);He.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of MC(String(n),t))r.push(Yr.parse(i,t));return r};He.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!jC(e)?[e]:MC(e,t)};He.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return He.braces(e,{...t,expand:!0})};He.hasBraces=jC;BC.exports=He});var XC=R(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isAbsolute=Ee.partitionAbsoluteAndRelative=Ee.removeDuplicateSlashes=Ee.matchAny=Ee.convertPatternsToRe=Ee.makeRe=Ee.getPatternParts=Ee.expandBraceExpansion=Ee.expandPatternsWithBraceExpansion=Ee.isAffectDepthOfReadingPattern=Ee.endsWithSlashGlobStar=Ee.hasGlobStar=Ee.getBaseDirectory=Ee.isPatternRelatedToParentDirectory=Ee.getPatternsOutsideCurrentDirectory=Ee.getPatternsInsideCurrentDirectory=Ee.getPositivePatterns=Ee.getNegativePatterns=Ee.isPositivePattern=Ee.isNegativePattern=Ee.convertToNegativePattern=Ee.convertToPositivePattern=Ee.isDynamicPattern=Ee.isStaticPattern=void 0;var WC=require("path"),_W=k1(),ep=ra(),qC="**",RW="\\",FW=/[*?]|^!/,DW=/\[[^[]*]/,LW=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,kW=/[!*+?@]\([^(]*\)/,TW=/,|\.\./,IW=/(?!^)\/{2,}/g;function GC(e,t={}){return!UC(e,t)}Ee.isStaticPattern=GC;function UC(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(RW)||FW.test(e)||DW.test(e)||LW.test(e)||t.extglob!==!1&&kW.test(e)||t.braceExpansion!==!1&&NW(e))}Ee.isDynamicPattern=UC;function NW(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return TW.test(n)}function $W(e){return Pc(e)?e.slice(1):e}Ee.convertToPositivePattern=$W;function MW(e){return"!"+e}Ee.convertToNegativePattern=MW;function Pc(e){return e.startsWith("!")&&e[1]!=="("}Ee.isNegativePattern=Pc;function HC(e){return!Pc(e)}Ee.isPositivePattern=HC;function jW(e){return e.filter(Pc)}Ee.getNegativePatterns=jW;function BW(e){return e.filter(HC)}Ee.getPositivePatterns=BW;function WW(e){return e.filter(t=>!tp(t))}Ee.getPatternsInsideCurrentDirectory=WW;function qW(e){return e.filter(tp)}Ee.getPatternsOutsideCurrentDirectory=qW;function tp(e){return e.startsWith("..")||e.startsWith("./..")}Ee.isPatternRelatedToParentDirectory=tp;function GW(e){return _W(e,{flipBackslashes:!1})}Ee.getBaseDirectory=GW;function UW(e){return e.includes(qC)}Ee.hasGlobStar=UW;function zC(e){return e.endsWith("/"+qC)}Ee.endsWithSlashGlobStar=zC;function HW(e){let t=WC.basename(e);return zC(e)||GC(t)}Ee.isAffectDepthOfReadingPattern=HW;function zW(e){return e.reduce((t,r)=>t.concat(YC(r)),[])}Ee.expandPatternsWithBraceExpansion=zW;function YC(e){let t=ep.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}Ee.expandBraceExpansion=YC;function YW(e,t){let{parts:r}=ep.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Ee.getPatternParts=YW;function VC(e,t){return ep.makeRe(e,t)}Ee.makeRe=VC;function VW(e,t){return e.map(r=>VC(r,t))}Ee.convertPatternsToRe=VW;function KW(e,t){return t.some(r=>r.test(e))}Ee.matchAny=KW;function XW(e){return e.replace(IW,"/")}Ee.removeDuplicateSlashes=XW;function JW(e){let t=[],r=[];for(let n of e)KC(n)?t.push(n):r.push(n);return[t,r]}Ee.partitionAbsoluteAndRelative=JW;function KC(e){return WC.isAbsolute(e)}Ee.isAbsolute=KC});var ex=R((HK,ZC)=>{"use strict";var QW=require("stream"),JC=QW.PassThrough,ZW=Array.prototype.slice;ZC.exports=eq;function eq(){let e=[],t=ZW.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=JC(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(QC(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,c())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),s&&p.removeListener("error",m),h()}function m(O){o.emit("error",O)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",y),p.on("end",y),s&&p.on("error",m),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<f.length;p++)d(f[p]);h()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function QC(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=QC(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(JC(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var rx=R(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.merge=void 0;var tq=ex();function rq(e){let t=tq(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>tx(e)),t.once("end",()=>tx(e)),t}_c.merge=rq;function tx(e){e.forEach(t=>t.emit("close"))}});var nx=R(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isEmpty=As.isString=void 0;function nq(e){return typeof e=="string"}As.isString=nq;function iq(e){return e===""}As.isEmpty=iq});var dn=R(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.string=yt.stream=yt.pattern=yt.path=yt.fs=yt.errno=yt.array=void 0;var sq=E1();yt.array=sq;var oq=b1();yt.errno=oq;var aq=w1();yt.fs=aq;var uq=O1();yt.path=uq;var cq=XC();yt.pattern=cq;var lq=rx();yt.stream=lq;var fq=nx();yt.string=fq});var ax=R(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.convertPatternGroupToTask=vt.convertPatternGroupsToTasks=vt.groupPatternsByBaseDirectory=vt.getNegativePatternsAsPositive=vt.getPositivePatterns=vt.convertPatternsToTasks=vt.generate=void 0;var Tr=dn();function hq(e,t){let r=ix(e,t),n=ix(t.ignore,t),i=sx(r),s=ox(r,n),o=i.filter(f=>Tr.pattern.isStaticPattern(f,t)),a=i.filter(f=>Tr.pattern.isDynamicPattern(f,t)),c=rp(o,s,!1),u=rp(a,s,!0);return c.concat(u)}vt.generate=hq;function ix(e,t){let r=e;return t.braceExpansion&&(r=Tr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Tr.pattern.removeDuplicateSlashes(n))}function rp(e,t,r){let n=[],i=Tr.pattern.getPatternsOutsideCurrentDirectory(e),s=Tr.pattern.getPatternsInsideCurrentDirectory(e),o=np(i),a=np(s);return n.push(...ip(o,t,r)),"."in a?n.push(sp(".",s,t,r)):n.push(...ip(a,t,r)),n}vt.convertPatternsToTasks=rp;function sx(e){return Tr.pattern.getPositivePatterns(e)}vt.getPositivePatterns=sx;function ox(e,t){return Tr.pattern.getNegativePatterns(e).concat(t).map(Tr.pattern.convertToPositivePattern)}vt.getNegativePatternsAsPositive=ox;function np(e){let t={};return e.reduce((r,n)=>{let i=Tr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}vt.groupPatternsByBaseDirectory=np;function ip(e,t,r){return Object.keys(e).map(n=>sp(n,e[n],t,r))}vt.convertPatternGroupsToTasks=ip;function sp(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Tr.pattern.convertToNegativePattern))}}vt.convertPatternGroupToTask=sp});var cx=R(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.read=void 0;function dq(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){ux(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){op(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){ux(r,s);return}op(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),op(r,o)})})}Rc.read=dq;function ux(e,t){e(t)}function op(e,t){e(null,t)}});var lx=R(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.read=void 0;function pq(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Fc.read=pq});var fx=R(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.createFileSystemAdapter=jn.FILE_SYSTEM_ADAPTER=void 0;var Dc=require("fs");jn.FILE_SYSTEM_ADAPTER={lstat:Dc.lstat,stat:Dc.stat,lstatSync:Dc.lstatSync,statSync:Dc.statSync};function gq(e){return e===void 0?jn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jn.FILE_SYSTEM_ADAPTER),e)}jn.createFileSystemAdapter=gq});var hx=R(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var mq=fx(),ap=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=mq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};up.default=ap});var Pi=R(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.statSync=Bn.stat=Bn.Settings=void 0;var dx=cx(),yq=lx(),cp=hx();Bn.Settings=cp.default;function vq(e,t,r){if(typeof t=="function"){dx.read(e,lp(),t);return}dx.read(e,lp(t),r)}Bn.stat=vq;function Aq(e,t){let r=lp(t);return yq.read(e,r)}Bn.statSync=Aq;function lp(e={}){return e instanceof cp.default?e:new cp.default(e)}});var mx=R((tX,gx)=>{var px;gx.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(px||(px=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var vx=R((rX,yx)=>{yx.exports=bq;var Eq=mx();function bq(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(c){function u(){t&&t(c,r),t=null}s?Eq(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,l){a(u,f,l)})}):o(null),s=!1}});var fp=R(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Lc=process.versions.node.split(".");if(Lc[0]===void 0||Lc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ax=Number.parseInt(Lc[0],10),wq=Number.parseInt(Lc[1],10),Ex=10,Sq=10,Cq=Ax>Ex,xq=Ax===Ex&&wq>=Sq;kc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cq||xq});var bx=R(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.createDirentFromStats=void 0;var hp=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Oq(e,t){return new hp(e,t)}Tc.createDirentFromStats=Oq});var dp=R(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.fs=void 0;var Pq=bx();Ic.fs=Pq});var pp=R(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.joinPathSegments=void 0;function _q(e,t,r){return e.endsWith(r)?e+t:e+r+t}Nc.joinPathSegments=_q});var Px=R(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.readdir=Wn.readdirWithFileTypes=Wn.read=void 0;var Rq=Pi(),wx=vx(),Fq=fp(),Sx=dp(),Cx=pp();function Dq(e,t,r){if(!t.stats&&Fq.IS_SUPPORT_READDIR_WITH_FILE_TYPES){xx(e,t,r);return}Ox(e,t,r)}Wn.read=Dq;function xx(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){$c(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Cx.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){gp(r,s);return}let o=s.map(a=>Lq(a,t));wx(o,(a,c)=>{if(a!==null){$c(r,a);return}gp(r,c)})})}Wn.readdirWithFileTypes=xx;function Lq(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=Sx.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Ox(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){$c(r,n);return}let s=i.map(o=>{let a=Cx.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{Rq.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let l={name:o,path:a,dirent:Sx.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),c(null,l)})}});wx(s,(o,a)=>{if(o!==null){$c(r,o);return}gp(r,a)})})}Wn.readdir=Ox;function $c(e,t){e(t)}function gp(e,t){e(null,t)}});var Lx=R(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.readdir=qn.readdirWithFileTypes=qn.read=void 0;var kq=Pi(),Tq=fp(),_x=dp(),Rx=pp();function Iq(e,t){return!t.stats&&Tq.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Fx(e,t):Dx(e,t)}qn.read=Iq;function Fx(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Rx.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=_x.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}qn.readdirWithFileTypes=Fx;function Dx(e,t){return t.fs.readdirSync(e).map(n=>{let i=Rx.joinPathSegments(e,n,t.pathSegmentSeparator),s=kq.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:_x.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}qn.readdir=Dx});var kx=R(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createFileSystemAdapter=Gn.FILE_SYSTEM_ADAPTER=void 0;var Es=require("fs");Gn.FILE_SYSTEM_ADAPTER={lstat:Es.lstat,stat:Es.stat,lstatSync:Es.lstatSync,statSync:Es.statSync,readdir:Es.readdir,readdirSync:Es.readdirSync};function Nq(e){return e===void 0?Gn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Gn.FILE_SYSTEM_ADAPTER),e)}Gn.createFileSystemAdapter=Nq});var Tx=R(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var $q=require("path"),Mq=Pi(),jq=kx(),mp=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=jq.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,$q.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Mq.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};yp.default=mp});var Mc=R(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Settings=Un.scandirSync=Un.scandir=void 0;var Ix=Px(),Bq=Lx(),vp=Tx();Un.Settings=vp.default;function Wq(e,t,r){if(typeof t=="function"){Ix.read(e,Ap(),t);return}Ix.read(e,Ap(t),r)}Un.scandir=Wq;function qq(e,t){let r=Ap(t);return Bq.read(e,r)}Un.scandirSync=qq;function Ap(e={}){return e instanceof vp.default?e:new vp.default(e)}});var $x=R((hX,Nx)=>{"use strict";function Gq(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Nx.exports=Gq});var jx=R((dX,Ep)=>{"use strict";var Uq=$x();function Mx(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Uq(Hq),i=null,s=null,o=0,a=null,c={push:y,drain:Er,saturated:Er,pause:f,paused:!1,get concurrency(){return r},set concurrency(b){if(!(b>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=b,!c.paused)for(;i&&o<r;)o++,O()},running:u,resume:d,idle:p,length:l,getQueue:h,unshift:m,empty:Er,kill:S,killAndDrain:k,error:F};return c;function u(){return o}function f(){c.paused=!0}function l(){for(var b=i,P=0;b;)b=b.next,P++;return P}function h(){for(var b=i,P=[];b;)P.push(b.value),b=b.next;return P}function d(){if(c.paused){if(c.paused=!1,i===null){o++,O();return}for(;i&&o<r;)o++,O()}}function p(){return o===0&&c.length()===0}function y(b,P){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=P||Er,L.errorHandler=a,o>=r||c.paused?s?(s.next=L,s=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function m(b,P){var L=n.get();L.context=e,L.release=O,L.value=b,L.callback=P||Er,L.errorHandler=a,o>=r||c.paused?i?(L.next=i,i=L):(i=L,s=L,c.saturated()):(o++,t.call(e,L.value,L.worked))}function O(b){b&&n.release(b);var P=i;P&&o<=r?c.paused?o--:(s===i&&(s=null),i=P.next,P.next=null,t.call(e,P.value,P.worked),s===null&&c.empty()):--o===0&&c.drain()}function S(){i=null,s=null,c.drain=Er}function k(){i=null,s=null,c.drain(),c.drain=Er}function F(b){a=b}}function Er(){}function Hq(){this.value=null,this.callback=Er,this.next=null,this.release=Er,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=Er,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function zq(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=Mx(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var l=new Promise(function(h,d){s(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(Er),l}function c(f){var l=new Promise(function(h,d){o(f,function(p,y){if(p){d(p);return}h(y)})});return l.catch(Er),l}function u(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}Ep.exports=Mx;Ep.exports.promise=zq});var jc=R(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.joinPathSegments=Vr.replacePathSegmentSeparator=Vr.isAppliedFilter=Vr.isFatalError=void 0;function Yq(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Vr.isFatalError=Yq;function Vq(e,t){return e===null||e(t)}Vr.isAppliedFilter=Vq;function Kq(e,t){return e.split(/[/\\]/).join(t)}Vr.replacePathSegmentSeparator=Kq;function Xq(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Vr.joinPathSegments=Xq});var Sp=R(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Jq=jc(),bp=class{constructor(t,r){this._root=t,this._settings=r,this._root=Jq.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};wp.default=bp});var Op=R(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var Qq=require("events"),Zq=Mc(),eG=jx(),Bc=jc(),tG=Sp(),Cp=class extends tG.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Zq.scandir,this._emitter=new Qq.EventEmitter,this._queue=eG(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Bc.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Bc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Bc.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Bc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};xp.default=Cp});var Bx=R(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var rG=Op(),Pp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new rG.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{nG(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{iG(t,this._storage)}),this._reader.read()}};_p.default=Pp;function nG(e,t){e(t)}function iG(e,t){e(null,t)}});var Wx=R(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var sG=require("stream"),oG=Op(),Rp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new oG.default(this._root,this._settings),this._stream=new sG.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Fp.default=Rp});var qx=R(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var aG=Mc(),Wc=jc(),uG=Sp(),Dp=class extends uG.default{constructor(){super(...arguments),this._scandir=aG.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(Wc.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Wc.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Wc.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Wc.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Lp.default=Dp});var Gx=R(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var cG=qx(),kp=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new cG.default(this._root,this._settings)}read(){return this._reader.read()}};Tp.default=kp});var Ux=R(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var lG=require("path"),fG=Mc(),Ip=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lG.sep),this.fsScandirSettings=new fG.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Np.default=Ip});var Gc=R(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.Settings=Kr.walkStream=Kr.walkSync=Kr.walk=void 0;var Hx=Bx(),hG=Wx(),dG=Gx(),$p=Ux();Kr.Settings=$p.default;function pG(e,t,r){if(typeof t=="function"){new Hx.default(e,qc()).read(t);return}new Hx.default(e,qc(t)).read(r)}Kr.walk=pG;function gG(e,t){let r=qc(t);return new dG.default(e,r).read()}Kr.walkSync=gG;function mG(e,t){let r=qc(t);return new hG.default(e,r).read()}Kr.walkStream=mG;function qc(e={}){return e instanceof $p.default?e:new $p.default(e)}});var Uc=R(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var yG=require("path"),vG=Pi(),zx=dn(),Mp=class{constructor(t){this._settings=t,this._fsStatSettings=new vG.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return yG.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:zx.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!zx.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};jp.default=Mp});var qp=R(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var AG=require("stream"),EG=Pi(),bG=Gc(),wG=Uc(),Bp=class extends wG.default{constructor(){super(...arguments),this._walkStream=bG.walkStream,this._stat=EG.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new AG.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Wp.default=Bp});var Yx=R(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var SG=Gc(),CG=Uc(),xG=qp(),Gp=class extends CG.default{constructor(){super(...arguments),this._walkAsync=SG.walk,this._readerStream=new xG.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Up.default=Gp});var Vx=R(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var na=dn(),Hp=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return na.pattern.getPatternParts(t,this._micromatchOptions).map(n=>na.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:na.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return na.array.splitWhen(t,r=>r.dynamic&&na.pattern.hasGlobStar(r.pattern))}};zp.default=Hp});var Kx=R(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var OG=Vx(),Yp=class extends OG.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Vp.default=Yp});var Xx=R(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Hc=dn(),PG=Kx(),Kp=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new PG.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Hc.pattern.isAffectDepthOfReadingPattern);return Hc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Hc.pattern.matchAny(t,r)}};Xp.default=Kp});var Jx=R(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Hn=dn(),Jp=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=Hn.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:Hn.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Hn.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Hn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=Hn.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=Hn.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=Hn.pattern.matchAny(t,r);return!i&&n?Hn.pattern.matchAny(t+"/",r):i}};Qp.default=Jp});var Qx=R(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var _G=dn(),Zp=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return _G.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};eg.default=Zp});var eO=R(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var Zx=dn(),tg=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Zx.path.makeAbsolute(this._settings.cwd,r),r=Zx.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};rg.default=tg});var zc=R(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var RG=require("path"),FG=Xx(),DG=Jx(),LG=Qx(),kG=eO(),ng=class{constructor(t){this._settings=t,this.errorFilter=new LG.default(this._settings),this.entryFilter=new DG.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new FG.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new kG.default(this._settings)}_getRootDirectory(t){return RG.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};ig.default=ng});var tO=R(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var TG=Yx(),IG=zc(),sg=class extends IG.default{constructor(){super(...arguments),this._reader=new TG.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};og.default=sg});var rO=R(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var NG=require("stream"),$G=qp(),MG=zc(),ag=class extends MG.default{constructor(){super(...arguments),this._reader=new $G.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new NG.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ug.default=ag});var nO=R(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var jG=Pi(),BG=Gc(),WG=Uc(),cg=class extends WG.default{constructor(){super(...arguments),this._walkSync=BG.walkSync,this._statSync=jG.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};lg.default=cg});var iO=R(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var qG=nO(),GG=zc(),fg=class extends GG.default{constructor(){super(...arguments),this._reader=new qG.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};hg.default=fg});var sO=R(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bs=require("fs"),UG=require("os"),HG=Math.max(UG.cpus().length,1);ws.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bs.lstat,lstatSync:bs.lstatSync,stat:bs.stat,statSync:bs.statSync,readdir:bs.readdir,readdirSync:bs.readdirSync};var dg=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,HG),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ws.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ws.default=dg});var uO=R((MX,aO)=>{"use strict";var oO=ax(),zG=tO(),YG=rO(),VG=iO(),pg=sO(),br=dn();async function gg(e,t){Ir(e);let r=mg(e,zG.default,t),n=await Promise.all(r);return br.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){Ir(u);let l=mg(u,VG.default,f);return br.array.flatten(l)}e.sync=t;function r(u,f){Ir(u);let l=mg(u,YG.default,f);return br.stream.merge(l)}e.stream=r;function n(u,f){Ir(u);let l=[].concat(u),h=new pg.default(f);return oO.generate(l,h)}e.generateTasks=n;function i(u,f){Ir(u);let l=new pg.default(f);return br.pattern.isDynamicPattern(u,l)}e.isDynamicPattern=i;function s(u){return Ir(u),br.path.escape(u)}e.escapePath=s;function o(u){return Ir(u),br.path.convertPathToPattern(u)}e.convertPathToPattern=o;let a;(function(u){function f(h){return Ir(h),br.path.escapePosixPath(h)}u.escapePath=f;function l(h){return Ir(h),br.path.convertPosixPathToPattern(h)}u.convertPathToPattern=l})(a=e.posix||(e.posix={}));let c;(function(u){function f(h){return Ir(h),br.path.escapeWindowsPath(h)}u.escapePath=f;function l(h){return Ir(h),br.path.convertWindowsPathToPattern(h)}u.convertPathToPattern=l})(c=e.win32||(e.win32={}))})(gg||(gg={}));function mg(e,t,r){let n=[].concat(e),i=new pg.default(r),s=oO.generate(n,i),o=new t(i);return s.map(o.read,o)}function Ir(e){if(![].concat(e).every(n=>br.string.isString(n)&&!br.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}aO.exports=gg});var Vc=R(Yn=>{"use strict";var cO=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getPackagePathsAsync=Yn.getPackagePaths=void 0;var Yc=cO(require("path")),lO=cO(uO()),fO=ls(),zn={},hO={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function KG(e,t){return(0,fO.isCachingEnabled)()&&zn[e]||(zn[e]=lO.default.sync(dO(t),{cwd:e,...hO}).map(pO)),zn[e]}Yn.getPackagePaths=KG;async function XG(e,t){return(0,fO.isCachingEnabled)()&&zn[e]||(zn[e]=(await(0,lO.default)(dO(t),{cwd:e,...hO})).map(pO)),zn[e]}Yn.getPackagePathsAsync=XG;function dO(e){return e.map(t=>Yc.default.join(t,"package.json").replace(/\\/g,"/"))}function pO(e){let t=Yc.default.dirname(e);return Yc.default.sep==="/"?t:t.replace(/\//g,Yc.default.sep)}});var ia=R(Vn=>{"use strict";var yg=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getWorkspacePackageInfoAsync=Vn.getWorkspacePackageInfo=void 0;var gO=yg(require("path")),JG=yg(require("fs")),QG=yg(require("fs/promises")),mO=Ci(),yO=Od();function ZG(e){return e?e.map(t=>{let r,n=gO.default.join(t,"package.json");try{r=JSON.parse(JG.default.readFileSync(n,"utf-8"))}catch(i){return(0,mO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}return{name:r.name,path:t,packageJson:(0,yO.infoFromPackageJson)(r,n)}}).filter(Boolean):[]}Vn.getWorkspacePackageInfo=ZG;async function eU(e){if(!e)return[];let t=e.map(async r=>{let n=gO.default.join(r,"package.json");try{let i=JSON.parse(await QG.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,yO.infoFromPackageJson)(i,n)}}catch(i){return(0,mO.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}Vn.getWorkspacePackageInfoAsync=eU});var vg=R(wr=>{"use strict";var vO=wr&&wr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wr,"__esModule",{value:!0});wr.getWorkspaceInfoFromWorkspaceRootAsync=wr.getWorkspaceInfoFromWorkspaceRoot=wr.getPackagePathsFromWorkspaceRootAsync=wr.getPackagePathsFromWorkspaceRoot=void 0;var tU=vO(require("fs")),rU=vO(require("path")),AO=Vc(),EO=ia(),Kc=Ci();function bO(e){let t=rU.default.join(e,"package.json"),r;try{r=JSON.parse(tU.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function wO(e){try{let t=bO(e);return t?(0,AO.getPackagePaths)(e,t):[]}catch(t){return(0,Kc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}wr.getPackagePathsFromWorkspaceRoot=wO;async function SO(e){try{let t=bO(e);return t?(0,AO.getPackagePathsAsync)(e,t):[]}catch(t){return(0,Kc.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}wr.getPackagePathsFromWorkspaceRootAsync=SO;function nU(e){try{let t=wO(e);return(0,EO.getWorkspacePackageInfo)(t)}catch(t){return(0,Kc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}wr.getWorkspaceInfoFromWorkspaceRoot=nU;async function iU(e){try{let t=await SO(e);return(0,EO.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Kc.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}wr.getWorkspaceInfoFromWorkspaceRootAsync=iU});var Ag=R(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getWorkspacesAsync=At.getWorkspaces=At.getYarnWorkspacesAsync=At.getYarnWorkspaces=At.getWorkspacePackagePathsAsync=At.getWorkspacePackagePaths=At.getYarnWorkspaceRoot=void 0;var sU=fs(),Xc=vg();function sa(e){let t=(0,sU.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}At.getYarnWorkspaceRoot=sa;function oU(e){let t=sa(e);return(0,Xc.getPackagePathsFromWorkspaceRoot)(t)}At.getWorkspacePackagePaths=oU;function aU(e){let t=sa(e);return(0,Xc.getPackagePathsFromWorkspaceRootAsync)(t)}At.getWorkspacePackagePathsAsync=aU;function CO(e){let t=sa(e);return(0,Xc.getWorkspaceInfoFromWorkspaceRoot)(t)}At.getYarnWorkspaces=CO;At.getWorkspaces=CO;function xO(e){let t=sa(e);return(0,Xc.getWorkspaceInfoFromWorkspaceRootAsync)(t)}At.getYarnWorkspacesAsync=xO;At.getWorkspacesAsync=xO});var Ss=R((GX,_i)=>{"use strict";function OO(e){return typeof e>"u"||e===null}function uU(e){return typeof e=="object"&&e!==null}function cU(e){return Array.isArray(e)?e:OO(e)?[]:[e]}function lU(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function fU(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function hU(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}_i.exports.isNothing=OO;_i.exports.isObject=uU;_i.exports.toArray=cU;_i.exports.repeat=fU;_i.exports.isNegativeZero=hU;_i.exports.extend=lU});var Cs=R((UX,_O)=>{"use strict";function PO(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
29
29
 
30
- `+e.mark.snippet),n+" "+r):n}function oa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oa.prototype=Object.create(Error.prototype);oa.prototype.constructor=oa;oa.prototype.toString=function(t){return this.name+": "+dO(this,t)};gO.exports=oa});var yO=R((_X,mO)=>{"use strict";var aa=Ss();function dg(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function gg(e,t){return aa.repeat(" ",t-e.length)+e}function ZG(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=dg(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=aa.repeat(" ",t.indent)+gg((e.line-c+1).toString(),f)+" | "+u.str+`
31
- `+a;for(u=dg(e.buffer,n[o],i[o],e.position,l),a+=aa.repeat(" ",t.indent)+gg((e.line+1).toString(),f)+" | "+u.str+`
30
+ `+e.mark.snippet),n+" "+r):n}function oa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=PO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oa.prototype=Object.create(Error.prototype);oa.prototype.constructor=oa;oa.prototype.toString=function(t){return this.name+": "+PO(this,t)};_O.exports=oa});var FO=R((HX,RO)=>{"use strict";var aa=Ss();function Eg(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function bg(e,t){return aa.repeat(" ",t-e.length)+e}function dU(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=Eg(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=aa.repeat(" ",t.indent)+bg((e.line-c+1).toString(),f)+" | "+u.str+`
31
+ `+a;for(u=Eg(e.buffer,n[o],i[o],e.position,l),a+=aa.repeat(" ",t.indent)+bg((e.line+1).toString(),f)+" | "+u.str+`
32
32
  `,a+=aa.repeat("-",t.indent+f+3+u.pos)+`^
33
- `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=dg(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=aa.repeat(" ",t.indent)+gg((e.line+c+1).toString(),f)+" | "+u.str+`
34
- `;return a.replace(/\n$/,"")}mO.exports=ZG});var Et=R((PX,AO)=>{"use strict";var vO=Cs(),eU=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],tU=["scalar","sequence","mapping"];function rU(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function nU(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(eU.indexOf(r)===-1)throw new vO('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=rU(t.styleAliases||null),tU.indexOf(this.kind)===-1)throw new vO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}AO.exports=nU});var vg=R((RX,bO)=>{"use strict";var ua=Cs(),mg=Et();function EO(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function iU(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function yg(e){return this.extend(e)}yg.prototype.extend=function(t){var r=[],n=[];if(t instanceof mg)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new ua("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof mg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ua("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ua("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof mg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(yg.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=EO(i,"implicit"),i.compiledExplicit=EO(i,"explicit"),i.compiledTypeMap=iU(i.compiledImplicit,i.compiledExplicit),i};bO.exports=yg});var Ag=R((FX,wO)=>{"use strict";var sU=Et();wO.exports=new sU("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Eg=R((DX,SO)=>{"use strict";var oU=Et();SO.exports=new oU("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var bg=R((LX,CO)=>{"use strict";var aU=Et();CO.exports=new aU("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var wg=R((kX,xO)=>{"use strict";var uU=vg();xO.exports=new uU({explicit:[Ag(),Eg(),bg()]})});var Sg=R((TX,OO)=>{"use strict";var cU=Et();function lU(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function fU(){return null}function hU(e){return e===null}OO.exports=new cU("tag:yaml.org,2002:null",{kind:"scalar",resolve:lU,construct:fU,predicate:hU,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Cg=R((IX,_O)=>{"use strict";var pU=Et();function dU(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function gU(e){return e==="true"||e==="True"||e==="TRUE"}function mU(e){return Object.prototype.toString.call(e)==="[object Boolean]"}_O.exports=new pU("tag:yaml.org,2002:bool",{kind:"scalar",resolve:dU,construct:gU,predicate:mU,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var xg=R((NX,PO)=>{"use strict";var yU=Ss(),vU=Et();function AU(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function EU(e){return 48<=e&&e<=55}function bU(e){return 48<=e&&e<=57}function wU(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!AU(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!EU(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!bU(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function SU(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function CU(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!yU.isNegativeZero(e)}PO.exports=new vU("tag:yaml.org,2002:int",{kind:"scalar",resolve:wU,construct:SU,predicate:CU,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Og=R(($X,FO)=>{"use strict";var RO=Ss(),xU=Et(),OU=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _U(e){return!(e===null||!OU.test(e)||e[e.length-1]==="_")}function PU(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var RU=/^[-+]?[0-9]+e/;function FU(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(RO.isNegativeZero(e))return"-0.0";return r=e.toString(10),RU.test(r)?r.replace("e",".e"):r}function DU(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||RO.isNegativeZero(e))}FO.exports=new xU("tag:yaml.org,2002:float",{kind:"scalar",resolve:_U,construct:PU,predicate:DU,represent:FU,defaultStyle:"lowercase"})});var _g=R((MX,DO)=>{"use strict";DO.exports=wg().extend({implicit:[Sg(),Cg(),xg(),Og()]})});var Pg=R((jX,LO)=>{"use strict";LO.exports=_g()});var Rg=R((BX,IO)=>{"use strict";var LU=Et(),kO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),TO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function kU(e){return e===null?!1:kO.exec(e)!==null||TO.exec(e)!==null}function TU(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=kO.exec(e),t===null&&(t=TO.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function IU(e){return e.toISOString()}IO.exports=new LU("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:kU,construct:TU,instanceOf:Date,represent:IU})});var Fg=R((WX,NO)=>{"use strict";var NU=Et();function $U(e){return e==="<<"||e===null}NO.exports=new NU("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$U})});var Lg=R((qX,$O)=>{"use strict";var MU=Et(),Dg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
- \r`;function jU(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Dg;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function BU(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Dg,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function WU(e){var t="",r=0,n,i,s=e.length,o=Dg;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function qU(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}$O.exports=new MU("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jU,construct:BU,predicate:qU,represent:WU})});var kg=R((GX,MO)=>{"use strict";var GU=Et(),UU=Object.prototype.hasOwnProperty,HU=Object.prototype.toString;function zU(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,HU.call(i)!=="[object Object]")return!1;for(s in i)if(UU.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function YU(e){return e!==null?e:[]}MO.exports=new GU("tag:yaml.org,2002:omap",{kind:"sequence",resolve:zU,construct:YU})});var Tg=R((UX,jO)=>{"use strict";var VU=Et(),KU=Object.prototype.toString;function XU(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],KU.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function JU(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}jO.exports=new VU("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:XU,construct:JU})});var Ig=R((HX,BO)=>{"use strict";var QU=Et(),ZU=Object.prototype.hasOwnProperty;function eH(e){if(e===null)return!0;var t,r=e;for(t in r)if(ZU.call(r,t)&&r[t]!==null)return!1;return!0}function tH(e){return e!==null?e:{}}BO.exports=new QU("tag:yaml.org,2002:set",{kind:"mapping",resolve:eH,construct:tH})});var Kc=R((zX,WO)=>{"use strict";WO.exports=Pg().extend({implicit:[Rg(),Fg()],explicit:[Lg(),kg(),Tg(),Ig()]})});var n_=R((YX,jg)=>{"use strict";var Fi=Ss(),VO=Cs(),rH=yO(),nH=Kc(),Xn=Object.prototype.hasOwnProperty,Xc=1,KO=2,XO=3,Jc=4,Ng=1,iH=2,qO=3,sH=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oH=/[\x85\u2028\u2029]/,aH=/[,\[\]\{\}]/,JO=/^(?:!|!!|![a-z\-]+!)$/i,QO=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function GO(e){return Object.prototype.toString.call(e)}function Kr(e){return e===10||e===13}function Di(e){return e===9||e===32}function Wt(e){return e===9||e===32||e===10||e===13}function xs(e){return e===44||e===91||e===93||e===123||e===125}function uH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function cH(e){return e===120?2:e===117?4:e===85?8:0}function lH(e){return 48<=e&&e<=57?e-48:-1}function UO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
36
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function fH(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ZO=new Array(256),e_=new Array(256);for(Ri=0;Ri<256;Ri++)ZO[Ri]=UO(Ri)?1:0,e_[Ri]=UO(Ri);var Ri;function hH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nH,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function t_(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=rH(r),new VO(t,r)}function me(e,t){throw t_(e,t)}function Qc(e,t){e.onWarning&&e.onWarning.call(null,t_(e,t))}var HO={YAML:function(t,r,n){var i,s,o;t.version!==null&&me(t,"duplication of %YAML directive"),n.length!==1&&me(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&me(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&me(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Qc(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&me(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],JO.test(i)||me(t,"ill-formed tag handle (first argument) of the TAG directive"),Xn.call(t.tagMap,i)&&me(t,'there is a previously declared suffix for "'+i+'" tag handle'),QO.test(s)||me(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{me(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Kn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||me(e,"expected valid JSON character");else sH.test(a)&&me(e,"the stream contains non-printable characters");e.result+=a}}function zO(e,t,r,n){var i,s,o,a;for(Fi.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Xn.call(t,s)||(t[s]=r[s],n[s]=!0)}function Os(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&me(e,"nested arrays are not supported inside keys"),typeof i=="object"&&GO(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&GO(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)zO(e,t,s[u],r);else zO(e,t,s,r);else!e.json&&!Xn.call(r,i)&&Xn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,me(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function $g(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function tt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Di(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Kr(i))for($g(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Qc(e,"deficient indentation"),n}function Zc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Wt(r)))}function Mg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fi.repeat(`
37
- `,t-1))}function pH(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Wt(p)||xs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&xs(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&xs(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Wt(n))break}else{if(e.position===e.lineStart&&Zc(e)||r&&xs(p))break;if(Kr(p))if(c=e.line,u=e.lineStart,f=e.lineIndent,tt(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Kn(e,s,o,!1),Mg(e,e.line-c),s=o=e.position,a=!1),Di(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Kn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function dH(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Kn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Kr(r)?(Kn(e,n,i,!0),Mg(e,tt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Zc(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function gH(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Kn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Kn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Kr(a))tt(e,!1,t);else if(a<256&&ZO[a])e.result+=e_[a],e.position++;else if((o=cH(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=uH(a))>=0?s=(s<<4)+o:me(e,"expected hexadecimal character");e.result+=fH(s),e.position++}else me(e,"unknown escape sequence");r=n=e.position}else Kr(a)?(Kn(e,r,n,!0),Mg(e,tt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Zc(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function mH(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,p,d=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,p=!1,a=[];else if(S===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(tt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=c,e.kind=p?"mapping":"sequence",e.result=a,!0;r?S===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),Wt(u)&&(l=h=!0,e.position++,tt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,_s(e,t,Xc,!1,!0),m=e.tag,y=e.result,tt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),tt(e,!0,t),_s(e,t,Xc,!1,!0),O=e.result),p?Os(e,a,d,m,y,O,n,i,s):l?a.push(Os(e,null,d,m,y,O,n,i,s)):a.push(y),tt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function yH(e,t){var r,n,i=Ng,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Ng===i?i=l===43?qO:iH:me(e,"repeat of a chomping mode identifier");else if((f=lH(l))>=0)f===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?me(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Di(l)){do l=e.input.charCodeAt(++e.position);while(Di(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Kr(l)&&l!==0)}for(;l!==0;){for($g(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Kr(l)){c++;continue}if(e.lineIndent<a){i===qO?e.result+=Fi.repeat(`
38
- `,s?1+c:c):i===Ng&&s&&(e.result+=`
33
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Eg(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=aa.repeat(" ",t.indent)+bg((e.line+c+1).toString(),f)+" | "+u.str+`
34
+ `;return a.replace(/\n$/,"")}RO.exports=dU});var Et=R((zX,LO)=>{"use strict";var DO=Cs(),pU=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gU=["scalar","sequence","mapping"];function mU(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function yU(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(pU.indexOf(r)===-1)throw new DO('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=mU(t.styleAliases||null),gU.indexOf(this.kind)===-1)throw new DO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}LO.exports=yU});var Cg=R((YX,TO)=>{"use strict";var ua=Cs(),wg=Et();function kO(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function vU(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Sg(e){return this.extend(e)}Sg.prototype.extend=function(t){var r=[],n=[];if(t instanceof wg)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new ua("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof wg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ua("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ua("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof wg))throw new ua("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Sg.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=kO(i,"implicit"),i.compiledExplicit=kO(i,"explicit"),i.compiledTypeMap=vU(i.compiledImplicit,i.compiledExplicit),i};TO.exports=Sg});var xg=R((VX,IO)=>{"use strict";var AU=Et();IO.exports=new AU("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Og=R((KX,NO)=>{"use strict";var EU=Et();NO.exports=new EU("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Pg=R((XX,$O)=>{"use strict";var bU=Et();$O.exports=new bU("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var _g=R((JX,MO)=>{"use strict";var wU=Cg();MO.exports=new wU({explicit:[xg(),Og(),Pg()]})});var Rg=R((QX,jO)=>{"use strict";var SU=Et();function CU(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function xU(){return null}function OU(e){return e===null}jO.exports=new SU("tag:yaml.org,2002:null",{kind:"scalar",resolve:CU,construct:xU,predicate:OU,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Fg=R((ZX,BO)=>{"use strict";var PU=Et();function _U(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function RU(e){return e==="true"||e==="True"||e==="TRUE"}function FU(e){return Object.prototype.toString.call(e)==="[object Boolean]"}BO.exports=new PU("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_U,construct:RU,predicate:FU,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Dg=R((eJ,WO)=>{"use strict";var DU=Ss(),LU=Et();function kU(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function TU(e){return 48<=e&&e<=55}function IU(e){return 48<=e&&e<=57}function NU(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!kU(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!TU(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!IU(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function $U(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function MU(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!DU.isNegativeZero(e)}WO.exports=new LU("tag:yaml.org,2002:int",{kind:"scalar",resolve:NU,construct:$U,predicate:MU,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Lg=R((tJ,GO)=>{"use strict";var qO=Ss(),jU=Et(),BU=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WU(e){return!(e===null||!BU.test(e)||e[e.length-1]==="_")}function qU(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var GU=/^[-+]?[0-9]+e/;function UU(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qO.isNegativeZero(e))return"-0.0";return r=e.toString(10),GU.test(r)?r.replace("e",".e"):r}function HU(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||qO.isNegativeZero(e))}GO.exports=new jU("tag:yaml.org,2002:float",{kind:"scalar",resolve:WU,construct:qU,predicate:HU,represent:UU,defaultStyle:"lowercase"})});var kg=R((rJ,UO)=>{"use strict";UO.exports=_g().extend({implicit:[Rg(),Fg(),Dg(),Lg()]})});var Tg=R((nJ,HO)=>{"use strict";HO.exports=kg()});var Ig=R((iJ,VO)=>{"use strict";var zU=Et(),zO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function YU(e){return e===null?!1:zO.exec(e)!==null||YO.exec(e)!==null}function VU(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=zO.exec(e),t===null&&(t=YO.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function KU(e){return e.toISOString()}VO.exports=new zU("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:YU,construct:VU,instanceOf:Date,represent:KU})});var Ng=R((sJ,KO)=>{"use strict";var XU=Et();function JU(e){return e==="<<"||e===null}KO.exports=new XU("tag:yaml.org,2002:merge",{kind:"scalar",resolve:JU})});var Mg=R((oJ,XO)=>{"use strict";var QU=Et(),$g=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
+ \r`;function ZU(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=$g;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function eH(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=$g,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function tH(e){var t="",r=0,n,i,s=e.length,o=$g;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function rH(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}XO.exports=new QU("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ZU,construct:eH,predicate:rH,represent:tH})});var jg=R((aJ,JO)=>{"use strict";var nH=Et(),iH=Object.prototype.hasOwnProperty,sH=Object.prototype.toString;function oH(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,sH.call(i)!=="[object Object]")return!1;for(s in i)if(iH.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function aH(e){return e!==null?e:[]}JO.exports=new nH("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oH,construct:aH})});var Bg=R((uJ,QO)=>{"use strict";var uH=Et(),cH=Object.prototype.toString;function lH(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],cH.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function fH(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}QO.exports=new uH("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lH,construct:fH})});var Wg=R((cJ,ZO)=>{"use strict";var hH=Et(),dH=Object.prototype.hasOwnProperty;function pH(e){if(e===null)return!0;var t,r=e;for(t in r)if(dH.call(r,t)&&r[t]!==null)return!1;return!0}function gH(e){return e!==null?e:{}}ZO.exports=new hH("tag:yaml.org,2002:set",{kind:"mapping",resolve:pH,construct:gH})});var Jc=R((lJ,eP)=>{"use strict";eP.exports=Tg().extend({implicit:[Ig(),Ng()],explicit:[Mg(),jg(),Bg(),Wg()]})});var mP=R((fJ,Hg)=>{"use strict";var Fi=Ss(),aP=Cs(),mH=FO(),yH=Jc(),Xn=Object.prototype.hasOwnProperty,Qc=1,uP=2,cP=3,Zc=4,qg=1,vH=2,tP=3,AH=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,EH=/[\x85\u2028\u2029]/,bH=/[,\[\]\{\}]/,lP=/^(?:!|!!|![a-z\-]+!)$/i,fP=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function rP(e){return Object.prototype.toString.call(e)}function Xr(e){return e===10||e===13}function Di(e){return e===9||e===32}function qt(e){return e===9||e===32||e===10||e===13}function xs(e){return e===44||e===91||e===93||e===123||e===125}function wH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function SH(e){return e===120?2:e===117?4:e===85?8:0}function CH(e){return 48<=e&&e<=57?e-48:-1}function nP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
36
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function xH(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var hP=new Array(256),dP=new Array(256);for(Ri=0;Ri<256;Ri++)hP[Ri]=nP(Ri)?1:0,dP[Ri]=nP(Ri);var Ri;function OH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||yH,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function pP(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=mH(r),new aP(t,r)}function me(e,t){throw pP(e,t)}function el(e,t){e.onWarning&&e.onWarning.call(null,pP(e,t))}var iP={YAML:function(t,r,n){var i,s,o;t.version!==null&&me(t,"duplication of %YAML directive"),n.length!==1&&me(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&me(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&me(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&el(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&me(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],lP.test(i)||me(t,"ill-formed tag handle (first argument) of the TAG directive"),Xn.call(t.tagMap,i)&&me(t,'there is a previously declared suffix for "'+i+'" tag handle'),fP.test(s)||me(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{me(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Kn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||me(e,"expected valid JSON character");else AH.test(a)&&me(e,"the stream contains non-printable characters");e.result+=a}}function sP(e,t,r,n){var i,s,o,a;for(Fi.isObject(r)||me(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Xn.call(t,s)||(t[s]=r[s],n[s]=!0)}function Os(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&me(e,"nested arrays are not supported inside keys"),typeof i=="object"&&rP(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&rP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)sP(e,t,s[u],r);else sP(e,t,s,r);else!e.json&&!Xn.call(r,i)&&Xn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,me(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Gg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):me(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function tt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Di(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Xr(i))for(Gg(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&el(e,"deficient indentation"),n}function tl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||qt(r)))}function Ug(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fi.repeat(`
37
+ `,t-1))}function PH(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),qt(d)||xs(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),qt(i)||r&&xs(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),qt(i)||r&&xs(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),qt(n))break}else{if(e.position===e.lineStart&&tl(e)||r&&xs(d))break;if(Xr(d))if(c=e.line,u=e.lineStart,f=e.lineIndent,tt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Kn(e,s,o,!1),Ug(e,e.line-c),s=o=e.position,a=!1),Di(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Kn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function _H(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Kn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Xr(r)?(Kn(e,n,i,!0),Ug(e,tt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&tl(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function RH(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Kn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Kn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Xr(a))tt(e,!1,t);else if(a<256&&hP[a])e.result+=dP[a],e.position++;else if((o=SH(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=wH(a))>=0?s=(s<<4)+o:me(e,"expected hexadecimal character");e.result+=xH(s),e.position++}else me(e,"unknown escape sequence");r=n=e.position}else Xr(a)?(Kn(e,r,n,!0),Ug(e,tt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&tl(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function FH(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,d,p=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(tt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),qt(u)&&(l=h=!0,e.position++,tt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ps(e,t,Qc,!1,!0),m=e.tag,y=e.result,tt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),tt(e,!0,t),Ps(e,t,Qc,!1,!0),O=e.result),d?Os(e,a,p,m,y,O,n,i,s):l?a.push(Os(e,null,p,m,y,O,n,i,s)):a.push(y),tt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function DH(e,t){var r,n,i=qg,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)qg===i?i=l===43?tP:vH:me(e,"repeat of a chomping mode identifier");else if((f=CH(l))>=0)f===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?me(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Di(l)){do l=e.input.charCodeAt(++e.position);while(Di(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Xr(l)&&l!==0)}for(;l!==0;){for(Gg(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Xr(l)){c++;continue}if(e.lineIndent<a){i===tP?e.result+=Fi.repeat(`
38
+ `,s?1+c:c):i===qg&&s&&(e.result+=`
39
39
  `);break}for(n?Di(l)?(u=!0,e.result+=Fi.repeat(`
40
40
  `,s?1+c:c)):u?(u=!1,e.result+=Fi.repeat(`
41
41
  `,c+1)):c===0?s&&(e.result+=" "):e.result+=Fi.repeat(`
42
42
  `,c):e.result+=Fi.repeat(`
43
- `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Kr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Kn(e,r,e.position,!1)}return!0}function YO(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Wt(o))));){if(a=!0,e.position++,tt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,_s(e,t,XO,!1,!0),s.push(e.result),tt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function vH(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&Wt(n))S===63?(m&&(Os(e,l,h,p,d,null,o,a,c),p=d=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,c=e.position,!_s(e,r,KO,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Di(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Wt(S)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Os(e,l,h,p,d,null,o,a,c),p=d=y=null),O=!0,m=!1,i=!1,p=e.tag,d=e.result;else if(O)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(O)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,c=e.position),_s(e,t,Jc,!0,i)&&(m?d=e.result:y=e.result),m||(Os(e,l,h,p,d,y,o,a,c),p=d=y=null),tt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Os(e,l,h,p,d,null,o,a,c),O&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),O}function AH(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Wt(o);)o===33&&(n?me(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),JO.test(i)||me(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),aH.test(s)&&me(e,"tag suffix cannot contain flow indicator characters")}s&&!QO.test(s)&&me(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{me(e,"tag name is malformed: "+s)}return r?e.tag=s:Xn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:me(e,'undeclared tag handle "'+i+'"'),!0}function EH(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Wt(r)&&!xs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function bH(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Wt(n)&&!xs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Xn.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],tt(e,!0,-1),!0}function _s(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,p,d,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Jc===r||XO===r,n&&tt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;AH(e)||EH(e);)tt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||Jc===r)&&(Xc===r||KO===r?y=t:y=t+1,m=e.position-e.lineStart,c===1?a&&(YO(e,m)||vH(e,m,y))||mH(e,y)?f=!0:(o&&yH(e,y)||dH(e,y)||gH(e,y)?f=!0:bH(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):pH(e,y,Xc===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&YO(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Xn.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function wH(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(tt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Wt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&me(e,"directive name must not be less than one character in length");o!==0;){for(;Di(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Kr(o));break}if(Kr(o))break;for(r=e.position;o!==0&&!Wt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&$g(e),Xn.call(HO,n)?HO[n](e,n,i):Qc(e,'unknown document directive "'+n+'"')}if(tt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,tt(e,!0,-1)):s&&me(e,"directives end mark is expected"),_s(e,e.lineIndent-1,Jc,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&oH.test(e.input.slice(t,e.position))&&Qc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Zc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function r_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
44
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new hH(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)wH(r);return r.documents}function SH(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=r_(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function CH(e,t){var r=r_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new VO("expected a single document in the stream, but found more")}}jg.exports.loadAll=SH;jg.exports.load=CH});var C_=R((VX,S_)=>{"use strict";var rl=Ss(),pa=Cs(),xH=Kc(),h_=Object.prototype.toString,p_=Object.prototype.hasOwnProperty,Ug=65279,OH=9,la=10,_H=13,PH=32,RH=33,FH=34,Bg=35,DH=37,LH=38,kH=39,TH=42,d_=44,IH=45,el=58,NH=61,$H=62,MH=63,jH=64,g_=91,m_=93,BH=96,y_=123,WH=124,v_=125,bt={};bt[0]="\\0";bt[7]="\\a";bt[8]="\\b";bt[9]="\\t";bt[10]="\\n";bt[11]="\\v";bt[12]="\\f";bt[13]="\\r";bt[27]="\\e";bt[34]='\\"';bt[92]="\\\\";bt[133]="\\N";bt[160]="\\_";bt[8232]="\\L";bt[8233]="\\P";var qH=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],GH=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function UH(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&p_.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function HH(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new pa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+rl.repeat("0",n-t.length)+t}var zH=1,fa=2;function YH(e){this.schema=e.schema||xH,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=rl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=UH(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fa:zH,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function i_(e,t){for(var r=rl.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
43
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Xr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Kn(e,r,e.position,!1)}return!0}function oP(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!qt(o))));){if(a=!0,e.position++,tt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Ps(e,t,cP,!1,!0),s.push(e.result),tt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function LH(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,me(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&qt(n))S===63?(m&&(Os(e,l,h,d,p,null,o,a,c),d=p=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):me(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,c=e.position,!Ps(e,r,uP,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Di(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),qt(S)||me(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Os(e,l,h,d,p,null,o,a,c),d=p=y=null),O=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(O)me(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(O)me(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,c=e.position),Ps(e,t,Zc,!0,i)&&(m?p=e.result:y=e.result),m||(Os(e,l,h,d,p,y,o,a,c),d=p=y=null),tt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Os(e,l,h,d,p,null,o,a,c),O&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),O}function kH(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&me(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):me(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qt(o);)o===33&&(n?me(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),lP.test(i)||me(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),bH.test(s)&&me(e,"tag suffix cannot contain flow indicator characters")}s&&!fP.test(s)&&me(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{me(e,"tag name is malformed: "+s)}return r?e.tag=s:Xn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:me(e,'undeclared tag handle "'+i+'"'),!0}function TH(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&me(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!xs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function IH(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qt(n)&&!xs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&me(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Xn.call(e.anchorMap,r)||me(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],tt(e,!0,-1),!0}function Ps(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Zc===r||cP===r,n&&tt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;kH(e)||TH(e);)tt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||Zc===r)&&(Qc===r||uP===r?y=t:y=t+1,m=e.position-e.lineStart,c===1?a&&(oP(e,m)||LH(e,m,y))||FH(e,y)?f=!0:(o&&DH(e,y)||_H(e,y)||RH(e,y)?f=!0:IH(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&me(e,"alias node should not have any properties")):PH(e,y,Qc===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&oP(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&me(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Xn.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||me(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function NH(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(tt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!qt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&me(e,"directive name must not be less than one character in length");o!==0;){for(;Di(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Xr(o));break}if(Xr(o))break;for(r=e.position;o!==0&&!qt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Gg(e),Xn.call(iP,n)?iP[n](e,n,i):el(e,'unknown document directive "'+n+'"')}if(tt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,tt(e,!0,-1)):s&&me(e,"directives end mark is expected"),Ps(e,e.lineIndent-1,Zc,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&EH.test(e.input.slice(t,e.position))&&el(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&tl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,tt(e,!0,-1));return}if(e.position<e.length-1)me(e,"end of the stream or a document separator is expected");else return}function gP(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
44
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new OH(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)NH(r);return r.documents}function $H(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=gP(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function MH(e,t){var r=gP(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new aP("expected a single document in the stream, but found more")}}Hg.exports.loadAll=$H;Hg.exports.load=MH});var $P=R((hJ,NP)=>{"use strict";var il=Ss(),da=Cs(),jH=Jc(),xP=Object.prototype.toString,OP=Object.prototype.hasOwnProperty,Xg=65279,BH=9,la=10,WH=13,qH=32,GH=33,UH=34,zg=35,HH=37,zH=38,YH=39,VH=42,PP=44,KH=45,rl=58,XH=61,JH=62,QH=63,ZH=64,_P=91,RP=93,e9=96,FP=123,t9=124,DP=125,bt={};bt[0]="\\0";bt[7]="\\a";bt[8]="\\b";bt[9]="\\t";bt[10]="\\n";bt[11]="\\v";bt[12]="\\f";bt[13]="\\r";bt[27]="\\e";bt[34]='\\"';bt[92]="\\\\";bt[133]="\\N";bt[160]="\\_";bt[8232]="\\L";bt[8233]="\\P";var r9=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],n9=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function i9(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&OP.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function s9(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new da("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+il.repeat("0",n-t.length)+t}var o9=1,fa=2;function a9(e){this.schema=e.schema||jH,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=il.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=i9(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fa:o9,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function yP(e,t){for(var r=il.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
45
45
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
46
- `&&(s+=r),s+=o;return s}function Wg(e,t){return`
47
- `+rl.repeat(" ",e.indent*t)}function VH(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function tl(e){return e===PH||e===OH}function ha(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ug||65536<=e&&e<=1114111}function s_(e){return ha(e)&&e!==Ug&&e!==_H&&e!==la}function o_(e,t,r){var n=s_(e),i=n&&!tl(e);return(r?n:n&&e!==d_&&e!==g_&&e!==m_&&e!==y_&&e!==v_)&&e!==Bg&&!(t===el&&!i)||s_(t)&&!tl(t)&&e===Bg||t===el&&i}function KH(e){return ha(e)&&e!==Ug&&!tl(e)&&e!==IH&&e!==MH&&e!==el&&e!==d_&&e!==g_&&e!==m_&&e!==y_&&e!==v_&&e!==Bg&&e!==LH&&e!==TH&&e!==RH&&e!==WH&&e!==NH&&e!==$H&&e!==kH&&e!==FH&&e!==DH&&e!==jH&&e!==BH}function XH(e){return!tl(e)&&e!==el}function ca(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function A_(e){var t=/^\n* /;return t.test(e)}var E_=1,qg=2,b_=3,w_=4,Ps=5;function JH(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,y=KH(ca(e,0))&&XH(ca(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ca(e,c),!ha(u))return Ps;y=y&&o_(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ca(e,c),u===la)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!ha(u))return Ps;y=y&&o_(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?y&&!o&&!i(e)?E_:s===fa?Ps:qg:r>9&&A_(e)?Ps:o?s===fa?Ps:qg:h?w_:b_}function QH(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fa?'""':"''";if(!e.noCompatMode&&(qH.indexOf(t)!==-1||GH.test(t)))return e.quotingType===fa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return VH(e,u)}switch(JH(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case E_:return t;case qg:return"'"+t.replace(/'/g,"''")+"'";case b_:return"|"+a_(t,e.indent)+u_(i_(t,s));case w_:return">"+a_(t,e.indent)+u_(i_(ZH(t,o),s));case Ps:return'"'+e9(t,o)+'"';default:throw new pa("impossible error: invalid scalar style")}}()}function a_(e,t){var r=A_(e)?String(t):"",n=e[e.length-1]===`
46
+ `&&(s+=r),s+=o;return s}function Yg(e,t){return`
47
+ `+il.repeat(" ",e.indent*t)}function u9(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function nl(e){return e===qH||e===BH}function ha(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Xg||65536<=e&&e<=1114111}function vP(e){return ha(e)&&e!==Xg&&e!==WH&&e!==la}function AP(e,t,r){var n=vP(e),i=n&&!nl(e);return(r?n:n&&e!==PP&&e!==_P&&e!==RP&&e!==FP&&e!==DP)&&e!==zg&&!(t===rl&&!i)||vP(t)&&!nl(t)&&e===zg||t===rl&&i}function c9(e){return ha(e)&&e!==Xg&&!nl(e)&&e!==KH&&e!==QH&&e!==rl&&e!==PP&&e!==_P&&e!==RP&&e!==FP&&e!==DP&&e!==zg&&e!==zH&&e!==VH&&e!==GH&&e!==t9&&e!==XH&&e!==JH&&e!==YH&&e!==UH&&e!==HH&&e!==ZH&&e!==e9}function l9(e){return!nl(e)&&e!==rl}function ca(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function LP(e){var t=/^\n* /;return t.test(e)}var kP=1,Vg=2,TP=3,IP=4,_s=5;function f9(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=c9(ca(e,0))&&l9(ca(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ca(e,c),!ha(u))return _s;y=y&&AP(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=ca(e,c),u===la)l=!0,d&&(h=h||c-p-1>n&&e[p+1]!==" ",p=c);else if(!ha(u))return _s;y=y&&AP(u,f,a),f=u}h=h||d&&c-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?kP:s===fa?_s:Vg:r>9&&LP(e)?_s:o?s===fa?_s:Vg:h?IP:TP}function h9(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fa?'""':"''";if(!e.noCompatMode&&(r9.indexOf(t)!==-1||n9.test(t)))return e.quotingType===fa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return u9(e,u)}switch(f9(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case kP:return t;case Vg:return"'"+t.replace(/'/g,"''")+"'";case TP:return"|"+EP(t,e.indent)+bP(yP(t,s));case IP:return">"+EP(t,e.indent)+bP(yP(d9(t,o),s));case _s:return'"'+p9(t,o)+'"';default:throw new da("impossible error: invalid scalar style")}}()}function EP(e,t){var r=LP(e)?String(t):"",n=e[e.length-1]===`
48
48
  `,i=n&&(e[e.length-2]===`
49
49
  `||e===`
50
50
  `),s=i?"+":n?"":"-";return r+s+`
51
- `}function u_(e){return e[e.length-1]===`
52
- `?e.slice(0,-1):e}function ZH(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
53
- `);return u=u!==-1?u:e.length,r.lastIndex=u,c_(e.slice(0,u),t)}(),i=e[0]===`
51
+ `}function bP(e){return e[e.length-1]===`
52
+ `?e.slice(0,-1):e}function d9(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
53
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,wP(e.slice(0,u),t)}(),i=e[0]===`
54
54
  `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
55
- `:"")+c_(c,t),i=s}return n}function c_(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
55
+ `:"")+wP(c,t),i=s}return n}function wP(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
56
56
  `+e.slice(i,s),i=s+1),o=a;return c+=`
57
57
  `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
58
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function e9(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ca(e,i),n=bt[r],!n&&ha(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||HH(r);return t}function t9(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(pn(e,t,a,!1,!1)||typeof a>"u"&&pn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function l_(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(pn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&pn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Wg(e,t)),e.dump&&la===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function r9(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),pn(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),pn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function n9(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new pa("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=Wg(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),pn(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&la===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Wg(e,t)),pn(e,t+1,f,!0,l)&&(e.dump&&la===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function f_(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,h_.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(p_.call(a.represent,c))n=a.represent[c](t,c);else throw new pa("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function pn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,f_(e,r,!1)||f_(e,r,!0);var a=h_.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(n9(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(r9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?l_(e,t-1,e.dump,i):l_(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(t9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&QH(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new pa("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function i9(e,t){var r=[],n=[],i,s;for(Gg(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Gg(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Gg(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Gg(e[n[i]],t,r)}function s9(e,t){t=t||{};var r=new YH(t);r.noRefs||i9(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),pn(r,0,n,!0,!0)?r.dump+`
59
- `:""}S_.exports.dump=s9});var O_=R((KX,It)=>{"use strict";var x_=n_(),o9=C_();function Hg(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}It.exports.Type=Et();It.exports.Schema=vg();It.exports.FAILSAFE_SCHEMA=wg();It.exports.JSON_SCHEMA=_g();It.exports.CORE_SCHEMA=Pg();It.exports.DEFAULT_SCHEMA=Kc();It.exports.load=x_.load;It.exports.loadAll=x_.loadAll;It.exports.dump=o9.dump;It.exports.YAMLException=Cs();It.exports.types={binary:Lg(),float:Og(),map:bg(),null:Sg(),pairs:Tg(),set:Ig(),timestamp:Rg(),bool:Cg(),int:xg(),merge:Fg(),omap:kg(),seq:Eg(),str:Ag()};It.exports.safeLoad=Hg("safeLoad","load");It.exports.safeLoadAll=Hg("safeLoadAll","loadAll");It.exports.safeDump=Hg("safeDump","dump")});var zg=R(Rs=>{"use strict";var a9=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.readYaml=void 0;var u9=a9(require("fs"));function c9(e){let t=O_(),r=u9.default.readFileSync(e,"utf8");return t.load(r)}Rs.readYaml=c9});var Kg=R(wt=>{"use strict";var l9=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});wt.getWorkspacesAsync=wt.getWorkspaces=wt.getPnpmWorkspacesAsync=wt.getPnpmWorkspaces=wt.getWorkspacePackagePaths=wt.getPnpmWorkspaceRoot=void 0;var f9=l9(require("path")),h9=zc(),__=ia(),p9=zg(),Yg=Ci(),d9=gs();function P_(e){let t=(0,d9.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}wt.getPnpmWorkspaceRoot=P_;function Vg(e){try{let t=P_(e),r=f9.default.join(t,"pnpm-workspace.yaml"),n=(0,p9.readYaml)(r);return(0,h9.getPackagePaths)(t,n.packages)}catch(t){return(0,Yg.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}wt.getWorkspacePackagePaths=Vg;function R_(e){try{let t=Vg(e);return(0,__.getWorkspacePackageInfo)(t)}catch(t){return(0,Yg.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}wt.getPnpmWorkspaces=R_;wt.getWorkspaces=R_;async function F_(e){try{let t=Vg(e);return(0,__.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Yg.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}wt.getPnpmWorkspacesAsync=F_;wt.getWorkspacesAsync=F_});var Xg=R((QX,Xr)=>{var D_=Xr.exports;Xr.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Xr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
60
- `||t==="\r"};Xr.exports.isLineTerminator=function(t){return t===`
61
- `||t==="\r"||t==="\u2028"||t==="\u2029"};Xr.exports.isLineTerminatorJSON=function(t){return t===`
62
- `||t==="\r"};Xr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&D_.NonAsciiIdentifierStart.test(t)};Xr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&D_.NonAsciiIdentifierPart.test(t)};Xr.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Xr.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var ga=R((ZX,nl)=>{var dn=Xg();function Fs(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Ds(e){return e>="0"&&e<="7"}function da(e){return e>="0"&&e<="9"}var L_={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
63
- `,r:"\r",t:" ",v:"\v","/":"/"};function g9(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,c="",u="",f=s?dn.isLineTerminator:dn.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(u+="^");break}if(c+=l,r===a?u+="^":r>a&&(u+=e[a]===" "?" ":" "),c.length>78)break}return o+`
58
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function p9(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ca(e,i),n=bt[r],!n&&ha(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||s9(r);return t}function g9(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(pn(e,t,a,!1,!1)||typeof a>"u"&&pn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function SP(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(pn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&pn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Yg(e,t)),e.dump&&la===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function m9(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),pn(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),pn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function y9(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new da("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=Yg(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),pn(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&la===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Yg(e,t)),pn(e,t+1,f,!0,l)&&(e.dump&&la===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function CP(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,xP.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(OP.call(a.represent,c))n=a.represent[c](t,c);else throw new da("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function pn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,CP(e,r,!1)||CP(e,r,!0);var a=xP.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(y9(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(m9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?SP(e,t-1,e.dump,i):SP(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(g9(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&h9(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new da("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function v9(e,t){var r=[],n=[],i,s;for(Kg(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Kg(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Kg(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Kg(e[n[i]],t,r)}function A9(e,t){t=t||{};var r=new a9(t);r.noRefs||v9(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),pn(r,0,n,!0,!0)?r.dump+`
59
+ `:""}NP.exports.dump=A9});var jP=R((dJ,It)=>{"use strict";var MP=mP(),E9=$P();function Jg(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}It.exports.Type=Et();It.exports.Schema=Cg();It.exports.FAILSAFE_SCHEMA=_g();It.exports.JSON_SCHEMA=kg();It.exports.CORE_SCHEMA=Tg();It.exports.DEFAULT_SCHEMA=Jc();It.exports.load=MP.load;It.exports.loadAll=MP.loadAll;It.exports.dump=E9.dump;It.exports.YAMLException=Cs();It.exports.types={binary:Mg(),float:Lg(),map:Pg(),null:Rg(),pairs:Bg(),set:Wg(),timestamp:Ig(),bool:Fg(),int:Dg(),merge:Ng(),omap:jg(),seq:Og(),str:xg()};It.exports.safeLoad=Jg("safeLoad","load");It.exports.safeLoadAll=Jg("safeLoadAll","loadAll");It.exports.safeDump=Jg("safeDump","dump")});var Qg=R(Rs=>{"use strict";var b9=Rs&&Rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.readYaml=void 0;var w9=b9(require("fs"));function S9(e){let t=jP(),r=w9.default.readFileSync(e,"utf8");return t.load(r)}Rs.readYaml=S9});var tm=R(wt=>{"use strict";var C9=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});wt.getWorkspacesAsync=wt.getWorkspaces=wt.getPnpmWorkspacesAsync=wt.getPnpmWorkspaces=wt.getWorkspacePackagePaths=wt.getPnpmWorkspaceRoot=void 0;var x9=C9(require("path")),O9=Vc(),BP=ia(),P9=Qg(),Zg=Ci(),_9=gs();function WP(e){let t=(0,_9.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}wt.getPnpmWorkspaceRoot=WP;function em(e){try{let t=WP(e),r=x9.default.join(t,"pnpm-workspace.yaml"),n=(0,P9.readYaml)(r);return(0,O9.getPackagePaths)(t,n.packages)}catch(t){return(0,Zg.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}wt.getWorkspacePackagePaths=em;function qP(e){try{let t=em(e);return(0,BP.getWorkspacePackageInfo)(t)}catch(t){return(0,Zg.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}wt.getPnpmWorkspaces=qP;wt.getWorkspaces=qP;async function GP(e){try{let t=em(e);return(0,BP.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Zg.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}wt.getPnpmWorkspacesAsync=GP;wt.getWorkspacesAsync=GP});var rm=R((mJ,Jr)=>{var UP=Jr.exports;Jr.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Jr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
60
+ `||t==="\r"};Jr.exports.isLineTerminator=function(t){return t===`
61
+ `||t==="\r"||t==="\u2028"||t==="\u2029"};Jr.exports.isLineTerminatorJSON=function(t){return t===`
62
+ `||t==="\r"};Jr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&UP.NonAsciiIdentifierStart.test(t)};Jr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&UP.NonAsciiIdentifierPart.test(t)};Jr.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Jr.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var ga=R((yJ,sl)=>{var gn=rm();function Fs(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Ds(e){return e>="0"&&e<="7"}function pa(e){return e>="0"&&e<="9"}var HP={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
63
+ `,r:"\r",t:" ",v:"\v","/":"/"};function R9(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,c="",u="",f=s?gn.isLineTerminator:gn.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(u+="^");break}if(c+=l,r===a?u+="^":r>a&&(u+=e[a]===" "?" ":" "),c.length>78)break}return o+`
64
64
  `+c+`
65
- `+u}function m9(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?dn.isLineTerminator:dn.isLineTerminatorJSON,s=r?dn.isWhiteSpace:dn.isWhiteSpaceJSON,o=e.length,a=0,c=0,u=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=u},h=function(g,v){if(x!=u){var A={raw:e.substr(x,u-x),type:v,stack:f.slice(0)};g!==void 0&&(A.value=g),t._tokenize.call(null,A)}return x=null,g}}();function p(x){var g=u-c;if(!x)if(u<o){var v="'"+JSON.stringify(e[u]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+v)}else x||(x="Unexpected end of input");var A=SyntaxError(g9(e,x,u,a,g,r));throw A.row=a+1,A.column=g+1,A}function d(x){x==="\r"&&e[u]===`
66
- `&&u++,c=u,a++}function y(){for(var x;u<o;){l();var g=e[u++];return g==='"'||g==="'"&&r?h(D(g),"literal"):g==="{"?(h(void 0,"separator"),F()):g==="["?(h(void 0,"separator"),b()):g==="-"||g==="."||da(g)||r&&(g==="+"||g==="I"||g==="N")?h(_(),"literal"):g==="n"?(k("null"),h(null,"literal")):g==="t"?(k("true"),h(!0,"literal")):g==="f"?(k("false"),h(!1,"literal")):(u--,h(void 0))}}function m(){for(var x;u<o;){l();var g=e[u++];if(g==='"'||g==="'"&&r)return h(D(g),"key");if(g==="{")return h(void 0,"separator"),F();if(g==="[")return h(void 0,"separator"),b();if(g==="."||da(g))return h(_(!0),"key");if(r&&dn.isIdentifierStart(g)||g==="\\"&&e[u]==="u"){var v=u-1,x=L();return x===void 0?(u=v,h(void 0)):h(x,"key")}else return u--,h(void 0)}}function O(){for(l();u<o;){var x=e[u++];if(i(x))u--,h(void 0,"whitespace"),l(),u++,d(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[u]==="/"||e[u]==="*"))u--,h(void 0,"whitespace"),l(),u++,S(e[u++]==="*"),h(void 0,"comment"),l();else{u--;break}}return h(void 0,"whitespace")}function S(x){for(;u<o;){var g=e[u++];if(i(g)){if(!x){u--;return}d(g)}else if(g==="*"&&x&&e[u]==="/"){u++;return}}x&&p("Unclosed multiline comment")}function k(x){for(var g=u,v=x.length,A=1;A<v;A++)(u>=o||x[A]!=e[u])&&(u=g-1,p()),u++}function F(){for(var x=t.null_prototype?Object.create(null):{},g={},v=!1;u<o;){O();var A=m();O(),l();var C=e[u++];if(h(void 0,"separator"),C==="}"&&A===void 0)return!r&&v&&(u--,p("Trailing comma in object")),x;if(C===":"&&A!==void 0){O(),f.push(A);var E=y();f.pop(),E===void 0&&p("No value found for key "+A),typeof A!="string"&&(!r||typeof A!="number")&&p("Wrong key type: "+A),(A in g||g[A]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&p("Reserved key: "+A):(typeof t.reviver=="function"&&(E=t.reviver.call(null,A,E)),E!==void 0&&(v=!0,Object.defineProperty(x,A,{value:E,enumerable:!0,configurable:!0,writable:!0}))),O(),l();var C=e[u++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;p()}else u--,p()}p()}function b(){for(var x=[];u<o;){O(),f.push(x.length);var g=y();f.pop(),O(),l();var v=e[u++];if(h(void 0,"separator"),g!==void 0&&(typeof t.reviver=="function"&&(g=t.reviver.call(null,String(x.length),g)),g===void 0?(x.length++,g=!0):x.push(g)),v===",")g===void 0&&p("Elisions are not supported");else{if(v==="]")return!r&&g===void 0&&x.length&&(u--,p("Trailing comma in array")),x;u--,p()}}}function _(){u--;var x=u,g=e[u++],v,A=function(T){var $=e.substr(x,u-x);if(T)var M=parseInt($.replace(/^0o?/,""),8);else var M=Number($);if(Number.isNaN(M))u--,p('Bad numeric literal - "'+e.substr(x,u-x+1)+'"');else if(!r&&!$.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))u--,p('Non-json numeric literal - "'+e.substr(x,u-x+1)+'"');else return M};if((g==="-"||g==="+"&&r)&&(g=e[u++]),g==="N"&&r)return k("NaN"),NaN;if(g==="I"&&r)return k("Infinity"),A();if(g>="1"&&g<="9"){for(;u<o&&da(e[u]);)u++;g=e[u++]}if(g==="0"){g=e[u++];var C=g==="o"||g==="O"||Ds(g),E=g==="x"||g==="X";if(r&&(C||E)){for(;u<o&&(E?Fs:Ds)(e[u]);)u++;var w=1;return e[x]==="-"?(w=-1,x++):e[x]==="+"&&x++,w*A(C)}}if(g==="."){for(;u<o&&da(e[u]);)u++;g=e[u++]}if(g==="e"||g==="E"){for(g=e[u++],(g==="-"||g==="+")&&u++;u<o&&da(e[u]);)u++;g=e[u++]}return u--,A()}function L(){u--;for(var x="";u<o;){var g=e[u++];if(g==="\\"&&e[u]==="u"&&Fs(e[u+1])&&Fs(e[u+2])&&Fs(e[u+3])&&Fs(e[u+4])&&(g=String.fromCharCode(parseInt(e.substr(u+1,4),16)),u+=5),x.length)if(dn.isIdentifierPart(g))x+=g;else return u--,x;else if(dn.isIdentifierStart(g))x+=g;else return}p()}function D(x){for(var g="";u<o;){var v=e[u++];if(v===x)return g;if(v==="\\")if(u>=o&&p(),v=e[u++],L_[v]&&(r||v!="v"&&v!="'"))g+=L_[v];else if(r&&i(v))d(v);else if(v==="u"||v==="x"&&r){for(var A=v==="u"?4:2,C=0;C<A;C++)u>=o&&p(),Fs(e[u])||p("Bad escape sequence"),u++;g+=String.fromCharCode(parseInt(e.substr(u-A,A),16))}else if(r&&Ds(v)){if(v<"4"&&Ds(e[u])&&Ds(e[u+1]))var E=3;else if(Ds(e[u]))var E=2;else var E=1;u+=E-1,g+=String.fromCharCode(parseInt(e.substr(u-E,E),8))}else r?g+=v:(u--,p());else i(v)?p():(!r&&v.charCodeAt(0)<32&&(u--,p("Unexpected control character")),g+=v)}p()}O();var N=y();if(N!==void 0||u<o){if(O(),u>=o)return typeof t.reviver=="function"&&(N=t.reviver.call(null,"",N)),N;p()}else p(u?"No data, only a whitespace":"No data, empty input")}nl.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return m9(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};nl.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=nl.exports.parse(t,r),n}});var Zg=R((eJ,T_)=>{var Jg=Xg();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var y9={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},v9=Object.prototype.hasOwnProperty,k_=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function Qg(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var p=t._prefix?t._prefix:"";if(!t.indent)return p+l;for(var d="",y=r+(h||0),m=0;m<y;m++)d+=t.indent;return p+d+l+(h?`
67
- `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",p=0;p<l.length;p++){if(p>0){if(!Jg.isIdentifierPart(l[p]))return a(l)}else if(!Jg.isIdentifierStart(l[p]))return a(l);var d=l.charCodeAt(p);t.ascii?d<128?h+=l[p]:h+="\\u"+("0000"+d.toString(16)).slice(-4):k_.exec(l[p])?h+="\\u"+("0000"+d.toString(16)).slice(-4):h+=l[p]}return h}function a(l){for(var h=t.quote,p=h.charCodeAt(0),d="",y=0;y<l.length;y++){var m=l.charCodeAt(y);if(m<16)m===0&&i?d+="\\0":m>=8&&m<=13&&(i||m!==11)?d+=y9[m]:i?d+="\\x0"+m.toString(16):d+="\\u000"+m.toString(16);else if(m<32)i?d+="\\x"+m.toString(16):d+="\\u00"+m.toString(16);else if(m>=32&&m<128)m===47&&y&&l[y-1]==="<"?d+="\\"+l[y]:m===92?d+="\\\\":m===p?d+="\\"+h:d+=l[y];else if(t.ascii||Jg.isLineTerminator(l[y])||k_.exec(l[y]))if(m<256)i?d+="\\x"+m.toString(16):d+="\\u00"+m.toString(16);else if(m<4096)d+="\\u0"+m.toString(16);else if(m<65536)d+="\\u"+m.toString(16);else throw Error("weird codepoint");else d+=l[y]}return h+d+h}function c(){if(e===null)return"null";var l=[],h=0,p;if(Array.isArray(e)){p="[]";for(var d=0;d<e.length;d++){var y=Qg(e[d],t,r+1,String(d));y===void 0&&(y="null"),h+=y.length+2,l.push(y+",")}}else{p="{}";var m=function(k){var F=Qg(e[k],t,r+1,k);F!==void 0&&(F=o(k)+":"+(t.indent?" ":"")+F+",",h+=F.length+1,l.push(F))};if(Array.isArray(t.replacer))for(var d=0;d<t.replacer.length;d++)v9.call(e,t.replacer[d])&&m(t.replacer[d]);else{var O=Object.keys(e);t.sort_keys&&(O=O.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),O.forEach(m)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.map(function(k){return s(k,1)}).join("");return p[0]+(t.indent?`
68
- `:"")+S+s(p[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.join(t.indent?" ":"");return p[0]+S+p[1]}}function u(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?u(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),u(e)):e.constructor===Date?u(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?u(e):c(e)}else return u(e)}T_.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),Qg(t,r,0,"")}});var em=R((tJ,I_)=>{var A9=ga().tokenize;I_.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=A9(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
69
- `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var c=Array(o/a+1).join(" ");i.indent[c]=(i.indent[c]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var u=s+1;u<t.length&&!(t[u].type==="literal"||t[u].type==="key");u++)t[u].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var W_=R((rJ,rm)=>{var Ir=require("assert"),B_=ga().tokenize,E9=Zg().stringify,b9=em().analyze;function ya(e){return typeof e=="object"&&e!==null}function il(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=E9(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=B_(s,{_addstack:t});return o.data=null,o}function tm(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function N_(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function ma(e){return e==="whitespace"||e==="newline"||e==="comment"}function $_(e,t,r){for(;ma(e[t].type);)if(t++>=r)return!1;return t}function Ls(e,t,r){for(;ma(e[r].type);)if(r--<t)return!1;return r}function M_(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Ls(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Ir.equal(e[n].type,"separator"),Ir.equal(e[n].raw,":");ma(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Ir.equal(e[n].type,"key"),n--}for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function gn(e,t){var r=Object.create(gn.prototype);t==null&&(t={});var n=r._tokens=B_(e,t);r._data=n.data,n.data=null,r._options=t;var i=b9(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function j_(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ya(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}gn.prototype.set=function(e,t){if(e=tm(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)j_(e[i],n,!1),n=n[e[i]];i===e.length-1&&j_(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[$_(this._tokens,0,this._tokens.length-1),Ls(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=N_(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=il(t,e,this._options);else if(r){var f=e.slice(0,i),c=Ls(this._tokens,s[0]+1,s[1]-1);Ir(c!==!1);var u=c!==!1?M_(this._tokens,Array.isArray(n),s[0]+1,c,i):{},o=il(t,e,this._options,!1,u),l=[];u.newline&&u.newline.length&&(l=l.concat(u.newline)),u.prefix&&u.prefix.length&&(l=l.concat(u.prefix)),Array.isArray(n)||(l=l.concat(il(e[e.length-1],f,this._options,!0)),u.sep1&&u.sep1.length&&(l=l.concat(u.sep1)),l.push({raw:":",type:"separator",stack:f}),u.sep2&&u.sep2.length&&(l=l.concat(u.sep2))),o.unshift.apply(o,l),this._tokens[c].type==="separator"&&this._tokens[c].stack.length===e.length-1?this._tokens[c].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),u.suffix&&u.suffix.length&&o.push.apply(o,u.suffix),Ir.equal(this._tokens[s[1]].type,"separator"),s[0]=c+1,s[1]=c}else{var a=s;if(s=N_(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var c=Ls(this._tokens,a[0],s[0]-1);Ir.equal(this._tokens[c].type,"separator"),Ir.equal(this._tokens[c].raw,":"),s[0]=c;var c=Ls(this._tokens,a[0],s[0]-1);Ir.equal(this._tokens[c].type,"key"),Ir.equal(this._tokens[c].value,e[e.length-1]),s[0]=c}var c=Ls(this._tokens,a[0],s[0]-1);Ir.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","?s[0]=c:(c=$_(this._tokens,s[1]+1,a[1]),Ir.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","&&(s[1]=c))}else var u=c!==!1?M_(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=il(t,e,this._options,!1,u)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};gn.prototype.unset=function(e){return this.set(e,void 0)};gn.prototype.get=function(e){e=tm(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return;t=t[e[r]]}return t};gn.prototype.has=function(e){e=tm(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return!1;t=t[e[r]]}return t!==void 0};gn.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!ya(s)||!ya(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};gn.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};rm.exports.Document=gn;rm.exports.update=function(t,r,n){return gn(t,n).update(r).toString()}});var q_=R((nJ,sl)=>{var w9=require("fs"),S9=va();sl.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=S9.parse(w9.readFileSync(n,"utf8"))}};sl.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw va().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};sl.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var va=R((iJ,Li)=>{Li.exports.__defineGetter__("parse",function(){return ga().parse});Li.exports.__defineGetter__("stringify",function(){return Zg().stringify});Li.exports.__defineGetter__("tokenize",function(){return ga().tokenize});Li.exports.__defineGetter__("update",function(){return W_().update});Li.exports.__defineGetter__("analyze",function(){return em().analyze});Li.exports.__defineGetter__("utils",function(){return q_()})});var am=R(St=>{"use strict";var im=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(St,"__esModule",{value:!0});St.getWorkspacesAsync=St.getWorkspaces=St.getRushWorkspacesAsync=St.getRushWorkspaces=St.getWorkspacePackagePaths=St.getRushWorkspaceRoot=void 0;var nm=im(require("path")),C9=im(va()),x9=im(require("fs")),G_=ia(),sm=Ci(),O9=gs();function U_(e){let t=(0,O9.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}St.getRushWorkspaceRoot=U_;function om(e){try{let t=U_(e),r=nm.default.join(t,"rush.json"),n=C9.default.parse(x9.default.readFileSync(r,"utf-8")),i=nm.default.dirname(r);return n.projects.map(s=>nm.default.join(i,s.projectFolder))}catch(t){return(0,sm.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}St.getWorkspacePackagePaths=om;function H_(e){try{let t=om(e);return(0,G_.getWorkspacePackageInfo)(t)}catch(t){return(0,sm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}St.getRushWorkspaces=H_;St.getWorkspaces=H_;async function z_(e){try{let t=om(e);return(0,G_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,sm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}St.getRushWorkspacesAsync=z_;St.getWorkspacesAsync=z_});var K_=R(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getWorkspacesAsync=qt.getWorkspaces=qt.getNpmWorkspacesAsync=qt.getNpmWorkspaces=qt.getWorkspacePackagePathsAsync=qt.getWorkspacePackagePaths=void 0;var _9=fs(),ol=hg();function al(e){let t=(0,_9.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function P9(e){let t=al(e);return(0,ol.getPackagePathsFromWorkspaceRoot)(t)}qt.getWorkspacePackagePaths=P9;function R9(e){let t=al(e);return(0,ol.getPackagePathsFromWorkspaceRootAsync)(t)}qt.getWorkspacePackagePathsAsync=R9;function Y_(e){let t=al(e);return(0,ol.getWorkspaceInfoFromWorkspaceRoot)(t)}qt.getNpmWorkspaces=Y_;qt.getWorkspaces=Y_;function V_(e){let t=al(e);return(0,ol.getWorkspaceInfoFromWorkspaceRootAsync)(t)}qt.getNpmWorkspacesAsync=V_;qt.getWorkspacesAsync=V_});var Z_=R(Gt=>{"use strict";var um=Gt&&Gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.getWorkspacesAsync=Gt.getWorkspaces=Gt.getLernaWorkspacesAsync=Gt.getLernaWorkspaces=Gt.getWorkspacePackagePaths=void 0;var F9=um(require("fs")),D9=um(va()),L9=um(require("path")),k9=zc(),X_=ia(),cm=Ci(),T9=gs();function I9(e){let t=(0,T9.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function lm(e){try{let t=I9(e),r=L9.default.join(t,"lerna.json"),n=D9.default.parse(F9.default.readFileSync(r,"utf-8"));return(0,k9.getPackagePaths)(t,n.packages)}catch(t){return(0,cm.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}Gt.getWorkspacePackagePaths=lm;function J_(e){try{let t=lm(e);return(0,X_.getWorkspacePackageInfo)(t)}catch(t){return(0,cm.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Gt.getLernaWorkspaces=J_;Gt.getWorkspaces=J_;async function Q_(e){try{let t=lm(e);return(0,X_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,cm.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Gt.getLernaWorkspacesAsync=Q_;Gt.getWorkspacesAsync=Q_});var eP=R(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.getWorkspaceUtilities=void 0;var N9=gs();function $9(e){switch((0,N9.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return pg();case"pnpm":return Kg();case"rush":return am();case"npm":return K_();case"lerna":return Z_()}}ul.getWorkspaceUtilities=$9});var fs=R(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.getWorkspaceUtilities=ks.getWorkspaceManagerAndRoot=void 0;var M9=gs();Object.defineProperty(ks,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return M9.getWorkspaceManagerAndRoot}});var j9=eP();Object.defineProperty(ks,"getWorkspaceUtilities",{enumerable:!0,get:function(){return j9.getWorkspaceUtilities}})});var cl=R(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getWorkspacesAsync=Ts.getWorkspaces=void 0;var fm=fs();function B9(e){return(0,fm.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}Ts.getWorkspaces=B9;async function W9(e){let t=(0,fm.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,fm.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}Ts.getWorkspacesAsync=W9});var sP=R(Jn=>{"use strict";var rP=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getPackageInfosAsync=Jn.getPackageInfos=void 0;var tP=rP(require("fs")),q9=rP(require("path")),G9=Ep(),nP=cl();function U9(e){let t={},r=(0,nP.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=iP(e);n&&(t[n.name]=n)}return t}Jn.getPackageInfos=U9;async function H9(e){let t={},r=await(0,nP.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=iP(e);n&&(t[n.name]=n)}return t}Jn.getPackageInfosAsync=H9;function iP(e){let t=q9.default.join(e,"package.json");if(tP.default.existsSync(t))try{let r=JSON.parse(tP.default.readFileSync(t,"utf-8"));return(0,G9.infoFromPackageJson)(r,t)}catch(r){throw new Error(`Invalid package.json file detected ${t}: ${r?.message||r}`)}}});var fl=R(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.createDependencyMap=void 0;var z9=ac();function Y9(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map},n=new Set(Object.keys(e));for(let[i,s]of Object.entries(e)){let o=(0,z9.getPackageDependencies)(s,n,t);for(let a of o)r.dependencies.has(i)||r.dependencies.set(i,new Set),r.dependencies.get(i).add(a),r.dependents.has(a)||r.dependents.set(a,new Set),r.dependents.get(a).add(i)}return r}ll.createDependencyMap=Y9});var aP=R(Is=>{"use strict";var V9=Is&&Is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Is,"__esModule",{value:!0});Is.createPackageGraph=void 0;var K9=fl(),X9=V9(ra());function J9(e,t){let r=new Set,n=[],i=new Set,s=new Map;function o(f,l,h,p){if(r.add(l),!f||f.includeDependencies&&h)for(let d of h){let y=a(l,d);i.has(y)||(i.add(y),n.push({name:l,dependency:d})),r.add(d)}if(!f||f.includeDependents&&p)for(let d of p){let y=a(d,l);i.has(y)||(i.add(y),n.push({name:d,dependency:l})),r.add(d)}}if(t){t=Array.isArray(t)?t:[t];for(let f of t){let l=o.bind(void 0,f),h=c(e,f);oP(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=c(e);oP(e,l,f)}return{packages:[...r],dependencies:n};function a(f,l){return`${f}->${l}`}function c(f,l){let h=u(l);if(!s.has(h)){let p=(0,K9.createDependencyMap)(f,l);s.set(h,p)}return s.get(h)}function u(f){return f?[f.withDevDependencies?"dev":"",f.withPeerDependencies?"peer":"",f.withOptionalDependencies?"optional":""].filter(Boolean).join("_")||"prod":"default"}}Is.createPackageGraph=J9;function oP(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,X9.default)(s,n.namePatterns):s;for(;o.length>0;){let a=o.pop();if(i.has(a))continue;let c=new Set,u=[],f=[];if(!n||n.includeDependencies){u=[...t.dependencies.get(a)??[]];for(let l of u)c.add(l)}if(!n||n.includeDependents){f=[...t.dependents.get(a)??[]];for(let l of f)c.add(l)}if(r(a,u,f),i.add(a),c.size>0)for(let l of c)o.push(l)}}});var cP=R(Jr=>{"use strict";var Q9=Jr&&Jr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),uP=Jr&&Jr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Q9(t,e,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getDependentMap=void 0;uP(aP(),Jr);uP(fl(),Jr);var Z9=fl();function e6(e){return(0,Z9.createDependencyMap)(e).dependencies}Jr.getDependentMap=e6});var Aa=R(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.nameAtVersion=void 0;function t6(e,t){return`${e}@${t}`}hl.nameAtVersion=t6});var lP=R(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.parsePnpmLock=void 0;var r6=Aa();function n6(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,r6.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}pl.parsePnpmLock=n6});var fP=R(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.parseNpmLock=void 0;var i6=Aa();function s6(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,i6.nameAtVersion)(r,n.version),n])),type:"success"}}dl.parseNpmLock=s6});var hP=R(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.parseBerryLock=void 0;function o6(e){let t={};if(e)for(let[r,n]of Object.entries(e)){if(r==="__metadata")continue;let i=r.split(", ");for(let s of i){let o=a6(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}gl.parseBerryLock=o6;function a6(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var dP=R((AJ,pP)=>{pP.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=require("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(c,u){function f(l,h){try{var p=a[l](h),d=p.value}catch(y){u(y);return}if(p.done)c(d);else return i.default.resolve(d).then(function(y){f("next",y)},function(y){f("throw",y)})}return f("next")})}}},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(u,f){super(u),this.code=f}}t.MessageError=n;class i extends n{constructor(u,f,l){super(u,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(u,f){super(u),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=H(r(1))}let s=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,_e=ft.dest,Ks=ft.type,zt=ft.onFresh||ir,Ye=ft.onDone||ir;if(Ie.has(_e.toLowerCase())?te.verbose(`The case-insensitive file ${_e} shouldn't be copied twice in one bulk copy`):Ie.add(_e.toLowerCase()),Ks==="symlink"){yield K((v||A()).default.dirname(_e)),zt(),xt.symlink.push({dest:_e,linkname:Be}),Ye();return}if(Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ve=yield B(Be),en;Ve.isDirectory()&&(en=yield ve(Be));let $t;try{$t=yield B(_e)}catch(Rt){if(Rt.code!=="ENOENT")throw Rt}if($t){let Rt=Ve.isSymbolicLink()&&$t.isSymbolicLink(),tn=Ve.isDirectory()&&$t.isDirectory(),_r=Ve.isFile()&&$t.isFile();if(_r&&je.has(_e)){Ye(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(_r&&Ve.size===$t.size&&(0,(X||he()).fileDatesEqual)(Ve.mtime,$t.mtime)){Ye(),te.verbose(te.lang("verboseFileSkip",Be,_e,Ve.size,+Ve.mtime));return}if(Rt){let ht=yield Y(Be);if(ht===(yield Y(_e))){Ye(),te.verbose(te.lang("verboseFileSkipSymlink",Be,_e,ht));return}}if(tn){let ht=yield ve(_e);Ni(en,"src files not initialised");for(var Cr=ht,An=Array.isArray(Cr),Yt=0,Cr=An?Cr:Cr[Symbol.iterator]();;){var Mi;if(An){if(Yt>=Cr.length)break;Mi=Cr[Yt++]}else{if(Yt=Cr.next(),Yt.done)break;Mi=Yt.value}let wn=Mi;if(en.indexOf(wn)<0){let rn=(v||A()).default.join(_e,wn);if(J.add(rn),(yield B(rn)).isDirectory())for(var xr=yield ve(rn),En=Array.isArray(xr),Vt=0,xr=En?xr:xr[Symbol.iterator]();;){var ji;if(En){if(Vt>=xr.length)break;ji=xr[Vt++]}else{if(Vt=xr.next(),Vt.done)break;ji=Vt.value}let jl=ji;J.add((v||A()).default.join(rn,jl))}}}}}if($t&&$t.isSymbolicLink()&&(yield(0,(X||he()).unlink)(_e),$t=null),Ve.isSymbolicLink()){zt();let Rt=yield Y(Be);xt.symlink.push({dest:_e,linkname:Rt}),Ye()}else if(Ve.isDirectory()){$t||(te.verbose(te.lang("verboseFileFolder",_e)),yield K(_e));let Rt=_e.split((v||A()).default.sep);for(;Rt.length;)Ie.add(Rt.join((v||A()).default.sep).toLowerCase()),Rt.pop();Ni(en,"src files not initialised");let tn=en.length;tn||Ye();for(var Or=en,bn=Array.isArray(Or),Kt=0,Or=bn?Or:Or[Symbol.iterator]();;){var Pt;if(bn){if(Kt>=Or.length)break;Pt=Or[Kt++]}else{if(Kt=Or.next(),Kt.done)break;Pt=Kt.value}let _r=Pt;ie.push({dest:(v||A()).default.join(_e,_r),onFresh:zt,onDone:function(ht){function wn(){return ht.apply(this,arguments)}return wn.toString=function(){return ht.toString()},wn}(function(){--tn===0&&Ye()}),src:(v||A()).default.join(Be,_r)})}}else if(Ve.isFile())zt(),xt.file.push({src:Be,dest:_e,atime:Ve.atime,mtime:Ve.mtime,mode:Ve.mode}),Ye();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var Ht;if(Ne){if(Re>=Fe.length)break;Ht=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;Ht=Re.value}let Te=Ht,ft=Te.onDone;Te.onDone=function(){Q.onProgress(Te.dest),ft&&ft()}}Q.onStart(ie.length);let xt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Ot=je,vn=Array.isArray(Ot),wr=0,Ot=vn?Ot:Ot[Symbol.iterator]();;){var ti;if(vn){if(wr>=Ot.length)break;ti=Ot[wr++]}else{if(wr=Ot.next(),wr.done)break;ti=wr.value}let Te=ti;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var _t=J,Vs=Array.isArray(_t),Sr=0,_t=Vs?_t:_t[Symbol.iterator]();;){var ri;if(Vs){if(Sr>=_t.length)break;ri=_t[Sr++]}else{if(Sr=_t.next(),Sr.done)break;ri=Sr.value}let Te=ri;Ie.has(Te.toLowerCase())&&J.delete(Te)}return xt});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),o=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,_e=ft.dest,Ks=ft.onFresh||ir,zt=ft.onDone||ir;if(Ie.has(_e.toLowerCase())){zt();return}if(Ie.add(_e.toLowerCase()),Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ye=yield B(Be),Ve;Ye.isDirectory()&&(Ve=yield ve(Be));let en=yield z(_e);if(en){let Pt=yield B(_e),Rt=Ye.isSymbolicLink()&&Pt.isSymbolicLink(),tn=Ye.isDirectory()&&Pt.isDirectory(),_r=Ye.isFile()&&Pt.isFile();if(Ye.mode!==Pt.mode)try{yield I(_e,Ye.mode)}catch(ht){te.verbose(ht)}if(_r&&je.has(_e)){zt(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(_r&&Ye.ino!==null&&Ye.ino===Pt.ino){zt(),te.verbose(te.lang("verboseFileSkip",Be,_e,Ye.ino));return}if(Rt){let ht=yield Y(Be);if(ht===(yield Y(_e))){zt(),te.verbose(te.lang("verboseFileSkipSymlink",Be,_e,ht));return}}if(tn){let ht=yield ve(_e);Ni(Ve,"src files not initialised");for(var Yt=ht,$t=Array.isArray(Yt),An=0,Yt=$t?Yt:Yt[Symbol.iterator]();;){var Cr;if($t){if(An>=Yt.length)break;Cr=Yt[An++]}else{if(An=Yt.next(),An.done)break;Cr=An.value}let wn=Cr;if(Ve.indexOf(wn)<0){let rn=(v||A()).default.join(_e,wn);if(J.add(rn),(yield B(rn)).isDirectory())for(var Vt=yield ve(rn),Mi=Array.isArray(Vt),En=0,Vt=Mi?Vt:Vt[Symbol.iterator]();;){var xr;if(Mi){if(En>=Vt.length)break;xr=Vt[En++]}else{if(En=Vt.next(),En.done)break;xr=En.value}let jl=xr;J.add((v||A()).default.join(rn,jl))}}}}}if(Ye.isSymbolicLink()){Ks();let Pt=yield Y(Be);xt.symlink.push({dest:_e,linkname:Pt}),zt()}else if(Ye.isDirectory()){te.verbose(te.lang("verboseFileFolder",_e)),yield K(_e);let Pt=_e.split((v||A()).default.sep);for(;Pt.length;)Ie.add(Pt.join((v||A()).default.sep).toLowerCase()),Pt.pop();Ni(Ve,"src files not initialised");let Rt=Ve.length;Rt||zt();for(var Kt=Ve,ji=Array.isArray(Kt),bn=0,Kt=ji?Kt:Kt[Symbol.iterator]();;){var Or;if(ji){if(bn>=Kt.length)break;Or=Kt[bn++]}else{if(bn=Kt.next(),bn.done)break;Or=bn.value}let tn=Or;ie.push({onFresh:Ks,src:(v||A()).default.join(Be,tn),dest:(v||A()).default.join(_e,tn),onDone:function(_r){function ht(){return _r.apply(this,arguments)}return ht.toString=function(){return _r.toString()},ht}(function(){--Rt===0&&zt()})})}}else if(Ye.isFile())Ks(),xt.link.push({src:Be,dest:_e,removeDest:en}),zt();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var Ht;if(Ne){if(Re>=Fe.length)break;Ht=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;Ht=Re.value}let Te=Ht,ft=Te.onDone||ir;Te.onDone=function(){Q.onProgress(Te.dest),ft()}}Q.onStart(ie.length);let xt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Ot=je,vn=Array.isArray(Ot),wr=0,Ot=vn?Ot:Ot[Symbol.iterator]();;){var ti;if(vn){if(wr>=Ot.length)break;ti=Ot[wr++]}else{if(wr=Ot.next(),wr.done)break;ti=wr.value}let Te=ti;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var _t=J,Vs=Array.isArray(_t),Sr=0,_t=Vs?_t:_t[Symbol.iterator]();;){var ri;if(Vs){if(Sr>=_t.length)break;ri=_t[Sr++]}else{if(Sr=_t.next(),Sr.done)break;ri=Sr.value}let Te=ri;Ie.has(Te.toLowerCase())&&J.delete(Te)}return xt});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||ir,onProgress:J&&J.onProgress||ir,possibleExtraneous:J?J.possibleExtraneous:new Set,ignoreBasenames:J&&J.ignoreBasenames||[],artifactFiles:J&&J.artifactFiles||[]},xe=yield s(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.file,Ie=new Map;yield(w||T()).queue(je,(()=>{var Re=(0,(n||i()).default)(function*(Fe){let Ht;for(;Ht=Ie.get(Fe.dest);)yield Ht;Q.verbose(Q.lang("verboseFileCopy",Fe.src,Fe.dest));let xt=(0,(X||he()).copyFile)(Fe,function(){return Ie.delete(Fe.dest)});return Ie.set(Fe.dest,xt),te.onProgress(Fe.dest),xt});return function(Fe){return Re.apply(this,arguments)}})(),Me);let Ne=xe.symlink;yield(w||T()).queue(Ne,function(Re){let Fe=(v||A()).default.resolve((v||A()).default.dirname(Re.dest),Re.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Re.dest,Fe)),p(Fe,Re.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),c=t.hardlinkBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||ir,onProgress:J&&J.onProgress||ir,possibleExtraneous:J?J.possibleExtraneous:new Set,artifactFiles:J&&J.artifactFiles||[],ignoreBasenames:[]},xe=yield o(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.link;yield(w||T()).queue(je,(()=>{var Ne=(0,(n||i()).default)(function*(Re){Q.verbose(Q.lang("verboseFileLink",Re.src,Re.dest)),Re.removeDest&&(yield(0,(X||he()).unlink)(Re.dest)),yield ne(Re.src,Re.dest)});return function(Re){return Ne.apply(this,arguments)}})(),Me);let Ie=xe.symlink;yield(w||T()).queue(Ie,function(Ne){let Re=(v||A()).default.resolve((v||A()).default.dirname(Ne.dest),Ne.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Ne.dest,Re)),p(Re,Ne.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),u=t.readFileAny=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;if(yield z(je))return Ml(je)}return null});return function(Q){return ge.apply(this,arguments)}})(),f=t.readJson=(()=>{var ge=(0,(n||i()).default)(function*(ie){return(yield l(ie)).object});return function(Q){return ge.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield Ml(ie);try{return{object:(0,(U||V()).default)(JSON.parse(Ys(Q))),content:Q}}catch(J){throw J.message=`${ie}: ${J.message}`,J}});return function(Q){return ge.apply(this,arguments)}})(),h=t.find=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){let J=Q.split((v||A()).default.sep);for(;J.length;){let te=J.concat(ie).join((v||A()).default.sep);if(yield z(te))return te;J.pop()}return!1});return function(Q,J){return ge.apply(this,arguments)}})(),p=t.symlink=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){try{if((yield B(Q)).isSymbolicLink()&&(yield ue(Q))===ie)return}catch(J){if(J.code!=="ENOENT")throw J}if(yield(0,(X||he()).unlink)(Q),process.platform==="win32")yield Qe(ie,Q,"junction");else{let J;try{J=(v||A()).default.relative((_||L()).default.realpathSync((v||A()).default.dirname(Q)),(_||L()).default.realpathSync(ie))}catch(te){if(te.code!=="ENOENT")throw te;J=(v||A()).default.relative((v||A()).default.dirname(Q),ie)}yield Qe(J||".",Q)}});return function(Q,J){return ge.apply(this,arguments)}})(),d=t.walk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J=new Set){let te=[],xe=yield ve(ie);J.size&&(xe=xe.filter(function(Fe){return!J.has(Fe)}));for(var Ne=xe,je=Array.isArray(Ne),Ie=0,Ne=je?Ne:Ne[Symbol.iterator]();;){var Re;if(je){if(Ie>=Ne.length)break;Re=Ne[Ie++]}else{if(Ie=Ne.next(),Ie.done)break;Re=Ie.value}let Fe=Re,Ht=Q?(v||A()).default.join(Q,Fe):Fe,xt=(v||A()).default.join(ie,Fe),vn=yield B(xt);te.push({relative:Ht,basename:Fe,absolute:xt,mtime:+vn.mtime}),vn.isDirectory()&&(te=te.concat(yield d(xt,Ht,J)))}return te});return function(Q,J){return ge.apply(this,arguments)}})(),y=t.getFileSizeOnDisk=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield B(ie),J=Q.size,te=Q.blksize;return Math.ceil(J/te)*te});return function(Q){return ge.apply(this,arguments)}})(),m=(()=>{var ge=(0,(n||i()).default)(function*(ie){if(!(yield z(ie)))return;let Q=yield ee(ie);for(let J=0;J<Q.length;++J){if(Q[J]===cF)return`\r
70
- `;if(Q[J]===lF)return`
65
+ `+u}function F9(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?gn.isLineTerminator:gn.isLineTerminatorJSON,s=r?gn.isWhiteSpace:gn.isWhiteSpaceJSON,o=e.length,a=0,c=0,u=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=u},h=function(g,v){if(x!=u){var A={raw:e.substr(x,u-x),type:v,stack:f.slice(0)};g!==void 0&&(A.value=g),t._tokenize.call(null,A)}return x=null,g}}();function d(x){var g=u-c;if(!x)if(u<o){var v="'"+JSON.stringify(e[u]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+v)}else x||(x="Unexpected end of input");var A=SyntaxError(R9(e,x,u,a,g,r));throw A.row=a+1,A.column=g+1,A}function p(x){x==="\r"&&e[u]===`
66
+ `&&u++,c=u,a++}function y(){for(var x;u<o;){l();var g=e[u++];return g==='"'||g==="'"&&r?h(D(g),"literal"):g==="{"?(h(void 0,"separator"),F()):g==="["?(h(void 0,"separator"),b()):g==="-"||g==="."||pa(g)||r&&(g==="+"||g==="I"||g==="N")?h(P(),"literal"):g==="n"?(k("null"),h(null,"literal")):g==="t"?(k("true"),h(!0,"literal")):g==="f"?(k("false"),h(!1,"literal")):(u--,h(void 0))}}function m(){for(var x;u<o;){l();var g=e[u++];if(g==='"'||g==="'"&&r)return h(D(g),"key");if(g==="{")return h(void 0,"separator"),F();if(g==="[")return h(void 0,"separator"),b();if(g==="."||pa(g))return h(P(!0),"key");if(r&&gn.isIdentifierStart(g)||g==="\\"&&e[u]==="u"){var v=u-1,x=L();return x===void 0?(u=v,h(void 0)):h(x,"key")}else return u--,h(void 0)}}function O(){for(l();u<o;){var x=e[u++];if(i(x))u--,h(void 0,"whitespace"),l(),u++,p(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[u]==="/"||e[u]==="*"))u--,h(void 0,"whitespace"),l(),u++,S(e[u++]==="*"),h(void 0,"comment"),l();else{u--;break}}return h(void 0,"whitespace")}function S(x){for(;u<o;){var g=e[u++];if(i(g)){if(!x){u--;return}p(g)}else if(g==="*"&&x&&e[u]==="/"){u++;return}}x&&d("Unclosed multiline comment")}function k(x){for(var g=u,v=x.length,A=1;A<v;A++)(u>=o||x[A]!=e[u])&&(u=g-1,d()),u++}function F(){for(var x=t.null_prototype?Object.create(null):{},g={},v=!1;u<o;){O();var A=m();O(),l();var C=e[u++];if(h(void 0,"separator"),C==="}"&&A===void 0)return!r&&v&&(u--,d("Trailing comma in object")),x;if(C===":"&&A!==void 0){O(),f.push(A);var E=y();f.pop(),E===void 0&&d("No value found for key "+A),typeof A!="string"&&(!r||typeof A!="number")&&d("Wrong key type: "+A),(A in g||g[A]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+A):(typeof t.reviver=="function"&&(E=t.reviver.call(null,A,E)),E!==void 0&&(v=!0,Object.defineProperty(x,A,{value:E,enumerable:!0,configurable:!0,writable:!0}))),O(),l();var C=e[u++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;d()}else u--,d()}d()}function b(){for(var x=[];u<o;){O(),f.push(x.length);var g=y();f.pop(),O(),l();var v=e[u++];if(h(void 0,"separator"),g!==void 0&&(typeof t.reviver=="function"&&(g=t.reviver.call(null,String(x.length),g)),g===void 0?(x.length++,g=!0):x.push(g)),v===",")g===void 0&&d("Elisions are not supported");else{if(v==="]")return!r&&g===void 0&&x.length&&(u--,d("Trailing comma in array")),x;u--,d()}}}function P(){u--;var x=u,g=e[u++],v,A=function(T){var $=e.substr(x,u-x);if(T)var M=parseInt($.replace(/^0o?/,""),8);else var M=Number($);if(Number.isNaN(M))u--,d('Bad numeric literal - "'+e.substr(x,u-x+1)+'"');else if(!r&&!$.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))u--,d('Non-json numeric literal - "'+e.substr(x,u-x+1)+'"');else return M};if((g==="-"||g==="+"&&r)&&(g=e[u++]),g==="N"&&r)return k("NaN"),NaN;if(g==="I"&&r)return k("Infinity"),A();if(g>="1"&&g<="9"){for(;u<o&&pa(e[u]);)u++;g=e[u++]}if(g==="0"){g=e[u++];var C=g==="o"||g==="O"||Ds(g),E=g==="x"||g==="X";if(r&&(C||E)){for(;u<o&&(E?Fs:Ds)(e[u]);)u++;var w=1;return e[x]==="-"?(w=-1,x++):e[x]==="+"&&x++,w*A(C)}}if(g==="."){for(;u<o&&pa(e[u]);)u++;g=e[u++]}if(g==="e"||g==="E"){for(g=e[u++],(g==="-"||g==="+")&&u++;u<o&&pa(e[u]);)u++;g=e[u++]}return u--,A()}function L(){u--;for(var x="";u<o;){var g=e[u++];if(g==="\\"&&e[u]==="u"&&Fs(e[u+1])&&Fs(e[u+2])&&Fs(e[u+3])&&Fs(e[u+4])&&(g=String.fromCharCode(parseInt(e.substr(u+1,4),16)),u+=5),x.length)if(gn.isIdentifierPart(g))x+=g;else return u--,x;else if(gn.isIdentifierStart(g))x+=g;else return}d()}function D(x){for(var g="";u<o;){var v=e[u++];if(v===x)return g;if(v==="\\")if(u>=o&&d(),v=e[u++],HP[v]&&(r||v!="v"&&v!="'"))g+=HP[v];else if(r&&i(v))p(v);else if(v==="u"||v==="x"&&r){for(var A=v==="u"?4:2,C=0;C<A;C++)u>=o&&d(),Fs(e[u])||d("Bad escape sequence"),u++;g+=String.fromCharCode(parseInt(e.substr(u-A,A),16))}else if(r&&Ds(v)){if(v<"4"&&Ds(e[u])&&Ds(e[u+1]))var E=3;else if(Ds(e[u]))var E=2;else var E=1;u+=E-1,g+=String.fromCharCode(parseInt(e.substr(u-E,E),8))}else r?g+=v:(u--,d());else i(v)?d():(!r&&v.charCodeAt(0)<32&&(u--,d("Unexpected control character")),g+=v)}d()}O();var N=y();if(N!==void 0||u<o){if(O(),u>=o)return typeof t.reviver=="function"&&(N=t.reviver.call(null,"",N)),N;d()}else d(u?"No data, only a whitespace":"No data, empty input")}sl.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return F9(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};sl.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=sl.exports.parse(t,r),n}});var sm=R((vJ,YP)=>{var nm=rm();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var D9={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},L9=Object.prototype.hasOwnProperty,zP=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function im(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var d=t._prefix?t._prefix:"";if(!t.indent)return d+l;for(var p="",y=r+(h||0),m=0;m<y;m++)p+=t.indent;return d+p+l+(h?`
67
+ `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",d=0;d<l.length;d++){if(d>0){if(!nm.isIdentifierPart(l[d]))return a(l)}else if(!nm.isIdentifierStart(l[d]))return a(l);var p=l.charCodeAt(d);t.ascii?p<128?h+=l[d]:h+="\\u"+("0000"+p.toString(16)).slice(-4):zP.exec(l[d])?h+="\\u"+("0000"+p.toString(16)).slice(-4):h+=l[d]}return h}function a(l){for(var h=t.quote,d=h.charCodeAt(0),p="",y=0;y<l.length;y++){var m=l.charCodeAt(y);if(m<16)m===0&&i?p+="\\0":m>=8&&m<=13&&(i||m!==11)?p+=D9[m]:i?p+="\\x0"+m.toString(16):p+="\\u000"+m.toString(16);else if(m<32)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m>=32&&m<128)m===47&&y&&l[y-1]==="<"?p+="\\"+l[y]:m===92?p+="\\\\":m===d?p+="\\"+h:p+=l[y];else if(t.ascii||nm.isLineTerminator(l[y])||zP.exec(l[y]))if(m<256)i?p+="\\x"+m.toString(16):p+="\\u00"+m.toString(16);else if(m<4096)p+="\\u0"+m.toString(16);else if(m<65536)p+="\\u"+m.toString(16);else throw Error("weird codepoint");else p+=l[y]}return h+p+h}function c(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var p=0;p<e.length;p++){var y=im(e[p],t,r+1,String(p));y===void 0&&(y="null"),h+=y.length+2,l.push(y+",")}}else{d="{}";var m=function(k){var F=im(e[k],t,r+1,k);F!==void 0&&(F=o(k)+":"+(t.indent?" ":"")+F+",",h+=F.length+1,l.push(F))};if(Array.isArray(t.replacer))for(var p=0;p<t.replacer.length;p++)L9.call(e,t.replacer[p])&&m(t.replacer[p]);else{var O=Object.keys(e);t.sort_keys&&(O=O.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),O.forEach(m)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.map(function(k){return s(k,1)}).join("");return d[0]+(t.indent?`
68
+ `:"")+S+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var S=l.join(t.indent?" ":"");return d[0]+S+d[1]}}function u(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?u(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),u(e)):e.constructor===Date?u(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?u(e):c(e)}else return u(e)}YP.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),im(t,r,0,"")}});var om=R((AJ,VP)=>{var k9=ga().tokenize;VP.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=k9(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
69
+ `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var c=Array(o/a+1).join(" ");i.indent[c]=(i.indent[c]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var u=s+1;u<t.length&&!(t[u].type==="literal"||t[u].type==="key");u++)t[u].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var e_=R((EJ,um)=>{var Nr=require("assert"),ZP=ga().tokenize,T9=sm().stringify,I9=om().analyze;function ya(e){return typeof e=="object"&&e!==null}function ol(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=T9(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=ZP(s,{_addstack:t});return o.data=null,o}function am(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function KP(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function ma(e){return e==="whitespace"||e==="newline"||e==="comment"}function XP(e,t,r){for(;ma(e[t].type);)if(t++>=r)return!1;return t}function Ls(e,t,r){for(;ma(e[r].type);)if(r--<t)return!1;return r}function JP(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Ls(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Nr.equal(e[n].type,"separator"),Nr.equal(e[n].raw,":");ma(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Nr.equal(e[n].type,"key"),n--}for(;ma(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function mn(e,t){var r=Object.create(mn.prototype);t==null&&(t={});var n=r._tokens=ZP(e,t);r._data=n.data,n.data=null,r._options=t;var i=I9(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function QP(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ya(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}mn.prototype.set=function(e,t){if(e=am(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)QP(e[i],n,!1),n=n[e[i]];i===e.length-1&&QP(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[XP(this._tokens,0,this._tokens.length-1),Ls(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=KP(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=ol(t,e,this._options);else if(r){var f=e.slice(0,i),c=Ls(this._tokens,s[0]+1,s[1]-1);Nr(c!==!1);var u=c!==!1?JP(this._tokens,Array.isArray(n),s[0]+1,c,i):{},o=ol(t,e,this._options,!1,u),l=[];u.newline&&u.newline.length&&(l=l.concat(u.newline)),u.prefix&&u.prefix.length&&(l=l.concat(u.prefix)),Array.isArray(n)||(l=l.concat(ol(e[e.length-1],f,this._options,!0)),u.sep1&&u.sep1.length&&(l=l.concat(u.sep1)),l.push({raw:":",type:"separator",stack:f}),u.sep2&&u.sep2.length&&(l=l.concat(u.sep2))),o.unshift.apply(o,l),this._tokens[c].type==="separator"&&this._tokens[c].stack.length===e.length-1?this._tokens[c].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),u.suffix&&u.suffix.length&&o.push.apply(o,u.suffix),Nr.equal(this._tokens[s[1]].type,"separator"),s[0]=c+1,s[1]=c}else{var a=s;if(s=KP(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var c=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[c].type,"separator"),Nr.equal(this._tokens[c].raw,":"),s[0]=c;var c=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[c].type,"key"),Nr.equal(this._tokens[c].value,e[e.length-1]),s[0]=c}var c=Ls(this._tokens,a[0],s[0]-1);Nr.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","?s[0]=c:(c=XP(this._tokens,s[1]+1,a[1]),Nr.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","&&(s[1]=c))}else var u=c!==!1?JP(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=ol(t,e,this._options,!1,u)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};mn.prototype.unset=function(e){return this.set(e,void 0)};mn.prototype.get=function(e){e=am(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return;t=t[e[r]]}return t};mn.prototype.has=function(e){e=am(e);for(var t=this._data,r=0;r<e.length;r++){if(!ya(t))return!1;t=t[e[r]]}return t!==void 0};mn.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!ya(s)||!ya(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};mn.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};um.exports.Document=mn;um.exports.update=function(t,r,n){return mn(t,n).update(r).toString()}});var t_=R((bJ,al)=>{var N9=require("fs"),$9=va();al.exports.register=function(){var e=require,t="extensions";e[t][".json5"]=function(r,n){r.exports=$9.parse(N9.readFileSync(n,"utf8"))}};al.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw va().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};al.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var va=R((wJ,Li)=>{Li.exports.__defineGetter__("parse",function(){return ga().parse});Li.exports.__defineGetter__("stringify",function(){return sm().stringify});Li.exports.__defineGetter__("tokenize",function(){return ga().tokenize});Li.exports.__defineGetter__("update",function(){return e_().update});Li.exports.__defineGetter__("analyze",function(){return om().analyze});Li.exports.__defineGetter__("utils",function(){return t_()})});var dm=R(St=>{"use strict";var lm=St&&St.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(St,"__esModule",{value:!0});St.getWorkspacesAsync=St.getWorkspaces=St.getRushWorkspacesAsync=St.getRushWorkspaces=St.getWorkspacePackagePaths=St.getRushWorkspaceRoot=void 0;var cm=lm(require("path")),M9=lm(va()),j9=lm(require("fs")),r_=ia(),fm=Ci(),B9=gs();function n_(e){let t=(0,B9.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}St.getRushWorkspaceRoot=n_;function hm(e){try{let t=n_(e),r=cm.default.join(t,"rush.json"),n=M9.default.parse(j9.default.readFileSync(r,"utf-8")),i=cm.default.dirname(r);return n.projects.map(s=>cm.default.join(i,s.projectFolder))}catch(t){return(0,fm.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}St.getWorkspacePackagePaths=hm;function i_(e){try{let t=hm(e);return(0,r_.getWorkspacePackageInfo)(t)}catch(t){return(0,fm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}St.getRushWorkspaces=i_;St.getWorkspaces=i_;async function s_(e){try{let t=hm(e);return(0,r_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,fm.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}St.getRushWorkspacesAsync=s_;St.getWorkspacesAsync=s_});var u_=R(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.getWorkspacesAsync=Gt.getWorkspaces=Gt.getNpmWorkspacesAsync=Gt.getNpmWorkspaces=Gt.getWorkspacePackagePathsAsync=Gt.getWorkspacePackagePaths=void 0;var W9=fs(),ul=vg();function cl(e){let t=(0,W9.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function q9(e){let t=cl(e);return(0,ul.getPackagePathsFromWorkspaceRoot)(t)}Gt.getWorkspacePackagePaths=q9;function G9(e){let t=cl(e);return(0,ul.getPackagePathsFromWorkspaceRootAsync)(t)}Gt.getWorkspacePackagePathsAsync=G9;function o_(e){let t=cl(e);return(0,ul.getWorkspaceInfoFromWorkspaceRoot)(t)}Gt.getNpmWorkspaces=o_;Gt.getWorkspaces=o_;function a_(e){let t=cl(e);return(0,ul.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Gt.getNpmWorkspacesAsync=a_;Gt.getWorkspacesAsync=a_});var h_=R(Ut=>{"use strict";var pm=Ut&&Ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getWorkspacesAsync=Ut.getWorkspaces=Ut.getLernaWorkspacesAsync=Ut.getLernaWorkspaces=Ut.getWorkspacePackagePaths=void 0;var U9=pm(require("fs")),H9=pm(va()),z9=pm(require("path")),Y9=Vc(),c_=ia(),gm=Ci(),V9=gs();function K9(e){let t=(0,V9.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function mm(e){try{let t=K9(e),r=z9.default.join(t,"lerna.json"),n=H9.default.parse(U9.default.readFileSync(r,"utf-8"));return(0,Y9.getPackagePaths)(t,n.packages)}catch(t){return(0,gm.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}Ut.getWorkspacePackagePaths=mm;function l_(e){try{let t=mm(e);return(0,c_.getWorkspacePackageInfo)(t)}catch(t){return(0,gm.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ut.getLernaWorkspaces=l_;Ut.getWorkspaces=l_;async function f_(e){try{let t=mm(e);return(0,c_.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,gm.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}Ut.getLernaWorkspacesAsync=f_;Ut.getWorkspacesAsync=f_});var d_=R(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.getWorkspaceUtilities=void 0;var X9=gs();function J9(e){switch((0,X9.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return Ag();case"pnpm":return tm();case"rush":return dm();case"npm":return u_();case"lerna":return h_()}}ll.getWorkspaceUtilities=J9});var fs=R(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.getWorkspaceUtilities=ks.getWorkspaceManagerAndRoot=void 0;var Q9=gs();Object.defineProperty(ks,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return Q9.getWorkspaceManagerAndRoot}});var Z9=d_();Object.defineProperty(ks,"getWorkspaceUtilities",{enumerable:!0,get:function(){return Z9.getWorkspaceUtilities}})});var fl=R(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getWorkspacesAsync=Ts.getWorkspaces=void 0;var ym=fs();function e6(e){return(0,ym.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}Ts.getWorkspaces=e6;async function t6(e){let t=(0,ym.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,ym.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}Ts.getWorkspacesAsync=t6});var v_=R(Jn=>{"use strict";var g_=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getPackageInfosAsync=Jn.getPackageInfos=void 0;var p_=g_(require("fs")),r6=g_(require("path")),n6=Od(),m_=fl();function i6(e){let t={},r=(0,m_.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=y_(e);n&&(t[n.name]=n)}return t}Jn.getPackageInfos=i6;async function s6(e){let t={},r=await(0,m_.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=y_(e);n&&(t[n.name]=n)}return t}Jn.getPackageInfosAsync=s6;function y_(e){let t=r6.default.join(e,"package.json");if(p_.default.existsSync(t))try{let r=JSON.parse(p_.default.readFileSync(t,"utf-8"));return(0,n6.infoFromPackageJson)(r,t)}catch(r){throw new Error(`Invalid package.json file detected ${t}: ${r?.message||r}`)}}});var dl=R(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.createDependencyMap=void 0;var o6=cc();function a6(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map},n=new Set(Object.keys(e));for(let[i,s]of Object.entries(e)){let o=(0,o6.getPackageDependencies)(s,n,t);for(let a of o)r.dependencies.has(i)||r.dependencies.set(i,new Set),r.dependencies.get(i).add(a),r.dependents.has(a)||r.dependents.set(a,new Set),r.dependents.get(a).add(i)}return r}hl.createDependencyMap=a6});var E_=R(Is=>{"use strict";var u6=Is&&Is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Is,"__esModule",{value:!0});Is.createPackageGraph=void 0;var c6=dl(),l6=u6(ra());function f6(e,t){let r=new Set,n=[],i=new Set,s=new Map;function o(f,l,h,d){if(r.add(l),!f||f.includeDependencies&&h)for(let p of h){let y=a(l,p);i.has(y)||(i.add(y),n.push({name:l,dependency:p})),r.add(p)}if(!f||f.includeDependents&&d)for(let p of d){let y=a(p,l);i.has(y)||(i.add(y),n.push({name:p,dependency:l})),r.add(p)}}if(t){t=Array.isArray(t)?t:[t];for(let f of t){let l=o.bind(void 0,f),h=c(e,f);A_(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=c(e);A_(e,l,f)}return{packages:[...r],dependencies:n};function a(f,l){return`${f}->${l}`}function c(f,l){let h=u(l);if(!s.has(h)){let d=(0,c6.createDependencyMap)(f,l);s.set(h,d)}return s.get(h)}function u(f){return f?[f.withDevDependencies?"dev":"",f.withPeerDependencies?"peer":"",f.withOptionalDependencies?"optional":""].filter(Boolean).join("_")||"prod":"default"}}Is.createPackageGraph=f6;function A_(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,l6.default)(s,n.namePatterns):s;for(;o.length>0;){let a=o.pop();if(i.has(a))continue;let c=new Set,u=[],f=[];if(!n||n.includeDependencies){u=[...t.dependencies.get(a)??[]];for(let l of u)c.add(l)}if(!n||n.includeDependents){f=[...t.dependents.get(a)??[]];for(let l of f)c.add(l)}if(r(a,u,f),i.add(a),c.size>0)for(let l of c)o.push(l)}}});var w_=R(Qr=>{"use strict";var h6=Qr&&Qr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),b_=Qr&&Qr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&h6(t,e,r)};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getDependentMap=void 0;b_(E_(),Qr);b_(dl(),Qr);var d6=dl();function p6(e){return(0,d6.createDependencyMap)(e).dependencies}Qr.getDependentMap=p6});var Aa=R(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.nameAtVersion=void 0;function g6(e,t){return`${e}@${t}`}pl.nameAtVersion=g6});var S_=R(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.parsePnpmLock=void 0;var m6=Aa();function y6(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,m6.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}gl.parsePnpmLock=y6});var C_=R(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.parseNpmLock=void 0;var v6=Aa();function A6(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,v6.nameAtVersion)(r,n.version),n])),type:"success"}}ml.parseNpmLock=A6});var x_=R(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.parseBerryLock=void 0;function E6(e){let t={};if(e)for(let[r,n]of Object.entries(e)){if(r==="__metadata")continue;let i=r.split(", ");for(let s of i){let o=b6(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}yl.parseBerryLock=E6;function b6(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var P_=R(($J,O_)=>{O_.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=require("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(c,u){function f(l,h){try{var d=a[l](h),p=d.value}catch(y){u(y);return}if(d.done)c(p);else return i.default.resolve(p).then(function(y){f("next",y)},function(y){f("throw",y)})}return f("next")})}}},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(u,f){super(u),this.code=f}}t.MessageError=n;class i extends n{constructor(u,f,l){super(u,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(u,f){super(u),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=H(r(1))}let s=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,Pe=ft.dest,Ks=ft.type,Yt=ft.onFresh||sr,Ye=ft.onDone||sr;if(Ie.has(Pe.toLowerCase())?te.verbose(`The case-insensitive file ${Pe} shouldn't be copied twice in one bulk copy`):Ie.add(Pe.toLowerCase()),Ks==="symlink"){yield K((v||A()).default.dirname(Pe)),Yt(),xt.symlink.push({dest:Pe,linkname:Be}),Ye();return}if(Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ve=yield B(Be),tn;Ve.isDirectory()&&(tn=yield ve(Be));let $t;try{$t=yield B(Pe)}catch(Rt){if(Rt.code!=="ENOENT")throw Rt}if($t){let Rt=Ve.isSymbolicLink()&&$t.isSymbolicLink(),rn=Ve.isDirectory()&&$t.isDirectory(),_r=Ve.isFile()&&$t.isFile();if(_r&&je.has(Pe)){Ye(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(_r&&Ve.size===$t.size&&(0,(X||he()).fileDatesEqual)(Ve.mtime,$t.mtime)){Ye(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ve.size,+Ve.mtime));return}if(Rt){let ht=yield Y(Be);if(ht===(yield Y(Pe))){Ye(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,ht));return}}if(rn){let ht=yield ve(Pe);Ni(tn,"src files not initialised");for(var xr=ht,En=Array.isArray(xr),Vt=0,xr=En?xr:xr[Symbol.iterator]();;){var Mi;if(En){if(Vt>=xr.length)break;Mi=xr[Vt++]}else{if(Vt=xr.next(),Vt.done)break;Mi=Vt.value}let Sn=Mi;if(tn.indexOf(Sn)<0){let nn=(v||A()).default.join(Pe,Sn);if(J.add(nn),(yield B(nn)).isDirectory())for(var Or=yield ve(nn),bn=Array.isArray(Or),Kt=0,Or=bn?Or:Or[Symbol.iterator]();;){var ji;if(bn){if(Kt>=Or.length)break;ji=Or[Kt++]}else{if(Kt=Or.next(),Kt.done)break;ji=Kt.value}let Hl=ji;J.add((v||A()).default.join(nn,Hl))}}}}}if($t&&$t.isSymbolicLink()&&(yield(0,(X||he()).unlink)(Pe),$t=null),Ve.isSymbolicLink()){Yt();let Rt=yield Y(Be);xt.symlink.push({dest:Pe,linkname:Rt}),Ye()}else if(Ve.isDirectory()){$t||(te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe));let Rt=Pe.split((v||A()).default.sep);for(;Rt.length;)Ie.add(Rt.join((v||A()).default.sep).toLowerCase()),Rt.pop();Ni(tn,"src files not initialised");let rn=tn.length;rn||Ye();for(var Pr=tn,wn=Array.isArray(Pr),Xt=0,Pr=wn?Pr:Pr[Symbol.iterator]();;){var _t;if(wn){if(Xt>=Pr.length)break;_t=Pr[Xt++]}else{if(Xt=Pr.next(),Xt.done)break;_t=Xt.value}let _r=_t;ie.push({dest:(v||A()).default.join(Pe,_r),onFresh:Yt,onDone:function(ht){function Sn(){return ht.apply(this,arguments)}return Sn.toString=function(){return ht.toString()},Sn}(function(){--rn===0&&Ye()}),src:(v||A()).default.join(Be,_r)})}}else if(Ve.isFile())Yt(),xt.file.push({src:Be,dest:Pe,atime:Ve.atime,mtime:Ve.mtime,mode:Ve.mode}),Ye();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var zt;if(Ne){if(Re>=Fe.length)break;zt=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;zt=Re.value}let Te=zt,ft=Te.onDone;Te.onDone=function(){Q.onProgress(Te.dest),ft&&ft()}}Q.onStart(ie.length);let xt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Ot=je,An=Array.isArray(Ot),Sr=0,Ot=An?Ot:Ot[Symbol.iterator]();;){var ti;if(An){if(Sr>=Ot.length)break;ti=Ot[Sr++]}else{if(Sr=Ot.next(),Sr.done)break;ti=Sr.value}let Te=ti;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var Pt=J,Vs=Array.isArray(Pt),Cr=0,Pt=Vs?Pt:Pt[Symbol.iterator]();;){var ri;if(Vs){if(Cr>=Pt.length)break;ri=Pt[Cr++]}else{if(Cr=Pt.next(),Cr.done)break;ri=Cr.value}let Te=ri;Ie.has(Te.toLowerCase())&&J.delete(Te)}return xt});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),o=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J,te){let xe=(()=>{var Te=(0,(n||i()).default)(function*(ft){let Be=ft.src,Pe=ft.dest,Ks=ft.onFresh||sr,Yt=ft.onDone||sr;if(Ie.has(Pe.toLowerCase())){Yt();return}if(Ie.add(Pe.toLowerCase()),Q.ignoreBasenames.indexOf((v||A()).default.basename(Be))>=0)return;let Ye=yield B(Be),Ve;Ye.isDirectory()&&(Ve=yield ve(Be));let tn=yield z(Pe);if(tn){let _t=yield B(Pe),Rt=Ye.isSymbolicLink()&&_t.isSymbolicLink(),rn=Ye.isDirectory()&&_t.isDirectory(),_r=Ye.isFile()&&_t.isFile();if(Ye.mode!==_t.mode)try{yield I(Pe,Ye.mode)}catch(ht){te.verbose(ht)}if(_r&&je.has(Pe)){Yt(),te.verbose(te.lang("verboseFileSkipArtifact",Be));return}if(_r&&Ye.ino!==null&&Ye.ino===_t.ino){Yt(),te.verbose(te.lang("verboseFileSkip",Be,Pe,Ye.ino));return}if(Rt){let ht=yield Y(Be);if(ht===(yield Y(Pe))){Yt(),te.verbose(te.lang("verboseFileSkipSymlink",Be,Pe,ht));return}}if(rn){let ht=yield ve(Pe);Ni(Ve,"src files not initialised");for(var Vt=ht,$t=Array.isArray(Vt),En=0,Vt=$t?Vt:Vt[Symbol.iterator]();;){var xr;if($t){if(En>=Vt.length)break;xr=Vt[En++]}else{if(En=Vt.next(),En.done)break;xr=En.value}let Sn=xr;if(Ve.indexOf(Sn)<0){let nn=(v||A()).default.join(Pe,Sn);if(J.add(nn),(yield B(nn)).isDirectory())for(var Kt=yield ve(nn),Mi=Array.isArray(Kt),bn=0,Kt=Mi?Kt:Kt[Symbol.iterator]();;){var Or;if(Mi){if(bn>=Kt.length)break;Or=Kt[bn++]}else{if(bn=Kt.next(),bn.done)break;Or=bn.value}let Hl=Or;J.add((v||A()).default.join(nn,Hl))}}}}}if(Ye.isSymbolicLink()){Ks();let _t=yield Y(Be);xt.symlink.push({dest:Pe,linkname:_t}),Yt()}else if(Ye.isDirectory()){te.verbose(te.lang("verboseFileFolder",Pe)),yield K(Pe);let _t=Pe.split((v||A()).default.sep);for(;_t.length;)Ie.add(_t.join((v||A()).default.sep).toLowerCase()),_t.pop();Ni(Ve,"src files not initialised");let Rt=Ve.length;Rt||Yt();for(var Xt=Ve,ji=Array.isArray(Xt),wn=0,Xt=ji?Xt:Xt[Symbol.iterator]();;){var Pr;if(ji){if(wn>=Xt.length)break;Pr=Xt[wn++]}else{if(wn=Xt.next(),wn.done)break;Pr=wn.value}let rn=Pr;ie.push({onFresh:Ks,src:(v||A()).default.join(Be,rn),dest:(v||A()).default.join(Pe,rn),onDone:function(_r){function ht(){return _r.apply(this,arguments)}return ht.toString=function(){return _r.toString()},ht}(function(){--Rt===0&&Yt()})})}}else if(Ye.isFile())Ks(),xt.link.push({src:Be,dest:Pe,removeDest:tn}),Yt();else throw new Error(`unsure how to copy this: ${Be}`)});return function(Be){return Te.apply(this,arguments)}})(),je=new Set(Q.artifactFiles||[]),Ie=new Set;for(var Fe=ie,Ne=Array.isArray(Fe),Re=0,Fe=Ne?Fe:Fe[Symbol.iterator]();;){var zt;if(Ne){if(Re>=Fe.length)break;zt=Fe[Re++]}else{if(Re=Fe.next(),Re.done)break;zt=Re.value}let Te=zt,ft=Te.onDone||sr;Te.onDone=function(){Q.onProgress(Te.dest),ft()}}Q.onStart(ie.length);let xt={file:[],symlink:[],link:[]};for(;ie.length;){let Te=ie.splice(0,Me);yield Promise.all(Te.map(xe))}for(var Ot=je,An=Array.isArray(Ot),Sr=0,Ot=An?Ot:Ot[Symbol.iterator]();;){var ti;if(An){if(Sr>=Ot.length)break;ti=Ot[Sr++]}else{if(Sr=Ot.next(),Sr.done)break;ti=Sr.value}let Te=ti;J.has(Te)&&(te.verbose(te.lang("verboseFilePhantomExtraneous",Te)),J.delete(Te))}for(var Pt=J,Vs=Array.isArray(Pt),Cr=0,Pt=Vs?Pt:Pt[Symbol.iterator]();;){var ri;if(Vs){if(Cr>=Pt.length)break;ri=Pt[Cr++]}else{if(Cr=Pt.next(),Cr.done)break;ri=Cr.value}let Te=ri;Ie.has(Te.toLowerCase())&&J.delete(Te)}return xt});return function(Q,J,te,xe){return ge.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||sr,onProgress:J&&J.onProgress||sr,possibleExtraneous:J?J.possibleExtraneous:new Set,ignoreBasenames:J&&J.ignoreBasenames||[],artifactFiles:J&&J.artifactFiles||[]},xe=yield s(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.file,Ie=new Map;yield(w||T()).queue(je,(()=>{var Re=(0,(n||i()).default)(function*(Fe){let zt;for(;zt=Ie.get(Fe.dest);)yield zt;Q.verbose(Q.lang("verboseFileCopy",Fe.src,Fe.dest));let xt=(0,(X||he()).copyFile)(Fe,function(){return Ie.delete(Fe.dest)});return Ie.set(Fe.dest,xt),te.onProgress(Fe.dest),xt});return function(Fe){return Re.apply(this,arguments)}})(),Me);let Ne=xe.symlink;yield(w||T()).queue(Ne,function(Re){let Fe=(v||A()).default.resolve((v||A()).default.dirname(Re.dest),Re.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Re.dest,Fe)),d(Fe,Re.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),c=t.hardlinkBulk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J){let te={onStart:J&&J.onStart||sr,onProgress:J&&J.onProgress||sr,possibleExtraneous:J?J.possibleExtraneous:new Set,artifactFiles:J&&J.artifactFiles||[],ignoreBasenames:[]},xe=yield o(ie,te,te.possibleExtraneous,Q);te.onStart(xe.file.length+xe.symlink.length+xe.link.length);let je=xe.link;yield(w||T()).queue(je,(()=>{var Ne=(0,(n||i()).default)(function*(Re){Q.verbose(Q.lang("verboseFileLink",Re.src,Re.dest)),Re.removeDest&&(yield(0,(X||he()).unlink)(Re.dest)),yield ne(Re.src,Re.dest)});return function(Re){return Ne.apply(this,arguments)}})(),Me);let Ie=xe.symlink;yield(w||T()).queue(Ie,function(Ne){let Re=(v||A()).default.resolve((v||A()).default.dirname(Ne.dest),Ne.linkname);return Q.verbose(Q.lang("verboseFileSymlink",Ne.dest,Re)),d(Re,Ne.dest)})});return function(Q,J,te){return ge.apply(this,arguments)}})(),u=t.readFileAny=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;if(yield z(je))return Ul(je)}return null});return function(Q){return ge.apply(this,arguments)}})(),f=t.readJson=(()=>{var ge=(0,(n||i()).default)(function*(ie){return(yield l(ie)).object});return function(Q){return ge.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield Ul(ie);try{return{object:(0,(U||V()).default)(JSON.parse(Ys(Q))),content:Q}}catch(J){throw J.message=`${ie}: ${J.message}`,J}});return function(Q){return ge.apply(this,arguments)}})(),h=t.find=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){let J=Q.split((v||A()).default.sep);for(;J.length;){let te=J.concat(ie).join((v||A()).default.sep);if(yield z(te))return te;J.pop()}return!1});return function(Q,J){return ge.apply(this,arguments)}})(),d=t.symlink=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){try{if((yield B(Q)).isSymbolicLink()&&(yield ue(Q))===ie)return}catch(J){if(J.code!=="ENOENT")throw J}if(yield(0,(X||he()).unlink)(Q),process.platform==="win32")yield Qe(ie,Q,"junction");else{let J;try{J=(v||A()).default.relative((P||L()).default.realpathSync((v||A()).default.dirname(Q)),(P||L()).default.realpathSync(ie))}catch(te){if(te.code!=="ENOENT")throw te;J=(v||A()).default.relative((v||A()).default.dirname(Q),ie)}yield Qe(J||".",Q)}});return function(Q,J){return ge.apply(this,arguments)}})(),p=t.walk=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q,J=new Set){let te=[],xe=yield ve(ie);J.size&&(xe=xe.filter(function(Fe){return!J.has(Fe)}));for(var Ne=xe,je=Array.isArray(Ne),Ie=0,Ne=je?Ne:Ne[Symbol.iterator]();;){var Re;if(je){if(Ie>=Ne.length)break;Re=Ne[Ie++]}else{if(Ie=Ne.next(),Ie.done)break;Re=Ie.value}let Fe=Re,zt=Q?(v||A()).default.join(Q,Fe):Fe,xt=(v||A()).default.join(ie,Fe),An=yield B(xt);te.push({relative:zt,basename:Fe,absolute:xt,mtime:+An.mtime}),An.isDirectory()&&(te=te.concat(yield p(xt,zt,J)))}return te});return function(Q,J){return ge.apply(this,arguments)}})(),y=t.getFileSizeOnDisk=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=yield B(ie),J=Q.size,te=Q.blksize;return Math.ceil(J/te)*te});return function(Q){return ge.apply(this,arguments)}})(),m=(()=>{var ge=(0,(n||i()).default)(function*(ie){if(!(yield z(ie)))return;let Q=yield ee(ie);for(let J=0;J<Q.length;++J){if(Q[J]===SF)return`\r
70
+ `;if(Q[J]===CF)return`
71
71
  `}});return function(Q){return ge.apply(this,arguments)}})(),O=t.writeFilePreservingEol=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q){let J=(yield m(ie))||(x||g()).default.EOL;J!==`
72
- `&&(Q=Q.replace(/\n/g,J)),yield re(ie,Q)});return function(Q,J){return ge.apply(this,arguments)}})(),S=t.hardlinksWork=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q="test-file"+Math.random(),J=(v||A()).default.join(ie,Q),te=(v||A()).default.join(ie,Q+"-link");try{yield re(J,"test"),yield ne(J,te)}catch{return!1}finally{yield(0,(X||he()).unlink)(J),yield(0,(X||he()).unlink)(te)}return!0});return function(Q){return ge.apply(this,arguments)}})(),k=t.makeTempDir=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=(v||A()).default.join((x||g()).default.tmpdir(),`yarn-${ie||""}-${Date.now()}-${Math.random()}`);return yield(0,(X||he()).unlink)(Q),yield K(Q),Q});return function(Q){return ge.apply(this,arguments)}})(),F=t.readFirstAvailableStream=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;try{let Ie=yield G(je,"r");return(_||L()).default.createReadStream(je,{fd:Ie})}catch{}}return null});return function(Q){return ge.apply(this,arguments)}})(),b=t.getFirstSuitableFolder=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q=W.W_OK|W.X_OK){let J={skipped:[],folder:null};for(var je=ie,te=Array.isArray(je),xe=0,je=te?je:je[Symbol.iterator]();;){var Ie;if(te){if(xe>=je.length)break;Ie=je[xe++]}else{if(xe=je.next(),xe.done)break;Ie=xe.value}let Ne=Ie;try{return yield K(Ne),yield I(Ne,Q),J.folder=Ne,J}catch(Re){J.skipped.push({error:Re,folder:Ne})}}return J});return function(Q){return ge.apply(this,arguments)}})();t.copy=xa,t.readFile=Ml,t.readFileRaw=uF,t.normalizeOS=Im;var _;function L(){return _=H(r(3))}var D;function N(){return D=H(r(75))}var x;function g(){return x=H(r(36))}var v;function A(){return v=H(r(0))}var C;function E(){return C=H(r(84))}var w;function T(){return w=q(r(40))}var $;function M(){return $=r(40)}var U;function V(){return U=H(r(20))}var X;function he(){return X=r(164)}function q(ge){if(ge&&ge.__esModule)return ge;var ie={};if(ge!=null)for(var Q in ge)Object.prototype.hasOwnProperty.call(ge,Q)&&(ie[Q]=ge[Q]);return ie.default=ge,ie}function H(ge){return ge&&ge.__esModule?ge:{default:ge}}let W=t.constants=typeof(_||L()).default.constants<"u"?(_||L()).default.constants:{R_OK:(_||L()).default.R_OK,W_OK:(_||L()).default.W_OK,X_OK:(_||L()).default.X_OK},Z=t.lockQueue=new(C||E()).default("fs lock"),ee=t.readFileBuffer=(0,($||M()).promisify)((_||L()).default.readFile),G=t.open=(0,($||M()).promisify)((_||L()).default.open),re=t.writeFile=(0,($||M()).promisify)((_||L()).default.writeFile),Y=t.readlink=(0,($||M()).promisify)((_||L()).default.readlink),ue=t.realpath=(0,($||M()).promisify)((_||L()).default.realpath),ve=t.readdir=(0,($||M()).promisify)((_||L()).default.readdir),De=t.rename=(0,($||M()).promisify)((_||L()).default.rename),I=t.access=(0,($||M()).promisify)((_||L()).default.access),j=t.stat=(0,($||M()).promisify)((_||L()).default.stat),K=t.mkdirp=(0,($||M()).promisify)(r(116)),z=t.exists=(0,($||M()).promisify)((_||L()).default.exists,!0),B=t.lstat=(0,($||M()).promisify)((_||L()).default.lstat),se=t.chmod=(0,($||M()).promisify)((_||L()).default.chmod),ne=t.link=(0,($||M()).promisify)((_||L()).default.link),pe=t.glob=(0,($||M()).promisify)((D||N()).default);t.unlink=(X||he()).unlink;let Me=(_||L()).default.copyFile?128:4,Qe=(0,($||M()).promisify)((_||L()).default.symlink),Ni=r(7),Ys=r(122),ir=()=>{};function xa(ge,ie,Q){return a([{src:ge,dest:ie}],Q)}function $i(ge,ie){return new Promise((Q,J)=>{(_||L()).default.readFile(ge,ie,function(te,xe){te?J(te):Q(xe)})})}function Ml(ge){return $i(ge,"utf8").then(Im)}function uF(ge){return $i(ge,"binary")}function Im(ge){return ge.replace(/\r\n/g,`
73
- `)}let cF=13,lF=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=I;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,c=o.getConfigDir,u=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",p=t.MANIFEST_FIELDS=[h,...l],d=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",y=t.YARN_REGISTRY="https://registry.yarnpkg.com",m=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",O=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",S=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",k=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",F=t.CACHE_VERSION=2,b=t.LOCKFILE_VERSION=1,_=t.NETWORK_CONCURRENCY=8,L=t.NETWORK_TIMEOUT=30*1e3,D=t.CHILD_CONCURRENCY=5,N=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let K=[a()];return process.getuid&&K.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),K.push(i.join(n.tmpdir(),".yarn-cache")),K}let g=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),v=t.CONFIG_DIRECTORY=c(),A=t.DATA_DIRECTORY=u(),C=t.LINK_REGISTRY_DIRECTORY=i.join(A,"link"),E=t.GLOBAL_MODULE_DIRECTORY=i.join(A,"global"),w=t.NODE_BIN_PATH=process.execPath,T=t.YARN_BIN_PATH=$();function $(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let M=t.NODE_MODULES_FOLDER="node_modules",U=t.NODE_PACKAGE_JSON="package.json",V=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,X=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),he=t.META_FOLDER=".yarn-meta",q=t.INTEGRITY_FILENAME=".yarn-integrity",H=t.LOCKFILE_FILENAME="yarn.lock",W=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",G=t.NPM_LOCK_FILENAME="package-lock.json",re=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",Y=t.DEFAULT_INDENT=" ",ue=t.SINGLE_INSTANCE_PORT=31997,ve=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",De=t.ENV_PATH_KEY=I(process.platform,process.env);function I(K,z){let B="PATH";if(K==="win32"){B="Path";for(let se in z)se.toLowerCase()==="path"&&(B=se)}return B}let j=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,c,u,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var p;if(o===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[a,c,u,f,l,h],y=0;p=new Error(o.replace(/%s/g,function(){return d[y++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}};e.exports=i},,function(e,t){e.exports=require("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=c,t.hyphenate=u,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(p,d){let y=Math.min(p.length,d.length);for(let m=0;m<y;m++){let O=p.charCodeAt(m),S=d.charCodeAt(m);if(O!==S)return O-S}return p.length-d.length}function s(p){let d=[];if(p)for(let y in p)d.push([y,p[y]]);return d}function o(p,d){return p.startsWith(d)&&(p=p.slice(d.length)),p}function a(p,d){return p.endsWith(d)?p.slice(0,-d.length):p}function c(p,d){return p.endsWith(d)?p:p+d}function u(p){return p.replace(/[A-Z]/g,d=>"-"+d.charAt(0).toLowerCase())}function f(p){return/[A-Z]/.test(p)?null:n(p)}function l(p,d){if(p.length!==d.length)return!1;for(let y=0,m=p.length;y<m;y++)if(p[y]!==d[y])return!1;return!0}function h(p){return new Promise(d=>{setTimeout(d,p)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(c){return n[c]||(n[c]=o&&s[c]||(o?s:i)("Symbol."+c))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=F(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return F(s||o()).default}});var a;function c(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return F(a||c()).default}}),t.implodeEntry=v,t.explodeEntry=A;var u;function f(){return u=r(12)}var l;function h(){return l=r(29)}var p;function d(){return p=F(r(81))}var y;function m(){return y=r(6)}var O;function S(){return O=k(r(5))}function k(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(w[T]=E[T]);return w.default=E,w}function F(E){return E&&E.__esModule?E:{default:E}}let b=r(7),_=r(0),L=r(55);function D(E){return(0,(l||h()).normalizePattern)(E).name}function N(E){return E&&Object.keys(E).length?E:void 0}function x(E){return E.resolved||(E.reference&&E.hash?`${E.reference}#${E.hash}`:null)}function g(E){return E.toString().split(" ").sort().join(" ")}function v(E,w){let T=D(E),$=w.integrity?g(w.integrity):"",M={name:T===w.name?void 0:w.name,version:w.version,uid:w.uid===w.version?void 0:w.uid,resolved:w.resolved,registry:w.registry==="npm"?void 0:w.registry,dependencies:N(w.dependencies),optionalDependencies:N(w.optionalDependencies),permissions:N(w.permissions),prebuiltVariants:N(w.prebuiltVariants)};return $&&(M.integrity=$),M}function A(E,w){w.optionalDependencies=w.optionalDependencies||{},w.dependencies=w.dependencies||{},w.uid=w.uid||w.version,w.permissions=w.permissions||{},w.registry=w.registry||"npm",w.name=w.name||D(E);let T=w.integrity;return T&&T.isIntegrity&&(w.integrity=L.parse(T)),w}class C{constructor({cache:w,source:T,parseResultType:$}={}){this.source=T||"",this.cache=w,this.parseResultType=$}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let w in this.cache)if(!/^.*@(file:|http)/.test(w)&&this.cache[w]&&!this.cache[w].integrity)return!0;return!1}static fromDirectory(w,T){return(0,(n||i()).default)(function*(){let $=_.join(w,(y||m()).LOCKFILE_FILENAME),M,U="",V;return(yield(O||S()).exists($))?(U=yield(O||S()).readFile($),V=(0,(p||d()).default)(U,$),T&&(V.type==="merge"?T.info(T.lang("lockfileMerged")):V.type==="conflict"&&T.warn(T.lang("lockfileConflict"))),M=V.object):T&&T.info(T.lang("noLockfileFound")),new C({cache:M,source:U,parseResultType:V&&V.type})})()}getLocked(w){let T=this.cache;if(!T)return;let $=w in T&&T[w];if(typeof $=="string")return this.getLocked($);if($)return A(w,$),$}removePattern(w){let T=this.cache;T&&delete T[w]}getLockfile(w){let T={},$=new Map,M=Object.keys(w).sort((u||f()).sortAlpha);for(var X=M,U=Array.isArray(X),V=0,X=U?X:X[Symbol.iterator]();;){var he;if(U){if(V>=X.length)break;he=X[V++]}else{if(V=X.next(),V.done)break;he=V.value}let q=he,H=w[q],W=H._remote,Z=H._reference;b(Z,"Package is missing a reference"),b(W,"Package is missing a remote");let ee=x(W),G=ee&&$.get(ee);if(G){T[q]=G,!G.name&&D(q)!==H.name&&(G.name=H.name);continue}let re=v(q,{name:H.name,version:H.version,uid:H._uid,resolved:W.resolved,integrity:W.integrity,registry:W.registry,dependencies:H.dependencies,peerDependencies:H.peerDependencies,optionalDependencies:H.optionalDependencies,permissions:Z.permissions,prebuiltVariants:H.prebuiltVariants});T[q]=re,ee&&$.set(ee,re)}return T}}t.default=C},,,function(e,t){e.exports=require("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var c;if(s){if(o>=a.length)break;c=a[o++]}else{if(o=a.next(),o.done)break;c=o.value}n(c)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let u in i)n(i[u]);return i}},,function(e,t){e.exports=require("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,c=!1;a[0]==="@"&&(c=!0,a=a.slice(1));let u=a.split("@");return u.length>1&&(a=u.shift(),o=u.join("@"),o?s=!0:o="*"),c&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,c){for(var u in a)c[u]=a[u]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,c,u){return i(a,c,u)}s(i,o),o.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,c,u)},o.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return c!==void 0?typeof u=="string"?f.fill(c,u):f.fill(c):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=require("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...c){return new Promise(function(u,f){c.push(function(l,...h){let p=h;h.length<=1&&(p=h[0]),a&&(p=l,l=null),l?f(l):u(p)}),o.apply(null,c)})}}function s(o,a,c=1/0){c=Math.min(c,o.length),o=o.slice();let u=[],f=o.length;return f?new Promise((l,h)=>{for(let d=0;d<c;d++)p();function p(){let d=o.shift();a(d).then(function(m){u.push(m),f--,f===0?l(u):o.length&&p()},h)}}):Promise.resolve(u)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),c="prototype",u=function(f,l,h){var p=f&u.F,d=f&u.G,y=f&u.S,m=f&u.P,O=f&u.B,S=f&u.W,k=d?i:i[l]||(i[l]={}),F=k[c],b=d?n:y?n[l]:(n[l]||{})[c],_,L,D;d&&(h=l);for(_ in h)L=!p&&b&&b[_]!==void 0,!(L&&a(k,_))&&(D=L?b[_]:h[_],k[_]=d&&typeof b[_]!="function"?h[_]:O&&L?s(D,n):S&&b[_]==D?function(N){var x=function(g,v,A){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(g);case 2:return new N(g,v)}return new N(g,v,A)}return N.apply(this,arguments)};return x[c]=N[c],x}(D):m&&typeof D=="function"?s(Function.call,D):D,m&&((k.virtual||(k.virtual={}))[_]=D,f&u.R&&F&&!F[_]&&o(F,_,D)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(0),a=t.home=r(36).homedir(),c=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=c},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,c){return i.call(s,a,c)};case 3:return function(a,c,u){return i.call(s,a,c,u)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(c,u,f){if(n(c),u=s(u,!0),n(f),i)try{return o(c,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(c[u]=f.value),c}},,,,function(e,t){e.exports=require("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,c=/^([^-]+)-([^?]+)([?\S*]*)$/,u=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(g,v){let A=!!(v&&v.strict);this.source=g.trim();let C=this.source.match(A?u:c);if(!C||A&&!o.some(w=>w===C[1]))return;this.algorithm=C[1],this.digest=C[2];let E=C[3];this.options=E?E.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(g){if(g&&g.strict&&!(o.some(A=>A===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(A=>A.match(f))))return"";let v=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${v}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(g){g=g||{};let v=g.sep||" ";return g.strict&&(v=v.replace(/\S+/g," ")),Object.keys(this).map(A=>this[A].map(C=>l.prototype.toString.call(C,g)).filter(C=>C.length).join(v)).filter(A=>A.length).join(v)}concat(g,v){let A=typeof g=="string"?g:y(g,v);return p(`${this.toString(v)} ${A}`,v)}hexDigest(){return p(this,{single:!0}).hexDigest()}match(g,v){let A=p(g,v),C=A.pickAlgorithm(v);return this[C]&&A[C]&&this[C].find(E=>A[C].find(w=>E.digest===w.digest))||!1}pickAlgorithm(g){let v=g&&g.pickAlgorithm||N,A=Object.keys(this);if(!A.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return A.reduce((C,E)=>v(C,E)||C)}}e.exports.parse=p;function p(x,g){if(g=g||{},typeof x=="string")return d(x,g);if(x.algorithm&&x.digest){let v=new h;return v[x.algorithm]=[x],d(y(v,g),g)}else return d(y(x,g),g)}function d(x,g){return g.single?new l(x,g):x.trim().split(/\s+/).reduce((v,A)=>{let C=new l(A,g);if(C.algorithm&&C.digest){let E=C.algorithm;v[E]||(v[E]=[]),v[E].push(C)}return v},new h)}e.exports.stringify=y;function y(x,g){return x.algorithm&&x.digest?l.prototype.toString.call(x,g):typeof x=="string"?y(p(x,g),g):h.prototype.toString.call(x,g)}e.exports.fromHex=m;function m(x,g,v){let A=v&&v.options&&v.options.length?`?${v.options.join("?")}`:"";return p(`${g}-${n.from(x,"hex").toString("base64")}${A}`,v)}e.exports.fromData=O;function O(x,g){g=g||{};let v=g.algorithms||["sha512"],A=g.options&&g.options.length?`?${g.options.join("?")}`:"";return v.reduce((C,E)=>{let w=i.createHash(E).update(x).digest("base64"),T=new l(`${E}-${w}${A}`,g);if(T.algorithm&&T.digest){let $=T.algorithm;C[$]||(C[$]=[]),C[$].push(T)}return C},new h)}e.exports.fromStream=S;function S(x,g){g=g||{};let v=g.Promise||Promise,A=b(g);return new v((C,E)=>{x.pipe(A),x.on("error",E),A.on("error",E);let w;A.on("integrity",T=>{w=T}),A.on("end",()=>C(w)),A.on("data",()=>{})})}e.exports.checkData=k;function k(x,g,v){if(v=v||{},g=p(g,v),!Object.keys(g).length){if(v.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let A=g.pickAlgorithm(v),C=i.createHash(A).update(x).digest("base64"),E=p({algorithm:A,digest:C}),w=E.match(g,v);if(w||!v.error)return w;if(typeof v.size=="number"&&x.length!==v.size){let T=new Error(`data size mismatch when checking ${g}.
72
+ `&&(Q=Q.replace(/\n/g,J)),yield re(ie,Q)});return function(Q,J){return ge.apply(this,arguments)}})(),S=t.hardlinksWork=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q="test-file"+Math.random(),J=(v||A()).default.join(ie,Q),te=(v||A()).default.join(ie,Q+"-link");try{yield re(J,"test"),yield ne(J,te)}catch{return!1}finally{yield(0,(X||he()).unlink)(J),yield(0,(X||he()).unlink)(te)}return!0});return function(Q){return ge.apply(this,arguments)}})(),k=t.makeTempDir=(()=>{var ge=(0,(n||i()).default)(function*(ie){let Q=(v||A()).default.join((x||g()).default.tmpdir(),`yarn-${ie||""}-${Date.now()}-${Math.random()}`);return yield(0,(X||he()).unlink)(Q),yield K(Q),Q});return function(Q){return ge.apply(this,arguments)}})(),F=t.readFirstAvailableStream=(()=>{var ge=(0,(n||i()).default)(function*(ie){for(var te=ie,Q=Array.isArray(te),J=0,te=Q?te:te[Symbol.iterator]();;){var xe;if(Q){if(J>=te.length)break;xe=te[J++]}else{if(J=te.next(),J.done)break;xe=J.value}let je=xe;try{let Ie=yield G(je,"r");return(P||L()).default.createReadStream(je,{fd:Ie})}catch{}}return null});return function(Q){return ge.apply(this,arguments)}})(),b=t.getFirstSuitableFolder=(()=>{var ge=(0,(n||i()).default)(function*(ie,Q=W.W_OK|W.X_OK){let J={skipped:[],folder:null};for(var je=ie,te=Array.isArray(je),xe=0,je=te?je:je[Symbol.iterator]();;){var Ie;if(te){if(xe>=je.length)break;Ie=je[xe++]}else{if(xe=je.next(),xe.done)break;Ie=xe.value}let Ne=Ie;try{return yield K(Ne),yield I(Ne,Q),J.folder=Ne,J}catch(Re){J.skipped.push({error:Re,folder:Ne})}}return J});return function(Q){return ge.apply(this,arguments)}})();t.copy=Pa,t.readFile=Ul,t.readFileRaw=wF,t.normalizeOS=Vm;var P;function L(){return P=H(r(3))}var D;function N(){return D=H(r(75))}var x;function g(){return x=H(r(36))}var v;function A(){return v=H(r(0))}var C;function E(){return C=H(r(84))}var w;function T(){return w=q(r(40))}var $;function M(){return $=r(40)}var U;function V(){return U=H(r(20))}var X;function he(){return X=r(164)}function q(ge){if(ge&&ge.__esModule)return ge;var ie={};if(ge!=null)for(var Q in ge)Object.prototype.hasOwnProperty.call(ge,Q)&&(ie[Q]=ge[Q]);return ie.default=ge,ie}function H(ge){return ge&&ge.__esModule?ge:{default:ge}}let W=t.constants=typeof(P||L()).default.constants<"u"?(P||L()).default.constants:{R_OK:(P||L()).default.R_OK,W_OK:(P||L()).default.W_OK,X_OK:(P||L()).default.X_OK},Z=t.lockQueue=new(C||E()).default("fs lock"),ee=t.readFileBuffer=(0,($||M()).promisify)((P||L()).default.readFile),G=t.open=(0,($||M()).promisify)((P||L()).default.open),re=t.writeFile=(0,($||M()).promisify)((P||L()).default.writeFile),Y=t.readlink=(0,($||M()).promisify)((P||L()).default.readlink),ue=t.realpath=(0,($||M()).promisify)((P||L()).default.realpath),ve=t.readdir=(0,($||M()).promisify)((P||L()).default.readdir),De=t.rename=(0,($||M()).promisify)((P||L()).default.rename),I=t.access=(0,($||M()).promisify)((P||L()).default.access),j=t.stat=(0,($||M()).promisify)((P||L()).default.stat),K=t.mkdirp=(0,($||M()).promisify)(r(116)),z=t.exists=(0,($||M()).promisify)((P||L()).default.exists,!0),B=t.lstat=(0,($||M()).promisify)((P||L()).default.lstat),se=t.chmod=(0,($||M()).promisify)((P||L()).default.chmod),ne=t.link=(0,($||M()).promisify)((P||L()).default.link),de=t.glob=(0,($||M()).promisify)((D||N()).default);t.unlink=(X||he()).unlink;let Me=(P||L()).default.copyFile?128:4,Qe=(0,($||M()).promisify)((P||L()).default.symlink),Ni=r(7),Ys=r(122),sr=()=>{};function Pa(ge,ie,Q){return a([{src:ge,dest:ie}],Q)}function $i(ge,ie){return new Promise((Q,J)=>{(P||L()).default.readFile(ge,ie,function(te,xe){te?J(te):Q(xe)})})}function Ul(ge){return $i(ge,"utf8").then(Vm)}function wF(ge){return $i(ge,"binary")}function Vm(ge){return ge.replace(/\r\n/g,`
73
+ `)}let SF=13,CF=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=I;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,c=o.getConfigDir,u=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",d=t.MANIFEST_FIELDS=[h,...l],p=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",y=t.YARN_REGISTRY="https://registry.yarnpkg.com",m=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",O=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",S=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",k=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",F=t.CACHE_VERSION=2,b=t.LOCKFILE_VERSION=1,P=t.NETWORK_CONCURRENCY=8,L=t.NETWORK_TIMEOUT=30*1e3,D=t.CHILD_CONCURRENCY=5,N=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let K=[a()];return process.getuid&&K.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),K.push(i.join(n.tmpdir(),".yarn-cache")),K}let g=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),v=t.CONFIG_DIRECTORY=c(),A=t.DATA_DIRECTORY=u(),C=t.LINK_REGISTRY_DIRECTORY=i.join(A,"link"),E=t.GLOBAL_MODULE_DIRECTORY=i.join(A,"global"),w=t.NODE_BIN_PATH=process.execPath,T=t.YARN_BIN_PATH=$();function $(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let M=t.NODE_MODULES_FOLDER="node_modules",U=t.NODE_PACKAGE_JSON="package.json",V=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,X=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),he=t.META_FOLDER=".yarn-meta",q=t.INTEGRITY_FILENAME=".yarn-integrity",H=t.LOCKFILE_FILENAME="yarn.lock",W=t.METADATA_FILENAME=".yarn-metadata.json",Z=t.TARBALL_FILENAME=".yarn-tarball.tgz",ee=t.CLEAN_FILENAME=".yarnclean",G=t.NPM_LOCK_FILENAME="package-lock.json",re=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",Y=t.DEFAULT_INDENT=" ",ue=t.SINGLE_INSTANCE_PORT=31997,ve=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",De=t.ENV_PATH_KEY=I(process.platform,process.env);function I(K,z){let B="PATH";if(K==="win32"){B="Path";for(let se in z)se.toLowerCase()==="path"&&(B=se)}return B}let j=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,c,u,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[a,c,u,f,l,h],y=0;d=new Error(o.replace(/%s/g,function(){return p[y++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};e.exports=i},,function(e,t){e.exports=require("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=c,t.hyphenate=u,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,p){let y=Math.min(d.length,p.length);for(let m=0;m<y;m++){let O=d.charCodeAt(m),S=p.charCodeAt(m);if(O!==S)return O-S}return d.length-p.length}function s(d){let p=[];if(d)for(let y in d)p.push([y,d[y]]);return p}function o(d,p){return d.startsWith(p)&&(d=d.slice(p.length)),d}function a(d,p){return d.endsWith(p)?d.slice(0,-p.length):d}function c(d,p){return d.endsWith(p)?d:d+p}function u(d){return d.replace(/[A-Z]/g,p=>"-"+p.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,p){if(d.length!==p.length)return!1;for(let y=0,m=d.length;y<m;y++)if(d[y]!==p[y])return!1;return!0}function h(d){return new Promise(p=>{setTimeout(p,d)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(c){return n[c]||(n[c]=o&&s[c]||(o?s:i)("Symbol."+c))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=F(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return F(s||o()).default}});var a;function c(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return F(a||c()).default}}),t.implodeEntry=v,t.explodeEntry=A;var u;function f(){return u=r(12)}var l;function h(){return l=r(29)}var d;function p(){return d=F(r(81))}var y;function m(){return y=r(6)}var O;function S(){return O=k(r(5))}function k(E){if(E&&E.__esModule)return E;var w={};if(E!=null)for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(w[T]=E[T]);return w.default=E,w}function F(E){return E&&E.__esModule?E:{default:E}}let b=r(7),P=r(0),L=r(55);function D(E){return(0,(l||h()).normalizePattern)(E).name}function N(E){return E&&Object.keys(E).length?E:void 0}function x(E){return E.resolved||(E.reference&&E.hash?`${E.reference}#${E.hash}`:null)}function g(E){return E.toString().split(" ").sort().join(" ")}function v(E,w){let T=D(E),$=w.integrity?g(w.integrity):"",M={name:T===w.name?void 0:w.name,version:w.version,uid:w.uid===w.version?void 0:w.uid,resolved:w.resolved,registry:w.registry==="npm"?void 0:w.registry,dependencies:N(w.dependencies),optionalDependencies:N(w.optionalDependencies),permissions:N(w.permissions),prebuiltVariants:N(w.prebuiltVariants)};return $&&(M.integrity=$),M}function A(E,w){w.optionalDependencies=w.optionalDependencies||{},w.dependencies=w.dependencies||{},w.uid=w.uid||w.version,w.permissions=w.permissions||{},w.registry=w.registry||"npm",w.name=w.name||D(E);let T=w.integrity;return T&&T.isIntegrity&&(w.integrity=L.parse(T)),w}class C{constructor({cache:w,source:T,parseResultType:$}={}){this.source=T||"",this.cache=w,this.parseResultType=$}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let w in this.cache)if(!/^.*@(file:|http)/.test(w)&&this.cache[w]&&!this.cache[w].integrity)return!0;return!1}static fromDirectory(w,T){return(0,(n||i()).default)(function*(){let $=P.join(w,(y||m()).LOCKFILE_FILENAME),M,U="",V;return(yield(O||S()).exists($))?(U=yield(O||S()).readFile($),V=(0,(d||p()).default)(U,$),T&&(V.type==="merge"?T.info(T.lang("lockfileMerged")):V.type==="conflict"&&T.warn(T.lang("lockfileConflict"))),M=V.object):T&&T.info(T.lang("noLockfileFound")),new C({cache:M,source:U,parseResultType:V&&V.type})})()}getLocked(w){let T=this.cache;if(!T)return;let $=w in T&&T[w];if(typeof $=="string")return this.getLocked($);if($)return A(w,$),$}removePattern(w){let T=this.cache;T&&delete T[w]}getLockfile(w){let T={},$=new Map,M=Object.keys(w).sort((u||f()).sortAlpha);for(var X=M,U=Array.isArray(X),V=0,X=U?X:X[Symbol.iterator]();;){var he;if(U){if(V>=X.length)break;he=X[V++]}else{if(V=X.next(),V.done)break;he=V.value}let q=he,H=w[q],W=H._remote,Z=H._reference;b(Z,"Package is missing a reference"),b(W,"Package is missing a remote");let ee=x(W),G=ee&&$.get(ee);if(G){T[q]=G,!G.name&&D(q)!==H.name&&(G.name=H.name);continue}let re=v(q,{name:H.name,version:H.version,uid:H._uid,resolved:W.resolved,integrity:W.integrity,registry:W.registry,dependencies:H.dependencies,peerDependencies:H.peerDependencies,optionalDependencies:H.optionalDependencies,permissions:Z.permissions,prebuiltVariants:H.prebuiltVariants});T[q]=re,ee&&$.set(ee,re)}return T}}t.default=C},,,function(e,t){e.exports=require("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var c;if(s){if(o>=a.length)break;c=a[o++]}else{if(o=a.next(),o.done)break;c=o.value}n(c)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let u in i)n(i[u]);return i}},,function(e,t){e.exports=require("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,c=!1;a[0]==="@"&&(c=!0,a=a.slice(1));let u=a.split("@");return u.length>1&&(a=u.shift(),o=u.join("@"),o?s=!0:o="*"),c&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,c){for(var u in a)c[u]=a[u]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,c,u){return i(a,c,u)}s(i,o),o.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,c,u)},o.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return c!==void 0?typeof u=="string"?f.fill(c,u):f.fill(c):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=require("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...c){return new Promise(function(u,f){c.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):u(d)}),o.apply(null,c)})}}function s(o,a,c=1/0){c=Math.min(c,o.length),o=o.slice();let u=[],f=o.length;return f?new Promise((l,h)=>{for(let p=0;p<c;p++)d();function d(){let p=o.shift();a(p).then(function(m){u.push(m),f--,f===0?l(u):o.length&&d()},h)}}):Promise.resolve(u)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),c="prototype",u=function(f,l,h){var d=f&u.F,p=f&u.G,y=f&u.S,m=f&u.P,O=f&u.B,S=f&u.W,k=p?i:i[l]||(i[l]={}),F=k[c],b=p?n:y?n[l]:(n[l]||{})[c],P,L,D;p&&(h=l);for(P in h)L=!d&&b&&b[P]!==void 0,!(L&&a(k,P))&&(D=L?b[P]:h[P],k[P]=p&&typeof b[P]!="function"?h[P]:O&&L?s(D,n):S&&b[P]==D?function(N){var x=function(g,v,A){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(g);case 2:return new N(g,v)}return new N(g,v,A)}return N.apply(this,arguments)};return x[c]=N[c],x}(D):m&&typeof D=="function"?s(Function.call,D):D,m&&((k.virtual||(k.virtual={}))[P]=D,f&u.R&&F&&!F[P]&&o(F,P,D)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(0),a=t.home=r(36).homedir(),c=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=c},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,c){return i.call(s,a,c)};case 3:return function(a,c,u){return i.call(s,a,c,u)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(c,u,f){if(n(c),u=s(u,!0),n(f),i)try{return o(c,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(c[u]=f.value),c}},,,,function(e,t){e.exports=require("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,c=/^([^-]+)-([^?]+)([?\S*]*)$/,u=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(g,v){let A=!!(v&&v.strict);this.source=g.trim();let C=this.source.match(A?u:c);if(!C||A&&!o.some(w=>w===C[1]))return;this.algorithm=C[1],this.digest=C[2];let E=C[3];this.options=E?E.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(g){if(g&&g.strict&&!(o.some(A=>A===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(A=>A.match(f))))return"";let v=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${v}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(g){g=g||{};let v=g.sep||" ";return g.strict&&(v=v.replace(/\S+/g," ")),Object.keys(this).map(A=>this[A].map(C=>l.prototype.toString.call(C,g)).filter(C=>C.length).join(v)).filter(A=>A.length).join(v)}concat(g,v){let A=typeof g=="string"?g:y(g,v);return d(`${this.toString(v)} ${A}`,v)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(g,v){let A=d(g,v),C=A.pickAlgorithm(v);return this[C]&&A[C]&&this[C].find(E=>A[C].find(w=>E.digest===w.digest))||!1}pickAlgorithm(g){let v=g&&g.pickAlgorithm||N,A=Object.keys(this);if(!A.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return A.reduce((C,E)=>v(C,E)||C)}}e.exports.parse=d;function d(x,g){if(g=g||{},typeof x=="string")return p(x,g);if(x.algorithm&&x.digest){let v=new h;return v[x.algorithm]=[x],p(y(v,g),g)}else return p(y(x,g),g)}function p(x,g){return g.single?new l(x,g):x.trim().split(/\s+/).reduce((v,A)=>{let C=new l(A,g);if(C.algorithm&&C.digest){let E=C.algorithm;v[E]||(v[E]=[]),v[E].push(C)}return v},new h)}e.exports.stringify=y;function y(x,g){return x.algorithm&&x.digest?l.prototype.toString.call(x,g):typeof x=="string"?y(d(x,g),g):h.prototype.toString.call(x,g)}e.exports.fromHex=m;function m(x,g,v){let A=v&&v.options&&v.options.length?`?${v.options.join("?")}`:"";return d(`${g}-${n.from(x,"hex").toString("base64")}${A}`,v)}e.exports.fromData=O;function O(x,g){g=g||{};let v=g.algorithms||["sha512"],A=g.options&&g.options.length?`?${g.options.join("?")}`:"";return v.reduce((C,E)=>{let w=i.createHash(E).update(x).digest("base64"),T=new l(`${E}-${w}${A}`,g);if(T.algorithm&&T.digest){let $=T.algorithm;C[$]||(C[$]=[]),C[$].push(T)}return C},new h)}e.exports.fromStream=S;function S(x,g){g=g||{};let v=g.Promise||Promise,A=b(g);return new v((C,E)=>{x.pipe(A),x.on("error",E),A.on("error",E);let w;A.on("integrity",T=>{w=T}),A.on("end",()=>C(w)),A.on("data",()=>{})})}e.exports.checkData=k;function k(x,g,v){if(v=v||{},g=d(g,v),!Object.keys(g).length){if(v.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let A=g.pickAlgorithm(v),C=i.createHash(A).update(x).digest("base64"),E=d({algorithm:A,digest:C}),w=E.match(g,v);if(w||!v.error)return w;if(typeof v.size=="number"&&x.length!==v.size){let T=new Error(`data size mismatch when checking ${g}.
74
74
  Wanted: ${v.size}
75
- Found: ${x.length}`);throw T.code="EBADSIZE",T.found=x.length,T.expected=v.size,T.sri=g,T}else{let T=new Error(`Integrity checksum failed when using ${A}: Wanted ${g}, but got ${E}. (${x.length} bytes)`);throw T.code="EINTEGRITY",T.found=E,T.expected=g,T.algorithm=A,T.sri=g,T}}e.exports.checkStream=F;function F(x,g,v){v=v||{};let A=v.Promise||Promise,C=b(Object.assign({},v,{integrity:g}));return new A((E,w)=>{x.pipe(C),x.on("error",w),C.on("error",w);let T;C.on("verified",$=>{T=$}),C.on("end",()=>E(T)),C.on("data",()=>{})})}e.exports.integrityStream=b;function b(x){x=x||{};let g=x.integrity&&p(x.integrity,x),v=g&&Object.keys(g).length,A=v&&g.pickAlgorithm(x),C=v&&g[A],E=Array.from(new Set((x.algorithms||["sha512"]).concat(A?[A]:[]))),w=E.map(i.createHash),T=0,$=new s({transform(M,U,V){T+=M.length,w.forEach(X=>X.update(M,U)),V(null,M,U)}}).on("end",()=>{let M=x.options&&x.options.length?`?${x.options.join("?")}`:"",U=p(w.map((X,he)=>`${E[he]}-${X.digest("base64")}${M}`).join(" "),x),V=v&&U.match(g,x);if(typeof x.size=="number"&&T!==x.size){let X=new Error(`stream size mismatch when checking ${g}.
75
+ Found: ${x.length}`);throw T.code="EBADSIZE",T.found=x.length,T.expected=v.size,T.sri=g,T}else{let T=new Error(`Integrity checksum failed when using ${A}: Wanted ${g}, but got ${E}. (${x.length} bytes)`);throw T.code="EINTEGRITY",T.found=E,T.expected=g,T.algorithm=A,T.sri=g,T}}e.exports.checkStream=F;function F(x,g,v){v=v||{};let A=v.Promise||Promise,C=b(Object.assign({},v,{integrity:g}));return new A((E,w)=>{x.pipe(C),x.on("error",w),C.on("error",w);let T;C.on("verified",$=>{T=$}),C.on("end",()=>E(T)),C.on("data",()=>{})})}e.exports.integrityStream=b;function b(x){x=x||{};let g=x.integrity&&d(x.integrity,x),v=g&&Object.keys(g).length,A=v&&g.pickAlgorithm(x),C=v&&g[A],E=Array.from(new Set((x.algorithms||["sha512"]).concat(A?[A]:[]))),w=E.map(i.createHash),T=0,$=new s({transform(M,U,V){T+=M.length,w.forEach(X=>X.update(M,U)),V(null,M,U)}}).on("end",()=>{let M=x.options&&x.options.length?`?${x.options.join("?")}`:"",U=d(w.map((X,he)=>`${E[he]}-${X.digest("base64")}${M}`).join(" "),x),V=v&&U.match(g,x);if(typeof x.size=="number"&&T!==x.size){let X=new Error(`stream size mismatch when checking ${g}.
76
76
  Wanted: ${x.size}
77
- Found: ${T}`);X.code="EBADSIZE",X.found=T,X.expected=x.size,X.sri=g,$.emit("error",X)}else if(x.integrity&&!V){let X=new Error(`${g} integrity checksum failed when using ${A}: wanted ${C} but got ${U}. (${T} bytes)`);X.code="EINTEGRITY",X.found=U,X.expected=C,X.algorithm=A,X.sri=g,$.emit("error",X)}else $.emit("size",T),$.emit("integrity",U),V&&$.emit("verified",V)});return $}e.exports.create=_;function _(x){x=x||{};let g=x.algorithms||["sha512"],v=x.options&&x.options.length?`?${x.options.join("?")}`:"",A=g.map(i.createHash);return{update:function(C,E){return A.forEach(w=>w.update(C,E)),this},digest:function(C){return g.reduce((w,T)=>{let $=A.shift().digest("base64"),M=new l(`${T}-${$}${v}`,x);if(M.algorithm&&M.digest){let U=M.algorithm;w[U]||(w[U]=[]),w[U].push(M)}return w},new h)}}}let L=new Set(i.getHashes()),D=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>L.has(x));function N(x,g){return D.indexOf(x.toLowerCase())>=D.indexOf(g.toLowerCase())?x:g}},,,,,function(e,t,r){e.exports=m,m.Minimatch=O;var n={sep:"/"};try{n=r(0)}catch{}var i=m.GLOBSTAR=O.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(g){return g.split("").reduce(function(v,A){return v[A]=!0,v},{})}var p=/\/+/;m.filter=d;function d(g,v){return v=v||{},function(A,C,E){return m(A,g,v)}}function y(g,v){g=g||{},v=v||{};var A={};return Object.keys(v).forEach(function(C){A[C]=v[C]}),Object.keys(g).forEach(function(C){A[C]=g[C]}),A}m.defaults=function(g){if(!g||!Object.keys(g).length)return m;var v=m,A=function(E,w,T){return v.minimatch(E,w,y(g,T))};return A.Minimatch=function(E,w){return new v.Minimatch(E,y(g,w))},A},O.defaults=function(g){return!g||!Object.keys(g).length?O:m.defaults(g).Minimatch};function m(g,v,A){if(typeof v!="string")throw new TypeError("glob pattern string required");return A||(A={}),!A.nocomment&&v.charAt(0)==="#"?!1:v.trim()===""?g==="":new O(v,A).match(g)}function O(g,v){if(!(this instanceof O))return new O(g,v);if(typeof g!="string")throw new TypeError("glob pattern string required");v||(v={}),g=g.trim(),n.sep!=="/"&&(g=g.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=g,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}O.prototype.debug=function(){},O.prototype.make=S;function S(){if(!this._made){var g=this.pattern,v=this.options;if(!v.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate();var A=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,A),A=this.globParts=A.map(function(C){return C.split(p)}),this.debug(this.pattern,A),A=A.map(function(C,E,w){return C.map(this.parse,this)},this),this.debug(this.pattern,A),A=A.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,A),this.set=A}}O.prototype.parseNegate=k;function k(){var g=this.pattern,v=!1,A=this.options,C=0;if(!A.nonegate){for(var E=0,w=g.length;E<w&&g.charAt(E)==="!";E++)v=!v,C++;C&&(this.pattern=g.substr(C)),this.negate=v}}m.braceExpand=function(g,v){return F(g,v)},O.prototype.braceExpand=F;function F(g,v){if(v||(this instanceof O?v=this.options:v={}),g=typeof g>"u"?this.pattern:g,typeof g>"u")throw new TypeError("undefined pattern");return v.nobrace||!g.match(/\{.*\}/)?[g]:s(g)}O.prototype.parse=_;var b={};function _(g,v){if(g.length>1024*64)throw new TypeError("pattern is too long");var A=this.options;if(!A.noglobstar&&g==="**")return i;if(g==="")return"";var C="",E=!!A.nocase,w=!1,T=[],$=[],M,U=!1,V=-1,X=-1,he=g.charAt(0)==="."?"":A.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",q=this;function H(){if(M){switch(M){case"*":C+=c,E=!0;break;case"?":C+=a,E=!0;break;default:C+="\\"+M;break}q.debug("clearStateChar %j %j",M,C),M=!1}}for(var W=0,Z=g.length,ee;W<Z&&(ee=g.charAt(W));W++){if(this.debug("%s %s %s %j",g,W,C,ee),w&&l[ee]){C+="\\"+ee,w=!1;continue}switch(ee){case"/":return!1;case"\\":H(),w=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",g,W,C,ee),U){this.debug(" in class"),ee==="!"&&W===X+1&&(ee="^"),C+=ee;continue}q.debug("call clearStateChar %j",M),H(),M=ee,A.noext&&H();continue;case"(":if(U){C+="(";continue}if(!M){C+="\\(";continue}T.push({type:M,start:W-1,reStart:C.length,open:o[M].open,close:o[M].close}),C+=M==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",M,C),M=!1;continue;case")":if(U||!T.length){C+="\\)";continue}H(),E=!0;var G=T.pop();C+=G.close,G.type==="!"&&$.push(G),G.reEnd=C.length;continue;case"|":if(U||!T.length||w){C+="\\|",w=!1;continue}H(),C+="|";continue;case"[":if(H(),U){C+="\\"+ee;continue}U=!0,X=W,V=C.length,C+=ee;continue;case"]":if(W===X+1||!U){C+="\\"+ee,w=!1;continue}if(U){var re=g.substring(X+1,W);try{RegExp("["+re+"]")}catch{var Y=this.parse(re,b);C=C.substr(0,V)+"\\["+Y[0]+"\\]",E=E||Y[1],U=!1;continue}}E=!0,U=!1,C+=ee;continue;default:H(),w?w=!1:l[ee]&&!(ee==="^"&&U)&&(C+="\\"),C+=ee}}for(U&&(re=g.substr(X+1),Y=this.parse(re,b),C=C.substr(0,V)+"\\["+Y[0],E=E||Y[1]),G=T.pop();G;G=T.pop()){var ue=C.slice(G.reStart+G.open.length);this.debug("setting tail",C,G),ue=ue.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ir,xa,$i){return $i||($i="\\"),xa+xa+$i+"|"}),this.debug(`tail=%j
78
- %s`,ue,ue,G,C);var ve=G.type==="*"?c:G.type==="?"?a:"\\"+G.type;E=!0,C=C.slice(0,G.reStart)+ve+"\\("+ue}H(),w&&(C+="\\\\");var De=!1;switch(C.charAt(0)){case".":case"[":case"(":De=!0}for(var I=$.length-1;I>-1;I--){var j=$[I],K=C.slice(0,j.reStart),z=C.slice(j.reStart,j.reEnd-8),B=C.slice(j.reEnd-8,j.reEnd),se=C.slice(j.reEnd);B+=se;var ne=K.split("(").length-1,pe=se;for(W=0;W<ne;W++)pe=pe.replace(/\)[+*?]?/,"");se=pe;var Me="";se===""&&v!==b&&(Me="$");var Qe=K+z+se+Me+B;C=Qe}if(C!==""&&E&&(C="(?=.)"+C),De&&(C=he+C),v===b)return[C,E];if(!E)return N(g);var Ni=A.nocase?"i":"";try{var Ys=new RegExp("^"+C+"$",Ni)}catch{return new RegExp("$.")}return Ys._glob=g,Ys._src=C,Ys}m.makeRe=function(g,v){return new O(g,v||{}).makeRe()},O.prototype.makeRe=L;function L(){if(this.regexp||this.regexp===!1)return this.regexp;var g=this.set;if(!g.length)return this.regexp=!1,this.regexp;var v=this.options,A=v.noglobstar?c:v.dot?u:f,C=v.nocase?"i":"",E=g.map(function(w){return w.map(function(T){return T===i?A:typeof T=="string"?x(T):T._src}).join("\\/")}).join("|");E="^(?:"+E+")$",this.negate&&(E="^(?!"+E+").*$");try{this.regexp=new RegExp(E,C)}catch{this.regexp=!1}return this.regexp}m.match=function(g,v,A){A=A||{};var C=new O(v,A);return g=g.filter(function(E){return C.match(E)}),C.options.nonull&&!g.length&&g.push(v),g},O.prototype.match=D;function D(g,v){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&v)return!0;var A=this.options;n.sep!=="/"&&(g=g.split(n.sep).join("/")),g=g.split(p),this.debug(this.pattern,"split",g);var C=this.set;this.debug(this.pattern,"set",C);var E,w;for(w=g.length-1;w>=0&&(E=g[w],!E);w--);for(w=0;w<C.length;w++){var T=C[w],$=g;A.matchBase&&T.length===1&&($=[E]);var M=this.matchOne($,T,v);if(M)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate}O.prototype.matchOne=function(g,v,A){var C=this.options;this.debug("matchOne",{this:this,file:g,pattern:v}),this.debug("matchOne",g.length,v.length);for(var E=0,w=0,T=g.length,$=v.length;E<T&&w<$;E++,w++){this.debug("matchOne loop");var M=v[w],U=g[E];if(this.debug(v,M,U),M===!1)return!1;if(M===i){this.debug("GLOBSTAR",[v,M,U]);var V=E,X=w+1;if(X===$){for(this.debug("** at the end");E<T;E++)if(g[E]==="."||g[E]===".."||!C.dot&&g[E].charAt(0)===".")return!1;return!0}for(;V<T;){var he=g[V];if(this.debug(`
77
+ Found: ${T}`);X.code="EBADSIZE",X.found=T,X.expected=x.size,X.sri=g,$.emit("error",X)}else if(x.integrity&&!V){let X=new Error(`${g} integrity checksum failed when using ${A}: wanted ${C} but got ${U}. (${T} bytes)`);X.code="EINTEGRITY",X.found=U,X.expected=C,X.algorithm=A,X.sri=g,$.emit("error",X)}else $.emit("size",T),$.emit("integrity",U),V&&$.emit("verified",V)});return $}e.exports.create=P;function P(x){x=x||{};let g=x.algorithms||["sha512"],v=x.options&&x.options.length?`?${x.options.join("?")}`:"",A=g.map(i.createHash);return{update:function(C,E){return A.forEach(w=>w.update(C,E)),this},digest:function(C){return g.reduce((w,T)=>{let $=A.shift().digest("base64"),M=new l(`${T}-${$}${v}`,x);if(M.algorithm&&M.digest){let U=M.algorithm;w[U]||(w[U]=[]),w[U].push(M)}return w},new h)}}}let L=new Set(i.getHashes()),D=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>L.has(x));function N(x,g){return D.indexOf(x.toLowerCase())>=D.indexOf(g.toLowerCase())?x:g}},,,,,function(e,t,r){e.exports=m,m.Minimatch=O;var n={sep:"/"};try{n=r(0)}catch{}var i=m.GLOBSTAR=O.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(g){return g.split("").reduce(function(v,A){return v[A]=!0,v},{})}var d=/\/+/;m.filter=p;function p(g,v){return v=v||{},function(A,C,E){return m(A,g,v)}}function y(g,v){g=g||{},v=v||{};var A={};return Object.keys(v).forEach(function(C){A[C]=v[C]}),Object.keys(g).forEach(function(C){A[C]=g[C]}),A}m.defaults=function(g){if(!g||!Object.keys(g).length)return m;var v=m,A=function(E,w,T){return v.minimatch(E,w,y(g,T))};return A.Minimatch=function(E,w){return new v.Minimatch(E,y(g,w))},A},O.defaults=function(g){return!g||!Object.keys(g).length?O:m.defaults(g).Minimatch};function m(g,v,A){if(typeof v!="string")throw new TypeError("glob pattern string required");return A||(A={}),!A.nocomment&&v.charAt(0)==="#"?!1:v.trim()===""?g==="":new O(v,A).match(g)}function O(g,v){if(!(this instanceof O))return new O(g,v);if(typeof g!="string")throw new TypeError("glob pattern string required");v||(v={}),g=g.trim(),n.sep!=="/"&&(g=g.split(n.sep).join("/")),this.options=v,this.set=[],this.pattern=g,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}O.prototype.debug=function(){},O.prototype.make=S;function S(){if(!this._made){var g=this.pattern,v=this.options;if(!v.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate();var A=this.globSet=this.braceExpand();v.debug&&(this.debug=console.error),this.debug(this.pattern,A),A=this.globParts=A.map(function(C){return C.split(d)}),this.debug(this.pattern,A),A=A.map(function(C,E,w){return C.map(this.parse,this)},this),this.debug(this.pattern,A),A=A.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,A),this.set=A}}O.prototype.parseNegate=k;function k(){var g=this.pattern,v=!1,A=this.options,C=0;if(!A.nonegate){for(var E=0,w=g.length;E<w&&g.charAt(E)==="!";E++)v=!v,C++;C&&(this.pattern=g.substr(C)),this.negate=v}}m.braceExpand=function(g,v){return F(g,v)},O.prototype.braceExpand=F;function F(g,v){if(v||(this instanceof O?v=this.options:v={}),g=typeof g>"u"?this.pattern:g,typeof g>"u")throw new TypeError("undefined pattern");return v.nobrace||!g.match(/\{.*\}/)?[g]:s(g)}O.prototype.parse=P;var b={};function P(g,v){if(g.length>1024*64)throw new TypeError("pattern is too long");var A=this.options;if(!A.noglobstar&&g==="**")return i;if(g==="")return"";var C="",E=!!A.nocase,w=!1,T=[],$=[],M,U=!1,V=-1,X=-1,he=g.charAt(0)==="."?"":A.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",q=this;function H(){if(M){switch(M){case"*":C+=c,E=!0;break;case"?":C+=a,E=!0;break;default:C+="\\"+M;break}q.debug("clearStateChar %j %j",M,C),M=!1}}for(var W=0,Z=g.length,ee;W<Z&&(ee=g.charAt(W));W++){if(this.debug("%s %s %s %j",g,W,C,ee),w&&l[ee]){C+="\\"+ee,w=!1;continue}switch(ee){case"/":return!1;case"\\":H(),w=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",g,W,C,ee),U){this.debug(" in class"),ee==="!"&&W===X+1&&(ee="^"),C+=ee;continue}q.debug("call clearStateChar %j",M),H(),M=ee,A.noext&&H();continue;case"(":if(U){C+="(";continue}if(!M){C+="\\(";continue}T.push({type:M,start:W-1,reStart:C.length,open:o[M].open,close:o[M].close}),C+=M==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",M,C),M=!1;continue;case")":if(U||!T.length){C+="\\)";continue}H(),E=!0;var G=T.pop();C+=G.close,G.type==="!"&&$.push(G),G.reEnd=C.length;continue;case"|":if(U||!T.length||w){C+="\\|",w=!1;continue}H(),C+="|";continue;case"[":if(H(),U){C+="\\"+ee;continue}U=!0,X=W,V=C.length,C+=ee;continue;case"]":if(W===X+1||!U){C+="\\"+ee,w=!1;continue}if(U){var re=g.substring(X+1,W);try{RegExp("["+re+"]")}catch{var Y=this.parse(re,b);C=C.substr(0,V)+"\\["+Y[0]+"\\]",E=E||Y[1],U=!1;continue}}E=!0,U=!1,C+=ee;continue;default:H(),w?w=!1:l[ee]&&!(ee==="^"&&U)&&(C+="\\"),C+=ee}}for(U&&(re=g.substr(X+1),Y=this.parse(re,b),C=C.substr(0,V)+"\\["+Y[0],E=E||Y[1]),G=T.pop();G;G=T.pop()){var ue=C.slice(G.reStart+G.open.length);this.debug("setting tail",C,G),ue=ue.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(sr,Pa,$i){return $i||($i="\\"),Pa+Pa+$i+"|"}),this.debug(`tail=%j
78
+ %s`,ue,ue,G,C);var ve=G.type==="*"?c:G.type==="?"?a:"\\"+G.type;E=!0,C=C.slice(0,G.reStart)+ve+"\\("+ue}H(),w&&(C+="\\\\");var De=!1;switch(C.charAt(0)){case".":case"[":case"(":De=!0}for(var I=$.length-1;I>-1;I--){var j=$[I],K=C.slice(0,j.reStart),z=C.slice(j.reStart,j.reEnd-8),B=C.slice(j.reEnd-8,j.reEnd),se=C.slice(j.reEnd);B+=se;var ne=K.split("(").length-1,de=se;for(W=0;W<ne;W++)de=de.replace(/\)[+*?]?/,"");se=de;var Me="";se===""&&v!==b&&(Me="$");var Qe=K+z+se+Me+B;C=Qe}if(C!==""&&E&&(C="(?=.)"+C),De&&(C=he+C),v===b)return[C,E];if(!E)return N(g);var Ni=A.nocase?"i":"";try{var Ys=new RegExp("^"+C+"$",Ni)}catch{return new RegExp("$.")}return Ys._glob=g,Ys._src=C,Ys}m.makeRe=function(g,v){return new O(g,v||{}).makeRe()},O.prototype.makeRe=L;function L(){if(this.regexp||this.regexp===!1)return this.regexp;var g=this.set;if(!g.length)return this.regexp=!1,this.regexp;var v=this.options,A=v.noglobstar?c:v.dot?u:f,C=v.nocase?"i":"",E=g.map(function(w){return w.map(function(T){return T===i?A:typeof T=="string"?x(T):T._src}).join("\\/")}).join("|");E="^(?:"+E+")$",this.negate&&(E="^(?!"+E+").*$");try{this.regexp=new RegExp(E,C)}catch{this.regexp=!1}return this.regexp}m.match=function(g,v,A){A=A||{};var C=new O(v,A);return g=g.filter(function(E){return C.match(E)}),C.options.nonull&&!g.length&&g.push(v),g},O.prototype.match=D;function D(g,v){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&v)return!0;var A=this.options;n.sep!=="/"&&(g=g.split(n.sep).join("/")),g=g.split(d),this.debug(this.pattern,"split",g);var C=this.set;this.debug(this.pattern,"set",C);var E,w;for(w=g.length-1;w>=0&&(E=g[w],!E);w--);for(w=0;w<C.length;w++){var T=C[w],$=g;A.matchBase&&T.length===1&&($=[E]);var M=this.matchOne($,T,v);if(M)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate}O.prototype.matchOne=function(g,v,A){var C=this.options;this.debug("matchOne",{this:this,file:g,pattern:v}),this.debug("matchOne",g.length,v.length);for(var E=0,w=0,T=g.length,$=v.length;E<T&&w<$;E++,w++){this.debug("matchOne loop");var M=v[w],U=g[E];if(this.debug(v,M,U),M===!1)return!1;if(M===i){this.debug("GLOBSTAR",[v,M,U]);var V=E,X=w+1;if(X===$){for(this.debug("** at the end");E<T;E++)if(g[E]==="."||g[E]===".."||!C.dot&&g[E].charAt(0)===".")return!1;return!0}for(;V<T;){var he=g[V];if(this.debug(`
79
79
  globstar while`,g,V,v,X,he),this.matchOne(g.slice(V),v.slice(X),A))return this.debug("globstar found match!",V,T,he),!0;if(he==="."||he===".."||!C.dot&&he.charAt(0)==="."){this.debug("dot detected!",g,V,v,X);break}this.debug("globstar swallow a segment, and continue"),V++}return!!(A&&(this.debug(`
80
- >>> no match, partial?`,g,V,v,X),V===T))}var q;if(typeof M=="string"?(C.nocase?q=U.toLowerCase()===M.toLowerCase():q=U===M,this.debug("string match",M,U,q)):(q=U.match(M),this.debug("pattern match",M,U,q)),!q)return!1}if(E===T&&w===$)return!0;if(E===T)return A;if(w===$){var H=E===T-1&&g[E]==="";return H}throw new Error("wtf?")};function N(g){return g.replace(/\\(.)/g,"$1")}function x(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},c=o.name||"Function wrapped with `once`";return a.onceError=c+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=require("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(c,u){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=c,a=u}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,c){o&&!i(o=c?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=L;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),c=r(54).EventEmitter,u=r(0),f=r(22),l=r(76),h=r(218),p=r(115),d=p.alphasort,y=p.alphasorti,m=p.setopts,O=p.ownProp,S=r(223),k=r(2),F=p.childrenIgnored,b=p.isIgnored,_=r(61);function L(v,A,C){if(typeof A=="function"&&(C=A,A={}),A||(A={}),A.sync){if(C)throw new TypeError("callback provided to sync glob");return h(v,A)}return new x(v,A,C)}L.sync=h;var D=L.GlobSync=h.GlobSync;L.glob=L;function N(v,A){if(A===null||typeof A!="object")return v;for(var C=Object.keys(A),E=C.length;E--;)v[C[E]]=A[C[E]];return v}L.hasMagic=function(v,A){var C=N({},A);C.noprocess=!0;var E=new x(v,C),w=E.minimatch.set;if(!v)return!1;if(w.length>1)return!0;for(var T=0;T<w[0].length;T++)if(typeof w[0][T]!="string")return!0;return!1},L.Glob=x,a(x,c);function x(v,A,C){if(typeof A=="function"&&(C=A,A=null),A&&A.sync){if(C)throw new TypeError("callback provided to sync glob");return new D(v,A)}if(!(this instanceof x))return new x(v,A,C);m(this,v,A),this._didRealPath=!1;var E=this.minimatch.set.length;this.matches=new Array(E),typeof C=="function"&&(C=_(C),this.on("error",C),this.on("end",function(U){C(null,U)}));var w=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(E===0)return M();for(var T=!0,$=0;$<E;$++)this._process(this.minimatch.set[$],$,!1,M);T=!1;function M(){--w._processing,w._processing<=0&&(T?process.nextTick(function(){w._finish()}):w._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var v=this.matches.length;if(v===0)return this._finish();for(var A=this,C=0;C<this.matches.length;C++)this._realpathSet(C,E);function E(){--v===0&&A._finish()}},x.prototype._realpathSet=function(v,A){var C=this.matches[v];if(!C)return A();var E=Object.keys(C),w=this,T=E.length;if(T===0)return A();var $=this.matches[v]=Object.create(null);E.forEach(function(M,U){M=w._makeAbs(M),i.realpath(M,w.realpathCache,function(V,X){V?V.syscall==="stat"?$[M]=!0:w.emit("error",V):$[X]=!0,--T===0&&(w.matches[v]=$,A())})})},x.prototype._mark=function(v){return p.mark(this,v)},x.prototype._makeAbs=function(v){return p.makeAbs(this,v)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var v=this._emitQueue.slice(0);this._emitQueue.length=0;for(var A=0;A<v.length;A++){var C=v[A];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var E=this._processQueue.slice(0);this._processQueue.length=0;for(var A=0;A<E.length;A++){var w=E[A];this._processing--,this._process(w[0],w[1],w[2],w[3])}}}},x.prototype._process=function(v,A,C,E){if(f(this instanceof x),f(typeof E=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([v,A,C,E]);return}for(var w=0;typeof v[w]=="string";)w++;var T;switch(w){case v.length:this._processSimple(v.join("/"),A,E);return;case 0:T=null;break;default:T=v.slice(0,w).join("/");break}var $=v.slice(w),M;T===null?M=".":((l(T)||l(v.join("/")))&&(!T||!l(T))&&(T="/"+T),M=T);var U=this._makeAbs(M);if(F(this,M))return E();var V=$[0]===s.GLOBSTAR;V?this._processGlobStar(T,M,U,$,A,C,E):this._processReaddir(T,M,U,$,A,C,E)}},x.prototype._processReaddir=function(v,A,C,E,w,T,$){var M=this;this._readdir(C,T,function(U,V){return M._processReaddir2(v,A,C,E,w,T,V,$)})},x.prototype._processReaddir2=function(v,A,C,E,w,T,$,M){if(!$)return M();for(var U=E[0],V=!!this.minimatch.negate,X=U._glob,he=this.dot||X.charAt(0)===".",q=[],H=0;H<$.length;H++){var W=$[H];if(W.charAt(0)!=="."||he){var Z;V&&!v?Z=!W.match(U):Z=W.match(U),Z&&q.push(W)}}var ee=q.length;if(ee===0)return M();if(E.length===1&&!this.mark&&!this.stat){this.matches[w]||(this.matches[w]=Object.create(null));for(var H=0;H<ee;H++){var W=q[H];v&&(v!=="/"?W=v+"/"+W:W=v+W),W.charAt(0)==="/"&&!this.nomount&&(W=u.join(this.root,W)),this._emitMatch(w,W)}return M()}E.shift();for(var H=0;H<ee;H++){var W=q[H],G;v&&(v!=="/"?W=v+"/"+W:W=v+W),this._process([W].concat(E),w,T,M)}M()},x.prototype._emitMatch=function(v,A){if(!this.aborted&&!b(this,A)){if(this.paused){this._emitQueue.push([v,A]);return}var C=l(A)?A:this._makeAbs(A);if(this.mark&&(A=this._mark(A)),this.absolute&&(A=C),!this.matches[v][A]){if(this.nodir){var E=this.cache[C];if(E==="DIR"||Array.isArray(E))return}this.matches[v][A]=!0;var w=this.statCache[C];w&&this.emit("stat",A,w),this.emit("match",A)}}},x.prototype._readdirInGlobStar=function(v,A){if(this.aborted)return;if(this.follow)return this._readdir(v,!1,A);var C="lstat\0"+v,E=this,w=S(C,T);w&&n.lstat(v,w);function T($,M){if($&&$.code==="ENOENT")return A();var U=M&&M.isSymbolicLink();E.symlinks[v]=U,!U&&M&&!M.isDirectory()?(E.cache[v]="FILE",A()):E._readdir(v,!1,A)}},x.prototype._readdir=function(v,A,C){if(!this.aborted&&(C=S("readdir\0"+v+"\0"+A,C),!!C)){if(A&&!O(this.symlinks,v))return this._readdirInGlobStar(v,C);if(O(this.cache,v)){var E=this.cache[v];if(!E||E==="FILE")return C();if(Array.isArray(E))return C(null,E)}var w=this;n.readdir(v,g(this,v,C))}};function g(v,A,C){return function(E,w){E?v._readdirError(A,E,C):v._readdirEntries(A,w,C)}}x.prototype._readdirEntries=function(v,A,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<A.length;E++){var w=A[E];v==="/"?w=v+w:w=v+"/"+w,this.cache[w]=!0}return this.cache[v]=A,C(null,A)}},x.prototype._readdirError=function(v,A,C){if(!this.aborted){switch(A.code){case"ENOTSUP":case"ENOTDIR":var E=this._makeAbs(v);if(this.cache[E]="FILE",E===this.cwdAbs){var w=new Error(A.code+" invalid cwd "+this.cwd);w.path=this.cwd,w.code=A.code,this.emit("error",w),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(v)]=!1;break;default:this.cache[this._makeAbs(v)]=!1,this.strict&&(this.emit("error",A),this.abort()),this.silent||console.error("glob error",A);break}return C()}},x.prototype._processGlobStar=function(v,A,C,E,w,T,$){var M=this;this._readdir(C,T,function(U,V){M._processGlobStar2(v,A,C,E,w,T,V,$)})},x.prototype._processGlobStar2=function(v,A,C,E,w,T,$,M){if(!$)return M();var U=E.slice(1),V=v?[v]:[],X=V.concat(U);this._process(X,w,!1,M);var he=this.symlinks[C],q=$.length;if(he&&T)return M();for(var H=0;H<q;H++){var W=$[H];if(!(W.charAt(0)==="."&&!this.dot)){var Z=V.concat($[H],U);this._process(Z,w,!0,M);var ee=V.concat($[H],E);this._process(ee,w,!0,M)}}M()},x.prototype._processSimple=function(v,A,C){var E=this;this._stat(v,function(w,T){E._processSimple2(v,A,w,T,C)})},x.prototype._processSimple2=function(v,A,C,E,w){if(this.matches[A]||(this.matches[A]=Object.create(null)),!E)return w();if(v&&l(v)&&!this.nomount){var T=/[\/\\]$/.test(v);v.charAt(0)==="/"?v=u.join(this.root,v):(v=u.resolve(this.root,v),T&&(v+="/"))}process.platform==="win32"&&(v=v.replace(/\\/g,"/")),this._emitMatch(A,v),w()},x.prototype._stat=function(v,A){var C=this._makeAbs(v),E=v.slice(-1)==="/";if(v.length>this.maxLength)return A();if(!this.stat&&O(this.cache,C)){var w=this.cache[C];if(Array.isArray(w)&&(w="DIR"),!E||w==="DIR")return A(null,w);if(E&&w==="FILE")return A()}var T,$=this.statCache[C];if($!==void 0){if($===!1)return A(null,$);var M=$.isDirectory()?"DIR":"FILE";return E&&M==="FILE"?A():A(null,M,$)}var U=this,V=S("stat\0"+C,X);V&&n.lstat(C,V);function X(he,q){if(q&&q.isSymbolicLink())return n.stat(C,function(H,W){H?U._stat2(v,C,null,q,A):U._stat2(v,C,H,W,A)});U._stat2(v,C,he,q,A)}},x.prototype._stat2=function(v,A,C,E,w){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[A]=!1,w();var T=v.slice(-1)==="/";if(this.statCache[A]=E,A.slice(-1)==="/"&&E&&!E.isDirectory())return w(null,!1,E);var $=!0;return E&&($=E.isDirectory()?"DIR":"FILE"),this.cache[A]=this.cache[A]||$,T&&$==="FILE"?w():w(null,$,E)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=require("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,E="lockfile"){return C=(0,(a||c()).default)(C),g(C)?A(C,E):{type:"success",object:v(C,E)}};var n;function i(){return n=y(r(2))}var s;function o(){return s=y(r(7))}var a;function c(){return a=y(r(122))}var u;function f(){return u=r(6)}var l;function h(){return l=r(4)}var p;function d(){return p=y(r(20))}function y(C){return C&&C.__esModule?C:{default:C}}let m=/^yarn lockfile v(\d+)$/,O={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},S=[O.boolean,O.string,O.number];function k(C){return S.indexOf(C.type)>=0}function*F(C){let E=!1,w=1,T=0;function $(M,U){return{line:w,col:T,type:M,value:U}}for(;C.length;){let M=0;if(C[0]===`
80
+ >>> no match, partial?`,g,V,v,X),V===T))}var q;if(typeof M=="string"?(C.nocase?q=U.toLowerCase()===M.toLowerCase():q=U===M,this.debug("string match",M,U,q)):(q=U.match(M),this.debug("pattern match",M,U,q)),!q)return!1}if(E===T&&w===$)return!0;if(E===T)return A;if(w===$){var H=E===T-1&&g[E]==="";return H}throw new Error("wtf?")};function N(g){return g.replace(/\\(.)/g,"$1")}function x(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},c=o.name||"Function wrapped with `once`";return a.onceError=c+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=require("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(c,u){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=c,a=u}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,c){o&&!i(o=c?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=L;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),c=r(54).EventEmitter,u=r(0),f=r(22),l=r(76),h=r(218),d=r(115),p=d.alphasort,y=d.alphasorti,m=d.setopts,O=d.ownProp,S=r(223),k=r(2),F=d.childrenIgnored,b=d.isIgnored,P=r(61);function L(v,A,C){if(typeof A=="function"&&(C=A,A={}),A||(A={}),A.sync){if(C)throw new TypeError("callback provided to sync glob");return h(v,A)}return new x(v,A,C)}L.sync=h;var D=L.GlobSync=h.GlobSync;L.glob=L;function N(v,A){if(A===null||typeof A!="object")return v;for(var C=Object.keys(A),E=C.length;E--;)v[C[E]]=A[C[E]];return v}L.hasMagic=function(v,A){var C=N({},A);C.noprocess=!0;var E=new x(v,C),w=E.minimatch.set;if(!v)return!1;if(w.length>1)return!0;for(var T=0;T<w[0].length;T++)if(typeof w[0][T]!="string")return!0;return!1},L.Glob=x,a(x,c);function x(v,A,C){if(typeof A=="function"&&(C=A,A=null),A&&A.sync){if(C)throw new TypeError("callback provided to sync glob");return new D(v,A)}if(!(this instanceof x))return new x(v,A,C);m(this,v,A),this._didRealPath=!1;var E=this.minimatch.set.length;this.matches=new Array(E),typeof C=="function"&&(C=P(C),this.on("error",C),this.on("end",function(U){C(null,U)}));var w=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(E===0)return M();for(var T=!0,$=0;$<E;$++)this._process(this.minimatch.set[$],$,!1,M);T=!1;function M(){--w._processing,w._processing<=0&&(T?process.nextTick(function(){w._finish()}):w._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var v=this.matches.length;if(v===0)return this._finish();for(var A=this,C=0;C<this.matches.length;C++)this._realpathSet(C,E);function E(){--v===0&&A._finish()}},x.prototype._realpathSet=function(v,A){var C=this.matches[v];if(!C)return A();var E=Object.keys(C),w=this,T=E.length;if(T===0)return A();var $=this.matches[v]=Object.create(null);E.forEach(function(M,U){M=w._makeAbs(M),i.realpath(M,w.realpathCache,function(V,X){V?V.syscall==="stat"?$[M]=!0:w.emit("error",V):$[X]=!0,--T===0&&(w.matches[v]=$,A())})})},x.prototype._mark=function(v){return d.mark(this,v)},x.prototype._makeAbs=function(v){return d.makeAbs(this,v)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var v=this._emitQueue.slice(0);this._emitQueue.length=0;for(var A=0;A<v.length;A++){var C=v[A];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var E=this._processQueue.slice(0);this._processQueue.length=0;for(var A=0;A<E.length;A++){var w=E[A];this._processing--,this._process(w[0],w[1],w[2],w[3])}}}},x.prototype._process=function(v,A,C,E){if(f(this instanceof x),f(typeof E=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([v,A,C,E]);return}for(var w=0;typeof v[w]=="string";)w++;var T;switch(w){case v.length:this._processSimple(v.join("/"),A,E);return;case 0:T=null;break;default:T=v.slice(0,w).join("/");break}var $=v.slice(w),M;T===null?M=".":((l(T)||l(v.join("/")))&&(!T||!l(T))&&(T="/"+T),M=T);var U=this._makeAbs(M);if(F(this,M))return E();var V=$[0]===s.GLOBSTAR;V?this._processGlobStar(T,M,U,$,A,C,E):this._processReaddir(T,M,U,$,A,C,E)}},x.prototype._processReaddir=function(v,A,C,E,w,T,$){var M=this;this._readdir(C,T,function(U,V){return M._processReaddir2(v,A,C,E,w,T,V,$)})},x.prototype._processReaddir2=function(v,A,C,E,w,T,$,M){if(!$)return M();for(var U=E[0],V=!!this.minimatch.negate,X=U._glob,he=this.dot||X.charAt(0)===".",q=[],H=0;H<$.length;H++){var W=$[H];if(W.charAt(0)!=="."||he){var Z;V&&!v?Z=!W.match(U):Z=W.match(U),Z&&q.push(W)}}var ee=q.length;if(ee===0)return M();if(E.length===1&&!this.mark&&!this.stat){this.matches[w]||(this.matches[w]=Object.create(null));for(var H=0;H<ee;H++){var W=q[H];v&&(v!=="/"?W=v+"/"+W:W=v+W),W.charAt(0)==="/"&&!this.nomount&&(W=u.join(this.root,W)),this._emitMatch(w,W)}return M()}E.shift();for(var H=0;H<ee;H++){var W=q[H],G;v&&(v!=="/"?W=v+"/"+W:W=v+W),this._process([W].concat(E),w,T,M)}M()},x.prototype._emitMatch=function(v,A){if(!this.aborted&&!b(this,A)){if(this.paused){this._emitQueue.push([v,A]);return}var C=l(A)?A:this._makeAbs(A);if(this.mark&&(A=this._mark(A)),this.absolute&&(A=C),!this.matches[v][A]){if(this.nodir){var E=this.cache[C];if(E==="DIR"||Array.isArray(E))return}this.matches[v][A]=!0;var w=this.statCache[C];w&&this.emit("stat",A,w),this.emit("match",A)}}},x.prototype._readdirInGlobStar=function(v,A){if(this.aborted)return;if(this.follow)return this._readdir(v,!1,A);var C="lstat\0"+v,E=this,w=S(C,T);w&&n.lstat(v,w);function T($,M){if($&&$.code==="ENOENT")return A();var U=M&&M.isSymbolicLink();E.symlinks[v]=U,!U&&M&&!M.isDirectory()?(E.cache[v]="FILE",A()):E._readdir(v,!1,A)}},x.prototype._readdir=function(v,A,C){if(!this.aborted&&(C=S("readdir\0"+v+"\0"+A,C),!!C)){if(A&&!O(this.symlinks,v))return this._readdirInGlobStar(v,C);if(O(this.cache,v)){var E=this.cache[v];if(!E||E==="FILE")return C();if(Array.isArray(E))return C(null,E)}var w=this;n.readdir(v,g(this,v,C))}};function g(v,A,C){return function(E,w){E?v._readdirError(A,E,C):v._readdirEntries(A,w,C)}}x.prototype._readdirEntries=function(v,A,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<A.length;E++){var w=A[E];v==="/"?w=v+w:w=v+"/"+w,this.cache[w]=!0}return this.cache[v]=A,C(null,A)}},x.prototype._readdirError=function(v,A,C){if(!this.aborted){switch(A.code){case"ENOTSUP":case"ENOTDIR":var E=this._makeAbs(v);if(this.cache[E]="FILE",E===this.cwdAbs){var w=new Error(A.code+" invalid cwd "+this.cwd);w.path=this.cwd,w.code=A.code,this.emit("error",w),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(v)]=!1;break;default:this.cache[this._makeAbs(v)]=!1,this.strict&&(this.emit("error",A),this.abort()),this.silent||console.error("glob error",A);break}return C()}},x.prototype._processGlobStar=function(v,A,C,E,w,T,$){var M=this;this._readdir(C,T,function(U,V){M._processGlobStar2(v,A,C,E,w,T,V,$)})},x.prototype._processGlobStar2=function(v,A,C,E,w,T,$,M){if(!$)return M();var U=E.slice(1),V=v?[v]:[],X=V.concat(U);this._process(X,w,!1,M);var he=this.symlinks[C],q=$.length;if(he&&T)return M();for(var H=0;H<q;H++){var W=$[H];if(!(W.charAt(0)==="."&&!this.dot)){var Z=V.concat($[H],U);this._process(Z,w,!0,M);var ee=V.concat($[H],E);this._process(ee,w,!0,M)}}M()},x.prototype._processSimple=function(v,A,C){var E=this;this._stat(v,function(w,T){E._processSimple2(v,A,w,T,C)})},x.prototype._processSimple2=function(v,A,C,E,w){if(this.matches[A]||(this.matches[A]=Object.create(null)),!E)return w();if(v&&l(v)&&!this.nomount){var T=/[\/\\]$/.test(v);v.charAt(0)==="/"?v=u.join(this.root,v):(v=u.resolve(this.root,v),T&&(v+="/"))}process.platform==="win32"&&(v=v.replace(/\\/g,"/")),this._emitMatch(A,v),w()},x.prototype._stat=function(v,A){var C=this._makeAbs(v),E=v.slice(-1)==="/";if(v.length>this.maxLength)return A();if(!this.stat&&O(this.cache,C)){var w=this.cache[C];if(Array.isArray(w)&&(w="DIR"),!E||w==="DIR")return A(null,w);if(E&&w==="FILE")return A()}var T,$=this.statCache[C];if($!==void 0){if($===!1)return A(null,$);var M=$.isDirectory()?"DIR":"FILE";return E&&M==="FILE"?A():A(null,M,$)}var U=this,V=S("stat\0"+C,X);V&&n.lstat(C,V);function X(he,q){if(q&&q.isSymbolicLink())return n.stat(C,function(H,W){H?U._stat2(v,C,null,q,A):U._stat2(v,C,H,W,A)});U._stat2(v,C,he,q,A)}},x.prototype._stat2=function(v,A,C,E,w){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[A]=!1,w();var T=v.slice(-1)==="/";if(this.statCache[A]=E,A.slice(-1)==="/"&&E&&!E.isDirectory())return w(null,!1,E);var $=!0;return E&&($=E.isDirectory()?"DIR":"FILE"),this.cache[A]=this.cache[A]||$,T&&$==="FILE"?w():w(null,$,E)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=require("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,E="lockfile"){return C=(0,(a||c()).default)(C),g(C)?A(C,E):{type:"success",object:v(C,E)}};var n;function i(){return n=y(r(2))}var s;function o(){return s=y(r(7))}var a;function c(){return a=y(r(122))}var u;function f(){return u=r(6)}var l;function h(){return l=r(4)}var d;function p(){return d=y(r(20))}function y(C){return C&&C.__esModule?C:{default:C}}let m=/^yarn lockfile v(\d+)$/,O={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},S=[O.boolean,O.string,O.number];function k(C){return S.indexOf(C.type)>=0}function*F(C){let E=!1,w=1,T=0;function $(M,U){return{line:w,col:T,type:M,value:U}}for(;C.length;){let M=0;if(C[0]===`
81
81
  `||C[0]==="\r")M++,C[1]===`
82
82
  `&&M++,w++,T=0,yield $(O.newline);else if(C[0]==="#"){M++;let U="";for(;C[M]!==`
83
83
  `;)U+=C[M],M++;yield $(O.comment,U)}else if(C[0]===" ")if(E){let U="";for(let V=0;C[V]===" ";V++)U+=C[V];if(U.length%2)throw new TypeError("Invalid number of spaces");M=U.length,yield $(O.indent,U.length/2)}else M++;else if(C[0]==='"'){let U="";for(let V=0;;V++){let X=C[V];if(U+=X,V>0&&X==='"'&&!(C[V-1]==="\\"&&C[V-2]!=="\\"))break}M=U.length;try{yield $(O.string,JSON.parse(U))}catch(V){if(V instanceof SyntaxError)yield $(O.invalid);else throw V}}else if(/^[0-9]/.test(C)){let U="";for(let V=0;/^[0-9]$/.test(C[V]);V++)U+=C[V];M=U.length,yield $(O.number,+U)}else if(/^true/.test(C))yield $(O.boolean,!0),M=4;else if(/^false/.test(C))yield $(O.boolean,!1),M=5;else if(C[0]===":")yield $(O.colon),M++;else if(C[0]===",")yield $(O.comma),M++;else if(/^[a-zA-Z\/-]/g.test(C)){let U="";for(let V=0;V<C.length;V++){let X=C[V];if(X===":"||X===" "||X===`
84
84
  `||X==="\r"||X===",")break;U+=X}M=U.length,yield $(O.string,U)}else yield $(O.invalid);M||(yield $(O.invalid)),T+=M,E=C[0]===`
85
85
  `||C[0]==="\r"&&C[1]===`
86
- `,C=C.slice(M)}yield $(O.eof)}class b{constructor(E,w="lockfile"){this.comments=[],this.tokens=F(E),this.fileLoc=w}onComment(E){let w=E.value;(0,(s||o()).default)(typeof w=="string","expected token value to be a string");let T=w.trim(),$=T.match(m);if($){let M=+$[1];if(M>(u||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${M} as you're on an old yarn version that only supports versions up to ${(u||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(T)}next(){let E=this.tokens.next();(0,(s||o()).default)(E,"expected a token");let w=E.done,T=E.value;if(w||!T)throw new Error("No more tokens");return T.type===O.comment?(this.onComment(T),this.next()):this.token=T}unexpected(E="Unexpected token"){throw new SyntaxError(`${E} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(E){this.token.type===E?this.next():this.unexpected()}eat(E){return this.token.type===E?(this.next(),!0):!1}parse(E=0){let w=(0,(p||d()).default)();for(;;){let H=this.token;if(H.type===O.newline){let W=this.next();if(!E)continue;if(W.type!==O.indent)break;if(W.value===E)this.next();else break}else if(H.type===O.indent)if(H.value===E)this.next();else break;else{if(H.type===O.eof)break;if(H.type===O.string){let W=H.value;(0,(s||o()).default)(W,"Expected a key");let Z=[W];for(this.next();this.token.type===O.comma;){this.next();let G=this.token;G.type!==O.string&&this.unexpected("Expected string");let re=G.value;(0,(s||o()).default)(re,"Expected a key"),Z.push(re),this.next()}let ee=this.token;if(ee.type===O.colon){this.next();let G=this.parse(E+1);for(var M=Z,T=Array.isArray(M),$=0,M=T?M:M[Symbol.iterator]();;){var U;if(T){if($>=M.length)break;U=M[$++]}else{if($=M.next(),$.done)break;U=$.value}let re=U;w[re]=G}if(E&&this.token.type!==O.indent)break}else if(k(ee)){for(var he=Z,V=Array.isArray(he),X=0,he=V?he:he[Symbol.iterator]();;){var q;if(V){if(X>=he.length)break;q=he[X++]}else{if(X=he.next(),X.done)break;q=X.value}let G=q;w[G]=ee.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(H)}`)}}return w}}let _="|||||||",L=">>>>>>>",D="=======",N="<<<<<<<";function x(C){let E=[[],[]],w=C.split(/\r?\n/g),T=!1;for(;w.length;){let $=w.shift();if($.startsWith(N)){for(;w.length;){let M=w.shift();if(M===D){T=!1;break}else if(T||M.startsWith(_)){T=!0;continue}else E[0].push(M)}for(;w.length;){let M=w.shift();if(M.startsWith(L))break;E[1].push(M)}}else E[0].push($),E[1].push($)}return[E[0].join(`
86
+ `,C=C.slice(M)}yield $(O.eof)}class b{constructor(E,w="lockfile"){this.comments=[],this.tokens=F(E),this.fileLoc=w}onComment(E){let w=E.value;(0,(s||o()).default)(typeof w=="string","expected token value to be a string");let T=w.trim(),$=T.match(m);if($){let M=+$[1];if(M>(u||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${M} as you're on an old yarn version that only supports versions up to ${(u||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(T)}next(){let E=this.tokens.next();(0,(s||o()).default)(E,"expected a token");let w=E.done,T=E.value;if(w||!T)throw new Error("No more tokens");return T.type===O.comment?(this.onComment(T),this.next()):this.token=T}unexpected(E="Unexpected token"){throw new SyntaxError(`${E} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(E){this.token.type===E?this.next():this.unexpected()}eat(E){return this.token.type===E?(this.next(),!0):!1}parse(E=0){let w=(0,(d||p()).default)();for(;;){let H=this.token;if(H.type===O.newline){let W=this.next();if(!E)continue;if(W.type!==O.indent)break;if(W.value===E)this.next();else break}else if(H.type===O.indent)if(H.value===E)this.next();else break;else{if(H.type===O.eof)break;if(H.type===O.string){let W=H.value;(0,(s||o()).default)(W,"Expected a key");let Z=[W];for(this.next();this.token.type===O.comma;){this.next();let G=this.token;G.type!==O.string&&this.unexpected("Expected string");let re=G.value;(0,(s||o()).default)(re,"Expected a key"),Z.push(re),this.next()}let ee=this.token;if(ee.type===O.colon){this.next();let G=this.parse(E+1);for(var M=Z,T=Array.isArray(M),$=0,M=T?M:M[Symbol.iterator]();;){var U;if(T){if($>=M.length)break;U=M[$++]}else{if($=M.next(),$.done)break;U=$.value}let re=U;w[re]=G}if(E&&this.token.type!==O.indent)break}else if(k(ee)){for(var he=Z,V=Array.isArray(he),X=0,he=V?he:he[Symbol.iterator]();;){var q;if(V){if(X>=he.length)break;q=he[X++]}else{if(X=he.next(),X.done)break;q=X.value}let G=q;w[G]=ee.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(H)}`)}}return w}}let P="|||||||",L=">>>>>>>",D="=======",N="<<<<<<<";function x(C){let E=[[],[]],w=C.split(/\r?\n/g),T=!1;for(;w.length;){let $=w.shift();if($.startsWith(N)){for(;w.length;){let M=w.shift();if(M===D){T=!1;break}else if(T||M.startsWith(P)){T=!0;continue}else E[0].push(M)}for(;w.length;){let M=w.shift();if(M.startsWith(L))break;E[1].push(M)}}else E[0].push($),E[1].push($)}return[E[0].join(`
87
87
  `),E[1].join(`
88
- `)]}function g(C){return C.includes(N)&&C.includes(D)&&C.includes(L)}function v(C,E){let w=new b(C,E);return w.next(),w.parse()}function A(C,E){let w=x(C);try{return{type:"merge",object:Object.assign({},v(w[0],E),v(w[1],E))}}catch(T){if(T instanceof SyntaxError)return{type:"conflict",object:{}};throw T}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(212)("yarn");class a{constructor(u,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=u,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(u,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[u]=this.queue[u]||[]).push({factory:f,resolve:l,reject:h}),this.running[u]||this.shift(u)})}shift(u){this.running[u]&&(delete this.running[u],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[u];if(!f)return;var l=f.shift();let h=l.resolve,p=l.reject,d=l.factory;f.length||delete this.queue[u];let y=()=>{this.shift(u),this.shiftConcurrencyQueue()},m=()=>{this.running[u]=!0,this.runningCount++,d().then(function(O){return h(O),y(),null}).catch(function(O){p(O),y()})};this.maybePushConcurrencyQueue(m)}maybePushConcurrencyQueue(u){this.runningCount<this.maxConcurrency?u():this.concurrencyQueue.push(u)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let u=this.concurrencyQueue.shift();u&&u()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,c){try{return a[c]}catch{}};e.exports=function(a){var c,u,f;return a===void 0?"Undefined":a===null?"Null":typeof(u=o(c=Object(a),i))=="string"?u:s?n(c):(f=n(c))=="Object"&&typeof c.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),c=r(188),u=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",y="values",m=function(){return this};e.exports=function(O,S,k,F,b,_,L){c(k,S,F);var D=function(U){if(!h&&U in v)return v[U];switch(U){case d:return function(){return new k(this,U)};case y:return function(){return new k(this,U)}}return function(){return new k(this,U)}},N=S+" Iterator",x=b==y,g=!1,v=O.prototype,A=v[l]||v[p]||b&&v[b],C=A||D(b),E=b?x?D("entries"):C:void 0,w=S=="Array"&&v.entries||A,T,$,M;if(w&&(M=f(w.call(new O)),M!==Object.prototype&&M.next&&(u(M,N,!0),!n&&typeof M[l]!="function"&&o(M,l,m))),x&&A&&A.name!==y&&(g=!0,C=function(){return A.call(this)}),(!n||L)&&(h||g||!v[l])&&o(v,l,C),a[S]=C,a[N]=m,b)if(T={values:x?C:D(y),keys:_?C:D(d),entries:E},L)for($ in T)$ in v||s(v,$,T[$]);else i(i.P+i.F*(h||g),S,T);return T}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var c=s.f(o),u=c.resolve;return u(a),c.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,c){return o[a]||(o[a]=c!==void 0?c:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var c=n(o).constructor,u;return c===void 0||(u=n(c)[s])==null?a:i(u)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),c=a.process,u=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,p=0,d={},y="onreadystatechange",m,O,S,k=function(){var b=+this;if(d.hasOwnProperty(b)){var _=d[b];delete d[b],_()}},F=function(b){k.call(b.data)};(!u||!f)&&(u=function(_){for(var L=[],D=1;arguments.length>D;)L.push(arguments[D++]);return d[++p]=function(){i(typeof _=="function"?_:Function(_),L)},m(p),p},f=function(_){delete d[_]},r(47)(c)=="process"?m=function(b){c.nextTick(n(k,b,1))}:h&&h.now?m=function(b){h.now(n(k,b,1))}:l?(O=new l,S=O.port2,O.port1.onmessage=F,m=n(S.postMessage,S,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(b){a.postMessage(b+"","*")},a.addEventListener("message",F,!1)):y in o("script")?m=function(b){s.appendChild(o("script"))[y]=function(){s.removeChild(this),k.call(b)}}:m=function(b){setTimeout(n(k,b,1),0)}),e.exports={set:u,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=u,t.disable=a,t.enable=o,t.enabled=c,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var p=h,d=+new Date,y=d-(l||d);p.diff=y,p.prev=l,p.curr=d,l=d;for(var m=new Array(arguments.length),O=0;O<m.length;O++)m[O]=arguments[O];m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(F,b){if(F==="%%")return F;S++;var _=t.formatters[b];if(typeof _=="function"){var L=m[S];F=_.call(p,L),m.splice(S,1),S--}return F}),t.formatArgs.call(p,m);var k=h.log||t.log||console.log.bind(console);k.apply(p,m)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),p=h.length;for(l=0;l<p;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var d=t.instances[l];d.enabled=t.enabled(d.namespace)}}function a(){t.enable("")}function c(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=p;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),c=r(217);function u(d){return d&&d.syscall==="realpath"&&(d.code==="ELOOP"||d.code==="ENOMEM"||d.code==="ENAMETOOLONG")}function f(d,y,m){if(a)return i(d,y,m);typeof y=="function"&&(m=y,y=null),i(d,y,function(O,S){u(O)?c.realpath(d,y,m):m(O,S)})}function l(d,y){if(a)return s(d,y);try{return s(d,y)}catch(m){if(u(m))return c.realpathSync(d,y);throw m}}function h(){n.realpath=f,n.realpathSync=l}function p(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=u,t.alphasorti=c,t.setopts=h,t.ownProp=n,t.makeAbs=y,t.finish=p,t.mark=d,t.isIgnored=m,t.childrenIgnored=O;function n(S,k){return Object.prototype.hasOwnProperty.call(S,k)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function c(S,k){return S.toLowerCase().localeCompare(k.toLowerCase())}function u(S,k){return S.localeCompare(k)}function f(S,k){S.ignore=k.ignore||[],Array.isArray(S.ignore)||(S.ignore=[S.ignore]),S.ignore.length&&(S.ignore=S.ignore.map(l))}function l(S){var k=null;if(S.slice(-3)==="/**"){var F=S.replace(/(\/\*\*)+$/,"");k=new a(F,{dot:!0})}return{matcher:new a(S,{dot:!0}),gmatcher:k}}function h(S,k,F){if(F||(F={}),F.matchBase&&k.indexOf("/")===-1){if(F.noglobstar)throw new Error("base matching requires globstar");k="**/"+k}S.silent=!!F.silent,S.pattern=k,S.strict=F.strict!==!1,S.realpath=!!F.realpath,S.realpathCache=F.realpathCache||Object.create(null),S.follow=!!F.follow,S.dot=!!F.dot,S.mark=!!F.mark,S.nodir=!!F.nodir,S.nodir&&(S.mark=!0),S.sync=!!F.sync,S.nounique=!!F.nounique,S.nonull=!!F.nonull,S.nosort=!!F.nosort,S.nocase=!!F.nocase,S.stat=!!F.stat,S.noprocess=!!F.noprocess,S.absolute=!!F.absolute,S.maxLength=F.maxLength||1/0,S.cache=F.cache||Object.create(null),S.statCache=F.statCache||Object.create(null),S.symlinks=F.symlinks||Object.create(null),f(S,F),S.changedCwd=!1;var b=process.cwd();n(F,"cwd")?(S.cwd=i.resolve(F.cwd),S.changedCwd=S.cwd!==b):S.cwd=b,S.root=F.root||i.resolve(S.cwd,"/"),S.root=i.resolve(S.root),process.platform==="win32"&&(S.root=S.root.replace(/\\/g,"/")),S.cwdAbs=o(S.cwd)?S.cwd:y(S,S.cwd),process.platform==="win32"&&(S.cwdAbs=S.cwdAbs.replace(/\\/g,"/")),S.nomount=!!F.nomount,F.nonegate=!0,F.nocomment=!0,S.minimatch=new a(k,F),S.options=S.minimatch.options}function p(S){for(var k=S.nounique,F=k?[]:Object.create(null),b=0,_=S.matches.length;b<_;b++){var L=S.matches[b];if(!L||Object.keys(L).length===0){if(S.nonull){var D=S.minimatch.globSet[b];k?F.push(D):F[D]=!0}}else{var N=Object.keys(L);k?F.push.apply(F,N):N.forEach(function(x){F[x]=!0})}}if(k||(F=Object.keys(F)),S.nosort||(F=F.sort(S.nocase?c:u)),S.mark){for(var b=0;b<F.length;b++)F[b]=S._mark(F[b]);S.nodir&&(F=F.filter(function(x){var g=!/\/$/.test(x),v=S.cache[x]||S.cache[y(S,x)];return g&&v&&(g=v!=="DIR"&&!Array.isArray(v)),g}))}S.ignore.length&&(F=F.filter(function(x){return!m(S,x)})),S.found=F}function d(S,k){var F=y(S,k),b=S.cache[F],_=k;if(b){var L=b==="DIR"||Array.isArray(b),D=k.slice(-1)==="/";if(L&&!D?_+="/":!L&&D&&(_=_.slice(0,-1)),_!==k){var N=y(S,_);S.statCache[N]=S.statCache[F],S.cache[N]=S.cache[F]}}return _}function y(S,k){var F=k;return k.charAt(0)==="/"?F=i.join(S.root,k):o(k)||k===""?F=k:S.changedCwd?F=i.resolve(S.cwd,k):F=i.resolve(k),process.platform==="win32"&&(F=F.replace(/\\/g,"/")),F}function m(S,k){return S.ignore.length?S.ignore.some(function(F){return F.matcher.match(k)||!!(F.gmatcher&&F.gmatcher.match(k))}):!1}function O(S,k){return S.ignore.length?S.ignore.some(function(F){return!!(F.gmatcher&&F.gmatcher.match(k))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,c,u,f){typeof c=="function"?(u=c,c={}):(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var p=u||function(){};a=n.resolve(a),h.mkdir(a,l,function(d){if(!d)return f=f||a,p(null,f);switch(d.code){case"ENOENT":o(n.dirname(a),c,function(y,m){y?p(y,m):o(a,c,p,m)});break;default:h.stat(a,function(y,m){y||!m.isDirectory()?p(d,f):p(null,f)});break}})}o.sync=function a(c,u,f){(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),c=n.resolve(c);try{h.mkdirSync(c,l),f=f||c}catch(d){switch(d.code){case"ENOENT":f=a(n.dirname(c),u,f),a(c,u,f);break;default:var p;try{p=h.statSync(c)}catch{throw d}if(!p.isDirectory())throw d;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var c=n.apply(this,o),u=o[o.length-1];return typeof c=="function"&&c!==u&&Object.keys(u).forEach(function(f){c[f]=u[f]}),c}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function c(){return a=r(145)}let u=process.version;function f(m){return m.indexOf("true")===0||m.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(m)||/^[0-9]/g.test(m)||!/^[a-zA-Z]/g.test(m)}function l(m){return typeof m=="boolean"||typeof m=="number"||f(m)?JSON.stringify(m):m}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function p(m,O){return h[m]||h[O]?(h[m]||100)>(h[O]||100)?1:-1:(0,(n||i()).sortAlpha)(m,O)}function d(m,O){if(typeof m!="object")throw new TypeError;let S=O.indent,k=[],F=Object.keys(m).sort(p),b=[];for(let _=0;_<F.length;_++){let L=F[_],D=m[L];if(D==null||b.indexOf(L)>=0)continue;let N=[L];if(typeof D=="object")for(let g=_+1;g<F.length;g++){let v=F[g];D===m[v]&&N.push(v)}let x=N.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof D=="string"||typeof D=="boolean"||typeof D=="number")k.push(`${x} ${l(D)}`);else if(typeof D=="object")k.push(`${x}:
89
- ${d(D,{indent:S+" "})}`+(O.topLevel?`
88
+ `)]}function g(C){return C.includes(N)&&C.includes(D)&&C.includes(L)}function v(C,E){let w=new b(C,E);return w.next(),w.parse()}function A(C,E){let w=x(C);try{return{type:"merge",object:Object.assign({},v(w[0],E),v(w[1],E))}}catch(T){if(T instanceof SyntaxError)return{type:"conflict",object:{}};throw T}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(212)("yarn");class a{constructor(u,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=u,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(u,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[u]=this.queue[u]||[]).push({factory:f,resolve:l,reject:h}),this.running[u]||this.shift(u)})}shift(u){this.running[u]&&(delete this.running[u],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[u];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,p=l.factory;f.length||delete this.queue[u];let y=()=>{this.shift(u),this.shiftConcurrencyQueue()},m=()=>{this.running[u]=!0,this.runningCount++,p().then(function(O){return h(O),y(),null}).catch(function(O){d(O),y()})};this.maybePushConcurrencyQueue(m)}maybePushConcurrencyQueue(u){this.runningCount<this.maxConcurrency?u():this.concurrencyQueue.push(u)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let u=this.concurrencyQueue.shift();u&&u()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,c){try{return a[c]}catch{}};e.exports=function(a){var c,u,f;return a===void 0?"Undefined":a===null?"Null":typeof(u=o(c=Object(a),i))=="string"?u:s?n(c):(f=n(c))=="Object"&&typeof c.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),c=r(188),u=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",y="values",m=function(){return this};e.exports=function(O,S,k,F,b,P,L){c(k,S,F);var D=function(U){if(!h&&U in v)return v[U];switch(U){case p:return function(){return new k(this,U)};case y:return function(){return new k(this,U)}}return function(){return new k(this,U)}},N=S+" Iterator",x=b==y,g=!1,v=O.prototype,A=v[l]||v[d]||b&&v[b],C=A||D(b),E=b?x?D("entries"):C:void 0,w=S=="Array"&&v.entries||A,T,$,M;if(w&&(M=f(w.call(new O)),M!==Object.prototype&&M.next&&(u(M,N,!0),!n&&typeof M[l]!="function"&&o(M,l,m))),x&&A&&A.name!==y&&(g=!0,C=function(){return A.call(this)}),(!n||L)&&(h||g||!v[l])&&o(v,l,C),a[S]=C,a[N]=m,b)if(T={values:x?C:D(y),keys:P?C:D(p),entries:E},L)for($ in T)$ in v||s(v,$,T[$]);else i(i.P+i.F*(h||g),S,T);return T}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var c=s.f(o),u=c.resolve;return u(a),c.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,c){return o[a]||(o[a]=c!==void 0?c:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var c=n(o).constructor,u;return c===void 0||(u=n(c)[s])==null?a:i(u)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),c=a.process,u=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,p={},y="onreadystatechange",m,O,S,k=function(){var b=+this;if(p.hasOwnProperty(b)){var P=p[b];delete p[b],P()}},F=function(b){k.call(b.data)};(!u||!f)&&(u=function(P){for(var L=[],D=1;arguments.length>D;)L.push(arguments[D++]);return p[++d]=function(){i(typeof P=="function"?P:Function(P),L)},m(d),d},f=function(P){delete p[P]},r(47)(c)=="process"?m=function(b){c.nextTick(n(k,b,1))}:h&&h.now?m=function(b){h.now(n(k,b,1))}:l?(O=new l,S=O.port2,O.port1.onmessage=F,m=n(S.postMessage,S,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(b){a.postMessage(b+"","*")},a.addEventListener("message",F,!1)):y in o("script")?m=function(b){s.appendChild(o("script"))[y]=function(){s.removeChild(this),k.call(b)}}:m=function(b){setTimeout(n(k,b,1),0)}),e.exports={set:u,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=u,t.disable=a,t.enable=o,t.enabled=c,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var d=h,p=+new Date,y=p-(l||p);d.diff=y,d.prev=l,d.curr=p,l=p;for(var m=new Array(arguments.length),O=0;O<m.length;O++)m[O]=arguments[O];m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(F,b){if(F==="%%")return F;S++;var P=t.formatters[b];if(typeof P=="function"){var L=m[S];F=P.call(d,L),m.splice(S,1),S--}return F}),t.formatArgs.call(d,m);var k=h.log||t.log||console.log.bind(console);k.apply(d,m)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(l=0;l<d;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var p=t.instances[l];p.enabled=t.enabled(p.namespace)}}function a(){t.enable("")}function c(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=d;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),c=r(217);function u(p){return p&&p.syscall==="realpath"&&(p.code==="ELOOP"||p.code==="ENOMEM"||p.code==="ENAMETOOLONG")}function f(p,y,m){if(a)return i(p,y,m);typeof y=="function"&&(m=y,y=null),i(p,y,function(O,S){u(O)?c.realpath(p,y,m):m(O,S)})}function l(p,y){if(a)return s(p,y);try{return s(p,y)}catch(m){if(u(m))return c.realpathSync(p,y);throw m}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=u,t.alphasorti=c,t.setopts=h,t.ownProp=n,t.makeAbs=y,t.finish=d,t.mark=p,t.isIgnored=m,t.childrenIgnored=O;function n(S,k){return Object.prototype.hasOwnProperty.call(S,k)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function c(S,k){return S.toLowerCase().localeCompare(k.toLowerCase())}function u(S,k){return S.localeCompare(k)}function f(S,k){S.ignore=k.ignore||[],Array.isArray(S.ignore)||(S.ignore=[S.ignore]),S.ignore.length&&(S.ignore=S.ignore.map(l))}function l(S){var k=null;if(S.slice(-3)==="/**"){var F=S.replace(/(\/\*\*)+$/,"");k=new a(F,{dot:!0})}return{matcher:new a(S,{dot:!0}),gmatcher:k}}function h(S,k,F){if(F||(F={}),F.matchBase&&k.indexOf("/")===-1){if(F.noglobstar)throw new Error("base matching requires globstar");k="**/"+k}S.silent=!!F.silent,S.pattern=k,S.strict=F.strict!==!1,S.realpath=!!F.realpath,S.realpathCache=F.realpathCache||Object.create(null),S.follow=!!F.follow,S.dot=!!F.dot,S.mark=!!F.mark,S.nodir=!!F.nodir,S.nodir&&(S.mark=!0),S.sync=!!F.sync,S.nounique=!!F.nounique,S.nonull=!!F.nonull,S.nosort=!!F.nosort,S.nocase=!!F.nocase,S.stat=!!F.stat,S.noprocess=!!F.noprocess,S.absolute=!!F.absolute,S.maxLength=F.maxLength||1/0,S.cache=F.cache||Object.create(null),S.statCache=F.statCache||Object.create(null),S.symlinks=F.symlinks||Object.create(null),f(S,F),S.changedCwd=!1;var b=process.cwd();n(F,"cwd")?(S.cwd=i.resolve(F.cwd),S.changedCwd=S.cwd!==b):S.cwd=b,S.root=F.root||i.resolve(S.cwd,"/"),S.root=i.resolve(S.root),process.platform==="win32"&&(S.root=S.root.replace(/\\/g,"/")),S.cwdAbs=o(S.cwd)?S.cwd:y(S,S.cwd),process.platform==="win32"&&(S.cwdAbs=S.cwdAbs.replace(/\\/g,"/")),S.nomount=!!F.nomount,F.nonegate=!0,F.nocomment=!0,S.minimatch=new a(k,F),S.options=S.minimatch.options}function d(S){for(var k=S.nounique,F=k?[]:Object.create(null),b=0,P=S.matches.length;b<P;b++){var L=S.matches[b];if(!L||Object.keys(L).length===0){if(S.nonull){var D=S.minimatch.globSet[b];k?F.push(D):F[D]=!0}}else{var N=Object.keys(L);k?F.push.apply(F,N):N.forEach(function(x){F[x]=!0})}}if(k||(F=Object.keys(F)),S.nosort||(F=F.sort(S.nocase?c:u)),S.mark){for(var b=0;b<F.length;b++)F[b]=S._mark(F[b]);S.nodir&&(F=F.filter(function(x){var g=!/\/$/.test(x),v=S.cache[x]||S.cache[y(S,x)];return g&&v&&(g=v!=="DIR"&&!Array.isArray(v)),g}))}S.ignore.length&&(F=F.filter(function(x){return!m(S,x)})),S.found=F}function p(S,k){var F=y(S,k),b=S.cache[F],P=k;if(b){var L=b==="DIR"||Array.isArray(b),D=k.slice(-1)==="/";if(L&&!D?P+="/":!L&&D&&(P=P.slice(0,-1)),P!==k){var N=y(S,P);S.statCache[N]=S.statCache[F],S.cache[N]=S.cache[F]}}return P}function y(S,k){var F=k;return k.charAt(0)==="/"?F=i.join(S.root,k):o(k)||k===""?F=k:S.changedCwd?F=i.resolve(S.cwd,k):F=i.resolve(k),process.platform==="win32"&&(F=F.replace(/\\/g,"/")),F}function m(S,k){return S.ignore.length?S.ignore.some(function(F){return F.matcher.match(k)||!!(F.gmatcher&&F.gmatcher.match(k))}):!1}function O(S,k){return S.ignore.length?S.ignore.some(function(F){return!!(F.gmatcher&&F.gmatcher.match(k))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,c,u,f){typeof c=="function"?(u=c,c={}):(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var d=u||function(){};a=n.resolve(a),h.mkdir(a,l,function(p){if(!p)return f=f||a,d(null,f);switch(p.code){case"ENOENT":o(n.dirname(a),c,function(y,m){y?d(y,m):o(a,c,d,m)});break;default:h.stat(a,function(y,m){y||!m.isDirectory()?d(p,f):d(null,f)});break}})}o.sync=function a(c,u,f){(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),c=n.resolve(c);try{h.mkdirSync(c,l),f=f||c}catch(p){switch(p.code){case"ENOENT":f=a(n.dirname(c),u,f),a(c,u,f);break;default:var d;try{d=h.statSync(c)}catch{throw p}if(!d.isDirectory())throw p;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var c=n.apply(this,o),u=o[o.length-1];return typeof c=="function"&&c!==u&&Object.keys(u).forEach(function(f){c[f]=u[f]}),c}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function c(){return a=r(145)}let u=process.version;function f(m){return m.indexOf("true")===0||m.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(m)||/^[0-9]/g.test(m)||!/^[a-zA-Z]/g.test(m)}function l(m){return typeof m=="boolean"||typeof m=="number"||f(m)?JSON.stringify(m):m}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(m,O){return h[m]||h[O]?(h[m]||100)>(h[O]||100)?1:-1:(0,(n||i()).sortAlpha)(m,O)}function p(m,O){if(typeof m!="object")throw new TypeError;let S=O.indent,k=[],F=Object.keys(m).sort(d),b=[];for(let P=0;P<F.length;P++){let L=F[P],D=m[L];if(D==null||b.indexOf(L)>=0)continue;let N=[L];if(typeof D=="object")for(let g=P+1;g<F.length;g++){let v=F[g];D===m[v]&&N.push(v)}let x=N.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof D=="string"||typeof D=="boolean"||typeof D=="number")k.push(`${x} ${l(D)}`);else if(typeof D=="object")k.push(`${x}:
89
+ ${p(D,{indent:S+" "})}`+(O.topLevel?`
90
90
  `:""));else throw new TypeError;b=b.concat(N)}return S+k.join(`
91
- ${S}`)}function y(m,O,S){let k=d(m,{indent:"",topLevel:!0});if(O)return k;let F=[];return F.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),F.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),S&&(F.push(`# yarn v${(a||c()).version}`),F.push(`# node ${u}`)),F.push(`
91
+ ${S}`)}function y(m,O,S){let k=p(m,{indent:"",topLevel:!0});if(O)return k;let F=[];return F.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),F.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),S&&(F.push(`# yarn v${(a||c()).version}`),F.push(`# node ${u}`)),F.push(`
92
92
  `),F.push(k),F.join(`
93
- `)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var L=(0,(n||i()).default)(function*(D,N,x){let g=D===void 0,v=D||-1;if(l===void 0){let A=yield d(N);l=_(A.mtime,x.mtime)}if(!l){if(g)try{v=yield y(N,"a",x.mode)}catch{try{v=yield y(N,"r",x.mode)}catch{return}}try{v&&(yield m(v,x.atime,x.mtime))}catch{}finally{g&&v&&(yield p(v))}}});return function(N,x,g){return L.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var c;function u(){return c=r(40)}function f(L){return L&&L.__esModule?L:{default:L}}let l,h=(0,(c||u()).promisify)((o||a()).default.readFile),p=(0,(c||u()).promisify)((o||a()).default.close),d=(0,(c||u()).promisify)((o||a()).default.lstat),y=(0,(c||u()).promisify)((o||a()).default.open),m=(0,(c||u()).promisify)((o||a()).default.futimes),O=(0,(c||u()).promisify)((o||a()).default.write),S=t.unlink=(0,(c||u()).promisify)(r(233)),k=t.copyFile=(()=>{var L=(0,(n||i()).default)(function*(D,N){try{yield S(D.dest),yield F(D.src,D.dest,0,D)}finally{N&&N()}});return function(N,x){return L.apply(this,arguments)}})(),F=(L,D,N,x)=>(o||a()).default.copyFile?new Promise((g,v)=>(o||a()).default.copyFile(L,D,N,A=>{A?v(A):s(void 0,D,x).then(()=>g()).catch(C=>v(C))})):b(L,D,N,x),b=(()=>{var L=(0,(n||i()).default)(function*(D,N,x,g){let v=yield y(N,"w",g.mode);try{let A=yield h(D);yield O(v,A,0,A.length),yield s(v,N,g)}finally{yield p(v)}});return function(N,x,g,v){return L.apply(this,arguments)}})(),_=t.fileDatesEqual=(L,D)=>{let N=L.getTime(),x=D.getTime();if(process.platform!=="win32")return N===x;if(Math.abs(N-x)<=1)return!0;let g=Math.floor(N/1e3),v=Math.floor(x/1e3);return N-g*1e3===0||x-v*1e3===0?g===v:N===x}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=c,t.getConfigDir=u;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function c(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function u(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,c){o instanceof RegExp&&(o=i(o,c)),a instanceof RegExp&&(a=i(a,c));var u=s(o,a,c);return u&&{start:u[0],end:u[1],pre:c.slice(0,u[0]),body:c.slice(u[0]+o.length,u[1]),post:c.slice(u[1]+a.length)}}function i(o,a){var c=a.match(o);return c?c[0]:null}n.range=s;function s(o,a,c){var u,f,l,h,p,d=c.indexOf(o),y=c.indexOf(a,d+1),m=d;if(d>=0&&y>0){for(u=[],l=c.length;m>=0&&!p;)m==d?(u.push(m),d=c.indexOf(o,m+1)):u.length==1?p=[u.pop(),y]:(f=u.pop(),f<l&&(l=f,h=y),y=c.indexOf(a,m+1)),m=d<y&&d>=0?d:y;u.length&&(p=[l,h])}return p}},function(e,t,r){var n=r(178),i=r(174);e.exports=d;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function f(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function l(b){return b.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function h(b){return b.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function p(b){if(!b)return[""];var _=[],L=i("{","}",b);if(!L)return b.split(",");var D=L.pre,N=L.body,x=L.post,g=D.split(",");g[g.length-1]+="{"+N+"}";var v=p(x);return x.length&&(g[g.length-1]+=v.shift(),g.push.apply(g,v)),_.push.apply(_,g),_}function d(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),F(l(b),!0).map(h)):[]}function y(b){return b}function m(b){return"{"+b+"}"}function O(b){return/^-?0\d/.test(b)}function S(b,_){return b<=_}function k(b,_){return b>=_}function F(b,_){var L=[],D=i("{","}",b);if(!D||/\$$/.test(D.pre))return[b];var N=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),g=N||x,v=D.body.indexOf(",")>=0;if(!g&&!v)return D.post.match(/,.*\}/)?(b=D.pre+"{"+D.body+a+D.post,F(b)):[b];var A;if(g)A=D.body.split(/\.\./);else if(A=p(D.body),A.length===1&&(A=F(A[0],!1).map(m),A.length===1)){var E=D.post.length?F(D.post,!1):[""];return E.map(function(ue){return D.pre+A[0]+ue})}var C=D.pre,E=D.post.length?F(D.post,!1):[""],w;if(g){var T=f(A[0]),$=f(A[1]),M=Math.max(A[0].length,A[1].length),U=A.length==3?Math.abs(f(A[2])):1,V=S,X=$<T;X&&(U*=-1,V=k);var he=A.some(O);w=[];for(var q=T;V(q,$);q+=U){var H;if(x)H=String.fromCharCode(q),H==="\\"&&(H="");else if(H=String(q),he){var W=M-H.length;if(W>0){var Z=new Array(W+1).join("0");q<0?H="-"+Z+H.slice(1):H=Z+H}}w.push(H)}}else w=n(A,function(Y){return F(Y,!1)});for(var ee=0;ee<w.length;ee++)for(var G=0;G<E.length;G++){var re=C+w[ee]+E[G];(!_||g||re)&&L.push(re)}return L}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let c=0;c<i.length;c++){let u=i[c];s&&/[a-zA-Z]/.test(u)&&u.toUpperCase()===u?(i=i.substr(0,c)+"-"+i.substr(c),s=!1,a=o,o=!0,c++):o&&a&&/[a-zA-Z]/.test(u)&&u.toLowerCase()===u?(i=i.substr(0,c-1)+"-"+i.substr(c-1),a=o,o=!1,s=!0):(s=u.toLowerCase()===u,a=o,o=u.toUpperCase()===u)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,c,u){var f=n(a),l=i(f.length),h=s(u,l),p;if(o&&c!=c){for(;l>h;)if(p=f[h++],p!=p)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===c)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),c=r(203),u={},f={},l=e.exports=function(h,p,d,y,m){var O=m?function(){return h}:c(h),S=n(d,y,p?2:1),k=0,F,b,_,L;if(typeof O!="function")throw TypeError(h+" is not iterable!");if(s(O)){for(F=a(h.length);F>k;k++)if(L=p?S(o(b=h[k])[0],b[1]):S(h[k]),L===u||L===f)return L}else for(_=O.call(h);!(b=_.next()).done;)if(L=i(_,S,b.value,p),L===u||L===f)return L};l.BREAK=u,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(u){var c=i.return;throw c!==void 0&&n(c.call(i)),u}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,c,u){a.prototype=n(o,{next:i(1,u)}),s(a,c+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var c=!1;try{var u=[7],f=u[n]();f.next=function(){return{done:c=!0}},u[n]=function(){return f},o(u)}catch{}return c}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,c=r(47)(o)=="process";e.exports=function(){var u,f,l,h=function(){var m,O;for(c&&(m=o.domain)&&m.exit();u;){O=u.fn,u=u.next;try{O()}catch(S){throw u?l():f=void 0,S}}f=void 0,m&&m.enter()};if(c)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var p=!0,d=document.createTextNode("");new s(h).observe(d,{characterData:!0}),l=function(){d.data=p=!p}}else if(a&&a.resolve){var y=a.resolve(void 0);l=function(){y.then(h)}}else l=function(){i.call(n,h)};return function(m){var O={fn:m,next:void 0};f&&(f.next=O),u||(u=O,l()),f=O}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},c="prototype",u=function(){var f=r(68)("iframe"),l=s.length,h="<",p=">",d;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",d=f.contentWindow.document,d.open(),d.write(h+"script"+p+"document.F=Object"+h+"/script"+p),d.close(),u=d.F;l--;)delete u[c][s[l]];return u()};e.exports=Object.create||function(l,h){var p;return l!==null?(a[c]=n(l),p=new a,a[c]=null,p[o]=l):p=u(),h===void 0?p:i(p,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,c){i(a);for(var u=s(c),f=u.length,l=0,h;f>l;)n.f(a,h=u[l++],c[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,c){var u=i(a),f=0,l=[],h;for(h in u)h!=o&&n(u,h)&&l.push(h);for(;c.length>f;)n(u,h=c[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(c){var u=typeof i[c]=="function"?i[c]:n[c];o&&u&&!u[a]&&s.f(u,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var c=String(i(o)),u=n(a),f=c.length,l,h;return u<0||u>=f?s?"":void 0:(l=c.charCodeAt(u),l<55296||l>56319||u+1===f||(h=c.charCodeAt(u+1))<56320||h>57343?s?c.charAt(u):l:s?c.slice(u,u+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,c){this._t=o(a),this._i=0,this._k=c},function(){var a=this._t,c=this._k,u=this._i++;return!a||u>=a.length?(this._t=void 0,i(1)):c=="keys"?i(0,u):c=="values"?i(0,a[u]):i(0,[u,a[u]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),c=r(34),u=r(46),f=r(181),l=r(183),h=r(108),p=r(109).set,d=r(191)(),y=r(70),m=r(104),O=r(202),S=r(105),k="Promise",F=i.TypeError,b=i.process,_=b&&b.versions,L=_&&_.v8||"",D=i[k],N=o(b)=="process",x=function(){},g,v,A,C,E=v=y.f,w=!!function(){try{var q=D.resolve(1),H=(q.constructor={})[r(13)("species")]=function(W){W(x,x)};return(N||typeof PromiseRejectionEvent=="function")&&q.then(x)instanceof H&&L.indexOf("6.6")!==0&&O.indexOf("Chrome/66")===-1}catch{}}(),T=function(q){var H;return c(q)&&typeof(H=q.then)=="function"?H:!1},$=function(q,H){if(!q._n){q._n=!0;var W=q._c;d(function(){for(var Z=q._v,ee=q._s==1,G=0,re=function(Y){var ue=ee?Y.ok:Y.fail,ve=Y.resolve,De=Y.reject,I=Y.domain,j,K,z;try{ue?(ee||(q._h==2&&V(q),q._h=1),ue===!0?j=Z:(I&&I.enter(),j=ue(Z),I&&(I.exit(),z=!0)),j===Y.promise?De(F("Promise-chain cycle")):(K=T(j))?K.call(j,ve,De):ve(j)):De(Z)}catch(B){I&&!z&&I.exit(),De(B)}};W.length>G;)re(W[G++]);q._c=[],q._n=!1,H&&!q._h&&M(q)})}},M=function(q){p.call(i,function(){var H=q._v,W=U(q),Z,ee,G;if(W&&(Z=m(function(){N?b.emit("unhandledRejection",H,q):(ee=i.onunhandledrejection)?ee({promise:q,reason:H}):(G=i.console)&&G.error&&G.error("Unhandled promise rejection",H)}),q._h=N||U(q)?2:1),q._a=void 0,W&&Z.e)throw Z.v})},U=function(q){return q._h!==1&&(q._a||q._c).length===0},V=function(q){p.call(i,function(){var H;N?b.emit("rejectionHandled",q):(H=i.onrejectionhandled)&&H({promise:q,reason:q._v})})},X=function(q){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=q,H._s=2,H._a||(H._a=H._c.slice()),$(H,!0))},he=function(q){var H=this,W;if(!H._d){H._d=!0,H=H._w||H;try{if(H===q)throw F("Promise can't be resolved itself");(W=T(q))?d(function(){var Z={_w:H,_d:!1};try{W.call(q,s(he,Z,1),s(X,Z,1))}catch(ee){X.call(Z,ee)}}):(H._v=q,H._s=1,$(H,!1))}catch(Z){X.call({_w:H,_d:!1},Z)}}};w||(D=function(H){f(this,D,k,"_h"),u(H),g.call(this);try{H(s(he,this,1),s(X,this,1))}catch(W){X.call(this,W)}},g=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},g.prototype=r(196)(D.prototype,{then:function(H,W){var Z=E(h(this,D));return Z.ok=typeof H=="function"?H:!0,Z.fail=typeof W=="function"&&W,Z.domain=N?b.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&$(this,!1),Z.promise},catch:function(q){return this.then(void 0,q)}}),A=function(){var q=new g;this.promise=q,this.resolve=s(he,q,1),this.reject=s(X,q,1)},y.f=E=function(q){return q===D||q===C?new A(q):v(q)}),a(a.G+a.W+a.F*!w,{Promise:D}),r(71)(D,k),r(198)(k),C=r(23)[k],a(a.S+a.F*!w,k,{reject:function(H){var W=E(this),Z=W.reject;return Z(H),W.promise}}),a(a.S+a.F*(n||!w),k,{resolve:function(H){return S(n&&this===C?D:this,H)}}),a(a.S+a.F*!(w&&r(189)(function(q){D.all(q).catch(x)})),k,{all:function(H){var W=this,Z=E(W),ee=Z.resolve,G=Z.reject,re=m(function(){var Y=[],ue=0,ve=1;l(H,!1,function(De){var I=ue++,j=!1;Y.push(void 0),ve++,W.resolve(De).then(function(K){j||(j=!0,Y[I]=K,--ve||ee(Y))},G)}),--ve||ee(Y)});return re.e&&G(re.v),Z.promise},race:function(H){var W=this,Z=E(W),ee=Z.reject,G=m(function(){l(H,!1,function(re){W.resolve(re).then(Z.resolve,ee)})});return G.e&&ee(G.v),Z.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(c){var u=o(this,i.Promise||s.Promise),f=typeof c=="function";return this.then(f?function(l){return a(u,c()).then(function(){return l})}:c,f?function(l){return a(u,c()).then(function(){throw l})}:c)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),c=s(o);return(c.e?a.reject:a.resolve)(c.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],f=n[u],l=f&&f.prototype;l&&!l[o]&&i(l,o,u),s[u]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;u.splice(1,0,l,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(d){d!=="%%"&&(h++,d==="%c"&&(p=h))}),u.splice(p,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(a());function c(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=u,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(p){return/^debug_/i.test(p)}).reduce(function(p,d){var y=d.substring(6).toLowerCase().replace(/_([a-z])/g,function(O,S){return S.toUpperCase()}),m=process.env[d];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),p[y]=m,p},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(p){return this.inspectOpts.colors=this.useColors,i.inspect(p,this.inspectOpts).split(`
94
- `).map(function(d){return d.trim()}).join(" ")},t.formatters.O=function(p){return this.inspectOpts.colors=this.useColors,i.inspect(p,this.inspectOpts)};function a(p){var d=this.namespace,y=this.useColors;if(y){var m=this.color,O="\x1B[3"+(m<8?m:"8;5;"+m),S=" "+O+";1m"+d+" \x1B[0m";p[0]=S+p[0].split(`
93
+ `)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var L=(0,(n||i()).default)(function*(D,N,x){let g=D===void 0,v=D||-1;if(l===void 0){let A=yield p(N);l=P(A.mtime,x.mtime)}if(!l){if(g)try{v=yield y(N,"a",x.mode)}catch{try{v=yield y(N,"r",x.mode)}catch{return}}try{v&&(yield m(v,x.atime,x.mtime))}catch{}finally{g&&v&&(yield d(v))}}});return function(N,x,g){return L.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var c;function u(){return c=r(40)}function f(L){return L&&L.__esModule?L:{default:L}}let l,h=(0,(c||u()).promisify)((o||a()).default.readFile),d=(0,(c||u()).promisify)((o||a()).default.close),p=(0,(c||u()).promisify)((o||a()).default.lstat),y=(0,(c||u()).promisify)((o||a()).default.open),m=(0,(c||u()).promisify)((o||a()).default.futimes),O=(0,(c||u()).promisify)((o||a()).default.write),S=t.unlink=(0,(c||u()).promisify)(r(233)),k=t.copyFile=(()=>{var L=(0,(n||i()).default)(function*(D,N){try{yield S(D.dest),yield F(D.src,D.dest,0,D)}finally{N&&N()}});return function(N,x){return L.apply(this,arguments)}})(),F=(L,D,N,x)=>(o||a()).default.copyFile?new Promise((g,v)=>(o||a()).default.copyFile(L,D,N,A=>{A?v(A):s(void 0,D,x).then(()=>g()).catch(C=>v(C))})):b(L,D,N,x),b=(()=>{var L=(0,(n||i()).default)(function*(D,N,x,g){let v=yield y(N,"w",g.mode);try{let A=yield h(D);yield O(v,A,0,A.length),yield s(v,N,g)}finally{yield d(v)}});return function(N,x,g,v){return L.apply(this,arguments)}})(),P=t.fileDatesEqual=(L,D)=>{let N=L.getTime(),x=D.getTime();if(process.platform!=="win32")return N===x;if(Math.abs(N-x)<=1)return!0;let g=Math.floor(N/1e3),v=Math.floor(x/1e3);return N-g*1e3===0||x-v*1e3===0?g===v:N===x}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=c,t.getConfigDir=u;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function c(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function u(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,c){o instanceof RegExp&&(o=i(o,c)),a instanceof RegExp&&(a=i(a,c));var u=s(o,a,c);return u&&{start:u[0],end:u[1],pre:c.slice(0,u[0]),body:c.slice(u[0]+o.length,u[1]),post:c.slice(u[1]+a.length)}}function i(o,a){var c=a.match(o);return c?c[0]:null}n.range=s;function s(o,a,c){var u,f,l,h,d,p=c.indexOf(o),y=c.indexOf(a,p+1),m=p;if(p>=0&&y>0){for(u=[],l=c.length;m>=0&&!d;)m==p?(u.push(m),p=c.indexOf(o,m+1)):u.length==1?d=[u.pop(),y]:(f=u.pop(),f<l&&(l=f,h=y),y=c.indexOf(a,m+1)),m=p<y&&p>=0?p:y;u.length&&(d=[l,h])}return d}},function(e,t,r){var n=r(178),i=r(174);e.exports=p;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function f(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function l(b){return b.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function h(b){return b.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function d(b){if(!b)return[""];var P=[],L=i("{","}",b);if(!L)return b.split(",");var D=L.pre,N=L.body,x=L.post,g=D.split(",");g[g.length-1]+="{"+N+"}";var v=d(x);return x.length&&(g[g.length-1]+=v.shift(),g.push.apply(g,v)),P.push.apply(P,g),P}function p(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),F(l(b),!0).map(h)):[]}function y(b){return b}function m(b){return"{"+b+"}"}function O(b){return/^-?0\d/.test(b)}function S(b,P){return b<=P}function k(b,P){return b>=P}function F(b,P){var L=[],D=i("{","}",b);if(!D||/\$$/.test(D.pre))return[b];var N=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),g=N||x,v=D.body.indexOf(",")>=0;if(!g&&!v)return D.post.match(/,.*\}/)?(b=D.pre+"{"+D.body+a+D.post,F(b)):[b];var A;if(g)A=D.body.split(/\.\./);else if(A=d(D.body),A.length===1&&(A=F(A[0],!1).map(m),A.length===1)){var E=D.post.length?F(D.post,!1):[""];return E.map(function(ue){return D.pre+A[0]+ue})}var C=D.pre,E=D.post.length?F(D.post,!1):[""],w;if(g){var T=f(A[0]),$=f(A[1]),M=Math.max(A[0].length,A[1].length),U=A.length==3?Math.abs(f(A[2])):1,V=S,X=$<T;X&&(U*=-1,V=k);var he=A.some(O);w=[];for(var q=T;V(q,$);q+=U){var H;if(x)H=String.fromCharCode(q),H==="\\"&&(H="");else if(H=String(q),he){var W=M-H.length;if(W>0){var Z=new Array(W+1).join("0");q<0?H="-"+Z+H.slice(1):H=Z+H}}w.push(H)}}else w=n(A,function(Y){return F(Y,!1)});for(var ee=0;ee<w.length;ee++)for(var G=0;G<E.length;G++){var re=C+w[ee]+E[G];(!P||g||re)&&L.push(re)}return L}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let c=0;c<i.length;c++){let u=i[c];s&&/[a-zA-Z]/.test(u)&&u.toUpperCase()===u?(i=i.substr(0,c)+"-"+i.substr(c),s=!1,a=o,o=!0,c++):o&&a&&/[a-zA-Z]/.test(u)&&u.toLowerCase()===u?(i=i.substr(0,c-1)+"-"+i.substr(c-1),a=o,o=!1,s=!0):(s=u.toLowerCase()===u,a=o,o=u.toUpperCase()===u)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,c,u){var f=n(a),l=i(f.length),h=s(u,l),d;if(o&&c!=c){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===c)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),c=r(203),u={},f={},l=e.exports=function(h,d,p,y,m){var O=m?function(){return h}:c(h),S=n(p,y,d?2:1),k=0,F,b,P,L;if(typeof O!="function")throw TypeError(h+" is not iterable!");if(s(O)){for(F=a(h.length);F>k;k++)if(L=d?S(o(b=h[k])[0],b[1]):S(h[k]),L===u||L===f)return L}else for(P=O.call(h);!(b=P.next()).done;)if(L=i(P,S,b.value,d),L===u||L===f)return L};l.BREAK=u,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(u){var c=i.return;throw c!==void 0&&n(c.call(i)),u}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,c,u){a.prototype=n(o,{next:i(1,u)}),s(a,c+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var c=!1;try{var u=[7],f=u[n]();f.next=function(){return{done:c=!0}},u[n]=function(){return f},o(u)}catch{}return c}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,c=r(47)(o)=="process";e.exports=function(){var u,f,l,h=function(){var m,O;for(c&&(m=o.domain)&&m.exit();u;){O=u.fn,u=u.next;try{O()}catch(S){throw u?l():f=void 0,S}}f=void 0,m&&m.enter()};if(c)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,p=document.createTextNode("");new s(h).observe(p,{characterData:!0}),l=function(){p.data=d=!d}}else if(a&&a.resolve){var y=a.resolve(void 0);l=function(){y.then(h)}}else l=function(){i.call(n,h)};return function(m){var O={fn:m,next:void 0};f&&(f.next=O),u||(u=O,l()),f=O}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},c="prototype",u=function(){var f=r(68)("iframe"),l=s.length,h="<",d=">",p;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",p=f.contentWindow.document,p.open(),p.write(h+"script"+d+"document.F=Object"+h+"/script"+d),p.close(),u=p.F;l--;)delete u[c][s[l]];return u()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[c]=n(l),d=new a,a[c]=null,d[o]=l):d=u(),h===void 0?d:i(d,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,c){i(a);for(var u=s(c),f=u.length,l=0,h;f>l;)n.f(a,h=u[l++],c[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,c){var u=i(a),f=0,l=[],h;for(h in u)h!=o&&n(u,h)&&l.push(h);for(;c.length>f;)n(u,h=c[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(c){var u=typeof i[c]=="function"?i[c]:n[c];o&&u&&!u[a]&&s.f(u,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var c=String(i(o)),u=n(a),f=c.length,l,h;return u<0||u>=f?s?"":void 0:(l=c.charCodeAt(u),l<55296||l>56319||u+1===f||(h=c.charCodeAt(u+1))<56320||h>57343?s?c.charAt(u):l:s?c.slice(u,u+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,c){this._t=o(a),this._i=0,this._k=c},function(){var a=this._t,c=this._k,u=this._i++;return!a||u>=a.length?(this._t=void 0,i(1)):c=="keys"?i(0,u):c=="values"?i(0,a[u]):i(0,[u,a[u]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),c=r(34),u=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,p=r(191)(),y=r(70),m=r(104),O=r(202),S=r(105),k="Promise",F=i.TypeError,b=i.process,P=b&&b.versions,L=P&&P.v8||"",D=i[k],N=o(b)=="process",x=function(){},g,v,A,C,E=v=y.f,w=!!function(){try{var q=D.resolve(1),H=(q.constructor={})[r(13)("species")]=function(W){W(x,x)};return(N||typeof PromiseRejectionEvent=="function")&&q.then(x)instanceof H&&L.indexOf("6.6")!==0&&O.indexOf("Chrome/66")===-1}catch{}}(),T=function(q){var H;return c(q)&&typeof(H=q.then)=="function"?H:!1},$=function(q,H){if(!q._n){q._n=!0;var W=q._c;p(function(){for(var Z=q._v,ee=q._s==1,G=0,re=function(Y){var ue=ee?Y.ok:Y.fail,ve=Y.resolve,De=Y.reject,I=Y.domain,j,K,z;try{ue?(ee||(q._h==2&&V(q),q._h=1),ue===!0?j=Z:(I&&I.enter(),j=ue(Z),I&&(I.exit(),z=!0)),j===Y.promise?De(F("Promise-chain cycle")):(K=T(j))?K.call(j,ve,De):ve(j)):De(Z)}catch(B){I&&!z&&I.exit(),De(B)}};W.length>G;)re(W[G++]);q._c=[],q._n=!1,H&&!q._h&&M(q)})}},M=function(q){d.call(i,function(){var H=q._v,W=U(q),Z,ee,G;if(W&&(Z=m(function(){N?b.emit("unhandledRejection",H,q):(ee=i.onunhandledrejection)?ee({promise:q,reason:H}):(G=i.console)&&G.error&&G.error("Unhandled promise rejection",H)}),q._h=N||U(q)?2:1),q._a=void 0,W&&Z.e)throw Z.v})},U=function(q){return q._h!==1&&(q._a||q._c).length===0},V=function(q){d.call(i,function(){var H;N?b.emit("rejectionHandled",q):(H=i.onrejectionhandled)&&H({promise:q,reason:q._v})})},X=function(q){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=q,H._s=2,H._a||(H._a=H._c.slice()),$(H,!0))},he=function(q){var H=this,W;if(!H._d){H._d=!0,H=H._w||H;try{if(H===q)throw F("Promise can't be resolved itself");(W=T(q))?p(function(){var Z={_w:H,_d:!1};try{W.call(q,s(he,Z,1),s(X,Z,1))}catch(ee){X.call(Z,ee)}}):(H._v=q,H._s=1,$(H,!1))}catch(Z){X.call({_w:H,_d:!1},Z)}}};w||(D=function(H){f(this,D,k,"_h"),u(H),g.call(this);try{H(s(he,this,1),s(X,this,1))}catch(W){X.call(this,W)}},g=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},g.prototype=r(196)(D.prototype,{then:function(H,W){var Z=E(h(this,D));return Z.ok=typeof H=="function"?H:!0,Z.fail=typeof W=="function"&&W,Z.domain=N?b.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&$(this,!1),Z.promise},catch:function(q){return this.then(void 0,q)}}),A=function(){var q=new g;this.promise=q,this.resolve=s(he,q,1),this.reject=s(X,q,1)},y.f=E=function(q){return q===D||q===C?new A(q):v(q)}),a(a.G+a.W+a.F*!w,{Promise:D}),r(71)(D,k),r(198)(k),C=r(23)[k],a(a.S+a.F*!w,k,{reject:function(H){var W=E(this),Z=W.reject;return Z(H),W.promise}}),a(a.S+a.F*(n||!w),k,{resolve:function(H){return S(n&&this===C?D:this,H)}}),a(a.S+a.F*!(w&&r(189)(function(q){D.all(q).catch(x)})),k,{all:function(H){var W=this,Z=E(W),ee=Z.resolve,G=Z.reject,re=m(function(){var Y=[],ue=0,ve=1;l(H,!1,function(De){var I=ue++,j=!1;Y.push(void 0),ve++,W.resolve(De).then(function(K){j||(j=!0,Y[I]=K,--ve||ee(Y))},G)}),--ve||ee(Y)});return re.e&&G(re.v),Z.promise},race:function(H){var W=this,Z=E(W),ee=Z.reject,G=m(function(){l(H,!1,function(re){W.resolve(re).then(Z.resolve,ee)})});return G.e&&ee(G.v),Z.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(c){var u=o(this,i.Promise||s.Promise),f=typeof c=="function";return this.then(f?function(l){return a(u,c()).then(function(){return l})}:c,f?function(l){return a(u,c()).then(function(){throw l})}:c)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),c=s(o);return(c.e?a.reject:a.resolve)(c.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],f=n[u],l=f&&f.prototype;l&&!l[o]&&i(l,o,u),s[u]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;u.splice(1,0,l,"color: inherit");var h=0,d=0;u[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(h++,p==="%c"&&(d=h))}),u.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(a());function c(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=u,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(d){return/^debug_/i.test(d)}).reduce(function(d,p){var y=p.substring(6).toLowerCase().replace(/_([a-z])/g,function(O,S){return S.toUpperCase()}),m=process.env[p];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),d[y]=m,d},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts).split(`
94
+ `).map(function(p){return p.trim()}).join(" ")},t.formatters.O=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts)};function a(d){var p=this.namespace,y=this.useColors;if(y){var m=this.color,O="\x1B[3"+(m<8?m:"8;5;"+m),S=" "+O+";1m"+p+" \x1B[0m";d[0]=S+d[0].split(`
95
95
  `).join(`
96
- `+S),p.push(O+"m+"+t.humanize(this.diff)+"\x1B[0m")}else p[0]=c()+d+" "+p[0]}function c(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function u(){return process.stderr.write(i.format.apply(i,arguments)+`
97
- `)}function f(p){p==null?delete process.env.DEBUG:process.env.DEBUG=p}function l(){return process.env.DEBUG}function h(p){p.inspectOpts={};for(var d=Object.keys(t.inspectOpts),y=0;y<d.length;y++)p.inspectOpts[d[y]]=t.inspectOpts[d[y]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var p=new Error;h=d}else h=y;return h;function d(m){m&&(p.message=m.message,m=p,y(m))}function y(m){if(m){if(process.throwDeprecation)throw m;if(!process.noDeprecation){var O="fs: missing callback "+(m.stack||m.message);process.traceDeprecation?console.trace(O):console.error(O)}}}}function c(h){return typeof h=="function"?h:a()}var u=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(p,d){if(p=n.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return d[p];var y=p,m={},O={},S,k,F,b;_();function _(){var v=l.exec(p);S=v[0].length,k=v[0],F=v[0],b="",i&&!O[F]&&(s.lstatSync(F),O[F]=!0)}for(;S<p.length;){f.lastIndex=S;var L=f.exec(p);if(b=k,k+=L[0],F=b+L[1],S=f.lastIndex,!(O[F]||d&&d[F]===F)){var D;if(d&&Object.prototype.hasOwnProperty.call(d,F))D=d[F];else{var N=s.lstatSync(F);if(!N.isSymbolicLink()){O[F]=!0,d&&(d[F]=F);continue}var x=null;if(!i){var g=N.dev.toString(32)+":"+N.ino.toString(32);m.hasOwnProperty(g)&&(x=m[g])}x===null&&(s.statSync(F),x=s.readlinkSync(F)),D=n.resolve(b,x),d&&(d[F]=D),i||(m[g]=x)}p=n.resolve(D,p.slice(S)),_()}}return d&&(d[y]=p),p},t.realpath=function(p,d,y){if(typeof y!="function"&&(y=c(d),d=null),p=n.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return process.nextTick(y.bind(null,null,d[p]));var m=p,O={},S={},k,F,b,_;L();function L(){var v=l.exec(p);k=v[0].length,F=v[0],b=v[0],_="",i&&!S[b]?s.lstat(b,function(A){if(A)return y(A);S[b]=!0,D()}):process.nextTick(D)}function D(){if(k>=p.length)return d&&(d[m]=p),y(null,p);f.lastIndex=k;var v=f.exec(p);return _=F,F+=v[0],b=_+v[1],k=f.lastIndex,S[b]||d&&d[b]===b?process.nextTick(D):d&&Object.prototype.hasOwnProperty.call(d,b)?g(d[b]):s.lstat(b,N)}function N(v,A){if(v)return y(v);if(!A.isSymbolicLink())return S[b]=!0,d&&(d[b]=b),process.nextTick(D);if(!i){var C=A.dev.toString(32)+":"+A.ino.toString(32);if(O.hasOwnProperty(C))return x(null,O[C],b)}s.stat(b,function(E){if(E)return y(E);s.readlink(b,function(w,T){i||(O[C]=T),x(w,T)})})}function x(v,A,C){if(v)return y(v);var E=n.resolve(_,A);d&&(d[C]=E),g(E)}function g(v){p=n.resolve(v,p.slice(k)),L()}}},function(e,t,r){e.exports=k,k.GlobSync=F;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,c=r(2),u=r(0),f=r(22),l=r(76),h=r(115),p=h.alphasort,d=h.alphasorti,y=h.setopts,m=h.ownProp,O=h.childrenIgnored,S=h.isIgnored;function k(b,_){if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
98
- See: https://github.com/isaacs/node-glob/issues/167`);return new F(b,_).found}function F(b,_){if(!b)throw new Error("must provide pattern");if(typeof _=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
99
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof F))return new F(b,_);if(y(this,b,_),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var D=0;D<L;D++)this._process(this.minimatch.set[D],D,!1);this._finish()}F.prototype._finish=function(){if(f(this instanceof F),this.realpath){var b=this;this.matches.forEach(function(_,L){var D=b.matches[L]=Object.create(null);for(var N in _)try{N=b._makeAbs(N);var x=i.realpathSync(N,b.realpathCache);D[x]=!0}catch(g){if(g.syscall==="stat")D[b._makeAbs(N)]=!0;else throw g}})}h.finish(this)},F.prototype._process=function(b,_,L){f(this instanceof F);for(var D=0;typeof b[D]=="string";)D++;var N;switch(D){case b.length:this._processSimple(b.join("/"),_);return;case 0:N=null;break;default:N=b.slice(0,D).join("/");break}var x=b.slice(D),g;N===null?g=".":((l(N)||l(b.join("/")))&&(!N||!l(N))&&(N="/"+N),g=N);var v=this._makeAbs(g);if(!O(this,g)){var A=x[0]===s.GLOBSTAR;A?this._processGlobStar(N,g,v,x,_,L):this._processReaddir(N,g,v,x,_,L)}},F.prototype._processReaddir=function(b,_,L,D,N,x){var g=this._readdir(L,x);if(g){for(var v=D[0],A=!!this.minimatch.negate,C=v._glob,E=this.dot||C.charAt(0)===".",w=[],T=0;T<g.length;T++){var $=g[T];if($.charAt(0)!=="."||E){var M;A&&!b?M=!$.match(v):M=$.match(v),M&&w.push($)}}var U=w.length;if(U!==0){if(D.length===1&&!this.mark&&!this.stat){this.matches[N]||(this.matches[N]=Object.create(null));for(var T=0;T<U;T++){var $=w[T];b&&(b.slice(-1)!=="/"?$=b+"/"+$:$=b+$),$.charAt(0)==="/"&&!this.nomount&&($=u.join(this.root,$)),this._emitMatch(N,$)}return}D.shift();for(var T=0;T<U;T++){var $=w[T],V;b?V=[b,$]:V=[$],this._process(V.concat(D),N,x)}}}},F.prototype._emitMatch=function(b,_){if(!S(this,_)){var L=this._makeAbs(_);if(this.mark&&(_=this._mark(_)),this.absolute&&(_=L),!this.matches[b][_]){if(this.nodir){var D=this.cache[L];if(D==="DIR"||Array.isArray(D))return}this.matches[b][_]=!0,this.stat&&this._stat(_)}}},F.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,!1);var _,L,D;try{L=n.lstatSync(b)}catch(x){if(x.code==="ENOENT")return null}var N=L&&L.isSymbolicLink();return this.symlinks[b]=N,!N&&L&&!L.isDirectory()?this.cache[b]="FILE":_=this._readdir(b,!1),_},F.prototype._readdir=function(b,_){var L;if(_&&!m(this.symlinks,b))return this._readdirInGlobStar(b);if(m(this.cache,b)){var D=this.cache[b];if(!D||D==="FILE")return null;if(Array.isArray(D))return D}try{return this._readdirEntries(b,n.readdirSync(b))}catch(N){return this._readdirError(b,N),null}},F.prototype._readdirEntries=function(b,_){if(!this.mark&&!this.stat)for(var L=0;L<_.length;L++){var D=_[L];b==="/"?D=b+D:D=b+"/"+D,this.cache[D]=!0}return this.cache[b]=_,_},F.prototype._readdirError=function(b,_){switch(_.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(b);if(this.cache[L]="FILE",L===this.cwdAbs){var D=new Error(_.code+" invalid cwd "+this.cwd);throw D.path=this.cwd,D.code=_.code,D}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=!1;break;default:if(this.cache[this._makeAbs(b)]=!1,this.strict)throw _;this.silent||console.error("glob error",_);break}},F.prototype._processGlobStar=function(b,_,L,D,N,x){var g=this._readdir(L,x);if(g){var v=D.slice(1),A=b?[b]:[],C=A.concat(v);this._process(C,N,!1);var E=g.length,w=this.symlinks[L];if(!(w&&x))for(var T=0;T<E;T++){var $=g[T];if(!($.charAt(0)==="."&&!this.dot)){var M=A.concat(g[T],v);this._process(M,N,!0);var U=A.concat(g[T],D);this._process(U,N,!0)}}}},F.prototype._processSimple=function(b,_){var L=this._stat(b);if(this.matches[_]||(this.matches[_]=Object.create(null)),!!L){if(b&&l(b)&&!this.nomount){var D=/[\/\\]$/.test(b);b.charAt(0)==="/"?b=u.join(this.root,b):(b=u.resolve(this.root,b),D&&(b+="/"))}process.platform==="win32"&&(b=b.replace(/\\/g,"/")),this._emitMatch(_,b)}},F.prototype._stat=function(b){var _=this._makeAbs(b),L=b.slice(-1)==="/";if(b.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,_)){var g=this.cache[_];if(Array.isArray(g)&&(g="DIR"),!L||g==="DIR")return g;if(L&&g==="FILE")return!1}var D,N=this.statCache[_];if(!N){var x;try{x=n.lstatSync(_)}catch(v){if(v&&(v.code==="ENOENT"||v.code==="ENOTDIR"))return this.statCache[_]=!1,!1}if(x&&x.isSymbolicLink())try{N=n.statSync(_)}catch{N=x}else N=x}this.statCache[_]=N;var g=!0;return N&&(g=N.isDirectory()?"DIR":"FILE"),this.cache[_]=this.cache[_]||g,L&&g==="FILE"?!1:g},F.prototype._mark=function(b){return h.mark(this,b)},F.prototype._makeAbs=function(b){return h.makeAbs(this,b)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(u,f){return i[u]?(i[u].push(f),null):(i[u]=[f],a(u))}function a(u){return s(function f(){var l=i[u],h=l.length,p=c(arguments);try{for(var d=0;d<h;d++)l[d].apply(null,p)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,p)})):delete i[u]}})}function c(u){for(var f=u.length,l=[],h=0;h<f;h++)l[h]=u[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var p=typeof l;if(p==="string"&&l.length>0)return a(l);if(p==="number"&&isNaN(l)===!1)return h.long?u(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var p=parseFloat(h[1]),d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"days":case"day":case"d":return p*s;case"hours":case"hour":case"hrs":case"hr":case"h":return p*i;case"minutes":case"minute":case"mins":case"min":case"m":return p*n;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function c(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function u(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,p){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+p:Math.ceil(l/h)+" "+p+"s"}},,,,function(e,t,r){e.exports=h,h.sync=S;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),c={nosort:!0,silent:!0},u=0,f=process.platform==="win32";function l(b){var _=["unlink","chmod","stat","lstat","rmdir","readdir"];_.forEach(function(L){b[L]=b[L]||s[L],L=L+"Sync",b[L]=b[L]||s[L]}),b.maxBusyTries=b.maxBusyTries||3,b.emfileWait=b.emfileWait||1e3,b.glob===!1&&(b.disableGlob=!0),b.disableGlob=b.disableGlob||!1,b.glob=b.glob||c}function h(b,_,L){typeof _=="function"&&(L=_,_={}),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(_,"rimraf: invalid options argument provided"),n.equal(typeof _,"object","rimraf: options should be object"),l(_);var D=0,N=null,x=0;if(_.disableGlob||!o.hasMagic(b))return v(null,[b]);_.lstat(b,function(A,C){if(!A)return v(null,[b]);o(b,_.glob,v)});function g(A){N=N||A,--x===0&&L(N)}function v(A,C){if(A)return L(A);if(x=C.length,x===0)return L();C.forEach(function(E){p(E,_,function w(T){if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&D<_.maxBusyTries){D++;var $=D*100;return setTimeout(function(){p(E,_,w)},$)}if(T.code==="EMFILE"&&u<_.emfileWait)return setTimeout(function(){p(E,_,w)},u++);T.code==="ENOENT"&&(T=null)}u=0,g(T)})})}}function p(b,_,L){n(b),n(_),n(typeof L=="function"),_.lstat(b,function(D,N){if(D&&D.code==="ENOENT")return L(null);if(D&&D.code==="EPERM"&&f&&d(b,_,D,L),N&&N.isDirectory())return m(b,_,D,L);_.unlink(b,function(x){if(x){if(x.code==="ENOENT")return L(null);if(x.code==="EPERM")return f?d(b,_,x,L):m(b,_,x,L);if(x.code==="EISDIR")return m(b,_,x,L)}return L(x)})})}function d(b,_,L,D){n(b),n(_),n(typeof D=="function"),L&&n(L instanceof Error),_.chmod(b,a,function(N){N?D(N.code==="ENOENT"?null:L):_.stat(b,function(x,g){x?D(x.code==="ENOENT"?null:L):g.isDirectory()?m(b,_,L,D):_.unlink(b,D)})})}function y(b,_,L){n(b),n(_),L&&n(L instanceof Error);try{_.chmodSync(b,a)}catch(N){if(N.code==="ENOENT")return;throw L}try{var D=_.statSync(b)}catch(N){if(N.code==="ENOENT")return;throw L}D.isDirectory()?k(b,_,L):_.unlinkSync(b)}function m(b,_,L,D){n(b),n(_),L&&n(L instanceof Error),n(typeof D=="function"),_.rmdir(b,function(N){N&&(N.code==="ENOTEMPTY"||N.code==="EEXIST"||N.code==="EPERM")?O(b,_,D):N&&N.code==="ENOTDIR"?D(L):D(N)})}function O(b,_,L){n(b),n(_),n(typeof L=="function"),_.readdir(b,function(D,N){if(D)return L(D);var x=N.length;if(x===0)return _.rmdir(b,L);var g;N.forEach(function(v){h(i.join(b,v),_,function(A){if(!g){if(A)return L(g=A);--x===0&&_.rmdir(b,L)}})})})}function S(b,_){_=_||{},l(_),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n(_,"rimraf: missing options"),n.equal(typeof _,"object","rimraf: options should be object");var L;if(_.disableGlob||!o.hasMagic(b))L=[b];else try{_.lstatSync(b),L=[b]}catch{L=o.sync(b,_.glob)}if(L.length)for(var D=0;D<L.length;D++){var b=L[D];try{var N=_.lstatSync(b)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&y(b,_,g)}try{N&&N.isDirectory()?k(b,_,null):_.unlinkSync(b)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?y(b,_,g):k(b,_,g);if(g.code!=="EISDIR")throw g;k(b,_,g)}}}function k(b,_,L){n(b),n(_),L&&n(L instanceof Error);try{_.rmdirSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR")throw L;(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")&&F(b,_)}}function F(b,_){n(b),n(_),_.readdirSync(b).forEach(function(g){S(i.join(b,g),_)});var L=f?100:1,D=0;do{var N=!0;try{var x=_.rmdirSync(b,_);return N=!1,x}finally{if(++D<L&&N)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var gP=R(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.queryLockFile=void 0;var u6=Aa();function c6(e,t,r){let n=(0,u6.nameAtVersion)(e,t);return r.object[n]}ml.queryLockFile=c6});var yP=R(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0})});var bP=R(it=>{"use strict";var AP=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),l6=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f6=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&AP(t,e,r);return l6(t,e),t},h6=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&AP(t,e,r)},EP=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.queryLockFile=it.nameAtVersion=it.parseLockFile=void 0;var hm=EP(require("fs")),p6=EP(require("path")),d6=Aa();Object.defineProperty(it,"nameAtVersion",{enumerable:!0,get:function(){return d6.nameAtVersion}});var pm=Ko(),g6=lP(),m6=fP(),vP=zg(),y6=hP(),Nr={};async function v6(e){let t=(0,pm.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(Nr[t])return Nr[t];let i=hm.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||hm.default.existsSync(p6.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,vP.readYaml)(t);o=(0,y6.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>f6(dP()))).parse;o=a(i)}return Nr[t]=o,o}let r=(0,pm.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if(Nr[r])return Nr[r];let i=(0,vP.readYaml)(r),s=(0,g6.parsePnpmLock)(i);return Nr[r]=s,Nr[r]}let n=(0,pm.searchUp)("package-lock.json",e);if(n){if(Nr[n])return Nr[n];let i;try{i=hm.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn't read package-lock.json")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return Nr[n]=(0,m6.parseNpmLock)(s),Nr[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}it.parseLockFile=v6;var A6=gP();Object.defineProperty(it,"queryLockFile",{enumerable:!0,get:function(){return A6.queryLockFile}});h6(yP(),it)});var SP=R(Ns=>{"use strict";var E6=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getScopedPackages=void 0;var wP=E6(ra());function b6(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,wP.default)(r,i,{nocase:!0});for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=w6(r),a=(0,wP.default)(Object.keys(o),s,{nocase:!0});for(let c of a)for(let u of o[c])n.add(u)}return[...n]}Ns.getScopedPackages=b6;function w6(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var xP=R(CP=>{"use strict";Object.defineProperty(CP,"__esModule",{value:!0})});var _P=R(OP=>{"use strict";Object.defineProperty(OP,"__esModule",{value:!0})});var RP=R(PP=>{"use strict";Object.defineProperty(PP,"__esModule",{value:!0})});var FP=R(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.findWorkspacePath=void 0;function S6(e,t){return e.find(({name:r})=>r===t)?.path}yl.findWorkspacePath=S6});var gm=R($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.getWorkspacePackagePathsAsync=$s.getWorkspacePackagePaths=void 0;var dm=fs();function C6(e){return(0,dm.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}$s.getWorkspacePackagePaths=C6;async function x6(e){let t=(0,dm.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,dm.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}$s.getWorkspacePackagePathsAsync=x6});var mm=R(Ms=>{"use strict";var DP=Ms&&Ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getPackagesByFiles=void 0;var O6=DP(ra()),_6=DP(require("path")),P6=cl();function R6(e,t,r=[],n=!1){let i=(0,P6.getWorkspaces)(e),s=new Set((0,O6.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let c=i.filter(u=>a.indexOf(_6.default.relative(e,u.path).replace(/\\/g,"/"))===0);if(c&&c.length>0){let u=c.reduce((f,l)=>f.path.length>l.path.length?f:l,c[0]);o.add(u.name)}else if(n)return i.map(u=>u.name)}return[...o]}Ms.getPackagesByFiles=R6});var kP=R(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.getChangedPackages=js.getChangedPackagesBetweenRefs=void 0;var mn=dc(),LP=mm();function F6(e,t,r="",n=[]){let i=[...new Set([...(0,mn.getUntrackedChanges)(e)||[],...(0,mn.getUnstagedChanges)(e)||[],...(0,mn.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,mn.getStagedChanges)(e)||[]])];return(0,LP.getPackagesByFiles)(e,i,n,!0)}js.getChangedPackagesBetweenRefs=F6;function D6(e,t,r=[]){let n=t||(0,mn.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,mn.getUntrackedChanges)(e)||[],...(0,mn.getUnstagedChanges)(e)||[],...(0,mn.getBranchChanges)(n,e)||[],...(0,mn.getStagedChanges)(e)||[]])];return(0,LP.getPackagesByFiles)(e,i,r,!0)}js.getChangedPackages=D6});var TP=R(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.listOfWorkspacePackageNames=void 0;function L6(e){return e.map(({name:t})=>t)}vl.listOfWorkspacePackageNames=L6});var MP=R(Qr=>{"use strict";var k6=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getAllPackageJsonFilesAsync=Qr._resetPackageJsonFilesCache=Qr.getAllPackageJsonFiles=void 0;var IP=k6(require("path")),NP=gm(),$P=ls(),ki=new Map;function T6(e){if((0,$P.isCachingEnabled)()&&ki.has(e))return ki.get(e);let t=(0,NP.getWorkspacePackagePaths)(e).map(r=>IP.default.join(r,"package.json"));return ki.set(e,t),t}Qr.getAllPackageJsonFiles=T6;function I6(){ki.clear()}Qr._resetPackageJsonFilesCache=I6;async function N6(e){if((0,$P.isCachingEnabled)()&&ki.has(e))return ki.get(e);let t=(await(0,NP.getWorkspacePackagePathsAsync)(e)).map(r=>IP.default.join(r,"package.json"));return ki.set(e,t),t}Qr.getAllPackageJsonFilesAsync=N6});var qP=R(Oe=>{"use strict";var $6=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lt=Oe&&Oe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$6(t,e,r)};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.getYarnWorkspaces=Oe.getYarnWorkspaceRoot=Oe.getRushWorkspaces=Oe.getRushWorkspaceRoot=Oe.getPnpmWorkspaces=Oe.getPnpmWorkspaceRoot=Oe.setCachingEnabled=void 0;lt(FS(),Oe);lt(sP(),Oe);lt(dc(),Oe);lt(cP(),Oe);var M6=ls();Object.defineProperty(Oe,"setCachingEnabled",{enumerable:!0,get:function(){return M6.setCachingEnabled}});lt(bP(),Oe);lt(Ko(),Oe);lt(SP(),Oe);lt(xP(),Oe);lt(_P(),Oe);lt(RP(),Oe);lt(FP(),Oe);lt(cl(),Oe);lt(gm(),Oe);lt(bp(),Oe);var jP=Kg();Object.defineProperty(Oe,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return jP.getPnpmWorkspaceRoot}});Object.defineProperty(Oe,"getPnpmWorkspaces",{enumerable:!0,get:function(){return jP.getPnpmWorkspaces}});var BP=am();Object.defineProperty(Oe,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return BP.getRushWorkspaceRoot}});Object.defineProperty(Oe,"getRushWorkspaces",{enumerable:!0,get:function(){return BP.getRushWorkspaces}});var WP=pg();Object.defineProperty(Oe,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return WP.getYarnWorkspaceRoot}});Object.defineProperty(Oe,"getYarnWorkspaces",{enumerable:!0,get:function(){return WP.getYarnWorkspaces}});lt(kP(),Oe);lt(mm(),Oe);lt(TP(),Oe);lt(MP(),Oe)});var lz={};mF(lz,{run:()=>aF});module.exports=yF(lz);var Xs=require("os");var _a=require("os"),nn=()=>(0,_a.platform)()==="linux"&&(0,_a.release)().toLowerCase().includes("wsl");var Pa=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return nn()||e[(0,Xs.platform)()]&&e[(0,Xs.platform)()].includes((0,Xs.arch)())};var vF=[!0,"true","TRUE",1],$m=()=>{let e=process.env.CODESPACES||"";return vF.includes(e)};var Ra=require("os");var Bi=(e,t,r)=>{let n=new Map;n.set("success",e.success?"true":"false"),n.set("automaticSuccess",e.automaticSuccess?"true":"false"),n.set("error",e.error||""),n.set("platform",nn()?"wsl":(0,Ra.platform)()),n.set("arch",(0,Ra.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var $l=require("os");var $a=require("assert");var AF={right:CF,center:xF},EF=0,Fa=1,bF=2,Da=3,Bl=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
100
- `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Xt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Xt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Xt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
101
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:c}=t[a],u=this.negatePadding(t[a]),f=o;if(u>Xt.stringWidth(o)&&(f+=" ".repeat(u-Xt.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=AF[t[a].align];f=h(f,u),Xt.stringWidth(f)<u&&(f+=" ".repeat((c||0)-Xt.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[Da]&&(s+=" ".repeat(l[Da])),s+=Mm(t[a],f,"| "),s+=f,s+=Mm(t[a],f," |"),l[Fa]&&(s+=" ".repeat(l[Fa])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=Xt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=Xt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
96
+ `+S),d.push(O+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=c()+p+" "+d[0]}function c(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function u(){return process.stderr.write(i.format.apply(i,arguments)+`
97
+ `)}function f(d){d==null?delete process.env.DEBUG:process.env.DEBUG=d}function l(){return process.env.DEBUG}function h(d){d.inspectOpts={};for(var p=Object.keys(t.inspectOpts),y=0;y<p.length;y++)d.inspectOpts[p[y]]=t.inspectOpts[p[y]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var d=new Error;h=p}else h=y;return h;function p(m){m&&(d.message=m.message,m=d,y(m))}function y(m){if(m){if(process.throwDeprecation)throw m;if(!process.noDeprecation){var O="fs: missing callback "+(m.stack||m.message);process.traceDeprecation?console.trace(O):console.error(O)}}}}function c(h){return typeof h=="function"?h:a()}var u=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(d,p){if(d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return p[d];var y=d,m={},O={},S,k,F,b;P();function P(){var v=l.exec(d);S=v[0].length,k=v[0],F=v[0],b="",i&&!O[F]&&(s.lstatSync(F),O[F]=!0)}for(;S<d.length;){f.lastIndex=S;var L=f.exec(d);if(b=k,k+=L[0],F=b+L[1],S=f.lastIndex,!(O[F]||p&&p[F]===F)){var D;if(p&&Object.prototype.hasOwnProperty.call(p,F))D=p[F];else{var N=s.lstatSync(F);if(!N.isSymbolicLink()){O[F]=!0,p&&(p[F]=F);continue}var x=null;if(!i){var g=N.dev.toString(32)+":"+N.ino.toString(32);m.hasOwnProperty(g)&&(x=m[g])}x===null&&(s.statSync(F),x=s.readlinkSync(F)),D=n.resolve(b,x),p&&(p[F]=D),i||(m[g]=x)}d=n.resolve(D,d.slice(S)),P()}}return p&&(p[y]=d),d},t.realpath=function(d,p,y){if(typeof y!="function"&&(y=c(p),p=null),d=n.resolve(d),p&&Object.prototype.hasOwnProperty.call(p,d))return process.nextTick(y.bind(null,null,p[d]));var m=d,O={},S={},k,F,b,P;L();function L(){var v=l.exec(d);k=v[0].length,F=v[0],b=v[0],P="",i&&!S[b]?s.lstat(b,function(A){if(A)return y(A);S[b]=!0,D()}):process.nextTick(D)}function D(){if(k>=d.length)return p&&(p[m]=d),y(null,d);f.lastIndex=k;var v=f.exec(d);return P=F,F+=v[0],b=P+v[1],k=f.lastIndex,S[b]||p&&p[b]===b?process.nextTick(D):p&&Object.prototype.hasOwnProperty.call(p,b)?g(p[b]):s.lstat(b,N)}function N(v,A){if(v)return y(v);if(!A.isSymbolicLink())return S[b]=!0,p&&(p[b]=b),process.nextTick(D);if(!i){var C=A.dev.toString(32)+":"+A.ino.toString(32);if(O.hasOwnProperty(C))return x(null,O[C],b)}s.stat(b,function(E){if(E)return y(E);s.readlink(b,function(w,T){i||(O[C]=T),x(w,T)})})}function x(v,A,C){if(v)return y(v);var E=n.resolve(P,A);p&&(p[C]=E),g(E)}function g(v){d=n.resolve(v,d.slice(k)),L()}}},function(e,t,r){e.exports=k,k.GlobSync=F;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,c=r(2),u=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,p=h.alphasorti,y=h.setopts,m=h.ownProp,O=h.childrenIgnored,S=h.isIgnored;function k(b,P){if(typeof P=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
98
+ See: https://github.com/isaacs/node-glob/issues/167`);return new F(b,P).found}function F(b,P){if(!b)throw new Error("must provide pattern");if(typeof P=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
99
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof F))return new F(b,P);if(y(this,b,P),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var D=0;D<L;D++)this._process(this.minimatch.set[D],D,!1);this._finish()}F.prototype._finish=function(){if(f(this instanceof F),this.realpath){var b=this;this.matches.forEach(function(P,L){var D=b.matches[L]=Object.create(null);for(var N in P)try{N=b._makeAbs(N);var x=i.realpathSync(N,b.realpathCache);D[x]=!0}catch(g){if(g.syscall==="stat")D[b._makeAbs(N)]=!0;else throw g}})}h.finish(this)},F.prototype._process=function(b,P,L){f(this instanceof F);for(var D=0;typeof b[D]=="string";)D++;var N;switch(D){case b.length:this._processSimple(b.join("/"),P);return;case 0:N=null;break;default:N=b.slice(0,D).join("/");break}var x=b.slice(D),g;N===null?g=".":((l(N)||l(b.join("/")))&&(!N||!l(N))&&(N="/"+N),g=N);var v=this._makeAbs(g);if(!O(this,g)){var A=x[0]===s.GLOBSTAR;A?this._processGlobStar(N,g,v,x,P,L):this._processReaddir(N,g,v,x,P,L)}},F.prototype._processReaddir=function(b,P,L,D,N,x){var g=this._readdir(L,x);if(g){for(var v=D[0],A=!!this.minimatch.negate,C=v._glob,E=this.dot||C.charAt(0)===".",w=[],T=0;T<g.length;T++){var $=g[T];if($.charAt(0)!=="."||E){var M;A&&!b?M=!$.match(v):M=$.match(v),M&&w.push($)}}var U=w.length;if(U!==0){if(D.length===1&&!this.mark&&!this.stat){this.matches[N]||(this.matches[N]=Object.create(null));for(var T=0;T<U;T++){var $=w[T];b&&(b.slice(-1)!=="/"?$=b+"/"+$:$=b+$),$.charAt(0)==="/"&&!this.nomount&&($=u.join(this.root,$)),this._emitMatch(N,$)}return}D.shift();for(var T=0;T<U;T++){var $=w[T],V;b?V=[b,$]:V=[$],this._process(V.concat(D),N,x)}}}},F.prototype._emitMatch=function(b,P){if(!S(this,P)){var L=this._makeAbs(P);if(this.mark&&(P=this._mark(P)),this.absolute&&(P=L),!this.matches[b][P]){if(this.nodir){var D=this.cache[L];if(D==="DIR"||Array.isArray(D))return}this.matches[b][P]=!0,this.stat&&this._stat(P)}}},F.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,!1);var P,L,D;try{L=n.lstatSync(b)}catch(x){if(x.code==="ENOENT")return null}var N=L&&L.isSymbolicLink();return this.symlinks[b]=N,!N&&L&&!L.isDirectory()?this.cache[b]="FILE":P=this._readdir(b,!1),P},F.prototype._readdir=function(b,P){var L;if(P&&!m(this.symlinks,b))return this._readdirInGlobStar(b);if(m(this.cache,b)){var D=this.cache[b];if(!D||D==="FILE")return null;if(Array.isArray(D))return D}try{return this._readdirEntries(b,n.readdirSync(b))}catch(N){return this._readdirError(b,N),null}},F.prototype._readdirEntries=function(b,P){if(!this.mark&&!this.stat)for(var L=0;L<P.length;L++){var D=P[L];b==="/"?D=b+D:D=b+"/"+D,this.cache[D]=!0}return this.cache[b]=P,P},F.prototype._readdirError=function(b,P){switch(P.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(b);if(this.cache[L]="FILE",L===this.cwdAbs){var D=new Error(P.code+" invalid cwd "+this.cwd);throw D.path=this.cwd,D.code=P.code,D}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=!1;break;default:if(this.cache[this._makeAbs(b)]=!1,this.strict)throw P;this.silent||console.error("glob error",P);break}},F.prototype._processGlobStar=function(b,P,L,D,N,x){var g=this._readdir(L,x);if(g){var v=D.slice(1),A=b?[b]:[],C=A.concat(v);this._process(C,N,!1);var E=g.length,w=this.symlinks[L];if(!(w&&x))for(var T=0;T<E;T++){var $=g[T];if(!($.charAt(0)==="."&&!this.dot)){var M=A.concat(g[T],v);this._process(M,N,!0);var U=A.concat(g[T],D);this._process(U,N,!0)}}}},F.prototype._processSimple=function(b,P){var L=this._stat(b);if(this.matches[P]||(this.matches[P]=Object.create(null)),!!L){if(b&&l(b)&&!this.nomount){var D=/[\/\\]$/.test(b);b.charAt(0)==="/"?b=u.join(this.root,b):(b=u.resolve(this.root,b),D&&(b+="/"))}process.platform==="win32"&&(b=b.replace(/\\/g,"/")),this._emitMatch(P,b)}},F.prototype._stat=function(b){var P=this._makeAbs(b),L=b.slice(-1)==="/";if(b.length>this.maxLength)return!1;if(!this.stat&&m(this.cache,P)){var g=this.cache[P];if(Array.isArray(g)&&(g="DIR"),!L||g==="DIR")return g;if(L&&g==="FILE")return!1}var D,N=this.statCache[P];if(!N){var x;try{x=n.lstatSync(P)}catch(v){if(v&&(v.code==="ENOENT"||v.code==="ENOTDIR"))return this.statCache[P]=!1,!1}if(x&&x.isSymbolicLink())try{N=n.statSync(P)}catch{N=x}else N=x}this.statCache[P]=N;var g=!0;return N&&(g=N.isDirectory()?"DIR":"FILE"),this.cache[P]=this.cache[P]||g,L&&g==="FILE"?!1:g},F.prototype._mark=function(b){return h.mark(this,b)},F.prototype._makeAbs=function(b){return h.makeAbs(this,b)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(u,f){return i[u]?(i[u].push(f),null):(i[u]=[f],a(u))}function a(u){return s(function f(){var l=i[u],h=l.length,d=c(arguments);try{for(var p=0;p<h;p++)l[p].apply(null,d)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,d)})):delete i[u]}})}function c(u){for(var f=u.length,l=[],h=0;h<f;h++)l[h]=u[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var d=typeof l;if(d==="string"&&l.length>0)return a(l);if(d==="number"&&isNaN(l)===!1)return h.long?u(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var d=parseFloat(h[1]),p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*i;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function c(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function u(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,d){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+d:Math.ceil(l/h)+" "+d+"s"}},,,,function(e,t,r){e.exports=h,h.sync=S;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),c={nosort:!0,silent:!0},u=0,f=process.platform==="win32";function l(b){var P=["unlink","chmod","stat","lstat","rmdir","readdir"];P.forEach(function(L){b[L]=b[L]||s[L],L=L+"Sync",b[L]=b[L]||s[L]}),b.maxBusyTries=b.maxBusyTries||3,b.emfileWait=b.emfileWait||1e3,b.glob===!1&&(b.disableGlob=!0),b.disableGlob=b.disableGlob||!1,b.glob=b.glob||c}function h(b,P,L){typeof P=="function"&&(L=P,P={}),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(P,"rimraf: invalid options argument provided"),n.equal(typeof P,"object","rimraf: options should be object"),l(P);var D=0,N=null,x=0;if(P.disableGlob||!o.hasMagic(b))return v(null,[b]);P.lstat(b,function(A,C){if(!A)return v(null,[b]);o(b,P.glob,v)});function g(A){N=N||A,--x===0&&L(N)}function v(A,C){if(A)return L(A);if(x=C.length,x===0)return L();C.forEach(function(E){d(E,P,function w(T){if(T){if((T.code==="EBUSY"||T.code==="ENOTEMPTY"||T.code==="EPERM")&&D<P.maxBusyTries){D++;var $=D*100;return setTimeout(function(){d(E,P,w)},$)}if(T.code==="EMFILE"&&u<P.emfileWait)return setTimeout(function(){d(E,P,w)},u++);T.code==="ENOENT"&&(T=null)}u=0,g(T)})})}}function d(b,P,L){n(b),n(P),n(typeof L=="function"),P.lstat(b,function(D,N){if(D&&D.code==="ENOENT")return L(null);if(D&&D.code==="EPERM"&&f&&p(b,P,D,L),N&&N.isDirectory())return m(b,P,D,L);P.unlink(b,function(x){if(x){if(x.code==="ENOENT")return L(null);if(x.code==="EPERM")return f?p(b,P,x,L):m(b,P,x,L);if(x.code==="EISDIR")return m(b,P,x,L)}return L(x)})})}function p(b,P,L,D){n(b),n(P),n(typeof D=="function"),L&&n(L instanceof Error),P.chmod(b,a,function(N){N?D(N.code==="ENOENT"?null:L):P.stat(b,function(x,g){x?D(x.code==="ENOENT"?null:L):g.isDirectory()?m(b,P,L,D):P.unlink(b,D)})})}function y(b,P,L){n(b),n(P),L&&n(L instanceof Error);try{P.chmodSync(b,a)}catch(N){if(N.code==="ENOENT")return;throw L}try{var D=P.statSync(b)}catch(N){if(N.code==="ENOENT")return;throw L}D.isDirectory()?k(b,P,L):P.unlinkSync(b)}function m(b,P,L,D){n(b),n(P),L&&n(L instanceof Error),n(typeof D=="function"),P.rmdir(b,function(N){N&&(N.code==="ENOTEMPTY"||N.code==="EEXIST"||N.code==="EPERM")?O(b,P,D):N&&N.code==="ENOTDIR"?D(L):D(N)})}function O(b,P,L){n(b),n(P),n(typeof L=="function"),P.readdir(b,function(D,N){if(D)return L(D);var x=N.length;if(x===0)return P.rmdir(b,L);var g;N.forEach(function(v){h(i.join(b,v),P,function(A){if(!g){if(A)return L(g=A);--x===0&&P.rmdir(b,L)}})})})}function S(b,P){P=P||{},l(P),n(b,"rimraf: missing path"),n.equal(typeof b,"string","rimraf: path should be a string"),n(P,"rimraf: missing options"),n.equal(typeof P,"object","rimraf: options should be object");var L;if(P.disableGlob||!o.hasMagic(b))L=[b];else try{P.lstatSync(b),L=[b]}catch{L=o.sync(b,P.glob)}if(L.length)for(var D=0;D<L.length;D++){var b=L[D];try{var N=P.lstatSync(b)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&y(b,P,g)}try{N&&N.isDirectory()?k(b,P,null):P.unlinkSync(b)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?y(b,P,g):k(b,P,g);if(g.code!=="EISDIR")throw g;k(b,P,g)}}}function k(b,P,L){n(b),n(P),L&&n(L instanceof Error);try{P.rmdirSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR")throw L;(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")&&F(b,P)}}function F(b,P){n(b),n(P),P.readdirSync(b).forEach(function(g){S(i.join(b,g),P)});var L=f?100:1,D=0;do{var N=!0;try{var x=P.rmdirSync(b,P);return N=!1,x}finally{if(++D<L&&N)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var __=R(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.queryLockFile=void 0;var w6=Aa();function S6(e,t,r){let n=(0,w6.nameAtVersion)(e,t);return r.object[n]}vl.queryLockFile=S6});var F_=R(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var T_=R(it=>{"use strict";var L_=it&&it.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),C6=it&&it.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),x6=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&L_(t,e,r);return C6(t,e),t},O6=it&&it.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&L_(t,e,r)},k_=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.queryLockFile=it.nameAtVersion=it.parseLockFile=void 0;var vm=k_(require("fs")),P6=k_(require("path")),_6=Aa();Object.defineProperty(it,"nameAtVersion",{enumerable:!0,get:function(){return _6.nameAtVersion}});var Am=Ko(),R6=S_(),F6=C_(),D_=Qg(),D6=x_(),$r={};async function L6(e){let t=(0,Am.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if($r[t])return $r[t];let i=vm.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||vm.default.existsSync(P6.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,D_.readYaml)(t);o=(0,D6.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>x6(P_()))).parse;o=a(i)}return $r[t]=o,o}let r=(0,Am.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if($r[r])return $r[r];let i=(0,D_.readYaml)(r),s=(0,R6.parsePnpmLock)(i);return $r[r]=s,$r[r]}let n=(0,Am.searchUp)("package-lock.json",e);if(n){if($r[n])return $r[n];let i;try{i=vm.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn't read package-lock.json")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return $r[n]=(0,F6.parseNpmLock)(s),$r[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}it.parseLockFile=L6;var k6=__();Object.defineProperty(it,"queryLockFile",{enumerable:!0,get:function(){return k6.queryLockFile}});O6(F_(),it)});var N_=R(Ns=>{"use strict";var T6=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getScopedPackages=void 0;var I_=T6(ra());function I6(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,I_.default)(r,i,{nocase:!0});for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=N6(r),a=(0,I_.default)(Object.keys(o),s,{nocase:!0});for(let c of a)for(let u of o[c])n.add(u)}return[...n]}Ns.getScopedPackages=I6;function N6(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var M_=R($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var B_=R(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0})});var q_=R(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var G_=R(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.findWorkspacePath=void 0;function $6(e,t){return e.find(({name:r})=>r===t)?.path}Al.findWorkspacePath=$6});var bm=R($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.getWorkspacePackagePathsAsync=$s.getWorkspacePackagePaths=void 0;var Em=fs();function M6(e){return(0,Em.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}$s.getWorkspacePackagePaths=M6;async function j6(e){let t=(0,Em.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,Em.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}$s.getWorkspacePackagePathsAsync=j6});var wm=R(Ms=>{"use strict";var U_=Ms&&Ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getPackagesByFiles=void 0;var B6=U_(ra()),W6=U_(require("path")),q6=fl();function G6(e,t,r=[],n=!1){let i=(0,q6.getWorkspaces)(e),s=new Set((0,B6.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let c=i.filter(u=>a.indexOf(W6.default.relative(e,u.path).replace(/\\/g,"/"))===0);if(c&&c.length>0){let u=c.reduce((f,l)=>f.path.length>l.path.length?f:l,c[0]);o.add(u.name)}else if(n)return i.map(u=>u.name)}return[...o]}Ms.getPackagesByFiles=G6});var z_=R(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.getChangedPackages=js.getChangedPackagesBetweenRefs=void 0;var yn=mc(),H_=wm();function U6(e,t,r="",n=[]){let i=[...new Set([...(0,yn.getUntrackedChanges)(e)||[],...(0,yn.getUnstagedChanges)(e)||[],...(0,yn.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,yn.getStagedChanges)(e)||[]])];return(0,H_.getPackagesByFiles)(e,i,n,!0)}js.getChangedPackagesBetweenRefs=U6;function H6(e,t,r=[]){let n=t||(0,yn.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,yn.getUntrackedChanges)(e)||[],...(0,yn.getUnstagedChanges)(e)||[],...(0,yn.getBranchChanges)(n,e)||[],...(0,yn.getStagedChanges)(e)||[]])];return(0,H_.getPackagesByFiles)(e,i,r,!0)}js.getChangedPackages=H6});var Y_=R(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.listOfWorkspacePackageNames=void 0;function z6(e){return e.map(({name:t})=>t)}El.listOfWorkspacePackageNames=z6});var J_=R(Zr=>{"use strict";var Y6=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getAllPackageJsonFilesAsync=Zr._resetPackageJsonFilesCache=Zr.getAllPackageJsonFiles=void 0;var V_=Y6(require("path")),K_=bm(),X_=ls(),ki=new Map;function V6(e){if((0,X_.isCachingEnabled)()&&ki.has(e))return ki.get(e);let t=(0,K_.getWorkspacePackagePaths)(e).map(r=>V_.default.join(r,"package.json"));return ki.set(e,t),t}Zr.getAllPackageJsonFiles=V6;function K6(){ki.clear()}Zr._resetPackageJsonFilesCache=K6;async function X6(e){if((0,X_.isCachingEnabled)()&&ki.has(e))return ki.get(e);let t=(await(0,K_.getWorkspacePackagePathsAsync)(e)).map(r=>V_.default.join(r,"package.json"));return ki.set(e,t),t}Zr.getAllPackageJsonFilesAsync=X6});var tR=R(Oe=>{"use strict";var J6=Oe&&Oe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lt=Oe&&Oe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&J6(t,e,r)};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.getYarnWorkspaces=Oe.getYarnWorkspaceRoot=Oe.getRushWorkspaces=Oe.getRushWorkspaceRoot=Oe.getPnpmWorkspaces=Oe.getPnpmWorkspaceRoot=Oe.setCachingEnabled=void 0;lt(GS(),Oe);lt(v_(),Oe);lt(mc(),Oe);lt(w_(),Oe);var Q6=ls();Object.defineProperty(Oe,"setCachingEnabled",{enumerable:!0,get:function(){return Q6.setCachingEnabled}});lt(T_(),Oe);lt(Ko(),Oe);lt(N_(),Oe);lt(M_(),Oe);lt(B_(),Oe);lt(q_(),Oe);lt(G_(),Oe);lt(fl(),Oe);lt(bm(),Oe);lt(Pd(),Oe);var Q_=tm();Object.defineProperty(Oe,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return Q_.getPnpmWorkspaceRoot}});Object.defineProperty(Oe,"getPnpmWorkspaces",{enumerable:!0,get:function(){return Q_.getPnpmWorkspaces}});var Z_=dm();Object.defineProperty(Oe,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return Z_.getRushWorkspaceRoot}});Object.defineProperty(Oe,"getRushWorkspaces",{enumerable:!0,get:function(){return Z_.getRushWorkspaces}});var eR=Ag();Object.defineProperty(Oe,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return eR.getYarnWorkspaceRoot}});Object.defineProperty(Oe,"getYarnWorkspaces",{enumerable:!0,get:function(){return eR.getYarnWorkspaces}});lt(z_(),Oe);lt(wm(),Oe);lt(Y_(),Oe);lt(J_(),Oe)});var _z={};FF(_z,{run:()=>bF});module.exports=DF(_z);var Xs=require("os");var Ra=require("os"),sn=()=>(0,Ra.platform)()==="linux"&&(0,Ra.release)().toLowerCase().includes("wsl");var Fa=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return sn()||e[(0,Xs.platform)()]&&e[(0,Xs.platform)()].includes((0,Xs.arch)())};var LF=[!0,"true","TRUE",1],Xm=()=>{let e=process.env.CODESPACES||"";return LF.includes(e)};var Da=require("os");var Bi=(e,t,r)=>{let n=new Map;n.set("success",e.success?"true":"false"),n.set("automaticSuccess",e.automaticSuccess?"true":"false"),n.set("error",e.error||""),n.set("platform",sn()?"wsl":(0,Da.platform)()),n.set("arch",(0,Da.arch)()),r&&(r.LogEvent("node-azure-auth",n),t&&r.flush())};var Gl=require("os");var ja=require("assert");var kF={right:MF,center:jF},TF=0,La=1,IF=2,ka=3,zl=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
100
+ `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Jt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Jt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Jt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
101
+ `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:c}=t[a],u=this.negatePadding(t[a]),f=o;if(u>Jt.stringWidth(o)&&(f+=" ".repeat(u-Jt.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let h=kF[t[a].align];f=h(f,u),Jt.stringWidth(f)<u&&(f+=" ".repeat((c||0)-Jt.stringWidth(f)-1))}let l=t[a].padding||[0,0,0,0];l[ka]&&(s+=" ".repeat(l[ka])),s+=Jm(t[a],f,"| "),s+=f,s+=Jm(t[a],f," |"),l[La]&&(s+=" ".repeat(l[La])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=Jt.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=Jt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
102
102
  `):i=s.text.split(`
103
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[EF]||0).fill("")),i.push(...new Array(s.padding[bF]||0).fill(""))),i.forEach((a,c)=>{r[c]||r.push([]);let u=r[c];for(let f=0;f<o;f++)u[f]===void 0&&u.push("");u.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Da]||0)+(t.padding[Fa]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Xt.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,wF(t[a])):o)}};function Mm(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function wF(e){let t=e.padding||[],r=1+(t[Da]||0)+(t[Fa]||0);return e.border?r+4:r}function SF(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function CF(e,t){e=e.trim();let r=Xt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function xF(e,t){e=e.trim();let r=Xt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var Xt;function jm(e,t){return Xt=t,new Bl({width:e?.width||SF(),wrap:e?.wrap})}var Bm=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Wl(e){return e.replace(Bm,"")}function Wm(e,t){let[r,n]=e.match(Bm)||["",""];e=Wl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
104
- `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function ql(e){return jm(e,{stringWidth:t=>[...t].length,stripAnsi:Wl,wrap:Wm})}var Wi=require("path"),La=require("fs");function qm(e,t){let r=(0,Wi.resolve)(".",e),n;for((0,La.statSync)(r).isDirectory()||(r=(0,Wi.dirname)(r));;){if(n=t(r,(0,La.readdirSync)(r)),n)return(0,Wi.resolve)(r,n);if(r=(0,Wi.dirname)(n=r),n===r)break}}var i0=require("util"),s0=require("fs"),o0=require("url");var Ym=require("util"),Na=require("path");function ni(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function ka(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Ta(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function Gm(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var sr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(sr||(sr={}));var sn,Ia=class{constructor(t){sn=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Gm(t),s=typeof t=="string",o=OF(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",p=Object.create(null),d=Object.create(null),y=n.__||sn.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},O=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let j=typeof I=="object"?I.key:I,K=Object.keys(I).map(function(z){return{boolean:"bools",string:"strings",number:"numbers"}[z]}).filter(Boolean).pop();K&&(m[K][j]=!0),m.arrays[j]=!0,m.keys.push(j)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){m.bools[I]=!0,m.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){m.strings[I]=!0,m.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){m.numbers[I]=!0,m.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){m.counts[I]=!0,m.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){m.normalize[I]=!0,m.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,j])=>{typeof j=="number"&&(m.nargs[I]=j,m.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,j])=>{typeof j=="function"&&(m.coercions[I]=j,m.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){m.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,j])=>{(typeof j=="boolean"||typeof j=="function")&&(m.configs[I]=j)})),he(n.key,o,n.default,m.arrays),Object.keys(c).forEach(function(I){(m.aliases[I]||[]).forEach(function(j){c[j]=c[I]})});let k=null;De();let F=[],b=Object.assign(Object.create(null),{_:[]}),_={};for(let I=0;I<i.length;I++){let j=i[I],K=j.replace(/^-{3,}/,"---"),z,B,se,ne,pe,Me;if(j!=="--"&&/^-/.test(j)&&ee(j))L(j);else if(K.match(/^---+(=|$)/)){L(j);continue}else if(j.match(/^--.+=/)||!a["short-option-groups"]&&j.match(/^-.+=/))ne=j.match(/^--?([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&(q(ne[1],m.arrays)?I=N(I,ne[1],i,ne[2]):q(ne[1],m.nargs)!==!1?I=D(I,ne[1],i,ne[2]):x(ne[1],ne[2],!0));else if(j.match(S)&&a["boolean-negation"])ne=j.match(S),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],x(B,q(B,m.arrays)?[!1]:!1));else if(j.match(/^--.+/)||!a["short-option-groups"]&&j.match(/^-[^-]+/))ne=j.match(/^--?(.+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],q(B,m.arrays)?I=N(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(pe=i[I+1],pe!==void 0&&(!pe.match(/^-/)||pe.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(pe)?(x(B,pe),I++):x(B,re(B))));else if(j.match(/^-.\..+=/))ne=j.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&x(ne[1],ne[2]);else if(j.match(/^-.\..+/)&&!j.match(O))pe=i[I+1],ne=j.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],pe!==void 0&&!pe.match(/^-/)&&!q(B,m.bools)&&!q(B,m.counts)?(x(B,pe),I++):x(B,re(B)));else if(j.match(/^-[^-]+/)&&!j.match(O)){se=j.slice(1,-1).split(""),z=!1;for(let Qe=0;Qe<se.length;Qe++){if(pe=j.slice(Qe+2),se[Qe+1]&&se[Qe+1]==="="){Me=j.slice(Qe+3),B=se[Qe],q(B,m.arrays)?I=N(I,B,i,Me):q(B,m.nargs)!==!1?I=D(I,B,i,Me):x(B,Me),z=!0;break}if(pe==="-"){x(se[Qe],pe);continue}if(/[A-Za-z]/.test(se[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(pe)&&q(pe,m.bools)===!1){x(se[Qe],pe),z=!0;break}if(se[Qe+1]&&se[Qe+1].match(/\W/)){x(se[Qe],pe),z=!0;break}else x(se[Qe],re(se[Qe]))}B=j.slice(-1)[0],!z&&B!=="-"&&(q(B,m.arrays)?I=N(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(pe=i[I+1],pe!==void 0&&(!/^(-|--)[^-]/.test(pe)||pe.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(pe)?(x(B,pe),I++):x(B,re(B))))}else if(j.match(/^-[0-9]$/)&&j.match(O)&&q(j.slice(1),m.bools))B=j.slice(1),x(B,re(B));else if(j==="--"){F=i.slice(I+1);break}else if(a["halt-at-non-option"]){F=i.slice(I);break}else L(j)}T(b,!0),T(b,!1),C(b),w(),U(b,m.aliases,c,!0),$(b),a["set-placeholder-key"]&&M(b),Object.keys(m.counts).forEach(function(I){V(b,I.split("."))||x(I,0)}),l&&F.length&&(b[h]=[]),F.forEach(function(I){b[h].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(b).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete b[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete b[I.split(".").map(j=>ni(j)).join(".")],delete b[I]});function L(I){let j=A("_",I);(typeof j=="string"||typeof j=="number")&&b._.push(j)}function D(I,j,K,z){let B,se=q(j,m.nargs);if(se=typeof se!="number"||isNaN(se)?1:se,se===0)return ve(z)||(k=Error(y("Argument unexpected for: %s",j))),x(j,re(j)),I;let ne=ve(z)?0:1;if(a["nargs-eats-options"])K.length-(I+1)+ne<se&&(k=Error(y("Not enough arguments following: %s",j))),ne=se;else{for(B=I+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(O)||ee(K[B]));B++)ne++;ne<se&&(k=Error(y("Not enough arguments following: %s",j)))}let pe=Math.min(ne,se);for(!ve(z)&&pe>0&&(x(j,z),pe--),B=I+1;B<pe+I+1;B++)x(j,K[B]);return I+pe}function N(I,j,K,z){let B=[],se=z||K[I+1],ne=q(j,m.nargs);if(q(j,m.bools)&&!/^(true|false)$/.test(se))B.push(!0);else if(ve(se)||ve(z)&&/^-/.test(se)&&!O.test(se)&&!ee(se)){if(c[j]!==void 0){let pe=c[j];B=Array.isArray(pe)?pe:[pe]}}else{ve(z)||B.push(v(j,z,!0));for(let pe=I+1;pe<K.length&&!(!a["greedy-arrays"]&&B.length>0||ne&&typeof ne=="number"&&B.length>=ne||(se=K[pe],/^-/.test(se)&&!O.test(se)&&!ee(se)));pe++)I=pe,B.push(v(j,se,s))}return typeof ne=="number"&&(ne&&B.length<ne||isNaN(ne)&&B.length===0)&&(k=Error(y("Not enough arguments following: %s",j))),x(j,B),I}function x(I,j,K=s){if(/-/.test(I)&&a["camel-case-expansion"]){let se=I.split(".").map(function(ne){return ni(ne)}).join(".");g(I,se)}let z=v(I,j,K),B=I.split(".");X(b,B,z),m.aliases[I]&&m.aliases[I].forEach(function(se){let ne=se.split(".");X(b,ne,z)}),B.length>1&&a["dot-notation"]&&(m.aliases[B[0]]||[]).forEach(function(se){let ne=se.split("."),pe=[].concat(B);pe.shift(),ne=ne.concat(pe),(m.aliases[I]||[]).includes(ne.join("."))||X(b,ne,z)}),q(I,m.normalize)&&!q(I,m.arrays)&&[I].concat(m.aliases[I]||[]).forEach(function(ne){Object.defineProperty(_,ne,{enumerable:!0,get(){return j},set(pe){j=typeof pe=="string"?sn.normalize(pe):pe}})})}function g(I,j){m.aliases[I]&&m.aliases[I].length||(m.aliases[I]=[j],p[j]=!0),m.aliases[j]&&m.aliases[j].length||g(j,I)}function v(I,j,K){K&&(j=_F(j)),(q(I,m.bools)||q(I,m.counts))&&typeof j=="string"&&(j=j==="true");let z=Array.isArray(j)?j.map(function(B){return A(I,B)}):A(I,j);return q(I,m.counts)&&(ve(z)||typeof z=="boolean")&&(z=Gl()),q(I,m.normalize)&&q(I,m.arrays)&&(Array.isArray(j)?z=j.map(B=>sn.normalize(B)):z=sn.normalize(j)),z}function A(I,j){return!a["parse-positional-numbers"]&&I==="_"||!q(I,m.strings)&&!q(I,m.bools)&&!Array.isArray(j)&&(Ta(j)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${j}`)))||!ve(j)&&q(I,m.numbers))&&(j=Number(j)),j}function C(I){let j=Object.create(null);U(j,m.aliases,c),Object.keys(m.configs).forEach(function(K){let z=I[K]||j[K];if(z)try{let B=null,se=sn.resolve(sn.cwd(),z),ne=m.configs[K];if(typeof ne=="function"){try{B=ne(se)}catch(pe){B=pe}if(B instanceof Error){k=B;return}}else B=sn.require(se);E(B)}catch(B){B.name==="PermissionDenied"?k=B:I[K]&&(k=Error(y("Invalid JSON config file: %s",z)))}})}function E(I,j){Object.keys(I).forEach(function(K){let z=I[K],B=j?j+"."+K:K;typeof z=="object"&&z!==null&&!Array.isArray(z)&&a["dot-notation"]?E(z,B):(!V(b,B.split("."))||q(B,m.arrays)&&a["combine-arrays"])&&x(B,z)})}function w(){typeof u<"u"&&u.forEach(function(I){E(I)})}function T(I,j){if(typeof f>"u")return;let K=typeof f=="string"?f:"",z=sn.env();Object.keys(z).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let se=B.split("__").map(function(ne,pe){return pe===0&&(ne=ne.substring(K.length)),ni(ne)});(j&&m.configs[se.join(".")]||!j)&&!V(I,se)&&x(se.join("."),z[B])}})}function $(I){let j,K=new Set;Object.keys(I).forEach(function(z){if(!K.has(z)&&(j=q(z,m.coercions),typeof j=="function"))try{let B=A(z,j(I[z]));[].concat(m.aliases[z]||[],z).forEach(se=>{K.add(se),I[se]=B})}catch(B){k=B}})}function M(I){return m.keys.forEach(j=>{~j.indexOf(".")||typeof I[j]>"u"&&(I[j]=void 0)}),I}function U(I,j,K,z=!1){Object.keys(K).forEach(function(B){V(I,B.split("."))||(X(I,B.split("."),K[B]),z&&(d[B]=!0),(j[B]||[]).forEach(function(se){V(I,se.split("."))||X(I,se.split("."),K[B])}))})}function V(I,j){let K=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(B){K=K[B]||{}});let z=j[j.length-1];return typeof K!="object"?!1:z in K}function X(I,j,K){let z=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(Me){Me=Um(Me),typeof z=="object"&&z[Me]===void 0&&(z[Me]={}),typeof z[Me]!="object"||Array.isArray(z[Me])?(Array.isArray(z[Me])?z[Me].push({}):z[Me]=[z[Me],{}],z=z[Me][z[Me].length-1]):z=z[Me]});let B=Um(j[j.length-1]),se=q(j.join("."),m.arrays),ne=Array.isArray(K),pe=a["duplicate-arguments-array"];!pe&&q(B,m.nargs)&&(pe=!0,(!ve(z[B])&&m.nargs[B]===1||Array.isArray(z[B])&&z[B].length===m.nargs[B])&&(z[B]=void 0)),K===Gl()?z[B]=Gl(z[B]):Array.isArray(z[B])?pe&&se&&ne?z[B]=a["flatten-duplicate-arrays"]?z[B].concat(K):(Array.isArray(z[B][0])?z[B]:[z[B]]).concat([K]):!pe&&!!se==!!ne?z[B]=K:z[B]=z[B].concat([K]):z[B]===void 0&&se?z[B]=ne?K:[K]:pe&&!(z[B]===void 0||q(B,m.counts)||q(B,m.bools))?z[B]=[z[B],K]:z[B]=K}function he(...I){I.forEach(function(j){Object.keys(j||{}).forEach(function(K){m.aliases[K]||(m.aliases[K]=[].concat(o[K]||[]),m.aliases[K].concat(K).forEach(function(z){if(/-/.test(z)&&a["camel-case-expansion"]){let B=ni(z);B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),p[B]=!0)}}),m.aliases[K].concat(K).forEach(function(z){if(z.length>1&&/[A-Z]/.test(z)&&a["camel-case-expansion"]){let B=ka(z,"-");B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),p[B]=!0)}}),m.aliases[K].forEach(function(z){m.aliases[z]=[K].concat(m.aliases[K].filter(function(B){return z!==B}))}))})})}function q(I,j){let K=[].concat(m.aliases[I]||[],I),z=Object.keys(j),B=K.find(se=>z.includes(se));return B?j[B]:!1}function H(I){let j=Object.keys(m);return[].concat(j.map(z=>m[z])).some(function(z){return Array.isArray(z)?z.includes(I):z[I]})}function W(I,...j){return[].concat(...j).some(function(z){let B=I.match(z);return B&&H(B[1])})}function Z(I){if(I.match(O)||!I.match(/^-[^-]+/))return!1;let j=!0,K,z=I.slice(1).split("");for(let B=0;B<z.length;B++){if(K=I.slice(B+2),!H(z[B])){j=!1;break}if(z[B+1]&&z[B+1]==="="||K==="-"||/[A-Za-z]/.test(z[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(K)||z[B+1]&&z[B+1].match(/\W/))break}return j}function ee(I){return a["unknown-options-as-args"]&&G(I)}function G(I){return I=I.replace(/^-{3,}/,"--"),I.match(O)||Z(I)?!1:!W(I,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function re(I){return!q(I,m.bools)&&!q(I,m.counts)&&`${I}`in c?c[I]:Y(ue(I))}function Y(I){return{[sr.BOOLEAN]:!0,[sr.STRING]:"",[sr.NUMBER]:void 0,[sr.ARRAY]:[]}[I]}function ue(I){let j=sr.BOOLEAN;return q(I,m.strings)?j=sr.STRING:q(I,m.numbers)?j=sr.NUMBER:q(I,m.bools)?j=sr.BOOLEAN:q(I,m.arrays)&&(j=sr.ARRAY),j}function ve(I){return I===void 0}function De(){Object.keys(m.counts).find(I=>q(I,m.arrays)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,m.nargs)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},m.aliases),argv:Object.assign(_,b),configuration:a,defaulted:Object.assign({},d),error:k,newAliases:Object.assign({},p)}}};function OF(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Gl(e){return e!==void 0?e+1:1}function Um(e){return e==="__proto__"?"___proto___":e}function _F(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var Vm=require("fs");var Ul,Hl,zl,Hm=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,zm=(Hl=(Ul=process==null?void 0:process.versions)===null||Ul===void 0?void 0:Ul.node)!==null&&Hl!==void 0?Hl:(zl=process==null?void 0:process.version)===null||zl===void 0?void 0:zl.slice(1);if(zm&&Number(zm.match(/^([^.]+)/)[1])<Hm)throw Error(`yargs parser supports a minimum Node.js version of ${Hm}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var PF=process?process.env:{},Km=new Ia({cwd:process.cwd,env:()=>PF,format:Ym.format,normalize:Na.normalize,resolve:Na.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,Vm.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Js=function(t,r){return Km.parse(t.slice(),r).argv};Js.detailed=function(e,t){return Km.parse(e.slice(),t)};Js.camelCase=ni;Js.decamelize=ka;Js.looksLikeNumber=Ta;var Yl=Js;var Rr=require("path");function Xm(){return RF()?0:1}function RF(){return FF()&&!process.defaultApp}function FF(){return!!process.versions.electron}function Vl(e){return e.slice(Xm()+1)}function Jm(){return process.argv[Xm()]}var We=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var qi=require("fs"),Qm=require("util"),Zm=require("path"),e0={fs:{readFileSync:qi.readFileSync,writeFile:qi.writeFile},format:Qm.format,resolve:Zm.resolve,exists:e=>{try{return(0,qi.statSync)(e).isFile()}catch{return!1}}};var Pr,Kl=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Pr.format.apply(Pr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),Pr.format.apply(Pr.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);Pr.fs.writeFile(o,a,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Pr.fs.readFileSync&&(t=JSON.parse(Pr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Pr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Pr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Pr.exists(t)}};function t0(e,t){Pr=t;let r=new Kl(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var DF=e=>t0(e,e0),r0=DF;var TF={},LF="require is not supported by ESM",n0="loading a directory of commands is not supported yet for ESM",Qs;try{Qs=(0,o0.fileURLToPath)(TF.url)}catch{Qs=process.cwd()}var kF=Qs.substring(0,Qs.lastIndexOf("node_modules")),Xl={assert:{notStrictEqual:$a.notStrictEqual,strictEqual:$a.strictEqual},cliui:ql,findUp:qm,getEnv:e=>process.env[e],inspect:i0.inspect,getCallerFile:()=>{throw new We(n0)},getProcessArgvBin:Jm,mainFilename:kF||process.cwd(),Parser:Yl,path:{basename:Rr.basename,dirname:Rr.dirname,extname:Rr.extname,relative:Rr.relative,resolve:Rr.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:s0.readFileSync,require:()=>{throw new We(LF)},requireDirectory:()=>{throw new We(n0)},stringWidth:e=>[...e].length,y18n:r0({directory:(0,Rr.resolve)(Qs,"../../../locales"),updateFiles:!1})};function Ft(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function Jl(e,t){t.assert.strictEqual(typeof e,"string")}function Gi(e){return Object.keys(e)}function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}function Cn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let c=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(c=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:c}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:c})}),s}var IF=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Cn(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),c=[].slice.call(o);for(;c.length&&c[c.length-1]===void 0;)c.pop();let u=a||c.length;if(u<s.demanded.length)throw new We(`Not enough arguments provided. Expected ${s.demanded.length} but received ${c.length}.`);let f=s.demanded.length+s.optional.length;if(u>f)throw new We(`Too many arguments provided. Expected max ${f} but received ${u}.`);s.demanded.forEach(l=>{let h=c.shift(),p=a0(h);l.cmd.filter(y=>y===p||y==="*").length===0&&u0(p,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(c.length===0)return;let h=c.shift(),p=a0(h);l.cmd.filter(y=>y===p||y==="*").length===0&&u0(p,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function a0(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function u0(e,t,r){throw new We(`Invalid ${IF[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Ma=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function c0(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function ii(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(qe(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return qe(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function si(e,t,r=n=>{throw n}){try{let n=NF(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function NF(e){return typeof e=="function"}function Ql(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}var Ui=/(^\*)|(^\$0)/,Zl=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,c)=>{let u=s(o,a,c);if(u){if(this.requireCache.has(a))return u;this.requireCache.add(a),this.addHandler(u)}return u},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],c=c0(s);if(i=i||(()=>{}),Array.isArray(t))if($F(t))[t,...a]=t;else for(let u of t)this.addHandler(u);else if(jF(t)){let u=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(u=[].concat(u).concat(t.aliases)),this.addHandler(u,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(l0(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let u=Cn(t);a=a.map(h=>Cn(h).cmd);let f=!1,l=[u.cmd].concat(a).filter(h=>Ui.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(u.cmd=l[0],a=l.slice(1),t=t.replace(Ui,u.cmd)),a.forEach(h=>{this.aliasMap[h]=u.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[u.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,deprecated:o,demanded:u.demanded,optional:u.optional},f&&(this.defaultCommand=this.handlers[u.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),u=c.commands.slice(),f=!t;t&&(c.commands.push(t),c.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,u,i,s,o);return qe(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,c,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,c,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,c){let u=r.builder,f=n;if(ja(u)){n.getInternalMethods().getUsageInstance().freeze();let l=u(n.getInternalMethods().reset(i),c);if(qe(l))return l.then(h=>(f=h0(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else MF(u)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,u[l])}));return this.parseAndUpdateUsage(t,r,f,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return qe(a)?a.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ui.test(r.original)?r.original.replace(Ui,"").trim():r.original,i=t.filter(s=>!Ui.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,c){if(!o.getInternalMethods().getHasOutput()){let u=o.getInternalMethods().runValidation(s,c,o.parsed.error,t);n=si(n,f=>(u(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let u=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,u,!1,!1),n=ii(n,o,a,!1),n=si(n,f=>{let l=r.handler(f);return qe(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),qe(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let c={};if(s)return n;a.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,a));let u=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=ii(n,a,u,!0);return qe(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,u,c)):this.handleValidationAndGetResult(t,r,f,i,o,a,u,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let c=s.shift();this.populatePositional(c,r,a)}for(;o.length;){let c=o.shift();this.populatePositional(c,r,a)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Cn(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let u of Object.keys(n.alias))s.alias[u]=(s.alias[u]||[]).concat(n.alias[u]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(u=>{r[u].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[u]=!0),o.push(`--${u}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let u=Object.keys(r);Object.keys(r).forEach(f=>{u.push(...c.aliases[f])}),Object.keys(c.argv).forEach(f=>{u.includes(f)&&(r[f]||(r[f]=c.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(c.argv,f)&&(Array.isArray(t[f])||Array.isArray(c.argv[f]))?t[f]=[].concat(t[f],c.argv[f]):t[f]=c.argv[f])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ui.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(ja(r))return r(t,!0);l0(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Ql(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Ft(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Ft(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function f0(e,t,r,n){return new Zl(e,t,r,n)}function l0(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function $F(e){return e.every(t=>typeof t=="string")}function ja(e){return typeof e=="function"}function MF(e){return typeof e=="object"}function jF(e){return typeof e=="object"&&!Array.isArray(e)}function xn(e={},t=()=>!0){let r={};return Gi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function On(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function BF(e){return typeof e=="boolean"}function d0(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(v){i.push(v)};let s=null,o=null,a=!0;n.showHelpOnFail=function(v=!0,A){let[C,E]=typeof v=="string"?[!0,v]:[v,A];return e.getInternalMethods().isGlobalContext()&&(o=E),s=E,a=C,n};let c=!1;n.fail=function(v,A){let C=e.getInternalMethods().getLoggerInstance();if(i.length)for(let E=i.length-1;E>=0;--E){let w=i[E];if(BF(w)){if(A)throw A;if(v)throw Error(v)}else w(v,A,n)}else{if(e.getExitProcess()&&On(!0),!c){c=!0,a&&(e.showHelp("error"),C.error()),(v||A)&&C.error(v||A);let E=s||o;E&&((v||A)&&C.error(""),C.error(E))}if(A=A||new We(v),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,A);throw A}};let u=[],f=!1;n.usage=(g,v)=>g===null?(f=!0,u=[],n):(f=!1,u.push([g,v||""]),n),n.getUsage=()=>u,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(g,v)=>{l.push([g,v||""])};let h=[];n.command=function(v,A,C,E,w=!1){C&&(h=h.map(T=>(T[2]=!1,T))),h.push([v,A||"",C,E,w])},n.getCommands=()=>h;let p={};n.describe=function(v,A){Array.isArray(v)?v.forEach(C=>{n.describe(C,A)}):typeof v=="object"?Object.keys(v).forEach(C=>{n.describe(C,v[C])}):p[v]=A},n.getDescriptions=()=>p;let d=[];n.epilog=g=>{d.push(g)};let y=!1,m;n.wrap=g=>{y=!0,m=g},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(m=D(),y=!0),m);let O="__yargsString__:";n.deferY18nLookup=g=>O+g,n.help=function(){if(F)return F;k();let v=e.customScriptName?e.$0:t.path.basename(e.$0),A=e.getDemandedOptions(),C=e.getDemandedCommands(),E=e.getDeprecatedOptions(),w=e.getGroups(),T=e.getOptions(),$=[];$=$.concat(Object.keys(p)),$=$.concat(Object.keys(A)),$=$.concat(Object.keys(C)),$=$.concat(Object.keys(T.default)),$=$.filter(_),$=Object.keys($.reduce((W,Z)=>(Z!=="_"&&(W[Z]=!0),W),{}));let M=n.getWrap(),U=t.cliui({width:M,wrap:!!M});if(!f){if(u.length)u.forEach(W=>{U.div({text:`${W[0].replace(/\$0/g,v)}`}),W[1]&&U.div({text:`${W[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let W=null;C._?W=`${v} <${r("command")}>
103
+ `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[TF]||0).fill("")),i.push(...new Array(s.padding[IF]||0).fill(""))),i.forEach((a,c)=>{r[c]||r.push([]);let u=r[c];for(let f=0;f<o;f++)u[f]===void 0&&u.push("");u.push(a)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[ka]||0)+(t.padding[La]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Jt.stringWidth(o.text));let r=t.length,n=this.width,i=t.map(o=>{if(o.width)return r--,n-=o.width,o.width}),s=r?Math.floor(n/r):0;return i.map((o,a)=>o===void 0?Math.max(s,NF(t[a])):o)}};function Jm(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function NF(e){let t=e.padding||[],r=1+(t[ka]||0)+(t[La]||0);return e.border?r+4:r}function $F(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function MF(e,t){e=e.trim();let r=Jt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function jF(e,t){e=e.trim();let r=Jt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var Jt;function Qm(e,t){return Jt=t,new zl({width:e?.width||$F(),wrap:e?.wrap})}var Zm=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Yl(e){return e.replace(Zm,"")}function e0(e,t){let[r,n]=e.match(Zm)||["",""];e=Yl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
104
+ `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}function Vl(e){return Qm(e,{stringWidth:t=>[...t].length,stripAnsi:Yl,wrap:e0})}var Wi=require("path"),Ta=require("fs");function t0(e,t){let r=(0,Wi.resolve)(".",e),n;for((0,Ta.statSync)(r).isDirectory()||(r=(0,Wi.dirname)(r));;){if(n=t(r,(0,Ta.readdirSync)(r)),n)return(0,Wi.resolve)(r,n);if(r=(0,Wi.dirname)(n=r),n===r)break}}var y0=require("util"),v0=require("fs"),A0=require("url");var o0=require("util"),Ma=require("path");function ni(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Ia(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Na(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function r0(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var or;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(or||(or={}));var on,$a=class{constructor(t){on=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=r0(t),s=typeof t=="string",o=BF(Object.assign(Object.create(null),n.alias)),a=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),c=Object.assign(Object.create(null),n.default),u=n.configObjects||[],f=n.envPrefix,l=a["populate--"],h=l?"--":"_",d=Object.create(null),p=Object.create(null),y=n.__||on.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},O=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let j=typeof I=="object"?I.key:I,K=Object.keys(I).map(function(z){return{boolean:"bools",string:"strings",number:"numbers"}[z]}).filter(Boolean).pop();K&&(m[K][j]=!0),m.arrays[j]=!0,m.keys.push(j)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){m.bools[I]=!0,m.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){m.strings[I]=!0,m.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){m.numbers[I]=!0,m.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){m.counts[I]=!0,m.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){m.normalize[I]=!0,m.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,j])=>{typeof j=="number"&&(m.nargs[I]=j,m.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,j])=>{typeof j=="function"&&(m.coercions[I]=j,m.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){m.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,j])=>{(typeof j=="boolean"||typeof j=="function")&&(m.configs[I]=j)})),he(n.key,o,n.default,m.arrays),Object.keys(c).forEach(function(I){(m.aliases[I]||[]).forEach(function(j){c[j]=c[I]})});let k=null;De();let F=[],b=Object.assign(Object.create(null),{_:[]}),P={};for(let I=0;I<i.length;I++){let j=i[I],K=j.replace(/^-{3,}/,"---"),z,B,se,ne,de,Me;if(j!=="--"&&/^-/.test(j)&&ee(j))L(j);else if(K.match(/^---+(=|$)/)){L(j);continue}else if(j.match(/^--.+=/)||!a["short-option-groups"]&&j.match(/^-.+=/))ne=j.match(/^--?([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&(q(ne[1],m.arrays)?I=N(I,ne[1],i,ne[2]):q(ne[1],m.nargs)!==!1?I=D(I,ne[1],i,ne[2]):x(ne[1],ne[2],!0));else if(j.match(S)&&a["boolean-negation"])ne=j.match(S),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],x(B,q(B,m.arrays)?[!1]:!1));else if(j.match(/^--.+/)||!a["short-option-groups"]&&j.match(/^-[^-]+/))ne=j.match(/^--?(.+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],q(B,m.arrays)?I=N(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(de=i[I+1],de!==void 0&&(!de.match(/^-/)||de.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(de)?(x(B,de),I++):x(B,re(B))));else if(j.match(/^-.\..+=/))ne=j.match(/^-([^=]+)=([\s\S]*)$/),ne!==null&&Array.isArray(ne)&&ne.length>=3&&x(ne[1],ne[2]);else if(j.match(/^-.\..+/)&&!j.match(O))de=i[I+1],ne=j.match(/^-(.\..+)/),ne!==null&&Array.isArray(ne)&&ne.length>=2&&(B=ne[1],de!==void 0&&!de.match(/^-/)&&!q(B,m.bools)&&!q(B,m.counts)?(x(B,de),I++):x(B,re(B)));else if(j.match(/^-[^-]+/)&&!j.match(O)){se=j.slice(1,-1).split(""),z=!1;for(let Qe=0;Qe<se.length;Qe++){if(de=j.slice(Qe+2),se[Qe+1]&&se[Qe+1]==="="){Me=j.slice(Qe+3),B=se[Qe],q(B,m.arrays)?I=N(I,B,i,Me):q(B,m.nargs)!==!1?I=D(I,B,i,Me):x(B,Me),z=!0;break}if(de==="-"){x(se[Qe],de);continue}if(/[A-Za-z]/.test(se[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(de)&&q(de,m.bools)===!1){x(se[Qe],de),z=!0;break}if(se[Qe+1]&&se[Qe+1].match(/\W/)){x(se[Qe],de),z=!0;break}else x(se[Qe],re(se[Qe]))}B=j.slice(-1)[0],!z&&B!=="-"&&(q(B,m.arrays)?I=N(I,B,i):q(B,m.nargs)!==!1?I=D(I,B,i):(de=i[I+1],de!==void 0&&(!/^(-|--)[^-]/.test(de)||de.match(O))&&!q(B,m.bools)&&!q(B,m.counts)||/^(true|false)$/.test(de)?(x(B,de),I++):x(B,re(B))))}else if(j.match(/^-[0-9]$/)&&j.match(O)&&q(j.slice(1),m.bools))B=j.slice(1),x(B,re(B));else if(j==="--"){F=i.slice(I+1);break}else if(a["halt-at-non-option"]){F=i.slice(I);break}else L(j)}T(b,!0),T(b,!1),C(b),w(),U(b,m.aliases,c,!0),$(b),a["set-placeholder-key"]&&M(b),Object.keys(m.counts).forEach(function(I){V(b,I.split("."))||x(I,0)}),l&&F.length&&(b[h]=[]),F.forEach(function(I){b[h].push(I)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(b).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete b[I]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(I=>o[I])).forEach(I=>{a["camel-case-expansion"]&&I.includes("-")&&delete b[I.split(".").map(j=>ni(j)).join(".")],delete b[I]});function L(I){let j=A("_",I);(typeof j=="string"||typeof j=="number")&&b._.push(j)}function D(I,j,K,z){let B,se=q(j,m.nargs);if(se=typeof se!="number"||isNaN(se)?1:se,se===0)return ve(z)||(k=Error(y("Argument unexpected for: %s",j))),x(j,re(j)),I;let ne=ve(z)?0:1;if(a["nargs-eats-options"])K.length-(I+1)+ne<se&&(k=Error(y("Not enough arguments following: %s",j))),ne=se;else{for(B=I+1;B<K.length&&(!K[B].match(/^-[^0-9]/)||K[B].match(O)||ee(K[B]));B++)ne++;ne<se&&(k=Error(y("Not enough arguments following: %s",j)))}let de=Math.min(ne,se);for(!ve(z)&&de>0&&(x(j,z),de--),B=I+1;B<de+I+1;B++)x(j,K[B]);return I+de}function N(I,j,K,z){let B=[],se=z||K[I+1],ne=q(j,m.nargs);if(q(j,m.bools)&&!/^(true|false)$/.test(se))B.push(!0);else if(ve(se)||ve(z)&&/^-/.test(se)&&!O.test(se)&&!ee(se)){if(c[j]!==void 0){let de=c[j];B=Array.isArray(de)?de:[de]}}else{ve(z)||B.push(v(j,z,!0));for(let de=I+1;de<K.length&&!(!a["greedy-arrays"]&&B.length>0||ne&&typeof ne=="number"&&B.length>=ne||(se=K[de],/^-/.test(se)&&!O.test(se)&&!ee(se)));de++)I=de,B.push(v(j,se,s))}return typeof ne=="number"&&(ne&&B.length<ne||isNaN(ne)&&B.length===0)&&(k=Error(y("Not enough arguments following: %s",j))),x(j,B),I}function x(I,j,K=s){if(/-/.test(I)&&a["camel-case-expansion"]){let se=I.split(".").map(function(ne){return ni(ne)}).join(".");g(I,se)}let z=v(I,j,K),B=I.split(".");X(b,B,z),m.aliases[I]&&m.aliases[I].forEach(function(se){let ne=se.split(".");X(b,ne,z)}),B.length>1&&a["dot-notation"]&&(m.aliases[B[0]]||[]).forEach(function(se){let ne=se.split("."),de=[].concat(B);de.shift(),ne=ne.concat(de),(m.aliases[I]||[]).includes(ne.join("."))||X(b,ne,z)}),q(I,m.normalize)&&!q(I,m.arrays)&&[I].concat(m.aliases[I]||[]).forEach(function(ne){Object.defineProperty(P,ne,{enumerable:!0,get(){return j},set(de){j=typeof de=="string"?on.normalize(de):de}})})}function g(I,j){m.aliases[I]&&m.aliases[I].length||(m.aliases[I]=[j],d[j]=!0),m.aliases[j]&&m.aliases[j].length||g(j,I)}function v(I,j,K){K&&(j=WF(j)),(q(I,m.bools)||q(I,m.counts))&&typeof j=="string"&&(j=j==="true");let z=Array.isArray(j)?j.map(function(B){return A(I,B)}):A(I,j);return q(I,m.counts)&&(ve(z)||typeof z=="boolean")&&(z=Kl()),q(I,m.normalize)&&q(I,m.arrays)&&(Array.isArray(j)?z=j.map(B=>on.normalize(B)):z=on.normalize(j)),z}function A(I,j){return!a["parse-positional-numbers"]&&I==="_"||!q(I,m.strings)&&!q(I,m.bools)&&!Array.isArray(j)&&(Na(j)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${j}`)))||!ve(j)&&q(I,m.numbers))&&(j=Number(j)),j}function C(I){let j=Object.create(null);U(j,m.aliases,c),Object.keys(m.configs).forEach(function(K){let z=I[K]||j[K];if(z)try{let B=null,se=on.resolve(on.cwd(),z),ne=m.configs[K];if(typeof ne=="function"){try{B=ne(se)}catch(de){B=de}if(B instanceof Error){k=B;return}}else B=on.require(se);E(B)}catch(B){B.name==="PermissionDenied"?k=B:I[K]&&(k=Error(y("Invalid JSON config file: %s",z)))}})}function E(I,j){Object.keys(I).forEach(function(K){let z=I[K],B=j?j+"."+K:K;typeof z=="object"&&z!==null&&!Array.isArray(z)&&a["dot-notation"]?E(z,B):(!V(b,B.split("."))||q(B,m.arrays)&&a["combine-arrays"])&&x(B,z)})}function w(){typeof u<"u"&&u.forEach(function(I){E(I)})}function T(I,j){if(typeof f>"u")return;let K=typeof f=="string"?f:"",z=on.env();Object.keys(z).forEach(function(B){if(K===""||B.lastIndexOf(K,0)===0){let se=B.split("__").map(function(ne,de){return de===0&&(ne=ne.substring(K.length)),ni(ne)});(j&&m.configs[se.join(".")]||!j)&&!V(I,se)&&x(se.join("."),z[B])}})}function $(I){let j,K=new Set;Object.keys(I).forEach(function(z){if(!K.has(z)&&(j=q(z,m.coercions),typeof j=="function"))try{let B=A(z,j(I[z]));[].concat(m.aliases[z]||[],z).forEach(se=>{K.add(se),I[se]=B})}catch(B){k=B}})}function M(I){return m.keys.forEach(j=>{~j.indexOf(".")||typeof I[j]>"u"&&(I[j]=void 0)}),I}function U(I,j,K,z=!1){Object.keys(K).forEach(function(B){V(I,B.split("."))||(X(I,B.split("."),K[B]),z&&(p[B]=!0),(j[B]||[]).forEach(function(se){V(I,se.split("."))||X(I,se.split("."),K[B])}))})}function V(I,j){let K=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(B){K=K[B]||{}});let z=j[j.length-1];return typeof K!="object"?!1:z in K}function X(I,j,K){let z=I;a["dot-notation"]||(j=[j.join(".")]),j.slice(0,-1).forEach(function(Me){Me=n0(Me),typeof z=="object"&&z[Me]===void 0&&(z[Me]={}),typeof z[Me]!="object"||Array.isArray(z[Me])?(Array.isArray(z[Me])?z[Me].push({}):z[Me]=[z[Me],{}],z=z[Me][z[Me].length-1]):z=z[Me]});let B=n0(j[j.length-1]),se=q(j.join("."),m.arrays),ne=Array.isArray(K),de=a["duplicate-arguments-array"];!de&&q(B,m.nargs)&&(de=!0,(!ve(z[B])&&m.nargs[B]===1||Array.isArray(z[B])&&z[B].length===m.nargs[B])&&(z[B]=void 0)),K===Kl()?z[B]=Kl(z[B]):Array.isArray(z[B])?de&&se&&ne?z[B]=a["flatten-duplicate-arrays"]?z[B].concat(K):(Array.isArray(z[B][0])?z[B]:[z[B]]).concat([K]):!de&&!!se==!!ne?z[B]=K:z[B]=z[B].concat([K]):z[B]===void 0&&se?z[B]=ne?K:[K]:de&&!(z[B]===void 0||q(B,m.counts)||q(B,m.bools))?z[B]=[z[B],K]:z[B]=K}function he(...I){I.forEach(function(j){Object.keys(j||{}).forEach(function(K){m.aliases[K]||(m.aliases[K]=[].concat(o[K]||[]),m.aliases[K].concat(K).forEach(function(z){if(/-/.test(z)&&a["camel-case-expansion"]){let B=ni(z);B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].concat(K).forEach(function(z){if(z.length>1&&/[A-Z]/.test(z)&&a["camel-case-expansion"]){let B=Ia(z,"-");B!==K&&m.aliases[K].indexOf(B)===-1&&(m.aliases[K].push(B),d[B]=!0)}}),m.aliases[K].forEach(function(z){m.aliases[z]=[K].concat(m.aliases[K].filter(function(B){return z!==B}))}))})})}function q(I,j){let K=[].concat(m.aliases[I]||[],I),z=Object.keys(j),B=K.find(se=>z.includes(se));return B?j[B]:!1}function H(I){let j=Object.keys(m);return[].concat(j.map(z=>m[z])).some(function(z){return Array.isArray(z)?z.includes(I):z[I]})}function W(I,...j){return[].concat(...j).some(function(z){let B=I.match(z);return B&&H(B[1])})}function Z(I){if(I.match(O)||!I.match(/^-[^-]+/))return!1;let j=!0,K,z=I.slice(1).split("");for(let B=0;B<z.length;B++){if(K=I.slice(B+2),!H(z[B])){j=!1;break}if(z[B+1]&&z[B+1]==="="||K==="-"||/[A-Za-z]/.test(z[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(K)||z[B+1]&&z[B+1].match(/\W/))break}return j}function ee(I){return a["unknown-options-as-args"]&&G(I)}function G(I){return I=I.replace(/^-{3,}/,"--"),I.match(O)||Z(I)?!1:!W(I,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function re(I){return!q(I,m.bools)&&!q(I,m.counts)&&`${I}`in c?c[I]:Y(ue(I))}function Y(I){return{[or.BOOLEAN]:!0,[or.STRING]:"",[or.NUMBER]:void 0,[or.ARRAY]:[]}[I]}function ue(I){let j=or.BOOLEAN;return q(I,m.strings)?j=or.STRING:q(I,m.numbers)?j=or.NUMBER:q(I,m.bools)?j=or.BOOLEAN:q(I,m.arrays)&&(j=or.ARRAY),j}function ve(I){return I===void 0}function De(){Object.keys(m.counts).find(I=>q(I,m.arrays)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):q(I,m.nargs)?(k=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},m.aliases),argv:Object.assign(P,b),configuration:a,defaulted:Object.assign({},p),error:k,newAliases:Object.assign({},d)}}};function BF(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Kl(e){return e!==void 0?e+1:1}function n0(e){return e==="__proto__"?"___proto___":e}function WF(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var a0=require("fs");var Xl,Jl,Ql,i0=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,s0=(Jl=(Xl=process==null?void 0:process.versions)===null||Xl===void 0?void 0:Xl.node)!==null&&Jl!==void 0?Jl:(Ql=process==null?void 0:process.version)===null||Ql===void 0?void 0:Ql.slice(1);if(s0&&Number(s0.match(/^([^.]+)/)[1])<i0)throw Error(`yargs parser supports a minimum Node.js version of ${i0}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var qF=process?process.env:{},u0=new $a({cwd:process.cwd,env:()=>qF,format:o0.format,normalize:Ma.normalize,resolve:Ma.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,a0.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),Js=function(t,r){return u0.parse(t.slice(),r).argv};Js.detailed=function(e,t){return u0.parse(e.slice(),t)};Js.camelCase=ni;Js.decamelize=Ia;Js.looksLikeNumber=Na;var Zl=Js;var Fr=require("path");function c0(){return GF()?0:1}function GF(){return UF()&&!process.defaultApp}function UF(){return!!process.versions.electron}function ef(e){return e.slice(c0()+1)}function l0(){return process.argv[c0()]}var We=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var qi=require("fs"),f0=require("util"),h0=require("path"),d0={fs:{readFileSync:qi.readFileSync,writeFile:qi.writeFile},format:f0.format,resolve:h0.resolve,exists:e=>{try{return(0,qi.statSync)(e).isFile()}catch{return!1}}};var Rr,tf=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Rr.format.apply(Rr.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?r:n;this.cache[this.locale][r]&&(o=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),Rr.format.apply(Rr.format,a.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let o=r[s+1];n+=i,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,o=this._resolveLocaleFile(n,i),a=JSON.stringify(this.cache[i],null,2);Rr.fs.writeFile(o,a,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Rr.fs.readFileSync&&(t=JSON.parse(Rr.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Rr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Rr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Rr.exists(t)}};function p0(e,t){Rr=t;let r=new tf(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var HF=e=>p0(e,d0),g0=HF;var VF={},zF="require is not supported by ESM",m0="loading a directory of commands is not supported yet for ESM",Qs;try{Qs=(0,A0.fileURLToPath)(VF.url)}catch{Qs=process.cwd()}var YF=Qs.substring(0,Qs.lastIndexOf("node_modules")),rf={assert:{notStrictEqual:ja.notStrictEqual,strictEqual:ja.strictEqual},cliui:Vl,findUp:t0,getEnv:e=>process.env[e],inspect:y0.inspect,getCallerFile:()=>{throw new We(m0)},getProcessArgvBin:l0,mainFilename:YF||process.cwd(),Parser:Zl,path:{basename:Fr.basename,dirname:Fr.dirname,extname:Fr.extname,relative:Fr.relative,resolve:Fr.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:v0.readFileSync,require:()=>{throw new We(zF)},requireDirectory:()=>{throw new We(m0)},stringWidth:e=>[...e].length,y18n:g0({directory:(0,Fr.resolve)(Qs,"../../../locales"),updateFiles:!1})};function Ft(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function nf(e,t){t.assert.strictEqual(typeof e,"string")}function Gi(e){return Object.keys(e)}function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}function Cn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((o,a)=>{let c=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===r.length-1&&(c=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(n,"").split("|"),variadic:c}):s.demanded.push({cmd:o.replace(n,"").split("|"),variadic:c})}),s}var KF=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Cn(`cmd ${e}`),t,r]}try{let i=0,[s,o,a]=n(),c=[].slice.call(o);for(;c.length&&c[c.length-1]===void 0;)c.pop();let u=a||c.length;if(u<s.demanded.length)throw new We(`Not enough arguments provided. Expected ${s.demanded.length} but received ${c.length}.`);let f=s.demanded.length+s.optional.length;if(u>f)throw new We(`Too many arguments provided. Expected max ${f} but received ${u}.`);s.demanded.forEach(l=>{let h=c.shift(),d=E0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&b0(d,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(c.length===0)return;let h=c.shift(),d=E0(h);l.cmd.filter(y=>y===d||y==="*").length===0&&b0(d,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function E0(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function b0(e,t,r){throw new We(`Invalid ${KF[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Ba=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=r,o.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function w0(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function ii(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(qe(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return qe(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},e)}function si(e,t,r=n=>{throw n}){try{let n=XF(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function XF(e){return typeof e=="function"}function sf(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}var Ui=/(^\*)|(^\$0)/,of=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:o=>o;i.visit=(o,a,c)=>{let u=s(o,a,c);if(u){if(this.requireCache.has(a))return u;this.requireCache.add(a),this.addHandler(u)}return u},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,o){let a=[],c=w0(s);if(i=i||(()=>{}),Array.isArray(t))if(JF(t))[t,...a]=t;else for(let u of t)this.addHandler(u);else if(ZF(t)){let u=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(u=[].concat(u).concat(t.aliases)),this.addHandler(u,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(S0(n)){this.addHandler([t].concat(a),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let u=Cn(t);a=a.map(h=>Cn(h).cmd);let f=!1,l=[u.cmd].concat(a).filter(h=>Ui.test(h)?(f=!0,!1):!0);l.length===0&&f&&l.push("$0"),f&&(u.cmd=l[0],a=l.slice(1),t=t.replace(Ui,u.cmd)),a.forEach(h=>{this.aliasMap[h]=u.cmd}),r!==!1&&this.usage.command(t,r,f,a,o),this.handlers[u.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,deprecated:o,demanded:u.demanded,optional:u.optional},f&&(this.defaultCommand=this.handlers[u.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),u=c.commands.slice(),f=!t;t&&(c.commands.push(t),c.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(f,a,r,n.aliases,u,i,s,o);return qe(l)?l.then(h=>this.applyMiddlewareAndGetResult(f,a,h.innerArgv,c,s,h.aliases,r)):this.applyMiddlewareAndGetResult(f,a,l.innerArgv,c,s,l.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,o,a,c){let u=r.builder,f=n;if(Wa(u)){n.getInternalMethods().getUsageInstance().freeze();let l=u(n.getInternalMethods().reset(i),c);if(qe(l))return l.then(h=>(f=x0(h)?h:n,this.parseAndUpdateUsage(t,r,f,s,o,a)))}else QF(u)&&(n.getInternalMethods().getUsageInstance().freeze(),f=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(l=>{f.option(l,u[l])}));return this.parseAndUpdateUsage(t,r,f,s,o,a)}parseAndUpdateUsage(t,r,n,i,s,o){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let a=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return qe(a)?a.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ui.test(r.original)?r.original.replace(Ui,"").trim():r.original,i=t.filter(s=>!Ui.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,o,a,c){if(!o.getInternalMethods().getHasOutput()){let u=o.getInternalMethods().runValidation(s,c,o.parsed.error,t);n=si(n,f=>(u(f),f))}if(r.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let u=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,u,!1,!1),n=ii(n,o,a,!1),n=si(n,f=>{let l=r.handler(f);return qe(l)?l.then(()=>f):f}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),qe(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch(f=>{try{o.getInternalMethods().getUsageInstance().fail(null,f)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,o,a){let c={};if(s)return n;a.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,a));let u=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),f=ii(n,a,u,!0);return qe(f)?f.then(l=>this.handleValidationAndGetResult(t,r,l,i,o,a,u,c)):this.handleValidationAndGetResult(t,r,f,i,o,a,u,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let c=s.shift();this.populatePositional(c,r,a)}for(;o.length;){let c=o.shift();this.populatePositional(c,r,a)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Cn(t);return n.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=o}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let u of Object.keys(n.alias))s.alias[u]=(s.alias[u]||[]).concat(n.alias[u]);s.array=s.array.concat(n.array),s.config={};let o=[];if(Object.keys(r).forEach(u=>{r[u].map(f=>{s.configuration["unknown-options-as-args"]&&(s.key[u]=!0),o.push(`--${u}`),o.push(f)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let u=Object.keys(r);Object.keys(r).forEach(f=>{u.push(...c.aliases[f])}),Object.keys(c.argv).forEach(f=>{u.includes(f)&&(r[f]||(r[f]=c.argv[f]),!this.isInConfigs(i,f)&&!this.isDefaulted(i,f)&&Object.prototype.hasOwnProperty.call(t,f)&&Object.prototype.hasOwnProperty.call(c.argv,f)&&(Array.isArray(t[f])||Array.isArray(c.argv[f]))?t[f]=[].concat(t[f],c.argv[f]):t[f]=c.argv[f])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=Ui.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(Wa(r))return r(t,!0);S0(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=sf(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Ft(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Ft(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function C0(e,t,r,n){return new of(e,t,r,n)}function S0(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function JF(e){return e.every(t=>typeof t=="string")}function Wa(e){return typeof e=="function"}function QF(e){return typeof e=="object"}function ZF(e){return typeof e=="object"&&!Array.isArray(e)}function xn(e={},t=()=>!0){let r={};return Gi(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}function On(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function eD(e){return typeof e=="boolean"}function P0(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function(v){i.push(v)};let s=null,o=null,a=!0;n.showHelpOnFail=function(v=!0,A){let[C,E]=typeof v=="string"?[!0,v]:[v,A];return e.getInternalMethods().isGlobalContext()&&(o=E),s=E,a=C,n};let c=!1;n.fail=function(v,A){let C=e.getInternalMethods().getLoggerInstance();if(i.length)for(let E=i.length-1;E>=0;--E){let w=i[E];if(eD(w)){if(A)throw A;if(v)throw Error(v)}else w(v,A,n)}else{if(e.getExitProcess()&&On(!0),!c){c=!0,a&&(e.showHelp("error"),C.error()),(v||A)&&C.error(v||A);let E=s||o;E&&((v||A)&&C.error(""),C.error(E))}if(A=A||new We(v),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,A);throw A}};let u=[],f=!1;n.usage=(g,v)=>g===null?(f=!0,u=[],n):(f=!1,u.push([g,v||""]),n),n.getUsage=()=>u,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>r("Positionals:");let l=[];n.example=(g,v)=>{l.push([g,v||""])};let h=[];n.command=function(v,A,C,E,w=!1){C&&(h=h.map(T=>(T[2]=!1,T))),h.push([v,A||"",C,E,w])},n.getCommands=()=>h;let d={};n.describe=function(v,A){Array.isArray(v)?v.forEach(C=>{n.describe(C,A)}):typeof v=="object"?Object.keys(v).forEach(C=>{n.describe(C,v[C])}):d[v]=A},n.getDescriptions=()=>d;let p=[];n.epilog=g=>{p.push(g)};let y=!1,m;n.wrap=g=>{y=!0,m=g},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(m=D(),y=!0),m);let O="__yargsString__:";n.deferY18nLookup=g=>O+g,n.help=function(){if(F)return F;k();let v=e.customScriptName?e.$0:t.path.basename(e.$0),A=e.getDemandedOptions(),C=e.getDemandedCommands(),E=e.getDeprecatedOptions(),w=e.getGroups(),T=e.getOptions(),$=[];$=$.concat(Object.keys(d)),$=$.concat(Object.keys(A)),$=$.concat(Object.keys(C)),$=$.concat(Object.keys(T.default)),$=$.filter(P),$=Object.keys($.reduce((W,Z)=>(Z!=="_"&&(W[Z]=!0),W),{}));let M=n.getWrap(),U=t.cliui({width:M,wrap:!!M});if(!f){if(u.length)u.forEach(W=>{U.div({text:`${W[0].replace(/\$0/g,v)}`}),W[1]&&U.div({text:`${W[1]}`,padding:[1,0,0,0]})}),U.div();else if(h.length){let W=null;C._?W=`${v} <${r("command")}>
105
105
  `:W=`${v} [${r("command")}]
106
- `,U.div(`${W}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));let W=e.getInternalMethods().getContext(),Z=W.commands.length?`${W.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((G,re)=>G[0].localeCompare(re[0])));let ee=v?`${v} `:"";h.forEach(G=>{let re=`${ee}${Z}${G[0].replace(/^\$0 ?/,"")}`;U.span({text:re,padding:[0,2,0,2],width:S(h,M,`${v}${Z}`)+4},{text:G[1]});let Y=[];G[2]&&Y.push(`[${r("default")}]`),G[3]&&G[3].length&&Y.push(`[${r("aliases:")} ${G[3].join(", ")}]`),G[4]&&(typeof G[4]=="string"?Y.push(`[${r("deprecated: %s",G[4])}]`):Y.push(`[${r("deprecated")}]`)),Y.length?U.div({text:Y.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}let V=(Object.keys(T.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);$=$.filter(W=>!e.parsed.newAliases[W]&&V.every(Z=>(T.alias[Z]||[]).indexOf(W)===-1));let X=r("Options:");w[X]||(w[X]=[]),b($,T.alias,w,X);let he=W=>/^--/.test(Ba(W)),q=Object.keys(w).filter(W=>w[W].length>0).map(W=>{let Z=w[W].filter(_).map(ee=>{if(V.includes(ee))return ee;for(let G=0,re;(re=V[G])!==void 0;G++)if((T.alias[re]||[]).includes(ee))return re;return ee});return{groupName:W,normalizedKeys:Z}}).filter(({normalizedKeys:W})=>W.length>0).map(({groupName:W,normalizedKeys:Z})=>{let ee=Z.reduce((G,re)=>(G[re]=[re].concat(T.alias[re]||[]).map(Y=>W===n.getPositionalGroupName()?Y:(/^[0-9]$/.test(Y)?T.boolean.includes(re)?"-":"--":Y.length>1?"--":"-")+Y).sort((Y,ue)=>he(Y)===he(ue)?0:he(Y)?1:-1).join(", "),G),{});return{groupName:W,normalizedKeys:Z,switches:ee}});if(q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).some(({normalizedKeys:W,switches:Z})=>!W.every(ee=>he(Z[ee])))&&q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).forEach(({normalizedKeys:W,switches:Z})=>{W.forEach(ee=>{he(Z[ee])&&(Z[ee]=WF(Z[ee],4))})}),q.forEach(({groupName:W,normalizedKeys:Z,switches:ee})=>{U.div(W),Z.forEach(G=>{let re=ee[G],Y=p[G]||"",ue=null;Y.includes(O)&&(Y=r(Y.substring(O.length))),T.boolean.includes(G)&&(ue=`[${r("boolean")}]`),T.count.includes(G)&&(ue=`[${r("count")}]`),T.string.includes(G)&&(ue=`[${r("string")}]`),T.normalize.includes(G)&&(ue=`[${r("string")}]`),T.array.includes(G)&&(ue=`[${r("array")}]`),T.number.includes(G)&&(ue=`[${r("number")}]`);let ve=j=>typeof j=="string"?`[${r("deprecated: %s",j)}]`:`[${r("deprecated")}]`,De=[G in E?ve(E[G]):null,ue,G in A?`[${r("required")}]`:null,T.choices&&T.choices[G]?`[${r("choices:")} ${n.stringifiedValues(T.choices[G])}]`:null,L(T.default[G],T.defaultDescription[G])].filter(Boolean).join(" ");U.span({text:Ba(re),padding:[0,2,0,2+p0(re)],width:S(ee,M)+4},Y);let I=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;De&&!I?U.div({text:De,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),l.length&&(U.div(r("Examples:")),l.forEach(W=>{W[0]=W[0].replace(/\$0/g,v)}),l.forEach(W=>{W[1]===""?U.div({text:W[0],padding:[0,2,0,2]}):U.div({text:W[0],padding:[0,2,0,2],width:S(l,M)+4},{text:W[1]})}),U.div()),d.length>0){let W=d.map(Z=>Z.replace(/\$0/g,v)).join(`
106
+ `,U.div(`${W}`)}}if(h.length>1||h.length===1&&!h[0][2]){U.div(r("Commands:"));let W=e.getInternalMethods().getContext(),Z=W.commands.length?`${W.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((G,re)=>G[0].localeCompare(re[0])));let ee=v?`${v} `:"";h.forEach(G=>{let re=`${ee}${Z}${G[0].replace(/^\$0 ?/,"")}`;U.span({text:re,padding:[0,2,0,2],width:S(h,M,`${v}${Z}`)+4},{text:G[1]});let Y=[];G[2]&&Y.push(`[${r("default")}]`),G[3]&&G[3].length&&Y.push(`[${r("aliases:")} ${G[3].join(", ")}]`),G[4]&&(typeof G[4]=="string"?Y.push(`[${r("deprecated: %s",G[4])}]`):Y.push(`[${r("deprecated")}]`)),Y.length?U.div({text:Y.join(" "),padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}let V=(Object.keys(T.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);$=$.filter(W=>!e.parsed.newAliases[W]&&V.every(Z=>(T.alias[Z]||[]).indexOf(W)===-1));let X=r("Options:");w[X]||(w[X]=[]),b($,T.alias,w,X);let he=W=>/^--/.test(qa(W)),q=Object.keys(w).filter(W=>w[W].length>0).map(W=>{let Z=w[W].filter(P).map(ee=>{if(V.includes(ee))return ee;for(let G=0,re;(re=V[G])!==void 0;G++)if((T.alias[re]||[]).includes(ee))return re;return ee});return{groupName:W,normalizedKeys:Z}}).filter(({normalizedKeys:W})=>W.length>0).map(({groupName:W,normalizedKeys:Z})=>{let ee=Z.reduce((G,re)=>(G[re]=[re].concat(T.alias[re]||[]).map(Y=>W===n.getPositionalGroupName()?Y:(/^[0-9]$/.test(Y)?T.boolean.includes(re)?"-":"--":Y.length>1?"--":"-")+Y).sort((Y,ue)=>he(Y)===he(ue)?0:he(Y)?1:-1).join(", "),G),{});return{groupName:W,normalizedKeys:Z,switches:ee}});if(q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).some(({normalizedKeys:W,switches:Z})=>!W.every(ee=>he(Z[ee])))&&q.filter(({groupName:W})=>W!==n.getPositionalGroupName()).forEach(({normalizedKeys:W,switches:Z})=>{W.forEach(ee=>{he(Z[ee])&&(Z[ee]=tD(Z[ee],4))})}),q.forEach(({groupName:W,normalizedKeys:Z,switches:ee})=>{U.div(W),Z.forEach(G=>{let re=ee[G],Y=d[G]||"",ue=null;Y.includes(O)&&(Y=r(Y.substring(O.length))),T.boolean.includes(G)&&(ue=`[${r("boolean")}]`),T.count.includes(G)&&(ue=`[${r("count")}]`),T.string.includes(G)&&(ue=`[${r("string")}]`),T.normalize.includes(G)&&(ue=`[${r("string")}]`),T.array.includes(G)&&(ue=`[${r("array")}]`),T.number.includes(G)&&(ue=`[${r("number")}]`);let ve=j=>typeof j=="string"?`[${r("deprecated: %s",j)}]`:`[${r("deprecated")}]`,De=[G in E?ve(E[G]):null,ue,G in A?`[${r("required")}]`:null,T.choices&&T.choices[G]?`[${r("choices:")} ${n.stringifiedValues(T.choices[G])}]`:null,L(T.default[G],T.defaultDescription[G])].filter(Boolean).join(" ");U.span({text:qa(re),padding:[0,2,0,2+O0(re)],width:S(ee,M)+4},Y);let I=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;De&&!I?U.div({text:De,padding:[0,0,0,2],align:"right"}):U.div()}),U.div()}),l.length&&(U.div(r("Examples:")),l.forEach(W=>{W[0]=W[0].replace(/\$0/g,v)}),l.forEach(W=>{W[1]===""?U.div({text:W[0],padding:[0,2,0,2]}):U.div({text:W[0],padding:[0,2,0,2],width:S(l,M)+4},{text:W[1]})}),U.div()),p.length>0){let W=p.map(Z=>Z.replace(/\$0/g,v)).join(`
107
107
  `);U.div(`${W}
108
- `)}return U.toString().replace(/\s*$/,"")};function S(g,v,A){let C=0;return Array.isArray(g)||(g=Object.values(g).map(E=>[E])),g.forEach(E=>{C=Math.max(t.stringWidth(A?`${A} ${Ba(E[0])}`:Ba(E[0]))+p0(E[0]),C)}),v&&(C=Math.min(C,parseInt((v*.5).toString(),10))),C}function k(){let g=e.getDemandedOptions(),v=e.getOptions();(Object.keys(v.alias)||[]).forEach(A=>{v.alias[A].forEach(C=>{p[C]&&n.describe(A,p[C]),C in g&&e.demandOption(A,g[C]),v.boolean.includes(C)&&e.boolean(A),v.count.includes(C)&&e.count(A),v.string.includes(C)&&e.string(A),v.normalize.includes(C)&&e.normalize(A),v.array.includes(C)&&e.array(A),v.number.includes(C)&&e.number(A)})})}let F;n.cacheHelpMessage=function(){F=this.help()},n.clearCachedHelpMessage=function(){F=void 0},n.hasCachedHelpMessage=function(){return!!F};function b(g,v,A,C){let E=[],w=null;return Object.keys(A).forEach(T=>{E=E.concat(A[T])}),g.forEach(T=>{w=[T].concat(v[T]),w.some($=>E.indexOf($)!==-1)||A[C].push(T)}),E}function _(g){return e.getOptions().hiddenOptions.indexOf(g)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(n.help())},n.functionDescription=g=>["(",g.name?t.Parser.decamelize(g.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(v,A){let C="",E=A||", ",w=[].concat(v);return!v||!w.length||w.forEach(T=>{C.length&&(C+=E),C+=JSON.stringify(T)}),C};function L(g,v){let A=`[${r("default:")} `;if(g===void 0&&!v)return null;if(v)A+=v;else switch(typeof g){case"string":A+=`"${g}"`;break;case"object":A+=JSON.stringify(g);break;default:A+=g}return`${A}]`}function D(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let N=null;n.version=g=>{N=g},n.showVersion=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(N)},n.reset=function(v){return s=null,c=!1,u=[],f=!1,d=[],l=[],h=[],p=xn(p,A=>!v[A]),n};let x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:d,examples:l,commands:h,descriptions:p})},n.unfreeze=function(v=!1){let A=x.pop();A&&(v?(p={...A.descriptions,...p},h=[...A.commands,...h],u=[...A.usages,...u],l=[...A.examples,...l],d=[...A.epilogs,...d]):{failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:d,examples:l,commands:h,descriptions:p}=A)},n}function ef(e){return typeof e=="object"}function WF(e,t){return ef(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function p0(e){return ef(e)?e.indentation:0}function Ba(e){return ef(e)?e.text:e}var g0=`###-begin-{{app_name}}-completions-###
108
+ `)}return U.toString().replace(/\s*$/,"")};function S(g,v,A){let C=0;return Array.isArray(g)||(g=Object.values(g).map(E=>[E])),g.forEach(E=>{C=Math.max(t.stringWidth(A?`${A} ${qa(E[0])}`:qa(E[0]))+O0(E[0]),C)}),v&&(C=Math.min(C,parseInt((v*.5).toString(),10))),C}function k(){let g=e.getDemandedOptions(),v=e.getOptions();(Object.keys(v.alias)||[]).forEach(A=>{v.alias[A].forEach(C=>{d[C]&&n.describe(A,d[C]),C in g&&e.demandOption(A,g[C]),v.boolean.includes(C)&&e.boolean(A),v.count.includes(C)&&e.count(A),v.string.includes(C)&&e.string(A),v.normalize.includes(C)&&e.normalize(A),v.array.includes(C)&&e.array(A),v.number.includes(C)&&e.number(A)})})}let F;n.cacheHelpMessage=function(){F=this.help()},n.clearCachedHelpMessage=function(){F=void 0},n.hasCachedHelpMessage=function(){return!!F};function b(g,v,A,C){let E=[],w=null;return Object.keys(A).forEach(T=>{E=E.concat(A[T])}),g.forEach(T=>{w=[T].concat(v[T]),w.some($=>E.indexOf($)!==-1)||A[C].push(T)}),E}function P(g){return e.getOptions().hiddenOptions.indexOf(g)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(n.help())},n.functionDescription=g=>["(",g.name?t.Parser.decamelize(g.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function(v,A){let C="",E=A||", ",w=[].concat(v);return!v||!w.length||w.forEach(T=>{C.length&&(C+=E),C+=JSON.stringify(T)}),C};function L(g,v){let A=`[${r("default:")} `;if(g===void 0&&!v)return null;if(v)A+=v;else switch(typeof g){case"string":A+=`"${g}"`;break;case"object":A+=JSON.stringify(g);break;default:A+=g}return`${A}]`}function D(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let N=null;n.version=g=>{N=g},n.showVersion=g=>{let v=e.getInternalMethods().getLoggerInstance();g||(g="error"),(typeof g=="function"?g:v[g])(N)},n.reset=function(v){return s=null,c=!1,u=[],f=!1,p=[],l=[],h=[],d=xn(d,A=>!v[A]),n};let x=[];return n.freeze=function(){x.push({failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d})},n.unfreeze=function(v=!1){let A=x.pop();A&&(v?(d={...A.descriptions,...d},h=[...A.commands,...h],u=[...A.usages,...u],l=[...A.examples,...l],p=[...A.epilogs,...p]):{failMessage:s,failureOutput:c,usages:u,usageDisabled:f,epilogs:p,examples:l,commands:h,descriptions:d}=A)},n}function af(e){return typeof e=="object"}function tD(e,t){return af(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function O0(e){return af(e)?e.indentation:0}function qa(e){return af(e)?e.text:e}var _0=`###-begin-{{app_name}}-completions-###
109
109
  #
110
110
  # yargs command completion script
111
111
  #
@@ -133,7 +133,7 @@ _{{app_name}}_yargs_completions()
133
133
  }
134
134
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
135
135
  ###-end-{{app_name}}-completions-###
136
- `,m0=`#compdef {{app_name}}
136
+ `,R0=`#compdef {{app_name}}
137
137
  ###-begin-{{app_name}}-completions-###
138
138
  #
139
139
  # yargs command completion script
@@ -152,46 +152,46 @@ _{{app_name}}_yargs_completions()
152
152
  }
153
153
  compdef _{{app_name}}_yargs_completions {{app_name}}
154
154
  ###-end-{{app_name}}-completions-###
155
- `;var tf=class{constructor(t,r,n,i){var s,o,a;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,c=t.length;a<c;++a)if(s[t[a]]&&s[t[a]].builder){let u=s[t[a]].builder;if(ja(u)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return u(f,!0),f.argv}}let o=[];this.commandCompletions(o,t,n),this.optionCompletions(o,t,r,n),this.choicesFromOptionsCompletions(o,t,r,n),this.choicesFromPositionalsCompletions(o,t,r,n),i(null,o)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=Cn(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)t.push(o);else{let a=s[1]||"";t.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let c=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,c)&&this.completeOptionKey(a,t,i,c&&!!s.default[a])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let c=this.yargs.getOptions().choices[a]||[];for(let u of c)u.startsWith(i)&&t.push(u.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let c of o)if(Object.prototype.hasOwnProperty.call(s.key,c)&&Array.isArray(s.choices[c])){a=s.choices[c];break}if(a)return a.filter(c=>!n||c.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,o,a,c;let u=t;if(this.zshShell){let p=this.usage.getDescriptions(),d=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||o===void 0?void 0:o.find(O=>{let S=p[O];return typeof S=="string"&&S.length>0}),y=d?p[d]:void 0,m=(c=(a=p[t])!==null&&a!==void 0?a:y)!==null&&c!==void 0?c:"";u=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=p=>/^--/.test(p),l=p=>/^[^0-9]$/.test(p),h=!f(n)&&l(t)?"-":"--";r.push(h+u),i&&r.push(h+"no-"+u)}customCompletion(t,r,n,i){if(Ft(this.customCompletionFunction,null,this.shim),GF(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return qe(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return UF(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?o=>this.customCompletion(t,o,n,r):o=>this.defaultCompletion(t,o,n,r);return qe(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?m0:g0,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function y0(e,t,r,n){return new tf(e,t,r,n)}function GF(e){return e.length<3}function UF(e){return e.length>3}function v0(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var A0=["$0","--","_"];function E0(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let h=e.getDemandedCommands(),d=l._.length+(l["--"]?l["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(d<h._.min||d>h._.max)&&(d<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,d.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d.toString(),h._.min.toString())):d>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,d.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",d,d.toString(),h._.max.toString()))))},s.positionalCount=function(l,h){h<l&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",l+""))},s.requiredArguments=function(l,h){let p=null;for(let d of Object.keys(h))(!Object.prototype.hasOwnProperty.call(l,d)||typeof l[d]>"u")&&(p=p||{},p[d]=h[d]);if(p){let d=[];for(let m of Object.keys(p)){let O=p[m];O&&d.indexOf(O)<0&&d.push(O)}let y=d.length?`
156
- ${d.join(`
157
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(p).length,Object.keys(p).join(", ")+y))}},s.unknownArguments=function(l,h,p,d,y=!0){var m;let O=e.getInternalMethods().getCommandInstance().getCommands(),S=[],k=e.getInternalMethods().getContext();if(Object.keys(l).forEach(F=>{!A0.includes(F)&&!Object.prototype.hasOwnProperty.call(p,F)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),F)&&!s.isValidAndSomeAliasIsNotNew(F,h)&&S.push(F)}),y&&(k.commands.length>0||O.length>0||d)&&l._.slice(k.commands.length).forEach(F=>{O.includes(""+F)||S.push(""+F)}),y){let b=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,_=k.commands.length+b;_<l._.length&&l._.slice(_).forEach(L=>{L=String(L),!k.commands.includes(L)&&!S.includes(L)&&S.push(L)})}S.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",S.length,S.map(F=>F.trim()?F:`"${F}"`).join(", ")))},s.unknownCommands=function(l){let h=e.getInternalMethods().getCommandInstance().getCommands(),p=[],d=e.getInternalMethods().getContext();return(d.commands.length>0||h.length>0)&&l._.slice(d.commands.length).forEach(y=>{h.includes(""+y)||p.push(""+y)}),p.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",p.length,p.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,h){if(!Object.prototype.hasOwnProperty.call(h,l))return!1;let p=e.parsed.newAliases;return[l,...h[l]].some(d=>!Object.prototype.hasOwnProperty.call(p,d)||!p[l])},s.limitedChoices=function(l){let h=e.getOptions(),p={};if(!Object.keys(h.choices).length)return;Object.keys(l).forEach(m=>{A0.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(h.choices,m)&&[].concat(l[m]).forEach(O=>{h.choices[m].indexOf(O)===-1&&O!==void 0&&(p[m]=(p[m]||[]).concat(O))})});let d=Object.keys(p);if(!d.length)return;let y=n("Invalid values:");d.forEach(m=>{y+=`
158
- ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(p[m]),t.stringifiedValues(h.choices[m]))}`}),t.fail(y)};let o={};s.implies=function(l,h){ce("<string|object> [array|number|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(p=>{s.implies(p,l[p])}):(e.global(l),o[l]||(o[l]=[]),Array.isArray(h)?h.forEach(p=>s.implies(l,p)):(Ft(h,void 0,r),o[l].push(h)))},s.getImplied=function(){return o};function a(f,l){let h=Number(l);return l=isNaN(h)?l:h,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let h=[];if(Object.keys(o).forEach(p=>{let d=p;(o[p]||[]).forEach(y=>{let m=d,O=y;m=a(l,m),y=a(l,y),m&&!y&&h.push(` ${d} -> ${O}`)})}),h.length){let p=`${n("Implications failed:")}
159
- `;h.forEach(d=>{p+=d}),t.fail(p)}};let c={};s.conflicts=function(l,h){ce("<string|object> [array|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(p=>{s.conflicts(p,l[p])}):(e.global(l),c[l]||(c[l]=[]),Array.isArray(h)?h.forEach(p=>s.conflicts(l,p)):c[l].push(h))},s.getConflicting=()=>c,s.conflicting=function(l){Object.keys(l).forEach(h=>{c[h]&&c[h].forEach(p=>{p&&l[h]!==void 0&&l[p]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,p))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(h=>{c[h].forEach(p=>{p&&l[r.Parser.camelCase(h)]!==void 0&&l[r.Parser.camelCase(p)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,p))})})},s.recommendCommands=function(l,h){h=h.sort((m,O)=>O.length-m.length);let d=null,y=1/0;for(let m=0,O;(O=h[m])!==void 0;m++){let S=v0(l,O);S<=3&&S<y&&(y=S,d=O)}d&&t.fail(n("Did you mean %s?",d))},s.reset=function(l){return o=xn(o,h=>!l[h]),c=xn(c,h=>!l[h]),s};let u=[];return s.freeze=function(){u.push({implied:o,conflicting:c})},s.unfreeze=function(){let l=u.pop();Ft(l,void 0,r),{implied:o,conflicting:c}=l},s}var rf=[],Zs;function eo(e,t,r,n){Zs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=zF(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}HF(o),rf.push(o),i=s?JSON.parse(Zs.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=eo(i,Zs.path.dirname(o),r,Zs)}return rf=[],r?b0(i,e):Object.assign({},i,e)}function HF(e){if(rf.indexOf(e)>-1)throw new We(`Circular extended configurations: '${e}'.`)}function zF(e,t){return Zs.path.resolve(e,t)}function b0(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=b0(e[i],t[i]):r[i]=t[i];return r}var le=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},P=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,oi,to,or,Jt,Wa,_n,ai,qa,ar,Ga,ur,$r,Qt,cr,Ua,Hi,ot,de,Ha,za,Zt,ui,zi,ci,Pn,Ya,be,li,fi,hi,we,Va,Mr,ze;function W0(e){return(t=[],r=e.process.cwd(),n)=>{let i=new df(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var w0=Symbol("copyDoubleDash"),S0=Symbol("copyDoubleDash"),nf=Symbol("deleteFromParserHintObject"),C0=Symbol("emitWarning"),x0=Symbol("freeze"),O0=Symbol("getDollarZero"),pi=Symbol("getParserConfiguration"),_0=Symbol("getUsageConfiguration"),sf=Symbol("guessLocale"),P0=Symbol("guessVersion"),R0=Symbol("parsePositionalNumbers"),of=Symbol("pkgUp"),Rn=Symbol("populateParserHintArray"),Yi=Symbol("populateParserHintSingleValueDictionary"),af=Symbol("populateParserHintArrayDictionary"),uf=Symbol("populateParserHintDictionary"),cf=Symbol("sanitizeKey"),lf=Symbol("setKey"),ff=Symbol("unfreeze"),F0=Symbol("validateAsync"),D0=Symbol("getCommandInstance"),L0=Symbol("getContext"),k0=Symbol("getHasOutput"),T0=Symbol("getLoggerInstance"),I0=Symbol("getParseContext"),N0=Symbol("getUsageInstance"),$0=Symbol("getValidationInstance"),Ka=Symbol("hasParseCallback"),M0=Symbol("isGlobalContext"),di=Symbol("postProcess"),j0=Symbol("rebase"),hf=Symbol("reset"),ro=Symbol("runYargsParserAndExecuteCommands"),pf=Symbol("runValidation"),B0=Symbol("setHasOutput"),gi=Symbol("kTrackManuallySetKeys"),df=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),oi.set(this,void 0),to.set(this,{commands:[],fullCommands:[]}),or.set(this,null),Jt.set(this,null),Wa.set(this,"show-hidden"),_n.set(this,null),ai.set(this,!0),qa.set(this,{}),ar.set(this,!0),Ga.set(this,[]),ur.set(this,void 0),$r.set(this,{}),Qt.set(this,!1),cr.set(this,null),Ua.set(this,!0),Hi.set(this,void 0),ot.set(this,""),de.set(this,void 0),Ha.set(this,void 0),za.set(this,{}),Zt.set(this,null),ui.set(this,null),zi.set(this,{}),ci.set(this,{}),Pn.set(this,void 0),Ya.set(this,!1),be.set(this,void 0),li.set(this,!1),fi.set(this,!1),hi.set(this,!1),we.set(this,void 0),Va.set(this,{}),Mr.set(this,null),ze.set(this,void 0),le(this,be,i,"f"),le(this,Pn,t,"f"),le(this,oi,r,"f"),le(this,Ha,n,"f"),le(this,ur,new Ma(this),"f"),this.$0=this[O0](),this[hf](),le(this,Ke,P(this,Ke,"f"),"f"),le(this,we,P(this,we,"f"),"f"),le(this,ze,P(this,ze,"f"),"f"),le(this,de,P(this,de,"f"),"f"),P(this,de,"f").showHiddenOpt=P(this,Wa,"f"),le(this,Hi,this[S0](),"f")}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),P(this,cr,"f")&&(this[nf](P(this,cr,"f")),le(this,cr,null,"f")),t===!1&&r===void 0?this:(le(this,cr,typeof t=="string"?t:n,"f"),this.boolean(P(this,cr,"f")),this.describe(P(this,cr,"f"),r||P(this,we,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(ce("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:P(this,Wa,"f");return this.boolean(n),this.describe(n,r||P(this,we,"f").deferY18nLookup("Show hidden options")),P(this,de,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[af](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[Rn]("array",t),this[gi](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[Rn]("boolean",t),this[gi](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>si(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&P(this,we,"f").fail(s.toString(),s):P(this,we,"f").fail(P(this,be,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(P(this,we,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[af](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(ce("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new We("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new We("coerce callback must be provided");return P(this,de,"f").key[t]=!0,P(this,ur,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?si(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&c!==!0)for(let u of s[t])n[u]=a;return n},a=>{throw new We(a.message)}):n},t),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),P(this,ze,"f").conflicts(t,r),this}config(t="config",r,n){return ce("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=eo(t,P(this,oi,"f"),this[pi]()["deep-merge-config"]||!1,P(this,be,"f")),P(this,de,"f").configObjects=(P(this,de,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||P(this,we,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{P(this,de,"f").config[i]=n||!0}),this)}completion(t,r,n){return ce("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),le(this,Jt,t||P(this,Jt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(P(this,Jt,"f"),r),n&&P(this,or,"f").registerFunction(n),this}command(t,r,n,i,s,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),P(this,Ke,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){ce("<string> [object]",[t,r],arguments.length);let n=P(this,Ha,"f")||P(this,be,"f").require;return P(this,Ke,"f").addDirectory(t,n,P(this,be,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[Rn]("count",t),this[gi](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Jl(t,P(this,be,"f")),P(this,de,"f").defaultDescription[t]=n),typeof r=="function"&&(Jl(t,P(this,be,"f")),P(this,de,"f").defaultDescription[t]||(P(this,de,"f").defaultDescription[t]=P(this,we,"f").functionDescription(r)),r=r.call()),this[Yi](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),P(this,de,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Ft(n,!0,P(this,be,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Ft(n,!0,P(this,be,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Ft(n,!0,P(this,be,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[Yi](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),P(this,de,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[lf](t,!0),P(this,we,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),le(this,ai,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete P(this,de,"f").envPrefix:P(this,de,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),P(this,we,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return ce("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):P(this,we,"f").example(t,r),this}exit(t,r){le(this,Qt,!0,"f"),le(this,_n,r,"f"),P(this,ar,"f")&&P(this,be,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),le(this,ar,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new We("Invalid first argument. Expected function or boolean 'false'");return P(this,we,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?P(this,or,"f").getCompletion(t,r):new Promise((n,i)=>{P(this,or,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),P(this,de,"f").demandedOptions}getDemandedCommands(){return ce([],0),P(this,de,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),P(this,de,"f").deprecatedOptions}getDetectLocale(){return P(this,ai,"f")}getExitProcess(){return P(this,ar,"f")}getGroups(){return Object.assign({},P(this,$r,"f"),P(this,ci,"f"))}getHelp(){if(le(this,Qt,!0,"f"),!P(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ro](P(this,Pn,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>P(this,we,"f").help())}let t=P(this,Ke,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>P(this,we,"f").help())}return Promise.resolve(P(this,we,"f").help())}getOptions(){return P(this,de,"f")}getStrict(){return P(this,li,"f")}getStrictCommands(){return P(this,fi,"f")}getStrictOptions(){return P(this,hi,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?P(this,de,"f").local=P(this,de,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{P(this,de,"f").local.includes(n)||P(this,de,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=P(this,ci,"f")[r]||P(this,$r,"f")[r];P(this,ci,"f")[r]&&delete P(this,ci,"f")[r];let i={};return P(this,$r,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),P(this,de,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),P(this,ze,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[sf](),P(this,be,"f").y18n.getLocale()):(le(this,ai,!1,"f"),P(this,be,"f").y18n.setLocale(t),this)}middleware(t,r,n){return P(this,ur,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[Yi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[Rn]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[Rn]("number",t),this[gi](t),this}option(t,r){if(ce("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[gi](t),P(this,Mr,"f")&&(t==="version"||r?.alias==="version")&&this[C0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
160
- `),void 0,"versionWarning"),P(this,de,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(P(this,de,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=P(this,we,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){ce("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[x0](),typeof t>"u"&&(t=P(this,Pn,"f")),typeof r=="object"&&(le(this,ui,r,"f"),r=n),typeof r=="function"&&(le(this,Zt,r,"f"),r=!1),r||le(this,Pn,t,"f"),P(this,Zt,"f")&&le(this,ar,!1,"f");let i=this[ro](t,!!r),s=this.parsed;return P(this,or,"f").setParsed(this.parsed),qe(i)?i.then(o=>(P(this,Zt,"f")&&P(this,Zt,"f").call(this,P(this,_n,"f"),o,P(this,ot,"f")),o)).catch(o=>{throw P(this,Zt,"f")&&P(this,Zt,"f")(o,this.parsed.argv,P(this,ot,"f")),o}).finally(()=>{this[ff](),this.parsed=s}):(P(this,Zt,"f")&&P(this,Zt,"f").call(this,P(this,_n,"f"),i,P(this,ot,"f")),this[ff](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return qe(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(qe(i))throw new We(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return ce("<object>",[t],arguments.length),le(this,za,t,"f"),this}pkgConf(t,r){ce("<string> [string]",[t,r],arguments.length);let n=null,i=this[of](r||P(this,oi,"f"));return i[t]&&typeof i[t]=="object"&&(n=eo(i[t],r||P(this,oi,"f"),this[pi]()["deep-merge-config"]||!1,P(this,be,"f")),P(this,de,"f").configObjects=(P(this,de,"f").configObjects||[]).concat(n)),this}positional(t,r){ce("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=xn(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=P(this,to,"f").fullCommands[P(this,to,"f").fullCommands.length-1],s=i?P(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Gi(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,P(this,we,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return ce("[boolean]",[t],arguments.length),le(this,Ya,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return ce("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&P(this,de,"f").narg[t]?this:(this[Yi](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return ce("[string] [string]",[t,r],arguments.length),t=t||this.$0,P(this,Hi,"f").log(P(this,or,"f").generateCompletionScript(t,r||P(this,Jt,"f")||"completion")),this}showHelp(t){if(ce("[string|function]",[t],arguments.length),le(this,Qt,!0,"f"),!P(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ro](P(this,Pn,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{P(this,we,"f").showHelp(t)}),this}let r=P(this,Ke,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{P(this,we,"f").showHelp(t)}),this}return P(this,we,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return ce("[boolean|string] [string]",[t,r],arguments.length),P(this,we,"f").showHelpOnFail(t,r),this}showVersion(t){return ce("[string|function]",[t],arguments.length),P(this,we,"f").showVersion(t),this}skipValidation(t){return ce("<array|string>",[t],arguments.length),this[Rn]("skipValidation",t),this}strict(t){return ce("[boolean]",[t],arguments.length),le(this,li,t!==!1,"f"),this}strictCommands(t){return ce("[boolean]",[t],arguments.length),le(this,fi,t!==!1,"f"),this}strictOptions(t){return ce("[boolean]",[t],arguments.length),le(this,hi,t!==!1,"f"),this}string(t){return ce("<array|string>",[t],arguments.length),this[Rn]("string",t),this[gi](t),this}terminalWidth(){return ce([],0),P(this,be,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return ce("<object>",[t],arguments.length),le(this,ai,!1,"f"),P(this,be,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(Ft(t,null,P(this,be,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new We(".usage() description must start with $0 if being used as alias for .command()")}else return P(this,we,"f").usage(t),this}usageConfiguration(t){return ce("<object>",[t],arguments.length),le(this,Va,t,"f"),this}version(t,r,n){let i="version";if(ce("[boolean|string] [string] [string]",[t,r,n],arguments.length),P(this,Mr,"f")&&(this[nf](P(this,Mr,"f")),P(this,we,"f").version(void 0),le(this,Mr,null,"f")),arguments.length===0)n=this[P0](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return le(this,Mr,typeof t=="string"?t:i,"f"),r=r||P(this,we,"f").deferY18nLookup("Show version number"),P(this,we,"f").version(n||void 0),this.boolean(P(this,Mr,"f")),this.describe(P(this,Mr,"f"),r),this}wrap(t){return ce("<number|null|undefined>",[t],arguments.length),P(this,we,"f").wrap(t),this}[(Ke=new WeakMap,oi=new WeakMap,to=new WeakMap,or=new WeakMap,Jt=new WeakMap,Wa=new WeakMap,_n=new WeakMap,ai=new WeakMap,qa=new WeakMap,ar=new WeakMap,Ga=new WeakMap,ur=new WeakMap,$r=new WeakMap,Qt=new WeakMap,cr=new WeakMap,Ua=new WeakMap,Hi=new WeakMap,ot=new WeakMap,de=new WeakMap,Ha=new WeakMap,za=new WeakMap,Zt=new WeakMap,ui=new WeakMap,zi=new WeakMap,ci=new WeakMap,Pn=new WeakMap,Ya=new WeakMap,be=new WeakMap,li=new WeakMap,fi=new WeakMap,hi=new WeakMap,we=new WeakMap,Va=new WeakMap,Mr=new WeakMap,ze=new WeakMap,w0)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[S0](){return{log:(...t)=>{this[Ka]()||console.log(...t),le(this,Qt,!0,"f"),P(this,ot,"f").length&&le(this,ot,P(this,ot,"f")+`
161
- `,"f"),le(this,ot,P(this,ot,"f")+t.join(" "),"f")},error:(...t)=>{this[Ka]()||console.error(...t),le(this,Qt,!0,"f"),P(this,ot,"f").length&&le(this,ot,P(this,ot,"f")+`
162
- `,"f"),le(this,ot,P(this,ot,"f")+t.join(" "),"f")}}}[nf](t){Gi(P(this,de,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=P(this,de,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete P(this,we,"f").getDescriptions()[t]}[C0](t,r,n){P(this,qa,"f")[n]||(P(this,be,"f").process.emitWarning(t,r),P(this,qa,"f")[n]=!0)}[x0](){P(this,Ga,"f").push({options:P(this,de,"f"),configObjects:P(this,de,"f").configObjects.slice(0),exitProcess:P(this,ar,"f"),groups:P(this,$r,"f"),strict:P(this,li,"f"),strictCommands:P(this,fi,"f"),strictOptions:P(this,hi,"f"),completionCommand:P(this,Jt,"f"),output:P(this,ot,"f"),exitError:P(this,_n,"f"),hasOutput:P(this,Qt,"f"),parsed:this.parsed,parseFn:P(this,Zt,"f"),parseContext:P(this,ui,"f")}),P(this,we,"f").freeze(),P(this,ze,"f").freeze(),P(this,Ke,"f").freeze(),P(this,ur,"f").freeze()}[O0](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(P(this,be,"f").process.argv()[0])?r=P(this,be,"f").process.argv().slice(1,2):r=P(this,be,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[j0](P(this,oi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),P(this,be,"f").getEnv("_")&&P(this,be,"f").getProcessArgvBin()===P(this,be,"f").getEnv("_")&&(t=P(this,be,"f").getEnv("_").replace(`${P(this,be,"f").path.dirname(P(this,be,"f").process.execPath())}/`,"")),t}[pi](){return P(this,za,"f")}[_0](){return P(this,Va,"f")}[sf](){if(!P(this,ai,"f"))return;let t=P(this,be,"f").getEnv("LC_ALL")||P(this,be,"f").getEnv("LC_MESSAGES")||P(this,be,"f").getEnv("LANG")||P(this,be,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[P0](){return this[of]().version||"unknown"}[R0](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)P(this,be,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[of](t){let r=t||"*";if(P(this,zi,"f")[r])return P(this,zi,"f")[r];let n={};try{let i=t||P(this,be,"f").mainFilename;!t&&P(this,be,"f").path.extname(i)&&(i=P(this,be,"f").path.dirname(i));let s=P(this,be,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Ft(s,void 0,P(this,be,"f")),n=JSON.parse(P(this,be,"f").readFileSync(s,"utf8"))}catch{}return P(this,zi,"f")[r]=n||{},P(this,zi,"f")[r]}[Rn](t,r){r=[].concat(r),r.forEach(n=>{n=this[cf](n),P(this,de,"f")[t].push(n)})}[Yi](t,r,n,i){this[uf](t,r,n,i,(s,o,a)=>{P(this,de,"f")[s][o]=a})}[af](t,r,n,i){this[uf](t,r,n,i,(s,o,a)=>{P(this,de,"f")[s][o]=(P(this,de,"f")[s][o]||[]).concat(a)})}[uf](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of Gi(n))t(o,n[o]);else s(r,this[cf](n),i)}[cf](t){return t==="__proto__"?"___proto___":t}[lf](t,r){return this[Yi](this[lf].bind(this),"key",t,r),this}[ff](){var t,r,n,i,s,o,a,c,u,f,l,h;let p=P(this,Ga,"f").pop();Ft(p,void 0,P(this,be,"f"));let d;t=this,r=this,n=this,i=this,s=this,o=this,a=this,c=this,u=this,f=this,l=this,h=this,{options:{set value(y){le(t,de,y,"f")}}.value,configObjects:d,exitProcess:{set value(y){le(r,ar,y,"f")}}.value,groups:{set value(y){le(n,$r,y,"f")}}.value,output:{set value(y){le(i,ot,y,"f")}}.value,exitError:{set value(y){le(s,_n,y,"f")}}.value,hasOutput:{set value(y){le(o,Qt,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){le(a,li,y,"f")}}.value,strictCommands:{set value(y){le(c,fi,y,"f")}}.value,strictOptions:{set value(y){le(u,hi,y,"f")}}.value,completionCommand:{set value(y){le(f,Jt,y,"f")}}.value,parseFn:{set value(y){le(l,Zt,y,"f")}}.value,parseContext:{set value(y){le(h,ui,y,"f")}}.value}=p,P(this,de,"f").configObjects=d,P(this,we,"f").unfreeze(),P(this,ze,"f").unfreeze(),P(this,Ke,"f").unfreeze(),P(this,ur,"f").unfreeze()}[F0](t,r){return si(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[D0].bind(this),getContext:this[L0].bind(this),getHasOutput:this[k0].bind(this),getLoggerInstance:this[T0].bind(this),getParseContext:this[I0].bind(this),getParserConfiguration:this[pi].bind(this),getUsageConfiguration:this[_0].bind(this),getUsageInstance:this[N0].bind(this),getValidationInstance:this[$0].bind(this),hasParseCallback:this[Ka].bind(this),isGlobalContext:this[M0].bind(this),postProcess:this[di].bind(this),reset:this[hf].bind(this),runValidation:this[pf].bind(this),runYargsParserAndExecuteCommands:this[ro].bind(this),setHasOutput:this[B0].bind(this)}}[D0](){return P(this,Ke,"f")}[L0](){return P(this,to,"f")}[k0](){return P(this,Qt,"f")}[T0](){return P(this,Hi,"f")}[I0](){return P(this,ui,"f")||{}}[N0](){return P(this,we,"f")}[$0](){return P(this,ze,"f")}[Ka](){return!!P(this,Zt,"f")}[M0](){return P(this,Ua,"f")}[di](t,r,n,i){return n||qe(t)||(r||(t=this[w0](t)),(this[pi]()["parse-positional-numbers"]||this[pi]()["parse-positional-numbers"]===void 0)&&(t=this[R0](t)),i&&(t=ii(t,this,P(this,ur,"f").getMiddleware(),!1))),t}[hf](t={}){le(this,de,P(this,de,"f")||{},"f");let r={};r.local=P(this,de,"f").local||[],r.configObjects=P(this,de,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(P(this,ci,"f"),Object.keys(P(this,$r,"f")).reduce((o,a)=>{let c=P(this,$r,"f")[a].filter(u=>!(u in n));return c.length>0&&(o[a]=c),o},{})),le(this,$r,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(P(this,de,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=xn(P(this,de,"f")[o],a=>!n[a])}),r.envPrefix=P(this,de,"f").envPrefix,le(this,de,r,"f"),le(this,we,P(this,we,"f")?P(this,we,"f").reset(n):d0(this,P(this,be,"f")),"f"),le(this,ze,P(this,ze,"f")?P(this,ze,"f").reset(n):E0(this,P(this,we,"f"),P(this,be,"f")),"f"),le(this,Ke,P(this,Ke,"f")?P(this,Ke,"f").reset():f0(P(this,we,"f"),P(this,ze,"f"),P(this,ur,"f"),P(this,be,"f")),"f"),P(this,or,"f")||le(this,or,y0(this,P(this,we,"f"),P(this,Ke,"f"),P(this,be,"f")),"f"),P(this,ur,"f").reset(),le(this,Jt,null,"f"),le(this,ot,"","f"),le(this,_n,null,"f"),le(this,Qt,!1,"f"),this.parsed=!1,this}[j0](t,r){return P(this,be,"f").path.relative(t,r)}[ro](t,r,n,i=0,s=!1){let o=!!n||s;t=t||P(this,Pn,"f"),P(this,de,"f").__=P(this,be,"f").y18n.__,P(this,de,"f").configuration=this[pi]();let a=!!P(this,de,"f").configuration["populate--"],c=Object.assign({},P(this,de,"f").configuration,{"populate--":!0}),u=P(this,be,"f").Parser.detailed(t,Object.assign({},P(this,de,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),f=Object.assign(u.argv,P(this,ui,"f")),l,h=u.aliases,p=!1,d=!1;Object.keys(f).forEach(y=>{y===P(this,cr,"f")&&f[y]?p=!0:y===P(this,Mr,"f")&&f[y]&&(d=!0)}),f.$0=this.$0,this.parsed=u,i===0&&P(this,we,"f").clearCachedHelpMessage();try{if(this[sf](),r)return this[di](f,a,!!n,!1);P(this,cr,"f")&&[P(this,cr,"f")].concat(h[P(this,cr,"f")]||[]).filter(k=>k.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),p=!0),le(this,Ua,!1,"f");let y=P(this,Ke,"f").getCommands(),m=P(this,or,"f").completionKey in f,O=p||m||s;if(f._.length){if(y.length){let S;for(let k=i||0,F;f._[k]!==void 0;k++)if(F=String(f._[k]),y.includes(F)&&F!==P(this,Jt,"f")){let b=P(this,Ke,"f").runCommand(F,this,u,k+1,s,p||d||s);return this[di](b,a,!!n,!1)}else if(!S&&F!==P(this,Jt,"f")){S=F;break}!P(this,Ke,"f").hasDefaultCommand()&&P(this,Ya,"f")&&S&&!O&&P(this,ze,"f").recommendCommands(S,y)}P(this,Jt,"f")&&f._.includes(P(this,Jt,"f"))&&!m&&(P(this,ar,"f")&&On(!0),this.showCompletionScript(),this.exit(0))}if(P(this,Ke,"f").hasDefaultCommand()&&!O){let S=P(this,Ke,"f").runCommand(null,this,u,0,s,p||d||s);return this[di](S,a,!!n,!1)}if(m){P(this,ar,"f")&&On(!0),t=[].concat(t);let S=t.slice(t.indexOf(`--${P(this,or,"f").completionKey}`)+1);return P(this,or,"f").getCompletion(S,(k,F)=>{if(k)throw new We(k.message);(F||[]).forEach(b=>{P(this,Hi,"f").log(b)}),this.exit(0)}),this[di](f,!a,!!n,!1)}if(P(this,Qt,"f")||(p?(P(this,ar,"f")&&On(!0),o=!0,this.showHelp("log"),this.exit(0)):d&&(P(this,ar,"f")&&On(!0),o=!0,P(this,we,"f").showVersion("log"),this.exit(0))),!o&&P(this,de,"f").skipValidation.length>0&&(o=Object.keys(f).some(S=>P(this,de,"f").skipValidation.indexOf(S)>=0&&f[S]===!0)),!o){if(u.error)throw new We(u.error.message);if(!m){let S=this[pf](h,{},u.error);n||(l=ii(f,this,P(this,ur,"f").getMiddleware(),!0)),l=this[F0](S,l??f),qe(l)&&!n&&(l=l.then(()=>ii(f,this,P(this,ur,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof We)P(this,we,"f").fail(y.message,y);else throw y}return this[di](l??f,a,!!n,!0)}[pf](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new We(n.message);P(this,ze,"f").nonOptionCount(o),P(this,ze,"f").requiredArguments(o,s);let a=!1;P(this,fi,"f")&&(a=P(this,ze,"f").unknownCommands(o)),P(this,li,"f")&&!a?P(this,ze,"f").unknownArguments(o,t,r,!!i):P(this,hi,"f")&&P(this,ze,"f").unknownArguments(o,t,{},!1,!1),P(this,ze,"f").limitedChoices(o),P(this,ze,"f").implications(o),P(this,ze,"f").conflicting(o)}}[B0](){le(this,Qt,!0,"f")}[gi](t){if(typeof t=="string")P(this,de,"f").key[t]=!0;else for(let r of t)P(this,de,"f").key[r]=!0}};function h0(e){return!!e&&typeof e.getInternalMethods=="function"}var YF=W0(Xl),q0=YF;function G0(e){let t=q0(Vl(e)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation}}var KP=Sn(_S(),1);var zP=Sn(qP(),1),ym=require("node:path"),YP=Sn(require("node:fs/promises"),1),vm=Sn(require("node:path"),1),VP=require("node:os");var j6=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},Bs=(e,t="")=>{try{let{organization:r}=j6(e);return r}catch{return t}};function Qn(e){return Buffer.from(e||"").toString("base64")}var Al=e=>Buffer.from(e,"base64").toString("utf8");var GP=Sn(require("https"),1),B6={port:443,method:"GET"},UP=async e=>new Promise((t,r)=>{let n={...B6,...e};GP.default.request(n,s=>{let o="",a={},c=s.statusCode===200;s.on("data",u=>{o+=u}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),c?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",u=>{r(new Error(u))})}).end()});var HP=async({password:e,organization:t})=>{let r=`Basic ${Qn(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await UP(n)}catch(i){if(i.statusCode===404)return;throw i}};var El="me",bl="me@example.com",Ws=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&vm.default.basename(n)===this.workspaceFileName)i=vm.default.resolve(n);else{let o=(0,zP.getWorkspaceRoot)(process.cwd())||"";i=(0,ym.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,VP.homedir)()||"";this.userFilePath=(0,ym.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await YP.default.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await HP({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:Bs(i)},isValid:!1,fileProvider:this})}return t}};var qs=Sn(require("node:fs/promises"),1),Sl=require("node:os");var wl=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var XP=Sn(require("node:path"),1),Cl=class extends Ws{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await qs.default.readFile(this.userFilePath,"utf-8")).split(Sl.EOL).filter(n=>!n.includes("registry=")).join(Sl.EOL);await qs.default.writeFile(this.userFilePath,r)}catch{await qs.default.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new KP.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${XP.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>wl(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:Bs(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Al(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let c=t.get(this.toRegistryAndFunctionKey(s,o));return c!==void 0?(r.delete(c),c):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||El}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||bl}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${Qn(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await qs.default.writeFile(this.userFilePath,i.join(Sl.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await qs.default.readFile(t,{encoding:"utf8"})).split(`
163
- `).map(a=>a.trim()),o=[];for(let a of s){let c=a.indexOf("/:");if(a.startsWith("//")&&c>=2){let u=a.substring(2,c+1),f=a.substring(c+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),p=r(a,u,l,h);p&&o.push(p)}else if(n){let u=n(a);u&&o.push(u)}}return o}};var rR=require("os");var Pl=require("os");var JP=require("node:child_process"),QP=require("node:util"),xl=(0,QP.promisify)(JP.exec);var Am;var W6=["npm","exec","--silent","--yes","azureauth","--"],q6={...process.env,npm_config_registry:"https://registry.npmjs.org"},Ol=()=>(Am||(Am=nn()?["azureauth.exe"]:W6),{command:Am,env:q6});var eR=require("child_process");var _l;var ZP=async()=>{if(_l===void 0){let{command:e,env:t}=Ol(),r=`${e.join(" ")} --version`;try{let n=await xl(r,{env:t}),[,i]=n.stdout.split(".");_l=parseInt(i)>=8}catch{_l=!1}}return _l};var tR=async(e,t)=>{if(!Pa())throw new Error(`AzureAuth is not supported for platform ${(0,Pl.platform)()} and architecture ${(0,Pl.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Ol(),i=[...r,"ado","pat",`--prompt-hint ${nn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(nn())try{if(s=(0,eR.spawnSync)(i[0],i.slice(1),{encoding:"utf-8"}),s.status!==0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await xl(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await ZP()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var nR=async(e,t=!1,r)=>{let n=`${(0,rR.hostname)()}-${e}`,s=(await tR({promptHint:`${n} .npmrc PAT`,organization:e,displayName:`${n}-npmrc-pat`,scope:["vso.packaging"],timeout:"30",output:"json"},r)).token;return t?Qn(s):s};function iR(e,t){let r=new Map;for(var n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}function ER(e){return typeof e>"u"||e===null}function G6(e){return typeof e=="object"&&e!==null}function U6(e){return Array.isArray(e)?e:ER(e)?[]:[e]}function H6(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function z6(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Y6(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var V6=ER,K6=G6,X6=U6,J6=z6,Q6=Y6,Z6=H6,st={isNothing:V6,isObject:K6,toArray:X6,repeat:J6,isNegativeZero:Q6,extend:Z6};function bR(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
155
+ `;var uf=class{constructor(t,r,n,i){var s,o,a;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(a=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((o=this.shim.getEnv("ZSH_NAME"))===null||o===void 0?void 0:o.includes("zsh")))!==null&&a!==void 0?a:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let a=0,c=t.length;a<c;++a)if(s[t[a]]&&s[t[a]].builder){let u=s[t[a]].builder;if(Wa(u)){this.indexAfterLastReset=a+1;let f=this.yargs.getInternalMethods().reset();return u(f,!0),f.argv}}let o=[];this.commandCompletions(o,t,n),this.optionCompletions(o,t,r,n),this.choicesFromOptionsCompletions(o,t,r,n),this.choicesFromPositionalsCompletions(o,t,r,n),i(null,o)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let o=Cn(s[0]).cmd;if(r.indexOf(o)===-1)if(!this.zshShell)t.push(o);else{let a=s[1]||"";t.push(o.replace(/:/g,"\\:")+":"+a)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(a=>{let c=!!s.configuration["boolean-negation"]&&s.boolean.includes(a);!o.includes(a)&&!s.hiddenOptions.includes(a)&&!this.argsContainKey(r,a,c)&&this.completeOptionKey(a,t,i,c&&!!s.default[a])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(o=>o.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),a=s[n._.length-o-1];if(!a)return;let c=this.yargs.getOptions().choices[a]||[];for(let u of c)u.startsWith(i)&&t.push(u.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),o=[i,...this.yargs.getAliases()[i]||[]],a;for(let c of o)if(Object.prototype.hasOwnProperty.call(s.key,c)&&Array.isArray(s.choices[c])){a=s.choices[c];break}if(a)return a.filter(c=>!n||c.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,o,a,c;let u=t;if(this.zshShell){let d=this.usage.getDescriptions(),p=(o=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||o===void 0?void 0:o.find(O=>{let S=d[O];return typeof S=="string"&&S.length>0}),y=p?d[p]:void 0,m=(c=(a=d[t])!==null&&a!==void 0?a:y)!==null&&c!==void 0?c:"";u=`${t.replace(/:/g,"\\:")}:${m.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let f=d=>/^--/.test(d),l=d=>/^[^0-9]$/.test(d),h=!f(n)&&l(t)?"-":"--";r.push(h+u),i&&r.push(h+"no-"+u)}customCompletion(t,r,n,i){if(Ft(this.customCompletionFunction,null,this.shim),nD(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return qe(s)?s.then(o=>{this.shim.process.nextTick(()=>{i(null,o)})}).catch(o=>{this.shim.process.nextTick(()=>{i(o,void 0)})}):i(null,s)}else return iD(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?o=>this.customCompletion(t,o,n,r):o=>this.defaultCompletion(t,o,n,r);return qe(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?R0:_0,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function F0(e,t,r,n){return new uf(e,t,r,n)}function nD(e){return e.length<3}function iD(e){return e.length>3}function D0(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var L0=["$0","--","_"];function k0(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(l){let h=e.getDemandedCommands(),p=l._.length+(l["--"]?l["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(p<h._.min||p>h._.max)&&(p<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p.toString(),h._.min.toString())):p>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,p.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",p,p.toString(),h._.max.toString()))))},s.positionalCount=function(l,h){h<l&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",l+""))},s.requiredArguments=function(l,h){let d=null;for(let p of Object.keys(h))(!Object.prototype.hasOwnProperty.call(l,p)||typeof l[p]>"u")&&(d=d||{},d[p]=h[p]);if(d){let p=[];for(let m of Object.keys(d)){let O=d[m];O&&p.indexOf(O)<0&&p.push(O)}let y=p.length?`
156
+ ${p.join(`
157
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+y))}},s.unknownArguments=function(l,h,d,p,y=!0){var m;let O=e.getInternalMethods().getCommandInstance().getCommands(),S=[],k=e.getInternalMethods().getContext();if(Object.keys(l).forEach(F=>{!L0.includes(F)&&!Object.prototype.hasOwnProperty.call(d,F)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),F)&&!s.isValidAndSomeAliasIsNotNew(F,h)&&S.push(F)}),y&&(k.commands.length>0||O.length>0||p)&&l._.slice(k.commands.length).forEach(F=>{O.includes(""+F)||S.push(""+F)}),y){let b=((m=e.getDemandedCommands()._)===null||m===void 0?void 0:m.max)||0,P=k.commands.length+b;P<l._.length&&l._.slice(P).forEach(L=>{L=String(L),!k.commands.includes(L)&&!S.includes(L)&&S.push(L)})}S.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",S.length,S.map(F=>F.trim()?F:`"${F}"`).join(", ")))},s.unknownCommands=function(l){let h=e.getInternalMethods().getCommandInstance().getCommands(),d=[],p=e.getInternalMethods().getContext();return(p.commands.length>0||h.length>0)&&l._.slice(p.commands.length).forEach(y=>{h.includes(""+y)||d.push(""+y)}),d.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",d.length,d.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(l,h){if(!Object.prototype.hasOwnProperty.call(h,l))return!1;let d=e.parsed.newAliases;return[l,...h[l]].some(p=>!Object.prototype.hasOwnProperty.call(d,p)||!d[l])},s.limitedChoices=function(l){let h=e.getOptions(),d={};if(!Object.keys(h.choices).length)return;Object.keys(l).forEach(m=>{L0.indexOf(m)===-1&&Object.prototype.hasOwnProperty.call(h.choices,m)&&[].concat(l[m]).forEach(O=>{h.choices[m].indexOf(O)===-1&&O!==void 0&&(d[m]=(d[m]||[]).concat(O))})});let p=Object.keys(d);if(!p.length)return;let y=n("Invalid values:");p.forEach(m=>{y+=`
158
+ ${n("Argument: %s, Given: %s, Choices: %s",m,t.stringifiedValues(d[m]),t.stringifiedValues(h.choices[m]))}`}),t.fail(y)};let o={};s.implies=function(l,h){ce("<string|object> [array|number|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.implies(d,l[d])}):(e.global(l),o[l]||(o[l]=[]),Array.isArray(h)?h.forEach(d=>s.implies(l,d)):(Ft(h,void 0,r),o[l].push(h)))},s.getImplied=function(){return o};function a(f,l){let h=Number(l);return l=isNaN(h)?l:h,typeof l=="number"?l=f._.length>=l:l.match(/^--no-.+/)?(l=l.match(/^--no-(.+)/)[1],l=!Object.prototype.hasOwnProperty.call(f,l)):l=Object.prototype.hasOwnProperty.call(f,l),l}s.implications=function(l){let h=[];if(Object.keys(o).forEach(d=>{let p=d;(o[d]||[]).forEach(y=>{let m=p,O=y;m=a(l,m),y=a(l,y),m&&!y&&h.push(` ${p} -> ${O}`)})}),h.length){let d=`${n("Implications failed:")}
159
+ `;h.forEach(p=>{d+=p}),t.fail(d)}};let c={};s.conflicts=function(l,h){ce("<string|object> [array|string]",[l,h],arguments.length),typeof l=="object"?Object.keys(l).forEach(d=>{s.conflicts(d,l[d])}):(e.global(l),c[l]||(c[l]=[]),Array.isArray(h)?h.forEach(d=>s.conflicts(l,d)):c[l].push(h))},s.getConflicting=()=>c,s.conflicting=function(l){Object.keys(l).forEach(h=>{c[h]&&c[h].forEach(d=>{d&&l[h]!==void 0&&l[d]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(h=>{c[h].forEach(d=>{d&&l[r.Parser.camelCase(h)]!==void 0&&l[r.Parser.camelCase(d)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})})},s.recommendCommands=function(l,h){h=h.sort((m,O)=>O.length-m.length);let p=null,y=1/0;for(let m=0,O;(O=h[m])!==void 0;m++){let S=D0(l,O);S<=3&&S<y&&(y=S,p=O)}p&&t.fail(n("Did you mean %s?",p))},s.reset=function(l){return o=xn(o,h=>!l[h]),c=xn(c,h=>!l[h]),s};let u=[];return s.freeze=function(){u.push({implied:o,conflicting:c})},s.unfreeze=function(){let l=u.pop();Ft(l,void 0,r),{implied:o,conflicting:c}=l},s}var cf=[],Zs;function eo(e,t,r,n){Zs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),o=null;if(s)o=oD(t,e.extends);else try{o=require.resolve(e.extends)}catch{return e}sD(o),cf.push(o),i=s?JSON.parse(Zs.readFileSync(o,"utf8")):require(e.extends),delete e.extends,i=eo(i,Zs.path.dirname(o),r,Zs)}return cf=[],r?T0(i,e):Object.assign({},i,e)}function sD(e){if(cf.indexOf(e)>-1)throw new We(`Circular extended configurations: '${e}'.`)}function oD(e,t){return Zs.path.resolve(e,t)}function T0(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=T0(e[i],t[i]):r[i]=t[i];return r}var le=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ke,oi,to,ar,Qt,Ga,Pn,ai,Ua,ur,Ha,cr,Mr,Zt,lr,za,Hi,ot,pe,Ya,Va,er,ui,zi,ci,_n,Ka,be,li,fi,hi,we,Xa,jr,ze;function ey(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Ef(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var I0=Symbol("copyDoubleDash"),N0=Symbol("copyDoubleDash"),lf=Symbol("deleteFromParserHintObject"),$0=Symbol("emitWarning"),M0=Symbol("freeze"),j0=Symbol("getDollarZero"),di=Symbol("getParserConfiguration"),B0=Symbol("getUsageConfiguration"),ff=Symbol("guessLocale"),W0=Symbol("guessVersion"),q0=Symbol("parsePositionalNumbers"),hf=Symbol("pkgUp"),Rn=Symbol("populateParserHintArray"),Yi=Symbol("populateParserHintSingleValueDictionary"),df=Symbol("populateParserHintArrayDictionary"),pf=Symbol("populateParserHintDictionary"),gf=Symbol("sanitizeKey"),mf=Symbol("setKey"),yf=Symbol("unfreeze"),G0=Symbol("validateAsync"),U0=Symbol("getCommandInstance"),H0=Symbol("getContext"),z0=Symbol("getHasOutput"),Y0=Symbol("getLoggerInstance"),V0=Symbol("getParseContext"),K0=Symbol("getUsageInstance"),X0=Symbol("getValidationInstance"),Ja=Symbol("hasParseCallback"),J0=Symbol("isGlobalContext"),pi=Symbol("postProcess"),Q0=Symbol("rebase"),vf=Symbol("reset"),ro=Symbol("runYargsParserAndExecuteCommands"),Af=Symbol("runValidation"),Z0=Symbol("setHasOutput"),gi=Symbol("kTrackManuallySetKeys"),Ef=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ke.set(this,void 0),oi.set(this,void 0),to.set(this,{commands:[],fullCommands:[]}),ar.set(this,null),Qt.set(this,null),Ga.set(this,"show-hidden"),Pn.set(this,null),ai.set(this,!0),Ua.set(this,{}),ur.set(this,!0),Ha.set(this,[]),cr.set(this,void 0),Mr.set(this,{}),Zt.set(this,!1),lr.set(this,null),za.set(this,!0),Hi.set(this,void 0),ot.set(this,""),pe.set(this,void 0),Ya.set(this,void 0),Va.set(this,{}),er.set(this,null),ui.set(this,null),zi.set(this,{}),ci.set(this,{}),_n.set(this,void 0),Ka.set(this,!1),be.set(this,void 0),li.set(this,!1),fi.set(this,!1),hi.set(this,!1),we.set(this,void 0),Xa.set(this,{}),jr.set(this,null),ze.set(this,void 0),le(this,be,i,"f"),le(this,_n,t,"f"),le(this,oi,r,"f"),le(this,Ya,n,"f"),le(this,cr,new Ba(this),"f"),this.$0=this[j0](),this[vf](),le(this,Ke,_(this,Ke,"f"),"f"),le(this,we,_(this,we,"f"),"f"),le(this,ze,_(this,ze,"f"),"f"),le(this,pe,_(this,pe,"f"),"f"),_(this,pe,"f").showHiddenOpt=_(this,Ga,"f"),le(this,Hi,this[N0](),"f")}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),_(this,lr,"f")&&(this[lf](_(this,lr,"f")),le(this,lr,null,"f")),t===!1&&r===void 0?this:(le(this,lr,typeof t=="string"?t:n,"f"),this.boolean(_(this,lr,"f")),this.describe(_(this,lr,"f"),r||_(this,we,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(ce("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:_(this,Ga,"f");return this.boolean(n),this.describe(n,r||_(this,we,"f").deferY18nLookup("Show hidden options")),_(this,pe,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[df](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[Rn]("array",t),this[gi](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[Rn]("boolean",t),this[gi](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>si(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&_(this,we,"f").fail(s.toString(),s):_(this,we,"f").fail(_(this,be,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(_(this,we,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[df](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(ce("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new We("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new We("coerce callback must be provided");return _(this,pe,"f").key[t]=!0,_(this,cr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?si(()=>(s=i.getAliases(),r(n[t])),a=>{n[t]=a;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&c!==!0)for(let u of s[t])n[u]=a;return n},a=>{throw new We(a.message)}):n},t),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),_(this,ze,"f").conflicts(t,r),this}config(t="config",r,n){return ce("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=eo(t,_(this,oi,"f"),this[di]()["deep-merge-config"]||!1,_(this,be,"f")),_(this,pe,"f").configObjects=(_(this,pe,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||_(this,we,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{_(this,pe,"f").config[i]=n||!0}),this)}completion(t,r,n){return ce("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),le(this,Qt,t||_(this,Qt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(_(this,Qt,"f"),r),n&&_(this,ar,"f").registerFunction(n),this}command(t,r,n,i,s,o){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,o],arguments.length),_(this,Ke,"f").addHandler(t,r,n,i,s,o),this}commands(t,r,n,i,s,o){return this.command(t,r,n,i,s,o)}commandDir(t,r){ce("<string> [object]",[t,r],arguments.length);let n=_(this,Ya,"f")||_(this,be,"f").require;return _(this,Ke,"f").addDirectory(t,n,_(this,be,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[Rn]("count",t),this[gi](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(nf(t,_(this,be,"f")),_(this,pe,"f").defaultDescription[t]=n),typeof r=="function"&&(nf(t,_(this,be,"f")),_(this,pe,"f").defaultDescription[t]||(_(this,pe,"f").defaultDescription[t]=_(this,we,"f").functionDescription(r)),r=r.call()),this[Yi](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),_(this,pe,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Ft(n,!0,_(this,be,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Ft(n,!0,_(this,be,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Ft(n,!0,_(this,be,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[Yi](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),_(this,pe,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[mf](t,!0),_(this,we,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),le(this,ai,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete _(this,pe,"f").envPrefix:_(this,pe,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),_(this,we,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return ce("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):_(this,we,"f").example(t,r),this}exit(t,r){le(this,Zt,!0,"f"),le(this,Pn,r,"f"),_(this,ur,"f")&&_(this,be,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),le(this,ur,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new We("Invalid first argument. Expected function or boolean 'false'");return _(this,we,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?_(this,ar,"f").getCompletion(t,r):new Promise((n,i)=>{_(this,ar,"f").getCompletion(t,(s,o)=>{s?i(s):n(o)})})}getDemandedOptions(){return ce([],0),_(this,pe,"f").demandedOptions}getDemandedCommands(){return ce([],0),_(this,pe,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),_(this,pe,"f").deprecatedOptions}getDetectLocale(){return _(this,ai,"f")}getExitProcess(){return _(this,ur,"f")}getGroups(){return Object.assign({},_(this,Mr,"f"),_(this,ci,"f"))}getHelp(){if(le(this,Zt,!0,"f"),!_(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[ro](_(this,_n,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>_(this,we,"f").help())}let t=_(this,Ke,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>_(this,we,"f").help())}return Promise.resolve(_(this,we,"f").help())}getOptions(){return _(this,pe,"f")}getStrict(){return _(this,li,"f")}getStrictCommands(){return _(this,fi,"f")}getStrictOptions(){return _(this,hi,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?_(this,pe,"f").local=_(this,pe,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{_(this,pe,"f").local.includes(n)||_(this,pe,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=_(this,ci,"f")[r]||_(this,Mr,"f")[r];_(this,ci,"f")[r]&&delete _(this,ci,"f")[r];let i={};return _(this,Mr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),_(this,pe,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),_(this,ze,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[ff](),_(this,be,"f").y18n.getLocale()):(le(this,ai,!1,"f"),_(this,be,"f").y18n.setLocale(t),this)}middleware(t,r,n){return _(this,cr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[Yi](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[Rn]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[Rn]("number",t),this[gi](t),this}option(t,r){if(ce("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[gi](t),_(this,jr,"f")&&(t==="version"||r?.alias==="version")&&this[$0](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
160
+ `),void 0,"versionWarning"),_(this,pe,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(_(this,pe,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,o=_(this,we,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(o,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){ce("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[M0](),typeof t>"u"&&(t=_(this,_n,"f")),typeof r=="object"&&(le(this,ui,r,"f"),r=n),typeof r=="function"&&(le(this,er,r,"f"),r=!1),r||le(this,_n,t,"f"),_(this,er,"f")&&le(this,ur,!1,"f");let i=this[ro](t,!!r),s=this.parsed;return _(this,ar,"f").setParsed(this.parsed),qe(i)?i.then(o=>(_(this,er,"f")&&_(this,er,"f").call(this,_(this,Pn,"f"),o,_(this,ot,"f")),o)).catch(o=>{throw _(this,er,"f")&&_(this,er,"f")(o,this.parsed.argv,_(this,ot,"f")),o}).finally(()=>{this[yf](),this.parsed=s}):(_(this,er,"f")&&_(this,er,"f").call(this,_(this,Pn,"f"),i,_(this,ot,"f")),this[yf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return qe(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(qe(i))throw new We(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return ce("<object>",[t],arguments.length),le(this,Va,t,"f"),this}pkgConf(t,r){ce("<string> [string]",[t,r],arguments.length);let n=null,i=this[hf](r||_(this,oi,"f"));return i[t]&&typeof i[t]=="object"&&(n=eo(i[t],r||_(this,oi,"f"),this[di]()["deep-merge-config"]||!1,_(this,be,"f")),_(this,pe,"f").configObjects=(_(this,pe,"f").configObjects||[]).concat(n)),this}positional(t,r){ce("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=xn(r,(o,a)=>o==="type"&&!["string","number","boolean"].includes(a)?!1:n.includes(o));let i=_(this,to,"f").fullCommands[_(this,to,"f").fullCommands.length-1],s=i?_(this,Ke,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Gi(s).forEach(o=>{let a=s[o];Array.isArray(a)?a.indexOf(t)!==-1&&(r[o]=!0):a[t]&&!(o in r)&&(r[o]=a[t])}),this.group(t,_(this,we,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return ce("[boolean]",[t],arguments.length),le(this,Ka,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return ce("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&_(this,pe,"f").narg[t]?this:(this[Yi](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return ce("[string] [string]",[t,r],arguments.length),t=t||this.$0,_(this,Hi,"f").log(_(this,ar,"f").generateCompletionScript(t,r||_(this,Qt,"f")||"completion")),this}showHelp(t){if(ce("[string|function]",[t],arguments.length),le(this,Zt,!0,"f"),!_(this,we,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[ro](_(this,_n,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{_(this,we,"f").showHelp(t)}),this}let r=_(this,Ke,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{_(this,we,"f").showHelp(t)}),this}return _(this,we,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return ce("[boolean|string] [string]",[t,r],arguments.length),_(this,we,"f").showHelpOnFail(t,r),this}showVersion(t){return ce("[string|function]",[t],arguments.length),_(this,we,"f").showVersion(t),this}skipValidation(t){return ce("<array|string>",[t],arguments.length),this[Rn]("skipValidation",t),this}strict(t){return ce("[boolean]",[t],arguments.length),le(this,li,t!==!1,"f"),this}strictCommands(t){return ce("[boolean]",[t],arguments.length),le(this,fi,t!==!1,"f"),this}strictOptions(t){return ce("[boolean]",[t],arguments.length),le(this,hi,t!==!1,"f"),this}string(t){return ce("<array|string>",[t],arguments.length),this[Rn]("string",t),this[gi](t),this}terminalWidth(){return ce([],0),_(this,be,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return ce("<object>",[t],arguments.length),le(this,ai,!1,"f"),_(this,be,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(Ft(t,null,_(this,be,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new We(".usage() description must start with $0 if being used as alias for .command()")}else return _(this,we,"f").usage(t),this}usageConfiguration(t){return ce("<object>",[t],arguments.length),le(this,Xa,t,"f"),this}version(t,r,n){let i="version";if(ce("[boolean|string] [string] [string]",[t,r,n],arguments.length),_(this,jr,"f")&&(this[lf](_(this,jr,"f")),_(this,we,"f").version(void 0),le(this,jr,null,"f")),arguments.length===0)n=this[W0](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return le(this,jr,typeof t=="string"?t:i,"f"),r=r||_(this,we,"f").deferY18nLookup("Show version number"),_(this,we,"f").version(n||void 0),this.boolean(_(this,jr,"f")),this.describe(_(this,jr,"f"),r),this}wrap(t){return ce("<number|null|undefined>",[t],arguments.length),_(this,we,"f").wrap(t),this}[(Ke=new WeakMap,oi=new WeakMap,to=new WeakMap,ar=new WeakMap,Qt=new WeakMap,Ga=new WeakMap,Pn=new WeakMap,ai=new WeakMap,Ua=new WeakMap,ur=new WeakMap,Ha=new WeakMap,cr=new WeakMap,Mr=new WeakMap,Zt=new WeakMap,lr=new WeakMap,za=new WeakMap,Hi=new WeakMap,ot=new WeakMap,pe=new WeakMap,Ya=new WeakMap,Va=new WeakMap,er=new WeakMap,ui=new WeakMap,zi=new WeakMap,ci=new WeakMap,_n=new WeakMap,Ka=new WeakMap,be=new WeakMap,li=new WeakMap,fi=new WeakMap,hi=new WeakMap,we=new WeakMap,Xa=new WeakMap,jr=new WeakMap,ze=new WeakMap,I0)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[N0](){return{log:(...t)=>{this[Ja]()||console.log(...t),le(this,Zt,!0,"f"),_(this,ot,"f").length&&le(this,ot,_(this,ot,"f")+`
161
+ `,"f"),le(this,ot,_(this,ot,"f")+t.join(" "),"f")},error:(...t)=>{this[Ja]()||console.error(...t),le(this,Zt,!0,"f"),_(this,ot,"f").length&&le(this,ot,_(this,ot,"f")+`
162
+ `,"f"),le(this,ot,_(this,ot,"f")+t.join(" "),"f")}}}[lf](t){Gi(_(this,pe,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=_(this,pe,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete _(this,we,"f").getDescriptions()[t]}[$0](t,r,n){_(this,Ua,"f")[n]||(_(this,be,"f").process.emitWarning(t,r),_(this,Ua,"f")[n]=!0)}[M0](){_(this,Ha,"f").push({options:_(this,pe,"f"),configObjects:_(this,pe,"f").configObjects.slice(0),exitProcess:_(this,ur,"f"),groups:_(this,Mr,"f"),strict:_(this,li,"f"),strictCommands:_(this,fi,"f"),strictOptions:_(this,hi,"f"),completionCommand:_(this,Qt,"f"),output:_(this,ot,"f"),exitError:_(this,Pn,"f"),hasOutput:_(this,Zt,"f"),parsed:this.parsed,parseFn:_(this,er,"f"),parseContext:_(this,ui,"f")}),_(this,we,"f").freeze(),_(this,ze,"f").freeze(),_(this,Ke,"f").freeze(),_(this,cr,"f").freeze()}[j0](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(_(this,be,"f").process.argv()[0])?r=_(this,be,"f").process.argv().slice(1,2):r=_(this,be,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Q0](_(this,oi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),_(this,be,"f").getEnv("_")&&_(this,be,"f").getProcessArgvBin()===_(this,be,"f").getEnv("_")&&(t=_(this,be,"f").getEnv("_").replace(`${_(this,be,"f").path.dirname(_(this,be,"f").process.execPath())}/`,"")),t}[di](){return _(this,Va,"f")}[B0](){return _(this,Xa,"f")}[ff](){if(!_(this,ai,"f"))return;let t=_(this,be,"f").getEnv("LC_ALL")||_(this,be,"f").getEnv("LC_MESSAGES")||_(this,be,"f").getEnv("LANG")||_(this,be,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[W0](){return this[hf]().version||"unknown"}[q0](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)_(this,be,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[hf](t){let r=t||"*";if(_(this,zi,"f")[r])return _(this,zi,"f")[r];let n={};try{let i=t||_(this,be,"f").mainFilename;!t&&_(this,be,"f").path.extname(i)&&(i=_(this,be,"f").path.dirname(i));let s=_(this,be,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});Ft(s,void 0,_(this,be,"f")),n=JSON.parse(_(this,be,"f").readFileSync(s,"utf8"))}catch{}return _(this,zi,"f")[r]=n||{},_(this,zi,"f")[r]}[Rn](t,r){r=[].concat(r),r.forEach(n=>{n=this[gf](n),_(this,pe,"f")[t].push(n)})}[Yi](t,r,n,i){this[pf](t,r,n,i,(s,o,a)=>{_(this,pe,"f")[s][o]=a})}[df](t,r,n,i){this[pf](t,r,n,i,(s,o,a)=>{_(this,pe,"f")[s][o]=(_(this,pe,"f")[s][o]||[]).concat(a)})}[pf](t,r,n,i,s){if(Array.isArray(n))n.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(n))for(let o of Gi(n))t(o,n[o]);else s(r,this[gf](n),i)}[gf](t){return t==="__proto__"?"___proto___":t}[mf](t,r){return this[Yi](this[mf].bind(this),"key",t,r),this}[yf](){var t,r,n,i,s,o,a,c,u,f,l,h;let d=_(this,Ha,"f").pop();Ft(d,void 0,_(this,be,"f"));let p;t=this,r=this,n=this,i=this,s=this,o=this,a=this,c=this,u=this,f=this,l=this,h=this,{options:{set value(y){le(t,pe,y,"f")}}.value,configObjects:p,exitProcess:{set value(y){le(r,ur,y,"f")}}.value,groups:{set value(y){le(n,Mr,y,"f")}}.value,output:{set value(y){le(i,ot,y,"f")}}.value,exitError:{set value(y){le(s,Pn,y,"f")}}.value,hasOutput:{set value(y){le(o,Zt,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){le(a,li,y,"f")}}.value,strictCommands:{set value(y){le(c,fi,y,"f")}}.value,strictOptions:{set value(y){le(u,hi,y,"f")}}.value,completionCommand:{set value(y){le(f,Qt,y,"f")}}.value,parseFn:{set value(y){le(l,er,y,"f")}}.value,parseContext:{set value(y){le(h,ui,y,"f")}}.value}=d,_(this,pe,"f").configObjects=p,_(this,we,"f").unfreeze(),_(this,ze,"f").unfreeze(),_(this,Ke,"f").unfreeze(),_(this,cr,"f").unfreeze()}[G0](t,r){return si(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[U0].bind(this),getContext:this[H0].bind(this),getHasOutput:this[z0].bind(this),getLoggerInstance:this[Y0].bind(this),getParseContext:this[V0].bind(this),getParserConfiguration:this[di].bind(this),getUsageConfiguration:this[B0].bind(this),getUsageInstance:this[K0].bind(this),getValidationInstance:this[X0].bind(this),hasParseCallback:this[Ja].bind(this),isGlobalContext:this[J0].bind(this),postProcess:this[pi].bind(this),reset:this[vf].bind(this),runValidation:this[Af].bind(this),runYargsParserAndExecuteCommands:this[ro].bind(this),setHasOutput:this[Z0].bind(this)}}[U0](){return _(this,Ke,"f")}[H0](){return _(this,to,"f")}[z0](){return _(this,Zt,"f")}[Y0](){return _(this,Hi,"f")}[V0](){return _(this,ui,"f")||{}}[K0](){return _(this,we,"f")}[X0](){return _(this,ze,"f")}[Ja](){return!!_(this,er,"f")}[J0](){return _(this,za,"f")}[pi](t,r,n,i){return n||qe(t)||(r||(t=this[I0](t)),(this[di]()["parse-positional-numbers"]||this[di]()["parse-positional-numbers"]===void 0)&&(t=this[q0](t)),i&&(t=ii(t,this,_(this,cr,"f").getMiddleware(),!1))),t}[vf](t={}){le(this,pe,_(this,pe,"f")||{},"f");let r={};r.local=_(this,pe,"f").local||[],r.configObjects=_(this,pe,"f").configObjects||[];let n={};r.local.forEach(o=>{n[o]=!0,(t[o]||[]).forEach(a=>{n[a]=!0})}),Object.assign(_(this,ci,"f"),Object.keys(_(this,Mr,"f")).reduce((o,a)=>{let c=_(this,Mr,"f")[a].filter(u=>!(u in n));return c.length>0&&(o[a]=c),o},{})),le(this,Mr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{r[o]=(_(this,pe,"f")[o]||[]).filter(a=>!n[a])}),s.forEach(o=>{r[o]=xn(_(this,pe,"f")[o],a=>!n[a])}),r.envPrefix=_(this,pe,"f").envPrefix,le(this,pe,r,"f"),le(this,we,_(this,we,"f")?_(this,we,"f").reset(n):P0(this,_(this,be,"f")),"f"),le(this,ze,_(this,ze,"f")?_(this,ze,"f").reset(n):k0(this,_(this,we,"f"),_(this,be,"f")),"f"),le(this,Ke,_(this,Ke,"f")?_(this,Ke,"f").reset():C0(_(this,we,"f"),_(this,ze,"f"),_(this,cr,"f"),_(this,be,"f")),"f"),_(this,ar,"f")||le(this,ar,F0(this,_(this,we,"f"),_(this,Ke,"f"),_(this,be,"f")),"f"),_(this,cr,"f").reset(),le(this,Qt,null,"f"),le(this,ot,"","f"),le(this,Pn,null,"f"),le(this,Zt,!1,"f"),this.parsed=!1,this}[Q0](t,r){return _(this,be,"f").path.relative(t,r)}[ro](t,r,n,i=0,s=!1){let o=!!n||s;t=t||_(this,_n,"f"),_(this,pe,"f").__=_(this,be,"f").y18n.__,_(this,pe,"f").configuration=this[di]();let a=!!_(this,pe,"f").configuration["populate--"],c=Object.assign({},_(this,pe,"f").configuration,{"populate--":!0}),u=_(this,be,"f").Parser.detailed(t,Object.assign({},_(this,pe,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),f=Object.assign(u.argv,_(this,ui,"f")),l,h=u.aliases,d=!1,p=!1;Object.keys(f).forEach(y=>{y===_(this,lr,"f")&&f[y]?d=!0:y===_(this,jr,"f")&&f[y]&&(p=!0)}),f.$0=this.$0,this.parsed=u,i===0&&_(this,we,"f").clearCachedHelpMessage();try{if(this[ff](),r)return this[pi](f,a,!!n,!1);_(this,lr,"f")&&[_(this,lr,"f")].concat(h[_(this,lr,"f")]||[]).filter(k=>k.length>1).includes(""+f._[f._.length-1])&&(f._.pop(),d=!0),le(this,za,!1,"f");let y=_(this,Ke,"f").getCommands(),m=_(this,ar,"f").completionKey in f,O=d||m||s;if(f._.length){if(y.length){let S;for(let k=i||0,F;f._[k]!==void 0;k++)if(F=String(f._[k]),y.includes(F)&&F!==_(this,Qt,"f")){let b=_(this,Ke,"f").runCommand(F,this,u,k+1,s,d||p||s);return this[pi](b,a,!!n,!1)}else if(!S&&F!==_(this,Qt,"f")){S=F;break}!_(this,Ke,"f").hasDefaultCommand()&&_(this,Ka,"f")&&S&&!O&&_(this,ze,"f").recommendCommands(S,y)}_(this,Qt,"f")&&f._.includes(_(this,Qt,"f"))&&!m&&(_(this,ur,"f")&&On(!0),this.showCompletionScript(),this.exit(0))}if(_(this,Ke,"f").hasDefaultCommand()&&!O){let S=_(this,Ke,"f").runCommand(null,this,u,0,s,d||p||s);return this[pi](S,a,!!n,!1)}if(m){_(this,ur,"f")&&On(!0),t=[].concat(t);let S=t.slice(t.indexOf(`--${_(this,ar,"f").completionKey}`)+1);return _(this,ar,"f").getCompletion(S,(k,F)=>{if(k)throw new We(k.message);(F||[]).forEach(b=>{_(this,Hi,"f").log(b)}),this.exit(0)}),this[pi](f,!a,!!n,!1)}if(_(this,Zt,"f")||(d?(_(this,ur,"f")&&On(!0),o=!0,this.showHelp("log"),this.exit(0)):p&&(_(this,ur,"f")&&On(!0),o=!0,_(this,we,"f").showVersion("log"),this.exit(0))),!o&&_(this,pe,"f").skipValidation.length>0&&(o=Object.keys(f).some(S=>_(this,pe,"f").skipValidation.indexOf(S)>=0&&f[S]===!0)),!o){if(u.error)throw new We(u.error.message);if(!m){let S=this[Af](h,{},u.error);n||(l=ii(f,this,_(this,cr,"f").getMiddleware(),!0)),l=this[G0](S,l??f),qe(l)&&!n&&(l=l.then(()=>ii(f,this,_(this,cr,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof We)_(this,we,"f").fail(y.message,y);else throw y}return this[pi](l??f,a,!!n,!0)}[Af](t,r,n,i){let s={...this.getDemandedOptions()};return o=>{if(n)throw new We(n.message);_(this,ze,"f").nonOptionCount(o),_(this,ze,"f").requiredArguments(o,s);let a=!1;_(this,fi,"f")&&(a=_(this,ze,"f").unknownCommands(o)),_(this,li,"f")&&!a?_(this,ze,"f").unknownArguments(o,t,r,!!i):_(this,hi,"f")&&_(this,ze,"f").unknownArguments(o,t,{},!1,!1),_(this,ze,"f").limitedChoices(o),_(this,ze,"f").implications(o),_(this,ze,"f").conflicting(o)}}[Z0](){le(this,Zt,!0,"f")}[gi](t){if(typeof t=="string")_(this,pe,"f").key[t]=!0;else for(let r of t)_(this,pe,"f").key[r]=!0}};function x0(e){return!!e&&typeof e.getInternalMethods=="function"}var aD=ey(rf),ty=aD;function ry(e){let t=ty(ef(e)).option({skipCheck:{type:"boolean",description:"Skip checking the validity of the feeds"},skipAuth:{type:"boolean",description:"Skip authenticating the feeds"},configFile:{alias:"c",type:"string",description:"Skip checking the validity of the feeds"},azureAuthLocation:{type:"string",description:"Allow specifying alternate location to azureauth"},exitCodeOnReAuthenticate:{type:"number",description:"Exit when re-authentication occurs"}}).help().parseSync();return{skipAuth:t.skipAuth||!1,doValidCheck:!t.skipCheck,configFile:t.configFile,azureAuthLocation:t.azureAuthLocation,exitCodeOnReAuthenticate:t.exitCodeOnReAuthenticate}}var uR=Mt(BS(),1);var sR=Mt(tR(),1),xm=require("node:path"),oR=Mt(require("node:fs/promises"),1),Om=Mt(require("node:path"),1),aR=require("node:os");var Z6=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},Bs=(e,t="")=>{try{let{organization:r}=Z6(e);return r}catch{return t}};function Qn(e){return Buffer.from(e||"").toString("base64")}var bl=e=>Buffer.from(e,"base64").toString("utf8");var Sm=Mt(require("https"),1),wl=Mt(require("fs"),1),rR=Mt(require("path"),1),e8={port:443,method:"GET"},nR=async e=>new Promise((t,r)=>{let n={...e8,...e};Sm.default.request(n,s=>{let o="",a={},c=s.statusCode===200;s.on("data",u=>{o+=u}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),c?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",u=>{r(new Error(u))})}).end()});async function Cm(e,t){return new Promise((r,n)=>{Sm.default.get(e,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){Cm(o,t).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=rR.default.dirname(t);wl.default.existsSync(o)||wl.default.mkdirSync(o,{recursive:!0}),s=wl.default.createWriteStream(t)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var iR=async({password:e,organization:t})=>{let r=`Basic ${Qn(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await nR(n)}catch(i){if(i.statusCode===404)return;throw i}};var Sl="me",Cl="me@example.com",Ws=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&Om.default.basename(n)===this.workspaceFileName)i=Om.default.resolve(n);else{let o=(0,sR.getWorkspaceRoot)(process.cwd())||"";i=(0,xm.join)(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||(0,aR.homedir)()||"";this.userFilePath=(0,xm.join)(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await oR.default.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await iR({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:Bs(i)},isValid:!1,fileProvider:this})}return t}};var Ol=Mt(require("node:fs/promises"),1),Pl=require("node:os");var xl=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var cR=Mt(require("node:path"),1);var Pm=Mt(require("node:fs/promises"),1);async function qs(e,t){try{if(await Pm.default.readFile(e,{encoding:"utf-8"})===t)return}catch{}await Pm.default.writeFile(e,t,{encoding:"utf-8"})}var _l=class extends Ws{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Ol.default.readFile(this.userFilePath,"utf-8")).split(Pl.EOL).filter(n=>!n.includes("registry=")).join(Pl.EOL);await qs(this.userFilePath,r)}catch{await qs(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new uR.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${cR.default.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>xl(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:Bs(n)},t.set(o.registry,o)),i){case"_password":o.authToken=bl(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let c=t.get(this.toRegistryAndFunctionKey(s,o));return c!==void 0?(r.delete(c),c):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||Sl}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||Cl}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${Qn(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await Ol.default.writeFile(this.userFilePath,i.join(Pl.EOL),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Ol.default.readFile(t,{encoding:"utf8"})).split(`
163
+ `).map(a=>a.trim()),o=[];for(let a of s){let c=a.indexOf("/:");if(a.startsWith("//")&&c>=2){let u=a.substring(2,c+1),f=a.substring(c+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,u,l,h);d&&o.push(d)}else if(n){let u=n(a);u&&o.push(u)}}return o}};var ba=require("os");var kl=require("os");var Rl=require("node:child_process"),lR=require("node:util"),Fl=(0,lR.promisify)(Rl.exec);function _m(e,t,r){return new Promise((n,i)=>{let s=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${e} ${t.join(" ")}] in ${s}`);let o=(0,Rl.spawn)(e,t,{cwd:s,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&(o.stdout?.setEncoding("utf8"),o.stdout?.on("data",function(a){let c=a.toString("utf8");r?.processStdOut?.(c)}),o.stderr?.setEncoding("utf8"),o.stderr?.on("data",function(a){let c=a.toString("utf8");r?.processStdErr?.(c)})),o.on("exit",a=>{a==0?n():i(new Error(`Process ${e} exited with code ${a}`))})})}var Rm;var t8=["npm","exec","--silent","--yes","azureauth","--"],r8={...process.env,npm_config_registry:"https://registry.npmjs.org"},Dl=()=>(Rm||(Rm=sn()?["azureauth.exe"]:t8),{command:Rm,env:r8});var hR=require("child_process");var Ll;var fR=async()=>{if(Ll===void 0){let{command:e,env:t}=Dl(),r=`${e.join(" ")} --version`;try{let n=await Fl(r,{env:t}),[,i]=n.stdout.split(".");Ll=parseInt(i)>=8}catch{Ll=!1}}return Ll};var dR=async(e,t)=>{if(!Fa())throw new Error(`AzureAuth is not supported for platform ${(0,kl.platform)()} and architecture ${(0,kl.arch)()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Dl(),i=[...r,"ado","pat",`--prompt-hint ${sn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(sn())try{if(s=(0,hR.spawnSync)(i[0],i.slice(1),{encoding:"utf-8"}),s.status!==0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await Fl(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await fR()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var Tl=Mt(require("os"),1),Il=Mt(require("fs"),1),Ea=Mt(require("path"),1);var pR="1.4.1",Dm=Ea.default.join(__dirname,"..",".bin","CredentialProvider.Microsoft","v"+pR);async function gR(e){let t=n8(e),r=await s8();return await i8(r,t)}function n8(e){if(!e.endsWith("/npm/registry/"))throw new Error(`Registry URL ${e} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);return"https://"+e.replace("/npm/registry/","/nuget/v3/index.json")}async function i8(e,t){let r="";await _m(e,["-U",t,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function Fm(e){if(Il.default.existsSync(e))return e;if(Il.default.existsSync(e+".exe"))return e+".exe"}async function s8(){let e=Fm(Ea.default.join(Tl.default.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(e)return e;let t=Ea.default.join(Dm,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(e=Fm(t),e)return e;if(await o8(),e=Fm(t),e)Il.default.chmodSync(e,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${e}`);return e}async function o8(){let e=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${pR}/Microsoft.Net8.${Tl.default.platform()}-${Tl.default.arch()}.NuGet.CredentialProvider.tar.gz`,t=Ea.default.join(Dm,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${e}`),await Cm(e,t),await _m("tar",["-xzf",t,"-C",Dm],{stdio:"inherit"})}var mR=async(e,t,r=!1,n)=>{let i=`${(0,ba.hostname)()}-${e}`,s=await a8(i,e,t,n);return r?Qn(s):s};async function a8(e,t,r,n){switch((0,ba.platform)()){case"win32":case"darwin":return(await dR({promptHint:`Authenticate to ${t} to generate a temporary token for npm`,organization:`https://dev.azure.com/${t}`,displayName:e,scope:["vso.packaging"],timeout:"30m"},n)).token;case"linux":return(await gR(r)).Password;default:throw new Error(`Platform ${(0,ba.platform)()} is not supported for ADO authentication`)}}function yR(e,t){let r=new Map;for(var n of e){let i=t(n),s=r.get(i);s?s.push(n):r.set(i,[n])}return r}function kR(e){return typeof e>"u"||e===null}function u8(e){return typeof e=="object"&&e!==null}function c8(e){return Array.isArray(e)?e:kR(e)?[]:[e]}function l8(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function f8(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function h8(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var d8=kR,p8=u8,g8=c8,m8=f8,y8=h8,v8=l8,st={isNothing:d8,isObject:p8,toArray:g8,repeat:m8,isNegativeZero:y8,extend:v8};function TR(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
164
164
 
165
- `+e.mark.snippet),n+" "+r):n}function ba(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=bR(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ba.prototype=Object.create(Error.prototype);ba.prototype.constructor=ba;ba.prototype.toString=function(t){return this.name+": "+bR(this,t)};var Nt=ba;function Em(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function bm(e,t){return st.repeat(" ",t-e.length)+e}function e8(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=Em(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=st.repeat(" ",t.indent)+bm((e.line-c+1).toString(),f)+" | "+u.str+`
166
- `+a;for(u=Em(e.buffer,n[o],i[o],e.position,l),a+=st.repeat(" ",t.indent)+bm((e.line+1).toString(),f)+" | "+u.str+`
165
+ `+e.mark.snippet),n+" "+r):n}function Sa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=TR(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Sa.prototype=Object.create(Error.prototype);Sa.prototype.constructor=Sa;Sa.prototype.toString=function(t){return this.name+": "+TR(this,t)};var Nt=Sa;function Lm(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function km(e,t){return st.repeat(" ",t-e.length)+e}function A8(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=Lm(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=st.repeat(" ",t.indent)+km((e.line-c+1).toString(),f)+" | "+u.str+`
166
+ `+a;for(u=Lm(e.buffer,n[o],i[o],e.position,l),a+=st.repeat(" ",t.indent)+km((e.line+1).toString(),f)+" | "+u.str+`
167
167
  `,a+=st.repeat("-",t.indent+f+3+u.pos)+`^
168
- `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Em(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=st.repeat(" ",t.indent)+bm((e.line+c+1).toString(),f)+" | "+u.str+`
169
- `;return a.replace(/\n$/,"")}var t8=e8,r8=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n8=["scalar","sequence","mapping"];function i8(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function s8(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(r8.indexOf(r)===-1)throw new Nt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=i8(t.styleAliases||null),n8.indexOf(this.kind)===-1)throw new Nt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var dt=s8;function sR(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function o8(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Sm(e){return this.extend(e)}Sm.prototype.extend=function(t){var r=[],n=[];if(t instanceof dt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Nt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof dt))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Nt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Nt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof dt))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Sm.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=sR(i,"implicit"),i.compiledExplicit=sR(i,"explicit"),i.compiledTypeMap=o8(i.compiledImplicit,i.compiledExplicit),i};var wR=Sm,SR=new dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),CR=new dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),xR=new dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),OR=new wR({explicit:[SR,CR,xR]});function a8(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function u8(){return null}function c8(e){return e===null}var _R=new dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:a8,construct:u8,predicate:c8,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function l8(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function f8(e){return e==="true"||e==="True"||e==="TRUE"}function h8(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var PR=new dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:l8,construct:f8,predicate:h8,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function p8(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function d8(e){return 48<=e&&e<=55}function g8(e){return 48<=e&&e<=57}function m8(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!p8(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!d8(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!g8(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function y8(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function v8(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!st.isNegativeZero(e)}var RR=new dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:m8,construct:y8,predicate:v8,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),A8=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function E8(e){return!(e===null||!A8.test(e)||e[e.length-1]==="_")}function b8(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var w8=/^[-+]?[0-9]+e/;function S8(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(st.isNegativeZero(e))return"-0.0";return r=e.toString(10),w8.test(r)?r.replace("e",".e"):r}function C8(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||st.isNegativeZero(e))}var FR=new dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:E8,construct:b8,predicate:C8,represent:S8,defaultStyle:"lowercase"}),DR=OR.extend({implicit:[_R,PR,RR,FR]}),LR=DR,kR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),TR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function x8(e){return e===null?!1:kR.exec(e)!==null||TR.exec(e)!==null}function O8(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=kR.exec(e),t===null&&(t=TR.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function _8(e){return e.toISOString()}var IR=new dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:x8,construct:O8,instanceOf:Date,represent:_8});function P8(e){return e==="<<"||e===null}var NR=new dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:P8}),Pm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
170
- \r`;function R8(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Pm;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function F8(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Pm,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function D8(e){var t="",r=0,n,i,s=e.length,o=Pm;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function L8(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var $R=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:R8,construct:F8,predicate:L8,represent:D8}),k8=Object.prototype.hasOwnProperty,T8=Object.prototype.toString;function I8(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,T8.call(i)!=="[object Object]")return!1;for(s in i)if(k8.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function N8(e){return e!==null?e:[]}var MR=new dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:I8,construct:N8}),$8=Object.prototype.toString;function M8(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],$8.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function j8(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var jR=new dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:M8,construct:j8}),B8=Object.prototype.hasOwnProperty;function W8(e){if(e===null)return!0;var t,r=e;for(t in r)if(B8.call(r,t)&&r[t]!==null)return!1;return!0}function q8(e){return e!==null?e:{}}var BR=new dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:W8,construct:q8}),Rm=LR.extend({implicit:[IR,NR],explicit:[$R,MR,jR,BR]}),ei=Object.prototype.hasOwnProperty,Rl=1,WR=2,qR=3,Fl=4,wm=1,G8=2,oR=3,U8=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,H8=/[\x85\u2028\u2029]/,z8=/[,\[\]\{\}]/,GR=/^(?:!|!!|![a-z\-]+!)$/i,UR=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function aR(e){return Object.prototype.toString.call(e)}function Zr(e){return e===10||e===13}function Ii(e){return e===9||e===32}function Ut(e){return e===9||e===32||e===10||e===13}function Us(e){return e===44||e===91||e===93||e===123||e===125}function Y8(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function V8(e){return e===120?2:e===117?4:e===85?8:0}function K8(e){return 48<=e&&e<=57?e-48:-1}function uR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
171
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function X8(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var HR=new Array(256),zR=new Array(256);for(Ti=0;Ti<256;Ti++)HR[Ti]=uR(Ti)?1:0,zR[Ti]=uR(Ti);var Ti;function J8(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Rm,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function YR(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=t8(r),new Nt(t,r)}function ye(e,t){throw YR(e,t)}function Dl(e,t){e.onWarning&&e.onWarning.call(null,YR(e,t))}var cR={YAML:function(t,r,n){var i,s,o;t.version!==null&&ye(t,"duplication of %YAML directive"),n.length!==1&&ye(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ye(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ye(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Dl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ye(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],GR.test(i)||ye(t,"ill-formed tag handle (first argument) of the TAG directive"),ei.call(t.tagMap,i)&&ye(t,'there is a previously declared suffix for "'+i+'" tag handle'),UR.test(s)||ye(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ye(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Zn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ye(e,"expected valid JSON character");else U8.test(a)&&ye(e,"the stream contains non-printable characters");e.result+=a}}function lR(e,t,r,n){var i,s,o,a;for(st.isObject(r)||ye(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],ei.call(t,s)||(t[s]=r[s],n[s]=!0)}function Hs(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&ye(e,"nested arrays are not supported inside keys"),typeof i=="object"&&aR(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&aR(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)lR(e,t,s[u],r);else lR(e,t,s,r);else!e.json&&!ei.call(r,i)&&ei.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,ye(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Fm(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ii(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Zr(i))for(Fm(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Dl(e,"deficient indentation"),n}function Tl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ut(r)))}function Dm(e,t){t===1?e.result+=" ":t>1&&(e.result+=st.repeat(`
172
- `,t-1))}function Q8(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Ut(p)||Us(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Ut(i)||r&&Us(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Ut(i)||r&&Us(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Ut(n))break}else{if(e.position===e.lineStart&&Tl(e)||r&&Us(p))break;if(Zr(p))if(c=e.line,u=e.lineStart,f=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Zn(e,s,o,!1),Dm(e,e.line-c),s=o=e.position,a=!1),Ii(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Zn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function Z8(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Zn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Zr(r)?(Zn(e,n,i,!0),Dm(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Tl(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function e4(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Zn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Zn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Zr(a))rt(e,!1,t);else if(a<256&&HR[a])e.result+=zR[a],e.position++;else if((o=V8(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=Y8(a))>=0?s=(s<<4)+o:ye(e,"expected hexadecimal character");e.result+=X8(s),e.position++}else ye(e,"unknown escape sequence");r=n=e.position}else Zr(a)?(Zn(e,r,n,!0),Dm(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Tl(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function t4(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,p,d=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,p=!1,a=[];else if(S===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(rt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=c,e.kind=p?"mapping":"sequence",e.result=a,!0;r?S===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),Ut(u)&&(l=h=!0,e.position++,rt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,zs(e,t,Rl,!1,!0),m=e.tag,y=e.result,rt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),rt(e,!0,t),zs(e,t,Rl,!1,!0),O=e.result),p?Hs(e,a,d,m,y,O,n,i,s):l?a.push(Hs(e,null,d,m,y,O,n,i,s)):a.push(y),rt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ye(e,"unexpected end of the stream within a flow collection")}function r4(e,t){var r,n,i=wm,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)wm===i?i=l===43?oR:G8:ye(e,"repeat of a chomping mode identifier");else if((f=K8(l))>=0)f===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Ii(l)){do l=e.input.charCodeAt(++e.position);while(Ii(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Zr(l)&&l!==0)}for(;l!==0;){for(Fm(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Zr(l)){c++;continue}if(e.lineIndent<a){i===oR?e.result+=st.repeat(`
173
- `,s?1+c:c):i===wm&&s&&(e.result+=`
168
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Lm(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=st.repeat(" ",t.indent)+km((e.line+c+1).toString(),f)+" | "+u.str+`
169
+ `;return a.replace(/\n$/,"")}var E8=A8,b8=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],w8=["scalar","sequence","mapping"];function S8(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function C8(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(b8.indexOf(r)===-1)throw new Nt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=S8(t.styleAliases||null),w8.indexOf(this.kind)===-1)throw new Nt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var pt=C8;function vR(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function x8(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Im(e){return this.extend(e)}Im.prototype.extend=function(t){var r=[],n=[];if(t instanceof pt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Nt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof pt))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Nt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Nt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof pt))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Im.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=vR(i,"implicit"),i.compiledExplicit=vR(i,"explicit"),i.compiledTypeMap=x8(i.compiledImplicit,i.compiledExplicit),i};var IR=Im,NR=new pt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),$R=new pt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),MR=new pt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),jR=new IR({explicit:[NR,$R,MR]});function O8(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function P8(){return null}function _8(e){return e===null}var BR=new pt("tag:yaml.org,2002:null",{kind:"scalar",resolve:O8,construct:P8,predicate:_8,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function R8(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function F8(e){return e==="true"||e==="True"||e==="TRUE"}function D8(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var WR=new pt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:R8,construct:F8,predicate:D8,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function L8(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function k8(e){return 48<=e&&e<=55}function T8(e){return 48<=e&&e<=57}function I8(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!L8(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!k8(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!T8(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function N8(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function $8(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!st.isNegativeZero(e)}var qR=new pt("tag:yaml.org,2002:int",{kind:"scalar",resolve:I8,construct:N8,predicate:$8,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),M8=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function j8(e){return!(e===null||!M8.test(e)||e[e.length-1]==="_")}function B8(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var W8=/^[-+]?[0-9]+e/;function q8(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(st.isNegativeZero(e))return"-0.0";return r=e.toString(10),W8.test(r)?r.replace("e",".e"):r}function G8(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||st.isNegativeZero(e))}var GR=new pt("tag:yaml.org,2002:float",{kind:"scalar",resolve:j8,construct:B8,predicate:G8,represent:q8,defaultStyle:"lowercase"}),UR=jR.extend({implicit:[BR,WR,qR,GR]}),HR=UR,zR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function U8(e){return e===null?!1:zR.exec(e)!==null||YR.exec(e)!==null}function H8(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=zR.exec(e),t===null&&(t=YR.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function z8(e){return e.toISOString()}var VR=new pt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:U8,construct:H8,instanceOf:Date,represent:z8});function Y8(e){return e==="<<"||e===null}var KR=new pt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Y8}),Bm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
170
+ \r`;function V8(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Bm;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function K8(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Bm,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function X8(e){var t="",r=0,n,i,s=e.length,o=Bm;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function J8(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var XR=new pt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:V8,construct:K8,predicate:J8,represent:X8}),Q8=Object.prototype.hasOwnProperty,Z8=Object.prototype.toString;function e4(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,Z8.call(i)!=="[object Object]")return!1;for(s in i)if(Q8.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function t4(e){return e!==null?e:[]}var JR=new pt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:e4,construct:t4}),r4=Object.prototype.toString;function n4(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],r4.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function i4(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var QR=new pt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n4,construct:i4}),s4=Object.prototype.hasOwnProperty;function o4(e){if(e===null)return!0;var t,r=e;for(t in r)if(s4.call(r,t)&&r[t]!==null)return!1;return!0}function a4(e){return e!==null?e:{}}var ZR=new pt("tag:yaml.org,2002:set",{kind:"mapping",resolve:o4,construct:a4}),Wm=HR.extend({implicit:[VR,KR],explicit:[XR,JR,QR,ZR]}),ei=Object.prototype.hasOwnProperty,Nl=1,eF=2,tF=3,$l=4,Tm=1,u4=2,AR=3,c4=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l4=/[\x85\u2028\u2029]/,f4=/[,\[\]\{\}]/,rF=/^(?:!|!!|![a-z\-]+!)$/i,nF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ER(e){return Object.prototype.toString.call(e)}function en(e){return e===10||e===13}function Ii(e){return e===9||e===32}function Ht(e){return e===9||e===32||e===10||e===13}function Us(e){return e===44||e===91||e===93||e===123||e===125}function h4(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function d4(e){return e===120?2:e===117?4:e===85?8:0}function p4(e){return 48<=e&&e<=57?e-48:-1}function bR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
171
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function g4(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var iF=new Array(256),sF=new Array(256);for(Ti=0;Ti<256;Ti++)iF[Ti]=bR(Ti)?1:0,sF[Ti]=bR(Ti);var Ti;function m4(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Wm,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function oF(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=E8(r),new Nt(t,r)}function ye(e,t){throw oF(e,t)}function Ml(e,t){e.onWarning&&e.onWarning.call(null,oF(e,t))}var wR={YAML:function(t,r,n){var i,s,o;t.version!==null&&ye(t,"duplication of %YAML directive"),n.length!==1&&ye(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ye(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ye(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ml(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ye(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],rF.test(i)||ye(t,"ill-formed tag handle (first argument) of the TAG directive"),ei.call(t.tagMap,i)&&ye(t,'there is a previously declared suffix for "'+i+'" tag handle'),nF.test(s)||ye(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ye(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Zn(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ye(e,"expected valid JSON character");else c4.test(a)&&ye(e,"the stream contains non-printable characters");e.result+=a}}function SR(e,t,r,n){var i,s,o,a;for(st.isObject(r)||ye(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],ei.call(t,s)||(t[s]=r[s],n[s]=!0)}function Hs(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&ye(e,"nested arrays are not supported inside keys"),typeof i=="object"&&ER(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&ER(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)SR(e,t,s[u],r);else SR(e,t,s,r);else!e.json&&!ei.call(r,i)&&ei.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,ye(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function qm(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ii(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(en(i))for(qm(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ml(e,"deficient indentation"),n}function Wl(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ht(r)))}function Gm(e,t){t===1?e.result+=" ":t>1&&(e.result+=st.repeat(`
172
+ `,t-1))}function y4(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),Ht(d)||Us(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),Ht(i)||r&&Us(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Ht(i)||r&&Us(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Ht(n))break}else{if(e.position===e.lineStart&&Wl(e)||r&&Us(d))break;if(en(d))if(c=e.line,u=e.lineStart,f=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(Zn(e,s,o,!1),Gm(e,e.line-c),s=o=e.position,a=!1),Ii(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Zn(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function v4(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Zn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else en(r)?(Zn(e,n,i,!0),Gm(e,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Wl(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function A4(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Zn(e,r,e.position,!0),e.position++,!0;if(a===92){if(Zn(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),en(a))rt(e,!1,t);else if(a<256&&iF[a])e.result+=sF[a],e.position++;else if((o=d4(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=h4(a))>=0?s=(s<<4)+o:ye(e,"expected hexadecimal character");e.result+=g4(s),e.position++}else ye(e,"unknown escape sequence");r=n=e.position}else en(a)?(Zn(e,r,n,!0),Gm(e,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Wl(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function E4(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,d,p=Object.create(null),y,m,O,S;if(S=e.input.charCodeAt(e.position),S===91)f=93,d=!1,a=[];else if(S===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),S=e.input.charCodeAt(++e.position);S!==0;){if(rt(e,!0,t),S=e.input.charCodeAt(e.position),S===f)return e.position++,e.tag=o,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;r?S===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),m=y=O=null,l=h=!1,S===63&&(u=e.input.charCodeAt(e.position+1),Ht(u)&&(l=h=!0,e.position++,rt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,zs(e,t,Nl,!1,!0),m=e.tag,y=e.result,rt(e,!0,t),S=e.input.charCodeAt(e.position),(h||e.line===n)&&S===58&&(l=!0,S=e.input.charCodeAt(++e.position),rt(e,!0,t),zs(e,t,Nl,!1,!0),O=e.result),d?Hs(e,a,p,m,y,O,n,i,s):l?a.push(Hs(e,null,p,m,y,O,n,i,s)):a.push(y),rt(e,!0,t),S=e.input.charCodeAt(e.position),S===44?(r=!0,S=e.input.charCodeAt(++e.position)):r=!1}ye(e,"unexpected end of the stream within a flow collection")}function b4(e,t){var r,n,i=Tm,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Tm===i?i=l===43?AR:u4:ye(e,"repeat of a chomping mode identifier");else if((f=p4(l))>=0)f===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Ii(l)){do l=e.input.charCodeAt(++e.position);while(Ii(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!en(l)&&l!==0)}for(;l!==0;){for(qm(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),en(l)){c++;continue}if(e.lineIndent<a){i===AR?e.result+=st.repeat(`
173
+ `,s?1+c:c):i===Tm&&s&&(e.result+=`
174
174
  `);break}for(n?Ii(l)?(u=!0,e.result+=st.repeat(`
175
175
  `,s?1+c:c)):u?(u=!1,e.result+=st.repeat(`
176
176
  `,c+1)):c===0?s&&(e.result+=" "):e.result+=st.repeat(`
177
177
  `,c):e.result+=st.repeat(`
178
- `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Zr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Zn(e,r,e.position,!1)}return!0}function fR(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Ut(o))));){if(a=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,zs(e,t,qR,!1,!0),s.push(e.result),rt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function n4(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&Ut(n))S===63?(m&&(Hs(e,l,h,p,d,null,o,a,c),p=d=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):ye(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,c=e.position,!zs(e,r,WR,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Ii(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Ut(S)||ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hs(e,l,h,p,d,null,o,a,c),p=d=y=null),O=!0,m=!1,i=!1,p=e.tag,d=e.result;else if(O)ye(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(O)ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,c=e.position),zs(e,t,Fl,!0,i)&&(m?d=e.result:y=e.result),m||(Hs(e,l,h,p,d,y,o,a,c),p=d=y=null),rt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Hs(e,l,h,p,d,null,o,a,c),O&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),O}function i4(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ye(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ut(o);)o===33&&(n?ye(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),GR.test(i)||ye(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),z8.test(s)&&ye(e,"tag suffix cannot contain flow indicator characters")}s&&!UR.test(s)&&ye(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ye(e,"tag name is malformed: "+s)}return r?e.tag=s:ei.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ye(e,'undeclared tag handle "'+i+'"'),!0}function s4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ut(r)&&!Us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function o4(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ut(n)&&!Us(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ei.call(e.anchorMap,r)||ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}function zs(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,p,d,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Fl===r||qR===r,n&&rt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;i4(e)||s4(e);)rt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||Fl===r)&&(Rl===r||WR===r?y=t:y=t+1,m=e.position-e.lineStart,c===1?a&&(fR(e,m)||n4(e,m,y))||t4(e,y)?f=!0:(o&&r4(e,y)||Z8(e,y)||e4(e,y)?f=!0:o4(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ye(e,"alias node should not have any properties")):Q8(e,y,Rl===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&fR(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ye(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ei.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||ye(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function a4(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(rt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Ut(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Ii(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Zr(o));break}if(Zr(o))break;for(r=e.position;o!==0&&!Ut(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Fm(e),ei.call(cR,n)?cR[n](e,n,i):Dl(e,'unknown document directive "'+n+'"')}if(rt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,rt(e,!0,-1)):s&&ye(e,"directives end mark is expected"),zs(e,e.lineIndent-1,Fl,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&H8.test(e.input.slice(t,e.position))&&Dl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Tl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)ye(e,"end of the stream or a document separator is expected");else return}function VR(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
179
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new J8(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ye(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)a4(r);return r.documents}function u4(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=VR(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function c4(e,t){var r=VR(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Nt("expected a single document in the stream, but found more")}}var l4=u4,f4=c4,KR={loadAll:l4,load:f4},XR=Object.prototype.toString,JR=Object.prototype.hasOwnProperty,Lm=65279,h4=9,wa=10,p4=13,d4=32,g4=33,m4=34,Cm=35,y4=37,v4=38,A4=39,E4=42,QR=44,b4=45,Ll=58,w4=61,S4=62,C4=63,x4=64,ZR=91,eF=93,O4=96,tF=123,_4=124,rF=125,Ct={};Ct[0]="\\0";Ct[7]="\\a";Ct[8]="\\b";Ct[9]="\\t";Ct[10]="\\n";Ct[11]="\\v";Ct[12]="\\f";Ct[13]="\\r";Ct[27]="\\e";Ct[34]='\\"';Ct[92]="\\\\";Ct[133]="\\N";Ct[160]="\\_";Ct[8232]="\\L";Ct[8233]="\\P";var P4=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],R4=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function F4(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&JR.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function D4(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Nt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+st.repeat("0",n-t.length)+t}var L4=1,Sa=2;function k4(e){this.schema=e.schema||Rm,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=st.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=F4(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Sa:L4,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function hR(e,t){for(var r=st.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
178
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!en(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Zn(e,r,e.position,!1)}return!0}function CR(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Ht(o))));){if(a=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,zs(e,t,tF,!1,!0),s.push(e.result),rt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function w4(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,p=null,y=null,m=!1,O=!1,S;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),S=e.input.charCodeAt(e.position);S!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(S===63||S===58)&&Ht(n))S===63?(m&&(Hs(e,l,h,d,p,null,o,a,c),d=p=y=null),O=!0,m=!0,i=!0):m?(m=!1,i=!0):ye(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,S=n;else{if(o=e.line,a=e.lineStart,c=e.position,!zs(e,r,eF,!1,!0))break;if(e.line===s){for(S=e.input.charCodeAt(e.position);Ii(S);)S=e.input.charCodeAt(++e.position);if(S===58)S=e.input.charCodeAt(++e.position),Ht(S)||ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hs(e,l,h,d,p,null,o,a,c),d=p=y=null),O=!0,m=!1,i=!1,d=e.tag,p=e.result;else if(O)ye(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(O)ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(m&&(o=e.line,a=e.lineStart,c=e.position),zs(e,t,$l,!0,i)&&(m?p=e.result:y=e.result),m||(Hs(e,l,h,d,p,y,o,a,c),d=p=y=null),rt(e,!0,-1),S=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&S!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Hs(e,l,h,d,p,null,o,a,c),O&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),O}function S4(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ye(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ht(o);)o===33&&(n?ye(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),rF.test(i)||ye(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),f4.test(s)&&ye(e,"tag suffix cannot contain flow indicator characters")}s&&!nF.test(s)&&ye(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ye(e,"tag name is malformed: "+s)}return r?e.tag=s:ei.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ye(e,'undeclared tag handle "'+i+'"'),!0}function C4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ht(r)&&!Us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function x4(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ht(n)&&!Us(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ei.call(e.anchorMap,r)||ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}function zs(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,d,p,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=$l===r||tF===r,n&&rt(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;S4(e)||C4(e);)rt(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||$l===r)&&(Nl===r||eF===r?y=t:y=t+1,m=e.position-e.lineStart,c===1?a&&(CR(e,m)||w4(e,m,y))||E4(e,y)?f=!0:(o&&b4(e,y)||v4(e,y)||A4(e,y)?f=!0:x4(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ye(e,"alias node should not have any properties")):y4(e,y,Nl===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&CR(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ye(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(p=e.implicitTypes[l],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ei.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){p=d[l];break}p||ye(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function O4(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(rt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Ht(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Ii(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!en(o));break}if(en(o))break;for(r=e.position;o!==0&&!Ht(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&qm(e),ei.call(wR,n)?wR[n](e,n,i):Ml(e,'unknown document directive "'+n+'"')}if(rt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,rt(e,!0,-1)):s&&ye(e,"directives end mark is expected"),zs(e,e.lineIndent-1,$l,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&l4.test(e.input.slice(t,e.position))&&Ml(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,rt(e,!0,-1));return}if(e.position<e.length-1)ye(e,"end of the stream or a document separator is expected");else return}function aF(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
179
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new m4(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ye(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)O4(r);return r.documents}function P4(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=aF(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function _4(e,t){var r=aF(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Nt("expected a single document in the stream, but found more")}}var R4=P4,F4=_4,uF={loadAll:R4,load:F4},cF=Object.prototype.toString,lF=Object.prototype.hasOwnProperty,Um=65279,D4=9,Ca=10,L4=13,k4=32,T4=33,I4=34,Nm=35,N4=37,$4=38,M4=39,j4=42,fF=44,B4=45,jl=58,W4=61,q4=62,G4=63,U4=64,hF=91,dF=93,H4=96,pF=123,z4=124,gF=125,Ct={};Ct[0]="\\0";Ct[7]="\\a";Ct[8]="\\b";Ct[9]="\\t";Ct[10]="\\n";Ct[11]="\\v";Ct[12]="\\f";Ct[13]="\\r";Ct[27]="\\e";Ct[34]='\\"';Ct[92]="\\\\";Ct[133]="\\N";Ct[160]="\\_";Ct[8232]="\\L";Ct[8233]="\\P";var Y4=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],V4=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function K4(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&lF.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function X4(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Nt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+st.repeat("0",n-t.length)+t}var J4=1,xa=2;function Q4(e){this.schema=e.schema||Wm,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=st.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=K4(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?xa:J4,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function xR(e,t){for(var r=st.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
180
180
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
181
- `&&(s+=r),s+=o;return s}function xm(e,t){return`
182
- `+st.repeat(" ",e.indent*t)}function T4(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function kl(e){return e===d4||e===h4}function Ca(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Lm||65536<=e&&e<=1114111}function pR(e){return Ca(e)&&e!==Lm&&e!==p4&&e!==wa}function dR(e,t,r){var n=pR(e),i=n&&!kl(e);return(r?n:n&&e!==QR&&e!==ZR&&e!==eF&&e!==tF&&e!==rF)&&e!==Cm&&!(t===Ll&&!i)||pR(t)&&!kl(t)&&e===Cm||t===Ll&&i}function I4(e){return Ca(e)&&e!==Lm&&!kl(e)&&e!==b4&&e!==C4&&e!==Ll&&e!==QR&&e!==ZR&&e!==eF&&e!==tF&&e!==rF&&e!==Cm&&e!==v4&&e!==E4&&e!==g4&&e!==_4&&e!==w4&&e!==S4&&e!==A4&&e!==m4&&e!==y4&&e!==x4&&e!==O4}function N4(e){return!kl(e)&&e!==Ll}function Ea(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function nF(e){var t=/^\n* /;return t.test(e)}var iF=1,Om=2,sF=3,oF=4,Gs=5;function $4(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,y=I4(Ea(e,0))&&N4(Ea(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=Ea(e,c),!Ca(u))return Gs;y=y&&dR(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=Ea(e,c),u===wa)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!Ca(u))return Gs;y=y&&dR(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?y&&!o&&!i(e)?iF:s===Sa?Gs:Om:r>9&&nF(e)?Gs:o?s===Sa?Gs:Om:h?oF:sF}function M4(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Sa?'""':"''";if(!e.noCompatMode&&(P4.indexOf(t)!==-1||R4.test(t)))return e.quotingType===Sa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return T4(e,u)}switch($4(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case iF:return t;case Om:return"'"+t.replace(/'/g,"''")+"'";case sF:return"|"+gR(t,e.indent)+mR(hR(t,s));case oF:return">"+gR(t,e.indent)+mR(hR(j4(t,o),s));case Gs:return'"'+B4(t)+'"';default:throw new Nt("impossible error: invalid scalar style")}}()}function gR(e,t){var r=nF(e)?String(t):"",n=e[e.length-1]===`
181
+ `&&(s+=r),s+=o;return s}function $m(e,t){return`
182
+ `+st.repeat(" ",e.indent*t)}function Z4(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Bl(e){return e===k4||e===D4}function Oa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Um||65536<=e&&e<=1114111}function OR(e){return Oa(e)&&e!==Um&&e!==L4&&e!==Ca}function PR(e,t,r){var n=OR(e),i=n&&!Bl(e);return(r?n:n&&e!==fF&&e!==hF&&e!==dF&&e!==pF&&e!==gF)&&e!==Nm&&!(t===jl&&!i)||OR(t)&&!Bl(t)&&e===Nm||t===jl&&i}function ez(e){return Oa(e)&&e!==Um&&!Bl(e)&&e!==B4&&e!==G4&&e!==jl&&e!==fF&&e!==hF&&e!==dF&&e!==pF&&e!==gF&&e!==Nm&&e!==$4&&e!==j4&&e!==T4&&e!==z4&&e!==W4&&e!==q4&&e!==M4&&e!==I4&&e!==N4&&e!==U4&&e!==H4}function tz(e){return!Bl(e)&&e!==jl}function wa(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function mF(e){var t=/^\n* /;return t.test(e)}var yF=1,Mm=2,vF=3,AF=4,Gs=5;function rz(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,d=n!==-1,p=-1,y=ez(wa(e,0))&&tz(wa(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=wa(e,c),!Oa(u))return Gs;y=y&&PR(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=wa(e,c),u===Ca)l=!0,d&&(h=h||c-p-1>n&&e[p+1]!==" ",p=c);else if(!Oa(u))return Gs;y=y&&PR(u,f,a),f=u}h=h||d&&c-p-1>n&&e[p+1]!==" "}return!l&&!h?y&&!o&&!i(e)?yF:s===xa?Gs:Mm:r>9&&mF(e)?Gs:o?s===xa?Gs:Mm:h?AF:vF}function nz(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===xa?'""':"''";if(!e.noCompatMode&&(Y4.indexOf(t)!==-1||V4.test(t)))return e.quotingType===xa?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return Z4(e,u)}switch(rz(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case yF:return t;case Mm:return"'"+t.replace(/'/g,"''")+"'";case vF:return"|"+_R(t,e.indent)+RR(xR(t,s));case AF:return">"+_R(t,e.indent)+RR(xR(iz(t,o),s));case Gs:return'"'+sz(t)+'"';default:throw new Nt("impossible error: invalid scalar style")}}()}function _R(e,t){var r=mF(e)?String(t):"",n=e[e.length-1]===`
183
183
  `,i=n&&(e[e.length-2]===`
184
184
  `||e===`
185
185
  `),s=i?"+":n?"":"-";return r+s+`
186
- `}function mR(e){return e[e.length-1]===`
187
- `?e.slice(0,-1):e}function j4(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
188
- `);return u=u!==-1?u:e.length,r.lastIndex=u,yR(e.slice(0,u),t)}(),i=e[0]===`
186
+ `}function RR(e){return e[e.length-1]===`
187
+ `?e.slice(0,-1):e}function iz(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
188
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,FR(e.slice(0,u),t)}(),i=e[0]===`
189
189
  `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
190
- `:"")+yR(c,t),i=s}return n}function yR(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
190
+ `:"")+FR(c,t),i=s}return n}function FR(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
191
191
  `+e.slice(i,s),i=s+1),o=a;return c+=`
192
192
  `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
193
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function B4(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ea(e,i),n=Ct[r],!n&&Ca(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||D4(r);return t}function W4(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(yn(e,t,a,!1,!1)||typeof a>"u"&&yn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function vR(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(yn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&yn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=xm(e,t)),e.dump&&wa===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function q4(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),yn(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),yn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function G4(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Nt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=xm(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),yn(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&wa===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=xm(e,t)),yn(e,t+1,f,!0,l)&&(e.dump&&wa===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function AR(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,XR.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(JR.call(a.represent,c))n=a.represent[c](t,c);else throw new Nt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function yn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,AR(e,r,!1)||AR(e,r,!0);var a=XR.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(G4(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(q4(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?vR(e,t-1,e.dump,i):vR(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(W4(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&M4(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Nt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function U4(e,t){var r=[],n=[],i,s;for(_m(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function _m(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)_m(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)_m(e[n[i]],t,r)}function H4(e,t){t=t||{};var r=new k4(t);r.noRefs||U4(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),yn(r,0,n,!0,!0)?r.dump+`
194
- `:""}var z4=H4,Y4={dump:z4};function km(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var V4=dt,K4=wR,X4=OR,J4=DR,Q4=LR,Z4=Rm,ez=KR.load,tz=KR.loadAll,rz=Y4.dump,nz=Nt,iz={binary:$R,float:FR,map:xR,null:_R,pairs:jR,set:BR,timestamp:IR,bool:PR,int:RR,merge:NR,omap:MR,seq:CR,str:SR},sz=km("safeLoad","load"),oz=km("safeLoadAll","loadAll"),az=km("safeDump","dump"),uz={Type:V4,Schema:K4,FAILSAFE_SCHEMA:X4,JSON_SCHEMA:J4,CORE_SCHEMA:Q4,DEFAULT_SCHEMA:Z4,load:ez,loadAll:tz,dump:rz,YAMLException:nz,types:iz,safeLoad:sz,safeLoadAll:oz,safeDump:az},Tm=uz;var Il=Sn(require("node:fs/promises"),1);var Nl=class extends Ws{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await Il.default.writeFile(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:Bs(o)},c=Al(s.npmAuthIdent||""),u=c.indexOf(":");u>0&&(a.userName=c.substring(0,u),a.authToken=c.substring(u+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(wl(r.npmRegistryServer)),r.npmScopes)for(var n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(var n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Qn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=Tm.dump(r);await Il.default.writeFile(t,n,"utf8")}async paseYarnRc(t){let r=await Il.default.readFile(t,"utf8");return Tm.load(r,{filename:t})}};var aF=async e=>{let t=[new Cl(e.configFile),new Nl(e.configFile)],r=[];if(e.doValidCheck||e.skipAuth)for(let s of t)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(e.doValidCheck&&i==0)return null;if(e.skipAuth&&i!=0)return Bi({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Set;for(let c of n.map(u=>u.feed.adoOrganization))s.add(c);let o={};for(let c of s)o[c]=await nR(c,!1,e.azureAuthLocation);for(let c of n){let u=c.feed,f=o[u.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${u.registry} via ${c.fileProvider.id}`),!1;u.authToken=f,u.email||(u.email=bl),u.userName||(u.userName=El)}let a=iR(n,c=>c.fileProvider);for(let[c,u]of a)await c.writeWorkspaceRegistries(u.map(f=>f.feed));return!0}catch(s){return Bi({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};$m()&&process.exit(0);if(!Pa()){let e=`Platform ${(0,$l.platform)()} and architecture ${(0,$l.arch)()} not supported for automatic authentication.`;console.log(e),Bi({success:!1,error:e},!0),process.exit(0)}var cz=G0(process.argv);aF(cz).then(e=>{e===null?(Bi({success:!0}),console.log("\u2705 Current authentication is valid")):e?(Bi({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful")):(console.log("\u274C Authentication to package feed failed."),process.exitCode=1)}).catch(e=>{console.error(e),console.log("\u274C Authentication to package feed failed."),process.exitCode=1});0&&(module.exports={run});
193
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function sz(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=wa(e,i),n=Ct[r],!n&&Oa(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||X4(r);return t}function oz(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(vn(e,t,a,!1,!1)||typeof a>"u"&&vn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function DR(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(vn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&vn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=$m(e,t)),e.dump&&Ca===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function az(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),vn(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),vn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function uz(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Nt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=$m(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),vn(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Ca===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=$m(e,t)),vn(e,t+1,f,!0,l)&&(e.dump&&Ca===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function LR(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,cF.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(lF.call(a.represent,c))n=a.represent[c](t,c);else throw new Nt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function vn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,LR(e,r,!1)||LR(e,r,!0);var a=cF.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(uz(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(az(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?DR(e,t-1,e.dump,i):DR(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(oz(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&nz(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Nt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function cz(e,t){var r=[],n=[],i,s;for(jm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function jm(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)jm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)jm(e[n[i]],t,r)}function lz(e,t){t=t||{};var r=new Q4(t);r.noRefs||cz(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),vn(r,0,n,!0,!0)?r.dump+`
194
+ `:""}var fz=lz,hz={dump:fz};function Hm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var dz=pt,pz=IR,gz=jR,mz=UR,yz=HR,vz=Wm,Az=uF.load,Ez=uF.loadAll,bz=hz.dump,wz=Nt,Sz={binary:XR,float:GR,map:MR,null:BR,pairs:QR,set:ZR,timestamp:VR,bool:WR,int:qR,merge:KR,omap:JR,seq:$R,str:NR},Cz=Hm("safeLoad","load"),xz=Hm("safeLoadAll","loadAll"),Oz=Hm("safeDump","dump"),Pz={Type:dz,Schema:pz,FAILSAFE_SCHEMA:gz,JSON_SCHEMA:mz,CORE_SCHEMA:yz,DEFAULT_SCHEMA:vz,load:Az,loadAll:Ez,dump:bz,YAMLException:wz,types:Sz,safeLoad:Cz,safeLoadAll:xz,safeDump:Oz},zm=Pz;var EF=Mt(require("node:fs/promises"),1);var ql=class extends Ws{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await qs(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:Bs(o)},c=bl(s.npmAuthIdent||""),u=c.indexOf(":");u>0&&(a.userName=c.substring(0,u),a.authToken=c.substring(u+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(xl(r.npmRegistryServer)),r.npmScopes)for(var n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(var n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=Qn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=zm.dump(r);await qs(t,n)}async paseYarnRc(t){let r=await EF.default.readFile(t,"utf8");return zm.load(r,{filename:t})}};var bF=async e=>{let t=[new _l(e.configFile),new ql(e.configFile)],r=[];if(e.doValidCheck||e.skipAuth)for(let s of t)await s.isSupportedInRepo()&&r.push(...await s.validateAllUsedFeeds());let n=r.filter(s=>!s.isValid&&s.feed.adoOrganization),i=n.length;if(e.doValidCheck&&i==0)return null;if(e.skipAuth&&i!=0)return Bi({success:!1,automaticSuccess:!1,error:"invalid token(s)"},!0),console.log(i==1?"\u274C Your token is invalid.":`\u274C ${i} tokens are invalid.`),!1;try{console.log("\u{1F511} Authenticating to package feed...");let s=new Map;for(let c of n.map(u=>u.feed))s.set(c.adoOrganization,c.registry);let o={};for(let[c,u]of s)o[c]=await mR(c,u,!1,e.azureAuthLocation);for(let c of n){let u=c.feed,f=o[u.adoOrganization];if(!f)return console.log(`\u274C Failed to obtain pat for ${u.registry} via ${c.fileProvider.id}`),!1;u.authToken=f,u.email||(u.email=Cl),u.userName||(u.userName=Sl)}let a=yR(n,c=>c.fileProvider);for(let[c,u]of a)await c.writeWorkspaceRegistries(u.map(f=>f.feed));return!0}catch(s){return Bi({success:!1,automaticSuccess:!1,error:s.message},!0),console.log("Encountered error while performing auth",s),!1}};Xm()&&process.exit(0);if(!Fa()){let e=`Platform ${(0,Gl.platform)()} and architecture ${(0,Gl.arch)()} not supported for automatic authentication.`;console.log(e),Bi({success:!1,error:e},!0),process.exit(0)}var Ym=ry(process.argv);bF(Ym).then(e=>{e===null?(Bi({success:!0}),console.log("\u2705 Current authentication is valid")):e?(Bi({success:!0,automaticSuccess:!0}),console.log("\u2705 Automatic authentication successful"),Ym.exitCodeOnReAuthenticate!==void 0&&process.exit(Ym.exitCodeOnReAuthenticate)):(console.log("\u274C Authentication to package feed failed."),process.exitCode=1)}).catch(e=>{console.error(e),console.log("\u274C Authentication to package feed failed."),process.exitCode=1});0&&(module.exports={run});
195
195
  /*! Bundled license information:
196
196
 
197
197
  git-url-parse/lib/index.js: