code-server
Version:
Run VS Code on a remote server.
84 lines • 193 kB
JavaScript
"use strict";var rc=Object.create;var Ut=Object.defineProperty;var ic=Object.getOwnPropertyDescriptor;var oc=Object.getOwnPropertyNames;var sc=Object.getPrototypeOf,ac=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},uc=(e,t)=>{for(var n in t)Ut(e,n,{get:t[n],enumerable:!0})},$r=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oc(t))!ac.call(e,i)&&i!==n&&Ut(e,i,{get:()=>t[i],enumerable:!(r=ic(t,i))||r.enumerable});return e};var me=(e,t,n)=>(n=e!=null?rc(sc(e)):{},$r(t||!e||!e.__esModule?Ut(n,"default",{value:e,enumerable:!0}):n,e)),cc=e=>$r(Ut({},"__esModule",{value:!0}),e);var Ur=M(qr=>{(()=>{var e={46:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a,u,{signal:l}={}){return new Promise(((c,f)=>{function p(){l?.removeEventListener("abort",p),a.removeListener(u,m),a.removeListener("error",h)}function m(...y){p(),c(y)}function h(y){p(),f(y)}l?.addEventListener("abort",p),a.on(u,m),a.on("error",h)}))}},54:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};let l=a(361),c=u(a(374)),f=u(a(304)),p=c.default("agent-base");function m(){let{stack:y}=new Error;return typeof y=="string"&&y.split(`
`).some((E=>E.indexOf("(https.js:")!==-1||E.indexOf("node:https:")!==-1))}function h(y,E){return new h.Agent(y,E)}(function(y){class E extends l.EventEmitter{constructor(R,k){super();let _=k;typeof R=="function"?this.callback=R:R&&(_=R),this.timeout=null,_&&typeof _.timeout=="number"&&(this.timeout=_.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:m()?443:80}set defaultPort(R){this.explicitDefaultPort=R}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:m()?"https:":"http:"}set protocol(R){this.explicitProtocol=R}callback(R,k,_){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(R,k){let _=Object.assign({},k);typeof _.secureEndpoint!="boolean"&&(_.secureEndpoint=m()),_.host==null&&(_.host="localhost"),_.port==null&&(_.port=_.secureEndpoint?443:80),_.protocol==null&&(_.protocol=_.secureEndpoint?"https:":"http:"),_.host&&_.path&&delete _.path,delete _.agent,delete _.hostname,delete _._defaultAgent,delete _.defaultPort,delete _.createConnection,R._last=!0,R.shouldKeepAlive=!1;let P=!1,L=null,S=_.timeout||this.timeout,x=g=>{R._hadError||(R.emit("error",g),R._hadError=!0)},b=()=>{L=null,P=!0;let g=new Error(`A "socket" was not created for HTTP request before ${S}ms`);g.code="ETIMEOUT",x(g)},C=g=>{P||(L!==null&&(clearTimeout(L),L=null),x(g))},d=g=>{if(P)return;if(L!=null&&(clearTimeout(L),L=null),A=g,!!A&&typeof A.addRequest=="function")return p("Callback returned another Agent instance %o",g.constructor.name),void g.addRequest(R,_);var A;if(g)return g.once("free",(()=>{this.freeSocket(g,_)})),void R.onSocket(g);let T=new Error(`no Duplex stream was returned to agent-base for \`${R.method} ${R.path}\``);x(T)};if(typeof this.callback=="function"){this.promisifiedCallback||(this.callback.length>=3?(p("Converting legacy callback function to promise"),this.promisifiedCallback=f.default(this.callback)):this.promisifiedCallback=this.callback),typeof S=="number"&&S>0&&(L=setTimeout(b,S)),"port"in _&&typeof _.port!="number"&&(_.port=Number(_.port));try{p("Resolving socket for %o request: %o",_.protocol,`${R.method} ${R.path}`),Promise.resolve(this.promisifiedCallback(R,_)).then(d,C)}catch(g){Promise.reject(g).catch(C)}}else x(new Error("`callback` is not defined"))}freeSocket(R,k){p("Freeing socket %o %o",R.constructor.name,k),R.destroy()}destroy(){p("Destroying agent %o",this.constructor.name)}}y.Agent=E,y.prototype=y.Agent.prototype})(h||(h={})),o.exports=h},304:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a){return function(u,l){return new Promise(((c,f)=>{a.call(this,u,l,((p,m)=>{p?f(p):c(m)}))}))}}},370:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(R,k,_,P){return new(_||(_=Promise))((function(L,S){function x(d){try{C(P.next(d))}catch(g){S(g)}}function b(d){try{C(P.throw(d))}catch(g){S(g)}}function C(d){var g;d.done?L(d.value):(g=d.value,g instanceof _?g:new _((function(A){A(g)}))).then(x,b)}C((P=P.apply(R,k||[])).next())}))},l=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),f=l(a(404)),p=l(a(310)),m=l(a(374)),h=l(a(46)),y=a(54),E=(0,m.default)("http-proxy-agent");class O extends y.Agent{constructor(k){let _;if(_=typeof k=="string"?p.default.parse(k):k,!_)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");E("Creating new HttpProxyAgent instance: %o",_),super(_);let P=Object.assign({},_);var L;this.secureProxy=_.secureProxy||typeof(L=P.protocol)=="string"&&/^https:?$/i.test(L),P.host=P.hostname||P.host,typeof P.port=="string"&&(P.port=parseInt(P.port,10)),!P.port&&P.host&&(P.port=this.secureProxy?443:80),P.host&&P.path&&(delete P.path,delete P.pathname),this.proxy=P}callback(k,_){return u(this,void 0,void 0,(function*(){let{proxy:P,secureProxy:L}=this,S=p.default.parse(k.path),x;if(S.protocol||(S.protocol="http:"),S.hostname||(S.hostname=_.hostname||_.host||null),S.port==null&&(_.port,1)&&(S.port=String(_.port)),S.port==="80"&&(S.port=""),k.path=p.default.format(S),P.auth&&k.setHeader("Proxy-Authorization",`Basic ${Buffer.from(P.auth).toString("base64")}`),L?(E("Creating `tls.Socket`: %o",P),x=f.default.connect(P)):(E("Creating `net.Socket`: %o",P),x=c.default.connect(P)),k._header){let b,C;E("Regenerating stored HTTP header string for request"),k._header=null,k._implicitHeader(),k.output&&k.output.length>0?(E("Patching connection write() output buffer with updated header"),b=k.output[0],C=b.indexOf(`\r
\r
`)+4,k.output[0]=k._header+b.substring(C),E("Output buffer: %o",k.output)):k.outputData&&k.outputData.length>0&&(E("Patching connection write() output buffer with updated header"),b=k.outputData[0].data,C=b.indexOf(`\r
\r
`)+4,k.outputData[0].data=k._header+b.substring(C),E("Output buffer: %o",k.outputData[0].data))}return yield(0,h.default)(x,"connect"),x}))}}s.default=O},201:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(370));function l(c){return new u.default(c)}(function(c){c.HttpProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},146:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(_,P,L,S){return new(L||(L=Promise))((function(x,b){function C(A){try{g(S.next(A))}catch(T){b(T)}}function d(A){try{g(S.throw(A))}catch(T){b(T)}}function g(A){var T;A.done?x(A.value):(T=A.value,T instanceof L?T:new L((function(v){v(T)}))).then(C,d)}g((S=S.apply(_,P||[])).next())}))},l=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),f=l(a(404)),p=l(a(310)),m=l(a(491)),h=l(a(374)),y=a(54),E=l(a(829)),O=h.default("https-proxy-agent:agent");class R extends y.Agent{constructor(P){let L;if(L=typeof P=="string"?p.default.parse(P):P,!L)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");O("creating new HttpsProxyAgent instance: %o",L),super(L);let S=Object.assign({},L);var x;this.secureProxy=L.secureProxy||typeof(x=S.protocol)=="string"&&/^https:?$/i.test(x),S.host=S.hostname||S.host,typeof S.port=="string"&&(S.port=parseInt(S.port,10)),!S.port&&S.host&&(S.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in S)&&(S.ALPNProtocols=["http 1.1"]),S.host&&S.path&&(delete S.path,delete S.pathname),this.proxy=S}callback(P,L){return u(this,void 0,void 0,(function*(){let{proxy:S,secureProxy:x}=this,b;x?(O("Creating `tls.Socket`: %o",S),b=f.default.connect(S)):(O("Creating `net.Socket`: %o",S),b=c.default.connect(S));let C=Object.assign({},S.headers),d=`CONNECT ${L.host}:${L.port} HTTP/1.1\r
`;S.auth&&(C["Proxy-Authorization"]=`Basic ${Buffer.from(S.auth).toString("base64")}`);let{host:g,port:A,secureEndpoint:T}=L;(function(H,$){return!!(!$&&H===80||$&&H===443)})(A,T)||(g+=`:${A}`),C.Host=g,C.Connection="close";for(let H of Object.keys(C))d+=`${H}: ${C[H]}\r
`;let v=E.default(b);b.write(`${d}\r
`);let{statusCode:w,buffered:F}=yield v;if(w===200){if(P.once("socket",k),L.secureEndpoint){O("Upgrading socket connection to TLS");let H=L.servername||L.host;return f.default.connect(Object.assign(Object.assign({},(function($,...B){let K={},ie;for(ie in $)B.includes(ie)||(K[ie]=$[ie]);return K})(L,"host","hostname","path","port")),{socket:b,servername:H}))}return b}b.destroy();let D=new c.default.Socket({writable:!1});return D.readable=!0,P.once("socket",(H=>{O("replaying proxy buffer for failed request"),m.default(H.listenerCount("data")>0),H.push(F),H.push(null)})),D}))}}function k(_){_.resume()}s.default=R},18:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(146));function l(c){return new u.default(c)}(function(c){c.HttpsProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},829:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(s,"__esModule",{value:!0});let l=u(a(374)).default("https-proxy-agent:parse-proxy-response");s.default=function(c){return new Promise(((f,p)=>{let m=0,h=[];function y(){let R=c.read();R?(function(k){h.push(k),m+=k.length;let _=Buffer.concat(h,m);if(_.indexOf(`\r
\r
`)===-1)return l("have not received end of HTTP headers yet..."),void y();let P=_.toString("ascii",0,_.indexOf(`\r
`)),L=+P.split(" ")[1];l("got proxy server response: %o",P),f({statusCode:L,buffered:_})})(R):c.once("readable",y)}function E(R){l("onclose had error %o",R)}function O(){l("onend")}c.on("error",(function R(k){c.removeListener("end",O),c.removeListener("error",R),c.removeListener("close",E),c.removeListener("readable",y),l("onerror %o",k),p(k)})),c.on("close",E),c.on("end",O),y()}))}},539:function(o,s,a){"use strict";var u,l=this&&this.__extends||(u=function(x,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,d){C.__proto__=d}||function(C,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(C[g]=d[g])},u(x,b)},function(x,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function C(){this.constructor=x}u(x,b),x.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}),c=this&&this.__assign||function(){return c=Object.assign||function(x){for(var b,C=1,d=arguments.length;C<d;C++)for(var g in b=arguments[C])Object.prototype.hasOwnProperty.call(b,g)&&(x[g]=b[g]);return x},c.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0}),s.getErrorStatusDescription=s.xhr=s.configure=void 0;var f=a(685),p=a(687),m=a(310),h=a(472),y=a(796),E=a(201),O=a(18);if(process.env.VSCODE_NLS_CONFIG){var R=process.env.VSCODE_NLS_CONFIG;h.config(JSON.parse(R))}var k=h.loadMessageBundle(),_=void 0,P=!0;function L(x){var b;return new Promise((function(C,d){var g=(0,m.parse)(x.url),A={hostname:g.hostname,agent:!!x.agent&&x.agent,port:g.port?parseInt(g.port):g.protocol==="https:"?443:80,path:g.path,method:x.type||"GET",headers:x.headers,rejectUnauthorized:typeof x.strictSSL!="boolean"||x.strictSSL};x.user&&x.password&&(A.auth=x.user+":"+x.password);var T=function(v){if(v.statusCode>=300&&v.statusCode<400&&x.followRedirects&&x.followRedirects>0&&v.headers.location){var w=v.headers.location;w.startsWith("/")&&(w=(0,m.format)({protocol:g.protocol,hostname:g.hostname,port:g.port,pathname:w})),C(L((function(F){for(var D=[],H=1;H<arguments.length;H++)D[H-1]=arguments[H];return D.forEach((function($){return Object.keys($).forEach((function(B){return F[B]=$[B]}))})),F})({},x,{url:w,followRedirects:x.followRedirects-1})))}else C({req:b,res:v})};(b=g.protocol==="https:"?p.request(A,T):f.request(A,T)).on("error",d),x.timeout&&b.setTimeout(x.timeout),x.data&&b.write(x.data),b.end(),x.token&&(x.token.isCancellationRequested&&b.destroy(new S),x.token.onCancellationRequested((function(){b.destroy(new S)})))}))}s.configure=function(x,b){_=x,P=b},s.xhr=function(x){return typeof(x=c({},x)).strictSSL!="boolean"&&(x.strictSSL=P),x.agent||(x.agent=(function(b,C){C===void 0&&(C={});var d=(0,m.parse)(b),g=C.proxyUrl||(function(v){return v.protocol==="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:v.protocol==="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy)||null})(d);if(!g)return null;var A=(0,m.parse)(g);if(!/^https?:$/.test(A.protocol))return null;var T={host:A.hostname,port:Number(A.port),auth:A.auth,rejectUnauthorized:typeof C.strictSSL!="boolean"||C.strictSSL,protocol:A.protocol};return d.protocol==="http:"?E(T):O(T)})(x.url,{proxyUrl:_,strictSSL:P})),typeof x.followRedirects!="number"&&(x.followRedirects=5),L(x).then((function(b){return new Promise((function(C,d){var g,A,T=b.res,v=T,w=!1,F=T.headers&&T.headers["content-encoding"];if(F&&(g=x.type,A=b.res.statusCode,!(g==="HEAD"||A>=100&&A<200||A===204||A===304))){var D={flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH};if(F==="gzip"){var H=y.createGunzip(D);T.pipe(H),v=H}else if(F==="deflate"){var $=y.createInflate(D);T.pipe($),v=$}}var B=[];v.on("data",(function(K){return B.push(K)})),v.on("end",(function(){if(!w){if(w=!0,x.followRedirects>0&&(T.statusCode>=300&&T.statusCode<=303||T.statusCode===307)){var K=T.headers.location;if(K.startsWith("/")){var ie=(0,m.parse)(x.url);K=(0,m.format)({protocol:ie.protocol,hostname:ie.hostname,port:ie.port,pathname:K})}if(K){var Le={type:x.type,url:K,user:x.user,password:x.password,headers:x.headers,timeout:x.timeout,followRedirects:x.followRedirects-1,data:x.data,token:x.token};return void(0,s.xhr)(Le).then(C,d)}}var he=Buffer.concat(B),W={responseText:he.toString(),body:he,status:T.statusCode,headers:T.headers||{}};T.statusCode>=200&&T.statusCode<300||T.statusCode===1223?C(W):d(W)}})),v.on("error",(function(K){var ie;ie=S.is(K)?K:{responseText:k("error","Unable to access {0}. Error: {1}",x.url,K.message),body:Buffer.concat(B),status:500,headers:{}},w=!0,d(ie)})),x.token&&(x.token.isCancellationRequested&&v.destroy(new S),x.token.onCancellationRequested((function(){v.destroy(new S)})))}))}),(function(b){var C;return C=S.is(b)?b:{responseText:x.agent?k("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",x.url,b.message):k("error.cannot.connect","Unable to connect to {0}. Error: {1}",x.url,b.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(C)}))},s.getErrorStatusDescription=function(x){if(!(x<400))switch(x){case 400:return k("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return k("status.401","Unauthorized. The server is refusing to respond.");case 403:return k("status.403","Forbidden. The server is refusing to respond.");case 404:return k("status.404","Not Found. The requested location could not be found.");case 405:return k("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return k("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return k("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return k("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return k("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return k("status.410","Gone. The requested page is no longer available.");case 411:return k("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return k("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return k("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return k("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return k("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return k("status.500","Internal Server Error.");case 501:return k("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 502:return k("status.502","Bad Gateway. The upstream server did not respond.");case 503:return k("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return k("status.416","HTTP status code {0}",x)}};var S=(function(x){function b(){var C=x.call(this,"The user aborted a request")||this;return C.name="AbortError",Object.setPrototypeOf(C,b.prototype),C}return l(b,x),b.is=function(C){return C instanceof b},b})(Error)},800:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.localize=s.format=s.setPseudo=s.isPseudo=s.isDefined=s.BundleFormat=s.MessageFormat=void 0;var u,l,c,f=a(926);function p(h){return h!==void 0}function m(h,y){return s.isPseudo&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),y.length===0?h:h.replace(/\{(\d+)\}/g,(function(E,O){var R=O[0],k=y[R],_=E;return typeof k=="string"?_=k:typeof k!="number"&&typeof k!="boolean"&&k!=null||(_=String(k)),_}))}(c=s.MessageFormat||(s.MessageFormat={})).file="file",c.bundle="bundle",c.both="both",(l=s.BundleFormat||(s.BundleFormat={})).standalone="standalone",l.languagePack="languagePack",(function(h){h.is=function(y){var E=y;return E&&p(E.key)&&p(E.comment)}})(u||(u={})),s.isDefined=p,s.isPseudo=!1,s.setPseudo=function(h){s.isPseudo=h},s.format=m,s.localize=function(h,y){for(var E=[],O=2;O<arguments.length;O++)E[O-2]=arguments[O];return m(y,E)},s.loadMessageBundle=function(h){return(0,f.default)().loadMessageBundle(h)},s.config=function(h){return(0,f.default)().config(h)}},926:(o,s)=>{"use strict";var a;function u(){if(a===void 0)throw new Error("No runtime abstraction layer installed");return a}Object.defineProperty(s,"__esModule",{value:!0}),(function(l){l.install=function(c){if(c===void 0)throw new Error("No runtime abstraction layer provided");a=c}})(u||(u={})),s.default=u},472:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.BundleFormat=s.MessageFormat=void 0;var u=a(17),l=a(147),c=a(926),f=a(800),p=a(800);Object.defineProperty(s,"MessageFormat",{enumerable:!0,get:function(){return p.MessageFormat}}),Object.defineProperty(s,"BundleFormat",{enumerable:!0,get:function(){return p.BundleFormat}});var m,h,y=Object.prototype.toString;function E(b){return y.call(b)==="[object Number]"}function O(b){return y.call(b)==="[object String]"}function R(b){return JSON.parse(l.readFileSync(b,"utf8"))}function k(b){return function(C,d){for(var g=[],A=2;A<arguments.length;A++)g[A-2]=arguments[A];return E(C)?C>=b.length?void console.error(`Broken localize call found. Index out of bounds. Stacktrace is
: `.concat(new Error("").stack)):(0,f.format)(b[C],g):O(d)?(console.warn("Message ".concat(d," didn't get externalized correctly.")),(0,f.format)(d,g)):void console.error(`Broken localize call found. Stacktrace is
: `.concat(new Error("").stack))}}function _(b,C){return m[b]=C,C}function P(b){try{return(function(C){var d=R(u.join(C,"nls.metadata.json")),g=Object.create(null);for(var A in d){var T=d[A];g[A]=T.messages}return g})(b)}catch(C){return void console.log("Generating default bundle from meta data failed.",C)}}function L(b,C){var d;if(h.languagePackSupport===!0&&h.cacheRoot!==void 0&&h.languagePackId!==void 0&&h.translationsConfigFile!==void 0&&h.translationsConfig!==void 0)try{d=(function(A,T){var v,w,F,D=u.join(h.cacheRoot,"".concat(A.id,"-").concat(A.hash,".json")),H=!1,$=!1;try{return v=JSON.parse(l.readFileSync(D,{encoding:"utf8",flag:"r"})),w=D,F=new Date,l.utimes(w,F,F,(function(){})),v}catch(B){if(B.code==="ENOENT")$=!0;else{if(!(B instanceof SyntaxError))throw B;console.log("Syntax error parsing message bundle: ".concat(B.message,".")),l.unlink(D,(function(K){K&&console.error("Deleting corrupted bundle ".concat(D," failed."))})),H=!0}}if(v=(function(B,K){var ie=h.translationsConfig[B.id];if(ie){var Le=R(ie).contents,he=R(u.join(K,"nls.metadata.json")),W=Object.create(null);for(var Te in he){var tt=he[Te],I=Le["".concat(B.outDir,"/").concat(Te)];if(I){for(var z=[],N=0;N<tt.keys.length;N++){var Y=tt.keys[N],J=I[O(Y)?Y:Y.key];J===void 0&&(J=tt.messages[N]),z.push(J)}W[Te]=z}else W[Te]=tt.messages}return W}})(A,T),!v||H)return v;if($)try{l.writeFileSync(D,JSON.stringify(v),{encoding:"utf8",flag:"wx"})}catch(B){if(B.code==="EEXIST")return v;throw B}return v})(b,C)}catch(A){console.log("Load or create bundle failed ",A)}if(!d){if(h.languagePackSupport)return P(C);var g=(function(A){for(var T=h.language;T;){var v=u.join(A,"nls.bundle.".concat(T,".json"));if(l.existsSync(v))return v;var w=T.lastIndexOf("-");T=w>0?T.substring(0,w):void 0}if(T===void 0&&(v=u.join(A,"nls.bundle.json"),l.existsSync(v)))return v})(C);if(g)try{return R(g)}catch(A){console.log("Loading in the box message bundle failed.",A)}d=P(C)}return d}function S(b){if(!b)return f.localize;var C=u.extname(b);if(C&&(b=b.substr(0,b.length-C.length)),h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.bundle){var d=(function(H){for(var $,B=u.dirname(H);$=u.join(B,"nls.metadata.header.json"),!l.existsSync($);){var K=u.dirname(B);if(K===B){$=void 0;break}B=K}return $})(b);if(d){var g=u.dirname(d),A=m[g];if(A===void 0)try{var T=JSON.parse(l.readFileSync(d,"utf8"));try{var v=L(T,g);A=_(g,v?{header:T,nlsBundle:v}:null)}catch(H){console.error("Failed to load nls bundle",H),A=_(g,null)}}catch(H){console.error("Failed to read header file",H),A=_(g,null)}if(A){var w=b.substr(g.length+1).replace(/\\/g,"/"),F=A.nlsBundle[w];return F===void 0?(console.error("Messages for file ".concat(b," not found. See console for details.")),function(){return"Messages not found."}):k(F)}}}if(h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.file)try{var D=R((function(H){var $;if(!(h.cacheLanguageResolution&&$)){if(f.isPseudo||!h.language)$=".nls.json";else for(var B=h.language;B;){var K=".nls."+B+".json";if(l.existsSync(H+K)){$=K;break}var ie=B.lastIndexOf("-");ie>0?B=B.substring(0,ie):($=".nls.json",B=null)}h.cacheLanguageResolution}return H+$})(b));return Array.isArray(D)?k(D):(0,f.isDefined)(D.messages)&&(0,f.isDefined)(D.keys)?k(D.messages):(console.error("String bundle '".concat(b,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(H){H.code!=="ENOENT"&&console.error("Failed to load single file bundle",H)}return console.error("Failed to load message bundle for file ".concat(b)),function(){return"Failed to load message bundle. See console for details."}}function x(b){return b&&(O(b.locale)&&(h.locale=b.locale.toLowerCase(),h.language=h.locale,m=Object.create(null)),b.messageFormat!==void 0&&(h.messageFormat=b.messageFormat),b.bundleFormat===f.BundleFormat.standalone&&h.languagePackSupport===!0&&(h.languagePackSupport=!1)),(0,f.setPseudo)(h.locale==="pseudo"),S}(function(){if(h={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:f.MessageFormat.bundle},O(process.env.VSCODE_NLS_CONFIG))try{var b=JSON.parse(process.env.VSCODE_NLS_CONFIG),C=void 0;if(b.availableLanguages){var d=b.availableLanguages["*"];O(d)&&(C=d)}if(O(b.locale)&&(h.locale=b.locale.toLowerCase()),C===void 0?h.language=h.locale:C!=="en"&&(h.language=C),(function(A){return A===!0||A===!1})(b._languagePackSupport)&&(h.languagePackSupport=b._languagePackSupport),O(b._cacheRoot)&&(h.cacheRoot=b._cacheRoot),O(b._languagePackId)&&(h.languagePackId=b._languagePackId),O(b._translationsConfigFile)){h.translationsConfigFile=b._translationsConfigFile;try{h.translationsConfig=R(h.translationsConfigFile)}catch{if(b._corruptedFile){var g=u.dirname(b._corruptedFile);l.exists(g,(function(T){T&&l.writeFile(b._corruptedFile,"corrupted","utf8",(function(v){console.error(v)}))}))}}}}catch{}(0,f.setPseudo)(h.locale==="pseudo"),m=Object.create(null)})(),s.loadMessageBundle=S,s.config=x,c.default.install(Object.freeze({loadMessageBundle:S,config:x}))},374:(o,s)=>{function a(){}Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(u){return a}},491:o=>{"use strict";o.exports=require("assert")},361:o=>{"use strict";o.exports=require("events")},147:o=>{"use strict";o.exports=require("fs")},685:o=>{"use strict";o.exports=require("http")},687:o=>{"use strict";o.exports=require("https")},808:o=>{"use strict";o.exports=require("net")},17:o=>{"use strict";o.exports=require("path")},404:o=>{"use strict";o.exports=require("tls")},310:o=>{"use strict";o.exports=require("url")},796:o=>{"use strict";o.exports=require("zlib")}},t={},n=(function o(s){var a=t[s];if(a!==void 0)return a.exports;var u=t[s]={exports:{}};return e[s].call(u.exports,u,u.exports,o),u.exports})(539),r=qr;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()});var ti=M((Ug,ei)=>{var vc=typeof process=="object"&&process&&process.platform==="win32";ei.exports=vc?{sep:"\\"}:{sep:"/"}});var si=M((Bg,oi)=>{"use strict";oi.exports=ri;function ri(e,t,n){e instanceof RegExp&&(e=ni(e,n)),t instanceof RegExp&&(t=ni(t,n));var r=ii(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function ni(e,t){var n=t.match(e);return n?n[0]:null}ri.range=ii;function ii(e,t,n){var r,i,o,s,a,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!a;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?a=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,s=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(a=[o,s])}return a}});var hi=M((Gg,pi)=>{var ai=si();pi.exports=Tc;var ui="\0SLASH"+Math.random()+"\0",ci="\0OPEN"+Math.random()+"\0",Un="\0CLOSE"+Math.random()+"\0",li="\0COMMA"+Math.random()+"\0",fi="\0PERIOD"+Math.random()+"\0",bc=1e5,wc=4e6,Ac=1e3,Sc=1e3;function jn(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function kc(e){return e.split("\\\\").join(ui).split("\\{").join(ci).split("\\}").join(Un).split("\\,").join(li).split("\\.").join(fi)}function Ec(e){return e.split(ui).join("\\").split(ci).join("{").split(Un).join("}").split(li).join(",").split(fi).join(".")}function $n(e,t){for(var n=0;n<t.length;n++)e.push(t[n])}function _c(e){for(var t=[],n="";;){var r=ai("{","}",e);if(!r){var i=e.split(",");return i[0]=n+i[0],$n(t,i),t}var o=r.pre,s=r.body,a=r.post,u=o.split(",");if(u[0]=n+u[0],u[u.length-1]+="{"+s+"}",!a.length)return $n(t,u),t;n=u.pop(),$n(t,u),e=a}}function Tc(e,t){if(!e)return[];t=t||{};var n=t.max==null?bc:t.max,r=t.maxLength==null?wc:t.maxLength,i=t.maxDepth==null?Ac:t.maxDepth,o=t.maxRewrites==null?Sc:t.maxRewrites;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),qn(kc(e),n,r,i,0,o,!0).map(Ec)}function Rc(e){return"{"+e+"}"}function Oc(e){return/^-?0\d/.test(e)}function Cc(e,t){return e<=t}function Pc(e,t){return e>=t}function St(e,t,n,r,i,o){for(var s=[],a=0,u=0;u<e.length;u++)for(var l=0;l<n.length;l++){if(s.length>=r)return s;var c=e[u]+t+n[l];if(!(o&&!c)){if(a+c.length>i)return s;s.push(c),a+=c.length}}return s}function Lc(e,t,n,r){var i=e.split(/\.\./),o=[];if(i[0]===void 0||i[1]===void 0)return o;var s=jn(i[0]),a=jn(i[1]),u=Math.max(i[0].length,i[1].length),l=i.length===3&&i[2]!==void 0?Math.max(Math.abs(jn(i[2])),1):1,c=Cc,f=a<s;f&&(l*=-1,c=Pc);for(var p=i.some(Oc),m=0,h=s;c(h,a)&&o.length<n;h+=l){var y;if(t)y=String.fromCharCode(h),y==="\\"&&(y="");else if(y=String(h),p){var E=u-y.length;if(E>0){var O=new Array(E+1).join("0");h<0?y="-"+O+y.slice(1):y=O+y}}if(m+y.length>r)break;o.push(y),m+=y.length}return o}function qn(e,t,n,r,i,o,s){if(i>r)return[e];for(var a=[""],u=0,l=!1,c=!0;;){let x=ai("{","}",e);if(!x)return St(a,e,[""],t,n,l);let b=x.pre;if(/\$$/.test(b)){if(a=St(a,b+"{"+x.body+"}",[""],t,n,l&&!x.post.length),c=!1,!x.post.length)break;e=x.post;continue}var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(x.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(x.body),m=f||p,h=x.body.indexOf(",")>=0;if(!m&&!h){if(u<o&&x.post.match(/,(?!,).*\}/)){u++,e=x.pre+"{"+x.body+Un+x.post,s=!0;continue}return St(a,b+"{"+x.body+"}"+x.post,[""],t,n,l)}c&&(l=s&&!m,c=!1);var y;if(m)y=Lc(x.body,p,t,n);else{var E=_c(x.body);if(E.length===1&&E[0]!==void 0&&(E=qn(E[0],t,n,r,i+1,o,!1).map(Rc),E.length===1)){if(a=St(a,b+E[0],[""],t,n,l&&!x.post.length),!x.post.length)break;e=x.post;continue}for(var O=l&&!x.post.length&&!b,R=0;O&&R<a.length;R++)a[R]&&(O=!1);y=[];var k=0;e:for(var _=0;_<E.length;_++)for(var P=qn(E[_],t,n,r,i+1,o,!1),L=0;L<P.length;L++){var S=P[L];if(!(O&&!S)){if(y.length>=t||k+S.length>n)break e;y.push(S),k+=S.length}}}if(a=St(a,b,y,t,n,l&&!x.post.length),!x.post.length)break;e=x.post}return a}});var vi=M((Yg,Vn)=>{var ye=Vn.exports=(e,t,n={})=>(Wt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new rt(t,n).match(e));Vn.exports=ye;var Wn=ti();ye.sep=Wn.sep;var fe=Symbol("globstar **");ye.GLOBSTAR=fe;var Nc=hi(),di={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Yn="[^/]",Bn=Yn+"*?",Ic="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Fc="(?:(?!(?:\\/|^)\\.).)*?",yi=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),gi=yi("().*{}+?[]^$\\!"),Mc=yi("[.("),mi=/\/+/;ye.filter=(e,t={})=>(n,r,i)=>ye(n,e,t);var Ne=(e,t={})=>{let n={};return Object.keys(e).forEach(r=>n[r]=e[r]),Object.keys(t).forEach(r=>n[r]=t[r]),n};ye.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ye;let t=ye,n=(r,i,o)=>t(r,i,Ne(e,o));return n.Minimatch=class extends t.Minimatch{constructor(i,o){super(i,Ne(e,o))}},n.Minimatch.defaults=r=>t.defaults(Ne(e,r)).Minimatch,n.filter=(r,i)=>t.filter(r,Ne(e,i)),n.defaults=r=>t.defaults(Ne(e,r)),n.makeRe=(r,i)=>t.makeRe(r,Ne(e,i)),n.braceExpand=(r,i)=>t.braceExpand(r,Ne(e,i)),n.match=(r,i,o)=>t.match(r,i,Ne(e,o)),n};ye.braceExpand=(e,t)=>xi(e,t);var xi=(e,t={})=>(Wt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Nc(e)),Dc=1024*64,Wt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Dc)throw new TypeError("pattern is too long")},Gn=Symbol("subparse");ye.makeRe=(e,t)=>new rt(e,t||{}).makeRe();ye.match=(e,t,n={})=>{let r=new rt(t,n);return e=e.filter(i=>r.match(i)),r.options.nonull&&!e.length&&e.push(t),e};var Hc=e=>e.replace(/\\(.)/g,"$1"),jc=e=>e.replace(/\\([^-\]])/g,"$1"),$c=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qc=e=>e.replace(/[[\]\\]/g,"\\$&"),rt=class{constructor(t,n){Wt(t),n||(n={}),this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion!==void 0?n.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,r),r=this.globParts=r.map(i=>i.split(mi)),this.debug(this.pattern,r),r=r.map((i,o,s)=>i.map(this.parse,this)),this.debug(this.pattern,r),r=r.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,n=!1,r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=t.slice(r)),this.negate=n}matchOne(t,n,r){return n.indexOf(fe)!==-1?this._matchGlobstar(t,n,r,0,0):this._matchOne(t,n,r,0,0)}_matchGlobstar(t,n,r,i,o){let s=-1;for(let R=o;R<n.length;R++)if(n[R]===fe){s=R;break}let a=-1;for(let R=n.length-1;R>=0;R--)if(n[R]===fe){a=R;break}let u=n.slice(o,s),l=n.slice(s+1,a),c=n.slice(a+1);if(u.length){let R=t.slice(i,i+u.length);if(!this._matchOne(R,u,r,0,0))return!1;i+=u.length}let f=0;if(c.length){if(c.length+i>t.length)return!1;let R=t.length-c.length;if(this._matchOne(t,c,r,R,0))f=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||!this._matchOne(t,c,r,R-1,0))return!1;f=c.length+1}}if(!l.length){let R=!!f;for(let k=i;k<t.length-f;k++){let _=String(t[k]);if(R=!0,_==="."||_===".."||!this.options.dot&&_.charAt(0)===".")return!1}return R}let p=[[[],0]],m=p[0],h=0,y=[0];for(let R of l)R===fe?(y.push(h),m=[[],0],p.push(m)):(m[0].push(R),h++);let E=p.length-1,O=t.length-f;for(let R of p)R[1]=O-(y[E--]+R[0].length);return!!this._matchGlobStarBodySections(t,p,i,0,r,0,!!f)}_matchGlobStarBodySections(t,n,r,i,o,s,a){let u=n[i];if(!u){for(let f=r;f<t.length;f++){a=!0;let p=t[f];if(p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return a}let[l,c]=u;for(;r<=c;){if(this._matchOne(t.slice(0,r+l.length),l,o,r,0)&&s<this.maxGlobstarRecursion){let m=this._matchGlobStarBodySections(t,n,r+l.length,i+1,o,s+1,a);if(m!==!1)return m}let p=t[r];if(p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1;r++}return null}_matchOne(t,n,r,i,o){let s,a,u,l;for(s=i,a=o,u=t.length,l=n.length;s<u&&a<l;s++,a++){this.debug("matchOne loop");let c=n[a],f=t[s];if(this.debug(n,c,f),c===!1||c===fe)return!1;let p;if(typeof c=="string"?(p=f===c,this.debug("string match",c,f,p)):(p=f.match(c),this.debug("pattern match",c,f,p)),!p)return!1}if(s===u&&a===l)return!0;if(s===u)return r;if(a===l)return s===u-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return xi(this.pattern,this.options)}parse(t,n){Wt(t);let r=this.options;if(t==="**")if(r.noglobstar)t="*";else return fe;if(t==="")return"";let i="",o=!1,s=!1,a=[],u=[],l,c=!1,f=-1,p=-1,m,h,y,E=t.charAt(0)===".",O=r.dot||E,R=()=>E?"":O?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=S=>S.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=()=>{if(l){switch(l){case"*":i+=Bn,o=!0;break;case"?":i+=Yn,o=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let S=0,x;S<t.length&&(x=t.charAt(S));S++){if(this.debug("%s %s %s %j",t,S,i,x),s){if(x==="/")return!1;gi[x]&&(i+="\\"),i+=x,s=!1;continue}switch(x){case"/":return!1;case"\\":if(c&&t.charAt(S+1)==="-"){i+=x;continue}_(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,S,i,x),c){this.debug(" in class"),x==="!"&&S===p+1&&(x="^"),i+=x;continue}if(x==="*"&&l==="*")continue;this.debug("call clearStateChar %j",l),_(),l=x,r.noext&&_();continue;case"(":{if(c){i+="(";continue}if(!l){i+="\\(";continue}let b={type:l,start:S-1,reStart:i.length,open:di[l].open,close:di[l].close};this.debug(this.pattern," ",b),a.push(b),i+=b.open,b.start===0&&b.type!=="!"&&(E=!0,i+=k(t.slice(S+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let b=a[a.length-1];if(c||!b){i+="\\)";continue}a.pop(),_(),o=!0,h=b,i+=h.close,h.type==="!"&&u.push(Object.assign(h,{reEnd:i.length}));continue}case"|":{let b=a[a.length-1];if(c||!b){i+="\\|";continue}_(),i+="|",b.start===0&&b.type!=="!"&&(E=!0,i+=k(t.slice(S+1)));continue}case"[":if(_(),c){i+="\\"+x;continue}c=!0,p=S,f=i.length,i+=x;continue;case"]":if(S===p+1||!c){i+="\\"+x;continue}m=t.substring(p+1,S);try{RegExp("["+qc(jc(m))+"]"),i+=x}catch{i=i.substring(0,f)+"(?:$.)"}o=!0,c=!1;continue;default:_(),gi[x]&&!(x==="^"&&c)&&(i+="\\"),i+=x;break}}for(c&&(m=t.slice(p+1),y=this.parse(m,Gn),i=i.substring(0,f)+"\\["+y[0],o=o||y[1]),h=a.pop();h;h=a.pop()){let S;S=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(b,C,d)=>(d||(d="\\"),C+C+d+"|")),this.debug(`tail=%j
%s`,S,S,h,i);let x=h.type==="*"?Bn:h.type==="?"?Yn:"\\"+h.type;o=!0,i=i.slice(0,h.reStart)+x+"\\("+S}_(),s&&(i+="\\\\");let P=Mc[i.charAt(0)];for(let S=u.length-1;S>-1;S--){let x=u[S],b=i.slice(0,x.reStart),C=i.slice(x.reStart,x.reEnd-8),d=i.slice(x.reEnd),g=i.slice(x.reEnd-8,x.reEnd)+d,A=b.split(")").length,T=b.split("(").length-A,v=d;for(let F=0;F<T;F++)v=v.replace(/\)[+*?]?/,"");d=v;let w=d===""&&n!==Gn?"(?:$|\\/)":"";i=b+C+d+w+g}if(i!==""&&o&&(i="(?=.)"+i),P&&(i=R()+i),n===Gn)return[i,o];if(r.nocase&&!o&&(o=t.toUpperCase()!==t.toLowerCase()),!o)return Hc(t);let L=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",L),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?Bn:n.dot?Ic:Fc,i=n.nocase?"i":"",o=t.map(s=>(s=s.map(a=>typeof a=="string"?$c(a):a===fe?fe:a._src).reduce((a,u)=>(a[a.length-1]===fe&&u===fe||a.push(u),a),[]),s.forEach((a,u)=>{a!==fe||s[u-1]===fe||(u===0?s.length>1?s[u+1]="(?:\\/|"+r+"\\/)?"+s[u+1]:s[u]=r:u===s.length-1?s[u-1]+="(?:\\/|"+r+")?":(s[u-1]+="(?:\\/|\\/"+r+"\\/)"+s[u+1],s[u+1]=fe))}),s.filter(a=>a!==fe).join("/"))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch{this.regexp=!1}return this.regexp}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let r=this.options;Wn.sep!=="/"&&(t=t.split(Wn.sep).join("/")),t=t.split(mi),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let o;for(let s=t.length-1;s>=0&&(o=t[s],!o);s--);for(let s=0;s<i.length;s++){let a=i[s],u=t;if(r.matchBase&&a.length===1&&(u=[o]),this.matchOne(u,a,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(t){return ye.defaults(t).Minimatch}};ye.Minimatch=rt});var Ai=M((Jg,wi)=>{var Jn=class{constructor(t){this.value=t,this.next=void 0}},Xn=class{constructor(){this.clear()}enqueue(t){let n=new Jn(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};wi.exports=Xn});var ki=M((Xg,Si)=>{"use strict";var Uc=Ai(),Bc=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Uc,n=0,r=()=>{n--,t.size>0&&t.dequeue()()},i=async(a,u,...l)=>{n++;let c=(async()=>a(...l))();u(c);try{await c}catch{}r()},o=(a,u,...l)=>{t.enqueue(i.bind(null,a,u,...l)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},s=(a,...u)=>new Promise(l=>{o(a,l,...u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};Si.exports=Bc});var Ti=M((zg,_i)=>{"use strict";var Ei=ki(),Yt=class extends Error{constructor(t){super(),this.value=t}},Gc=async(e,t)=>t(await e),Wc=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Yt(t[0]);return!1},Yc=async(e,t,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};let r=Ei(n.concurrency),i=[...e].map(s=>[s,r(Gc,s,t)]),o=Ei(n.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Wc,s)))}catch(s){if(s instanceof Yt)return s.value;throw s}};_i.exports=Yc});var Ni=M((Qg,zn)=>{"use strict";var Ri=require("path"),Vt=require("fs"),{promisify:Oi}=require("util"),Vc=Ti(),Kc=Oi(Vt.stat),Jc=Oi(Vt.lstat),Ci={directory:"isDirectory",file:"isFile"};function Pi({type:e}){if(!(e in Ci))throw new Error(`Invalid type specified: ${e}`)}var Li=(e,t)=>e===void 0||t[Ci[e]]();zn.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Pi(t);let n=t.allowSymlinks?Kc:Jc;return Vc(e,async r=>{try{let i=await n(Ri.resolve(t.cwd,r));return Li(t.type,i)}catch{return!1}},t)};zn.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Pi(t);let n=t.allowSymlinks?Vt.statSync:Vt.lstatSync;for(let r of e)try{let i=n(Ri.resolve(t.cwd,r));if(Li(t.type,i))return r}catch{}}});var Zn=M((Zg,Qn)=>{"use strict";var Ii=require("fs"),{promisify:Xc}=require("util"),zc=Xc(Ii.access);Qn.exports=async e=>{try{return await zc(e),!0}catch{return!1}};Qn.exports.sync=e=>{try{return Ii.accessSync(e),!0}catch{return!1}}});var Mi=M((em,it)=>{"use strict";var Ie=require("path"),Kt=Ni(),Fi=Zn(),er=Symbol("findUp.stop");it.exports=async(e,t={})=>{let n=Ie.resolve(t.cwd||""),{root:r}=Ie.parse(n),i=[].concat(e),o=async s=>{if(typeof e!="function")return Kt(i,s);let a=await e(s.cwd);return typeof a=="string"?Kt([a],s):a};for(;;){let s=await o({...t,cwd:n});if(s===er)return;if(s)return Ie.resolve(n,s);if(n===r)return;n=Ie.dirname(n)}};it.exports.sync=(e,t={})=>{let n=Ie.resolve(t.cwd||""),{root:r}=Ie.parse(n),i=[].concat(e),o=s=>{if(typeof e!="function")return Kt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Kt.sync([a],s):a};for(;;){let s=o({...t,cwd:n});if(s===er)return;if(s)return Ie.resolve(n,s);if(n===r)return;n=Ie.dirname(n)}};it.exports.exists=Fi;it.exports.sync.exists=Fi.sync;it.exports.stop=er});var Hi=M((tm,Di)=>{var Fe=require("constants"),Qc=process.cwd,Jt=null,Zc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jt||(Jt=Qc.call(process)),Jt};try{process.cwd()}catch{}var el=process.chdir;process.chdir=function(e){Jt=null,el.call(process,e)};Di.exports=tl;function tl(e){Fe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.lchmod||(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(c,f,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Zc==="win32"&&(e.rename=(function(c){return function(f,p,m){var h=Date.now(),y=0;c(f,p,function E(O){if(O&&(O.code==="EACCES"||O.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(p,function(R,k){R&&R.code==="ENOENT"?c(f,p,E):m(O)})},y),y<100&&(y+=10);return}m&&m(O)})}})(e.rename)),e.read=(function(c){function f(p,m,h,y,E,O){var R;if(O&&typeof O=="function"){var k=0;R=function(_,P,L){if(_&&_.code==="EAGAIN"&&k<10)return k++,c.call(e,p,m,h,y,E,R);O.apply(this,arguments)}}return c.call(e,p,m,h,y,E,R)}return f.__proto__=c,f})(e.read),e.readSync=(function(c){return function(f,p,m,h,y){for(var E=0;;)try{return c.call(e,f,p,m,h,y)}catch(O){if(O.code==="EAGAIN"&&E<10){E++;continue}throw O}}})(e.readSync);function t(c){c.lchmod=function(f,p,m){c.open(f,Fe.O_WRONLY|Fe.O_SYMLINK,p,function(h,y){if(h){m&&m(h);return}c.fchmod(y,p,function(E){c.close(y,function(O){m&&m(E||O)})})})},c.lchmodSync=function(f,p){var m=c.openSync(f,Fe.O_WRONLY|Fe.O_SYMLINK,p),h=!0,y;try{y=c.fchmodSync(m,p),h=!1}finally{if(h)try{c.closeSync(m)}catch{}else c.closeSync(m)}return y}}function n(c){Fe.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(f,p,m,h){c.open(f,Fe.O_SYMLINK,function(y,E){if(y){h&&h(y);return}c.futimes(E,p,m,function(O){c.close(E,function(R){h&&h(O||R)})})})},c.lutimesSync=function(f,p,m){var h=c.openSync(f,Fe.O_SYMLINK),y,E=!0;try{y=c.futimesSync(h,p,m),E=!1}finally{if(E)try{c.closeSync(h)}catch{}else c.closeSync(h)}return y}):(c.lutimes=function(f,p,m,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function r(c){return c&&function(f,p,m){return c.call(e,f,p,function(h){l(h)&&(h=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(m){if(!l(m))throw m}}}function o(c){return c&&function(f,p,m,h){return c.call(e,f,p,m,function(y){l(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(c){return c&&function(f,p,m){try{return c.call(e,f,p,m)}catch(h){if(!l(h))throw h}}}function a(c){return c&&function(f,p,m){typeof p=="function"&&(m=p,p=null);function h(y,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?c.call(e,f,p,h):c.call(e,f,h)}}function u(c){return c&&function(f,p){var m=p?c.call(e,f,p):c.call(e,f);return m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296),m}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var qi=M((nm,$i)=>{var ji=require("stream").Stream;$i.exports=nl;function nl(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);ji.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){o.emit("error",c),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);ji.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var u=o[s];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Bi=M((rm,Ui)=>{"use strict";Ui.exports=rl;function rl(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var Yi=M((im,nr)=>{var ue=require("fs"),il=Hi(),ol=qi(),sl=Bi(),Xt=require("util"),we,zt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(we=Symbol.for("graceful-fs.queue"),zt=Symbol.for("graceful-fs.previous")):(we="___graceful-fs.queue",zt="___graceful-fs.previous");function al(){}function Wi(e,t){Object.defineProperty(e,we,{get:function(){return t}})}var Et=al;Xt.debuglog?Et=Xt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Et=function(){var e=Xt.format.apply(Xt,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});ue[we]||(Gi=global[we]||[],Wi(ue,Gi),ue.close=(function(e){function t(n,r){return e.call(ue,n,function(i){i||je(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,zt,{value:e}),t})(ue.close),ue.closeSync=(function(e){function t(n){e.apply(ue,arguments),je()}return Object.defineProperty(t,zt,{value:e}),t})(ue.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Et(ue[we]),require("assert").equal(ue[we].length,0)}));var Gi;global[we]||Wi(global,ue[we]);nr.exports=tr(sl(ue));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ue.__patched&&(nr.exports=tr(ue),ue.__patched=!0);function tr(e){il(e),e.gracefulify=tr,e.createReadStream=k,e.createWriteStream=_;var t=e.readFile;e.readFile=n;function n(S,x,b){return typeof x=="function"&&(b=x,x=null),C(S,x,b);function C(d,g,A){return t(d,g,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?kt([C,[d,g,A]]):(typeof A=="function"&&A.apply(this,arguments),je())})}}var r=e.writeFile;e.writeFile=i;function i(S,x,b,C){return typeof b=="function"&&(C=b,b=null),d(S,x,b,C);function d(g,A,T,v){return r(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?kt([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}var o=e.appendFile;o&&(e.appendFile=s);function s(S,x,b,C){return typeof b=="function"&&(C=b,b=null),d(S,x,b,C);function d(g,A,T,v){return o(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?kt([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}var a=e.readdir;e.readdir=u;function u(S,x,b){var C=[S];return typeof x!="function"?C.push(x):b=x,C.push(d),l(C);function d(g,A){A&&A.sort&&A.sort(),g&&(g.code==="EMFILE"||g.code==="ENFILE")?kt([l,[C]]):(typeof b=="function"&&b.apply(this,arguments),je())}}function l(S){return a.apply(e,S)}if(process.version.substr(0,4)==="v0.8"){var c=ol(e);y=c.ReadStream,O=c.WriteStream}var f=e.ReadStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=E);var p=e.WriteStream;p&&(O.prototype=Object.create(p.prototype),O.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return O},set:function(S){O=S},enumerable:!0,configurable:!0});var m=y;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(S){m=S},enumerable:!0,configurable:!0});var h=O;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(S){h=S},enumerable:!0,configurable:!0});function y(S,x){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function E(){var S=this;L(S.path,S.flags,S.mode,function(x,b){x?(S.autoClose&&S.destroy(),S.emit("error",x)):(S.fd=b,S.emit("open",b),S.read())})}function O(S,x){return this instanceof O?(p.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function R(){var S=this;L(S.path,S.flags,S.mode,function(x,b){x?(S.destroy(),S.emit("error",x)):(S.fd=b,S.emit("open",b))})}function k(S,x){return new e.ReadStream(S,x)}function _(S,x){return new e.WriteStream(S,x)}var P=e.open;e.open=L;function L(S,x,b,C){return typeof b=="function"&&(C=b,b=null),d(S,x,b,C);function d(g,A,T,v){return P(g,A,T,function(w,F){w&&(w.code==="EMFILE"||w.code==="ENFILE")?kt([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}return e}function kt(e){Et("ENQUEUE",e[0].name,e[1]),ue[we].push(e)}function je(){var e=ue[we].shift();e&&(Et("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Ji=M((om,Ki)=>{"use strict";var Vi=(e,t)=>function(...n){let r=t.promiseModule;return new r((i,o)=>{t.multiArgs?n.push((...s)=>{t.errorFirst?s[0]?o(s):(s.shift(),i(s)):i(s)}):t.errorFirst?n.push((s,a)=>{s?o(s):i(a)}):n.push(i),e.apply(this,n)})};Ki.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let n=typeof e;if(!(e!==null&&(n==="object"||n==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":n}\``);let r=o=>{let s=a=>typeof a=="string"?o===a:a.test(o);return t.include?t.include.some(s):!t.exclude.some(s)},i;n==="function"?i=function(...o){return t.excludeMain?e(...o):Vi(e,t).apply(this,o)}:i=Object.create(Object.getPrototypeOf(e));for(let o in e){let s=e[o];i[o]=typeof s=="function"&&r(o)?Vi(s,t):s}return i}});var zi=M((sm,Xi)=>{"use strict";Xi.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string, got "+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}});var qe=M((am,$e)=>{"use strict";function Qi(e){return typeof e>"u"||e===null}function ul(e){return typeof e=="object"&&e!==null}function cl(e){return Array.isArray(e)?e:Qi(e)?[]:[e]}function ll(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function fl(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function pl(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}$e.exports.isNothing=Qi;$e.exports.isObject=ul;$e.exports.toArray=cl;$e.exports.repeat=fl;$e.exports.isNegativeZero=pl;$e.exports.extend=ll});var ot=M((um,Zi)=>{"use strict";function _t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}_t.prototype=Object.create(Error.prototype);_t.prototype.constructor=_t;_t.prototype.toString=function(t){var n=this.name+": ";return n+=this.reason||"(unknown reason)",!t&&this.mark&&(n+=" "+this.mark.toString()),n};Zi.exports=_t});var no=M((cm,to)=>{"use strict";var eo=qe();function rr(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}rr.prototype.getSnippet=function(t,n){var r,i,o,s,a;if(!this.buffer)return null;for(t=t||4,n=n||75,r="",i=this.position;i>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>n/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>n/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),eo.repeat(" ",t)+r+a+o+`
`+eo.repeat(" ",t+this.position-i+r.length)+"^"};rr.prototype.toString=function(t){var n,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(n=this.getSnippet(),n&&(r+=`:
`+n)),r};to.exports=rr});var se=M((lm,io)=>{"use strict";var ro=ot(),hl=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dl=["scalar","sequence","mapping"];function gl(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function ml(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(hl.indexOf(n)===-1)throw new ro('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=gl(t.styleAliases||null),dl.indexOf(this.kind)===-1)throw new ro('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}io.exports=ml});var Ue=M((fm,so)=>{"use strict";var oo=qe(),Qt=ot(),yl=se();function ir(e,t,n){var r=[];return e.include.forEach(function(i){n=ir(i,t,n)}),e[t].forEach(function(i){n.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&r.push(s)}),n.push(i)}),n.filter(function(i,o){return r.indexOf(o)===-1})}function xl(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,n;function r(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function st(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Qt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=ir(this,"implicit",[]),this.compiledExplicit=ir(this,"explicit",[]),this.compiledTypeMap=xl(this.compiledImplicit,this.compiledExplicit)}st.DEFAULT=null;st.create=function(){var t,n;switch(arguments.length){case 1:t=st.DEFAULT,n=arguments[0];break;case 2:t=arguments[0],n=arguments[1];break;default:throw new Qt("Wrong number of arguments for Schema.create function")}if(t=oo.toArray(t),n=oo.toArray(n),!t.every(function(r){return r instanceof st}))throw new Qt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(r){return r instanceof yl}))throw new Qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new st({include:t,explicit:n})};so.exports=st});var uo=M((pm,ao)=>{"use strict";var vl=se();ao.exports=new vl("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var lo=M((hm,co)=>{"use strict";var bl=se();co.exports=new bl("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var po=M((dm,fo)=>{"use strict";var wl=se();fo.exports=new wl("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Zt=M((gm,ho)=>{"use strict";var Al=Ue();ho.exports=new Al({explicit:[uo(),lo(),po()]})});var mo=M((mm,go)=>{"use strict";var Sl=se();function kl(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function El(){return null}function _l(e){return e===null}go.exports=new Sl("tag:yaml.org,2002:null",{kind:"scalar",resolve:kl,construct:El,predicate:_l,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var xo=M((ym,yo)=>{"use strict";var Tl=se();function Rl(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 Ol(e){return e==="true"||e==="True"||e==="TRUE"}function Cl(e){return Object.prototype.toString.call(e)==="[object Boolean]"}yo.exports=new Tl("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Rl,construct:Ol,predicate:Cl,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 bo=M((xm,vo)=>{"use strict";var Pl=qe(),Ll=se();function Nl(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Il(e){return 48<=e&&e<=55}function Fl(e){return 48<=e&&e<=57}function Ml(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Nl(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}for(;n<t;n++)if(i=e[n],i!=="_"){if(!Il(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(i===":")break;if(!Fl(e.charCodeAt(n)))return!1;r=!0}return!r||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(n))}function Dl(e){var t=e,n=1,r,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0"?0:r==="0"?t[1]==="b"?n*parseInt(t.slice(2),2):t[1]==="x"?n*parseInt(t,16):n*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),n*t):n*parseInt(t,10)}function Hl(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Pl.isNegativeZero(e)}vo.exports=new Ll("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ml,construct:Dl,predicate:Hl,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+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 So=M((vm,Ao)=>{"use strict";var wo=qe(),jl=se(),$l=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ql(e){return!(e===null||!$l.test(e)||e[e.length-1]==="_")}function Ul(e){var t,n,r,i;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,r=1,i.forEach(function(o){t+=o*r,r*=60}),n*t):n*parseFloat(t,10)}var Bl=/^[-+]?[0-9]+e/;function Gl(e,t){var n;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(wo.isNegativeZero(e))return"-0.0";return n=e.toString(10),Bl.test(n)?n.replace("e",".e"):n}function Wl(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||wo.isNegativeZero(e))}Ao.exports=new jl("tag:yaml.org,2002:float",{kind:"scalar",resolve:ql,construct:Ul,predicate:Wl,represent:Gl,defaultStyle:"lowercase"})});var or=M((bm,ko)=>{"use strict";var Yl=Ue();ko.exports=new Yl({include:[Zt()],implicit:[mo(),xo(),bo(),So()]})});var sr=M((wm,Eo)=>{"use strict";var Vl=Ue();Eo.exports=new Vl({include:[or()]})});var Oo=M((Am,Ro)=>{"use strict";var Kl=se(),_o=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 Jl(e){return e===null?!1:_o.exec(e)!==null||To.exec(e)!==null}function Xl(e){var t,n,r,i,o,s,a,u=0,l=null,c,f,p;if(t=_o.exec(e),t===null&&(t=To.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],f=+(t[11]||0),l=(c*60+f)*6e4,t[9]==="-"&&(l=-l)),p=new Date(Date.UTC(n,r,i,o,s,a,u)),l&&p.setTime(p.getTime()-l),p}function zl(e){return e.toISOString()}Ro.exports=new Kl("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jl,construct:Xl,instanceOf:Date,represent:zl})});var Po=M((Sm,Co)=>{"use strict";var Ql=se();function Zl(e){return e==="<<"||e===null}Co.exports=new Ql("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zl})});var Io=M((km,No)=>{"use strict";var Be;try{Lo=require,Be=Lo("buffer").Buffer}catch{}var Lo,ef=se(),ar=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function tf(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=ar;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function nf(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=ar,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),Be?Be.from?Be.from(a):new Be(a):a}function rf(e){var t="",n=0,r,i,o=e.length,s=ar;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function of(e){return Be&&Be.isBuffer(e)}No.exports=new ef("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tf,construct:nf,predicate:of,represent:rf})});var Do=M((Em,Mo)=>{"use strict";var sf=se(),Fo=Object.prototype.hasOwnProperty,af=Object.prototype.toString;function uf(e){if(e===null)return!0;var t={},n,r,i,o,s,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,af.call(i)!=="[object Object]")return!1;for(o in i)if(Fo.call(i,o))if(!s)s=!0;else return!1;if(!s||Fo.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function cf(e){return e!==null?e:[]}Mo.exports=new sf("tag:yaml.org,2002:omap",{kind:"sequence",resolve:uf,construct:cf})});var jo=M((_m,Ho)=>{"use strict";var lf=se(),ff=Object.prototype.toString;function pf(e){if(e===null)return!0;var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],ff.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function hf(e){if(e===null)return[];var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}Ho.exports=new lf("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:pf,construct:hf})});var qo=M((Tm,$o)=>{"use strict";var df=se(),gf=Object.prototype.hasOwnProperty;function mf(e){if(e===null)return!0;var t,n=e;for(t in n)if(gf.call(n,t)&&n[t]!==null)return!1;return!0}function yf(e){return e!==null?e:{}}$o.exports=new df("tag:yaml.org,2002:set",{kind:"mapping",resolve:mf,construct:yf})});var at=M((Rm,Uo)=>{"use strict";var xf=Ue();Uo.exports=new xf({include:[sr()],implicit:[Oo(),Po()],explicit:[Io(),Do(),jo(),qo()]})});var Go=M((Om,Bo)=>{"use strict";var vf=se();function bf(){return!0}function wf(){}function Af(){return""}function Sf(e){return typeof e>"u"}Bo.exports=new vf("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:bf,construct:wf,predicate:Sf,represent:Af})});var Yo=M((Cm,Wo)=>{"use strict";var kf=se();function Ef(e){if(e===null||e.length===0)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";return!(t[0]==="/"&&(n&&(r=n[1]),r.length>3||t[t.length-r.length-1]!=="/"))}function _f(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return t[0]==="/"&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)}function Tf(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Rf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Wo.exports=new kf("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Ef,construct:_f,predicate:Rf,represent:Tf})});var Jo=M((Pm,Ko)=>{"use strict";var en;try{Vo=require,en=Vo("esprima")}catch{typeof window<"u"&&(en=window.esprima)}var Vo,Of=se();function Cf(e){if(e===null)return!1;try{var t="("+e+")",n=en.parse(t,{range:!0});return!(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Pf(e){var t="("+e+")",n=en.parse(t,{range:!0}),r=[],i;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach(function(o){r.push(o.name)}),i=n.body[0].expression.body.range,n.body[0].expression.body.type==="BlockStatement"?new Function(r,t.slice(i[0]+1,i[1]-1)):new Function(r,"return "+t.slice(i[0],i[1]))}function Lf(e){return e.toString()}function Nf(e){return Object.prototype.toString.call(e)==="[object Function]"}Ko.exports=new Of("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Cf,construct:Pf,predicate:Nf,represent:Lf})});var Tt=M((Lm,zo)=>{"use strict";var Xo=Ue();zo.exports=Xo.DEFAULT=new Xo({include:[at()],explicit:[Go(),Yo(),Jo()]})});var xs=M((Nm,Rt)=>{"use strict";var Re=qe(),os=ot(),If=no(),ss=at(),Ff=Tt(),De=Object.prototype.hasOwnProperty,tn=1,as=2,us=3,nn=4,ur=1,Mf=2,Qo=3,Df=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Hf=/[\x85\u2028\u2029]/,jf=/[,\[\]\{\}]/,cs=/^(?:!|!!|![a-z\-]+!)$/i,ls=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Zo(e){return Object.prototype.toString.call(e)}function ke(e){return e===10||e===13}function We(e){return e===9||e===32}function de(e){return e===9||e===32||e===10||e===13}function ut(e){return e===44||e===91||e===93||e===123||e===125}function $f(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function qf(e){return e===120?2:e===117?4:e===85?8:0}function Uf(e){return 48<=e&&e<=57?e-48:-1}function es(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`: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 Bf(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function fs(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var ps=new Array(256),hs=new Array(256);for(Ge=0;Ge<256;Ge++)ps[Ge]=es(Ge)?1:0,hs[Ge]=es(Ge);var Ge;function Gf(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ff,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,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.totalMergeKeys=0,this.documents=[]}function ds(e,t){return new os(t,new If(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function U(e,t){throw ds(e,t)}function rn(e,t){e.onWarning&&e.onWarning.call(null,ds(e,t))}var ts={YAML:function(t,n,r){var i,o,s;t.version!==null&&U(t,"duplication of %YAML directive"),r.length!==1&&U(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&U(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&U(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&rn(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&U(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],cs.test(i)||U(t,"ill-formed tag handle (first argument) of the TAG directive"),De.call(t.tagMap,i)&&U(t,'there is a previously declared suffix for "'+i+'" tag handle'),ls.test(o)||U(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Me(e,t,n,r){var i,o,s,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||U(e,"expected valid JSON character");else Df.test(a)&&U(e,"the stream contains non-printable characters");e.result+=a}}function ns(e){e.totalMergeKeys+=1,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&U(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function rs(e,t,n,r){var i,o,s,a;for(Re.isObject(n)||U(e,"cannot merge mappings; the provided source object is unacceptable"),ns(e),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],ns(e),De.call(t,o)||(fs(t,o,n[o]),r[o]=!0)}function ct(e,t,n,r,i,o,s,a){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&U(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Zo(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Zo(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(o.length>100&&U(e,"abnormal merge sequence size"),u=0,l=o.length;u<l;u+=1)rs(e,t,o[u],n);else rs(e,t,o,n);else!e.json&&!De.call(n,i)&&De.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,U(e,"duplicated mapping key")),fs(t,i,o),delete n[i];return t}function cr(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++):U(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ne(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;We(i);)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(ke(i))for(cr(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&rn(e,"deficient indentation"),r}function on(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||de(n)))}function lr(e,t){t===1?e.result+=" ":t>1&&(e.result+=Re.repeat(`
`,t-1))}function Wf(e,t,n){var r,i,o,s,a,u,l,c,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),de(m)||ut(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),de(i)||n&&ut(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),de(i)||n&&ut(i))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),de(r))break}else{if(e.position===e.lineStart&&on(e)||n&&ut(m))break;if(ke(m))if(u=e.line,l=e.lineStart,c=e.lineIndent,ne(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=l,e.lineIndent=c;break}}a&&(Me(e,o,s,!1),lr(e,e.line-u),o=s=e.position,a=!1),We(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Me(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function Yf(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Me(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else ke(n)?(Me(e,r,i,!0),lr(e,ne(e,!1,t)),r=i=e.position):e.position===e.lineStart&&on(e)?U(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);U(e,"unexpected end of the stream within a single quoted scalar")}function Vf(e,t){var n,r,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Me(e,n,e.position,!0),e.position++,!0;if(a===92){if(Me(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),ke(a))ne(e,!1,t);else if(a<256&&ps[a])e.result+=hs[a],e.position++;else if((s=qf(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=$f(a))>=0?o=(o<<4)+s:U(e,"expected hexadecimal character");e.result+=Bf(o),e.position++}else U(e,"unknown escape sequence");n=r=e.position}else ke(a)?(Me(e,n,r,!0),lr(e,ne(e,!1,t)),n=r=e.position):e.position===e.lineStart&&on(e)?U(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}U(e,"unexpected end of the stream within a double quoted scalar")}function Kf(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,u,l,c,f,p={},m,h,y,E;if(E=e.input.charCodeAt(e.position),E===91)u=93,f=!1,o=[];else if(E===123)u=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),E=e.input.charCodeAt(++e.position);E!==0;){if(ne(e,!0,t),E=e.input.charCodeAt(e.position),E===u)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;n||U(e,"missed comma between flow collection entries"),h=m=y=null,l=c=!1,E===63&&(a=e.input.charCodeAt(e.position+1),de(a)&&(l=c=!0,e.position++,ne(e,!0,t))),r=e.line,lt(e,t,tn,!1,!0),h=e.tag,m=e.result,ne(e,!0,t),E=e.input.charCodeAt(e.position),(c||e.line===r)&&E===58&&(l=!0,E=e.input.charCodeAt(++e.position),ne(e,!0,t),lt(e,t,tn,!1,!0),y=e.result),f?ct(e,o,p,h,m,y):l?o.push(ct(e,null,p,h,m,y)):o.push(m),ne(e,!0,t),E=e.input.charCodeAt(e.position),E===44?(n=!0,E=e.input.charCodeAt(++e.position)):n=!1}U(e,"unexpected end of the stream within a flow collection")}function Jf(e,t){var n,r,i=ur,o=!1,s=!1,a=t,u=0,l=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)ur===i?i=f===43?Qo:Mf:U(e,"repeat of a chomping mode identifier");else if((c=Uf(f))>=0)c===0?U(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?U(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(We(f)){do f=e.input.charCodeAt(++e.position);while(We(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!ke(f)&&f!==0)}for(;f!==0;){for(cr(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),ke(f)){u++;continue}if(e.lineIndent<a){i===Qo?e.result+=Re.repeat(`
`,o?1+u:u):i===ur&&o&&(e.result+=`
`);break}for(r?We(f)?(l=!0,e.result+=Re.repeat(`
`,o?1+u:u)):l?(l=!1,e.result+=Re.repeat(`
`,u+1)):u===0?o&&(e.result+=" "):e.result+=Re.repeat(`
`,u):e.result+=Re.repeat(`
`,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!ke(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Me(e,n,e.position,!1)}return!0}function is(e,t){var n,r=e.tag,i=e.anchor,o=[],s,a=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(s=e.input.charCodeAt(e.position+1),!de(s)));){if(a=!0,e.position++,ne(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,lt(e,t,us,!1,!0),o.push(e.result),ne(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)U(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Xf(e,t,n){var r,i,o,s,a=e.tag,u=e.anchor,l={},c={},f=null,p=null,m=null,h=!1,y=!1,E;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),E=e.input.charCodeAt(e.position);E!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(E===63||E===58)&&de(r))E===63?(h&&(ct(e,l,c,f,p,null),f=p=m=null),y=!0,h=!0,i=!0):h?(h=!1,i=!0):U(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,E=r;else if(lt(e,n,as,!1,!0))if(e.line===o){for(E=e.input.charCodeAt(e.position);We(E);)E=e.input.charCodeAt(++e.position);if(E===58)E=e.input.charCodeAt(++e.position),de(E)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(ct(e,l,c,f,p,null),f=p=m=null),y=!0,h=!1,i=!1,f=e.tag,p=e.result;else if(y)U(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=u,!0}else if(y)U(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(lt(e,t,nn,!0,i)&&(h?p=e.result:m=e.result),h||(ct(e,l,c,f,p,m,o,s),f=p=m=null),ne(e,!0,-1),E=e.input.charCodeAt(e.position)),e.lineIndent>t&&E!==0)U(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&ct(e,l,c,f,p,null),y&&(e.tag=a,e.anchor=u,e.kind="mapping",e.result=l),y}function zf(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&U(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):U(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!de(s);)s===33&&(r?U(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),cs.test(i)||U(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),jf.test(o)&&U(e,"tag suffix cannot contain flow indicator characters")}return o&&!ls.test(o)&&U(e,"tag name cannot contain such characters: "+o),n?e.tag=o:De.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:U(e,'undeclared tag handle "'+i+'"'),!0}function Qf(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&U(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!de(n)&&!ut(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&U(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Zf(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!de(r)&&!ut(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&U(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),De.call(e.anchorMap,n)||U(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ne(e,!0,-1),!0}function lt(e,t,n,r,i){var o,s,a,u=1,l=!1,c=!1,f,p,m,h,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=nn===n||us===n,r&&ne(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;zf(e)||Qf(e);)ne(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=l||i),(u===1||nn===n)&&(tn===n||as===n?h=t:h=t+1,y=e.position-e.lineStart,u===1?a&&(is(e,y)||Xf(e,y,h))||Kf(e,h)?c=!0:(s&&Jf(e,h)||Yf(e,h)||Vf(e,h)?c=!0:Zf(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&U(e,"alias node should not have any properties")):Wf(e,h,tn===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(c=a&&is(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&U(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(m=e.implicitTypes[f],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else De.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&U(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):U(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):U(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function ep(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ne(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!de(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&U(e,"directive name must not be less than one character in length");s!==0;){for(;We(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ke(s));break}if(ke(s))break;for(n=e.position;s!==0&&!de(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&cr(e),De.call(ts,r)?ts[r](e,r,i):rn(e,'unknown document directive "'+r+'"')}if(ne(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,ne(e,!0,-1)):o&&U(e,"directives end mark is expected"),lt(e,e.lineIndent-1,nn,!1,!0),ne(e,!0,-1),e.checkLineBreaks&&Hf.test(e.input.slice(t,e.position))&&rn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&on(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ne(e,!0,-1));return}if(e.position<e.length-1)U(e,"end of the stream or a document separator is expected");else return}function gs(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Gf(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,U(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ep(n);return n.documents}function ms(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=gs(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function ys(e,t){var n=gs(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new os("expected a single document in the stream, but found more")}}function tp(e,t,n){return typeof t=="object"&&t!==null&&typeof n>"u"&&(n=t,t=null),ms(e,t,Re.extend({schema:ss},n))}function np(e,t){return ys(e,Re.extend({schema:ss},t))}Rt.exports.loadAll=ms;Rt.exports.load=ys;Rt.exports.safeLoadAll=tp;Rt.exports.safeLoad=np});var qs=M((Im,dr)=>{"use strict";var Ct=qe(),Pt=ot(),rp=Tt(),ip=at(),_s=Object.prototype.toString,Ts=Object.prototype.hasOwnProperty,op=9,Ot=10,sp=13,ap=32,up=33,cp=34,Rs=35,lp=37,fp=38,pp=39,hp=42,Os=44,dp=45,Cs=58,gp=61,mp=62,yp=63,xp=64,Ps=91,Ls=93,vp=96,Ns=123,bp=124,Is=125,ce={};ce[0]="\\0";ce[7]="\\a";ce[8]="\\b";ce[9]="\\t";ce[10]="\\n";ce[11]="\\v";ce[12]="\\f";ce[13]="\\r";ce[27]="\\e";ce[34]='\\"';ce[92]="\\\\";ce[133]="\\N";ce[160]="\\_";ce[8232]="\\L";ce[8233]="\\P";var wp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Ap(e,t){var n,r,i,o,s,a,u;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)s=r[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&Ts.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function vs(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Pt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ct.repeat("0",r-t.length)+t}function Sp(e){this.schema=e.schema||rp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ct.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ap(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.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bs(e,t){for(var n=Ct.repeat(" ",t),r=0,i=-1,o="",s,a=e.length;r<a;)i=e.indexOf(`
`,r),i===-1?(s=e.slice(r),r=a):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
`&&(o+=n),o+=s;return o}function fr(e,t){return`
`+Ct.repeat(" ",e.indent*t)}function kp(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function hr(e){return e===ap||e===op}function ft(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function Ep(e){return ft(e)&&!hr(e)&&e!==65279&&e!==sp&&e!==Ot}function ws(e,t){return ft(e)&&e!==65279&&e!==Os&&e!==Ps&&e!==Ls&&e!==Ns&&e!==Is&&e!==Cs&&(e!==Rs||t&&Ep(t))}function _p(e){return ft(e)&&e!==65279&&!hr(e)&&e!==dp&&e!==yp&&e!==Cs&&e!==Os&&e!==Ps&&e!==Ls&&e!==Ns&&e!==Is&&e!==Rs&&e!==fp&&e!==hp&&e!==up&&e!==bp&&e!==gp&&e!==mp&&e!==pp&&e!==cp&&e!==lp&&e!==xp&&e!==vp}function Fs(e){var t=/^\n* /;return t.test(e)}var Ms=1,Ds=2,Hs=3,js=4,sn=5;function Tp(e,t,n,r,i){var o,s,a,u=!1,l=!1,c=r!==-1,f=-1,p=_p(e.charCodeAt(0))&&!hr(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!ft(s))return sn;a=o>0?e.charCodeAt(o-1):null,p=p&&ws(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Ot)u=!0,c&&(l=l||o-f-1>r&&e[f+1]!==" ",f=o);else if(!ft(s))return sn;a=o>0?e.charCodeAt(o-1):null,p=p&&ws(s,a)}l=l||c&&o-f-1>r&&e[f+1]!==" "}return!u&&!l?p&&!i(e)?Ms:Ds:n>9&&Fs(e)?sn:l?js:Hs}function Rp(e,t,n,r){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&wp.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function a(u){return kp(e,u)}switch(Tp(t,s,e.indent,o,a)){case Ms:return t;case Ds:return"'"+t.replace(/'/g,"''")+"'";case Hs:return"|"+As(t,e.indent)+Ss(bs(t,i));case js:return">"+As(t,e.indent)+Ss(bs(Op(t,o),i));case sn:return'"'+Cp(t,o)+'"';default:throw new Pt("impossible error: invalid scalar style")}})()}function As(e,t){var n=Fs(e)?String(t):"",r=e[e.length-1]===`
`,i=r&&(e[e.length-2]===`
`||e===`
`),o=i?"+":r?"":"-";return n+o+`
`}function Ss(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function Op(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var l=e.indexOf(`
`);return l=l!==-1?l:e.length,n.lastIndex=l,ks(e.slice(0,l),t)})(),i=e[0]===`
`||e[0]===" ",o,s;s=n.exec(e);){var a=s[1],u=s[2];o=u[0]===" ",r+=a+(!i&&!o&&u!==""?`
`:"")+ks(u,t),i=o}return r}function ks(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,o,s=0,a=0,u="";r=n.exec(e);)a=r.index,a-i>t&&(o=s>i?s:a,u+=`
`+e.slice(i,o),i=o+1),s=a;return u+=`
`,e.length-i>t&&s>i?u+=e.slice(i,s)+`
`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function Cp(e){for(var t="",n,r,i,o=0;o<e.length;o++){if(n=e.charCodeAt(o),n>=55296&&n<=56319&&(r=e.charCodeAt(o+1),r>=56320&&r<=57343)){t+=vs((n-55296)*1024+r-56320+65536),o++;continue}i=ce[n],t+=!i&&ft(n)?e[o]:i||vs(n)}return t}function Pp(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)Ye(e,t,n[o],!1,!1)&&(o!==0&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function Lp(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)Ye(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=fr(e,t)),e.dump&&Ot===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function Np(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,u,l,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),u=o[s],l=n[u],Ye(e,t,u,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ye(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function Ip(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,u,l,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Pt("sortKeys must be a boolean or a function");for(a=0,u=s.length;a<u;a+=1)p="",(!r||a!==0)&&(p+=fr(e,t)),l=s[a],c=n[l],Ye(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ot===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=fr(e,t)),Ye(e,t+1,c,!0,f)&&(e.dump&&Ot===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Es(e,t,n){var r,i,o,s,a,u;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=n?a.tag:"?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,_s.call(a.represent)==="[object Function]")r=a.represent(t,u);else if(Ts.call(a.represent,u))r=a.represent[u](t,u);else throw new Pt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ye(e,t,n,r,i,o){e.tag=null,e.dump=n,Es(e,n,!1)||Es(e,n,!0);var s=_s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",u,l;if(a&&(u=e.duplicates.indexOf(n),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(a&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(Ip(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Np(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;r&&e.dump.length!==0?(Lp(e,c,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(Pp(e,c,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&Rp(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Pt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Fp(e,t){var n=[],r=[],i,o;for(pr(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function pr(e,t,n){var r,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)pr(e[i],t,n);else for(r=Object.keys(e),i=0,o=r.length;i<o;i+=1)pr(e[r[i]],t,n)}function $s(e,t){t=t||{};var n=new Sp(t);return n.noRefs||Fp(e,n),Ye(n,0,e,!0,!0)?n.dump+`
`:""}function Mp(e,t){return $s(e,Ct.extend({schema:ip},t))}dr.exports.dump=$s;dr.exports.safeDump=Mp});var Bs=M((Fm,ee)=>{"use strict";var an=xs(),Us=qs();function un(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}ee.exports.Type=se();ee.exports.Schema=Ue();ee.exports.FAILSAFE_SCHEMA=Zt();ee.exports.JSON_SCHEMA=or();ee.exports.CORE_SCHEMA=sr();ee.exports.DEFAULT_SAFE_SCHEMA=at();ee.exports.DEFAULT_FULL_SCHEMA=Tt();ee.exports.load=an.load;ee.exports.loadAll=an.loadAll;ee.exports.safeLoad=an.safeLoad;ee.exports.safeLoadAll=an.safeLoadAll;ee.exports.dump=Us.dump;ee.exports.safeDump=Us.safeDump;ee.exports.YAMLException=ot();ee.exports.MINIMAL_SCHEMA=Zt();ee.exports.SAFE_SCHEMA=at();ee.exports.DEFAULT_SCHEMA=Tt();ee.exports.scan=un("scan");ee.exports.parse=un("parse");ee.exports.compose=un("compose");ee.exports.addConstructor=un("addConstructor")});var Ws=M((Mm,Gs)=>{"use strict";var Dp=Bs();Gs.exports=Dp});var Ks=M((Dm,gr)=>{"use strict";var Ys=Yi(),Hp=Ji(),jp=zi(),$p=Ws(),Vs=e=>$p.safeLoad(jp(e));gr.exports=e=>Hp(Ys.readFile)(e,"utf8").then(t=>Vs(t));gr.exports.sync=e=>Vs(Ys.readFileSync(e,"utf8"))});var Xs=M((Hm,Js)=>{"use strict";var cn=require("path"),mr=Zn(),qp=Ks();Js.exports=async function(e){let t=cn.join(e,"node_modules");if(await mr(cn.join(t,".yarn-integrity")))return{name:"yarn"};if(await mr(cn.join(e,"bun.lockb")))return{name:"bun"};try{let i=await qp(cn.join(t,".modules.yaml"));return Up(i.packageManager)}catch(i){if(i.code!=="ENOENT")throw i}return await mr(t)?{name:"npm"}:null};function Up(e){if(e[0]==="@"){let r=e.substr(1).split("@");return{name:`@${r[0]}`,version:r[1]}}let t=e.split("@");return{name:t[0],version:t[1]}}});var ln=M(be=>{"use strict";be.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;be.find=(e,t)=>e.nodes.find(n=>n.type===t);be.exceedsLimit=(e,t,n=1,r)=>r===!1||!be.isInteger(e)||!be.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=r;be.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};be.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;be.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;be.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;be.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);be.flatten=(...e)=>{let t=[],n=r=>{for(let i=0;i<r.length;i++){let o=r[i];if(Array.isArray(o)){n(o);continue}o!==void 0&&t.push(o)}return t};return n(e),t}});var fn=M(($m,Qs)=>{"use strict";var zs=ln();Qs.exports=(e,t={})=>{let n=(r,i={})=>{let o=t.escapeInvalid&&zs.isInvalidBrace(i),s=r.invalid===!0&&t.escapeInvalid===!0,a="";if(r.value)return(o||s)&&zs.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let u of r.nodes)a+=n(u);return a};return n(e)}});var ea=M((qm,Zs)=>{"use strict";Zs.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ca=M((Um,ua)=>{"use strict";var ta=ea(),Ve=(e,t,n)=>{if(ta(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ta(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let i=String(r.relaxZeros),o=String(r.shorthand),s=String(r.capture),a=String(r.wrap),u=e+":"+t+"="+i+o+s+a;if(Ve.cache.hasOwnProperty(u))return Ve.cache[u].result;let l=Math.min(e,t),c=Math.max(e,t);if(Math.abs(l-c)===1){let y=e+"|"+t;return r.capture?`(${y})`:r.wrap===!1?y:`(?:${y})`}let f=aa(e)||aa(t),p={min:e,max:t,a:l,b:c},m=[],h=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),l<0){let y=c<0?Math.abs(c):1;h=na(y,Math.abs(l),p,r),l=p.a=0}return c>=0&&(m=na(l,c,p,r)),p.negatives=h,p.positives=m,p.result=Bp(h,m,r),r.capture===!0?p.result=`(${p.result})`:r.wrap!==!1&&m.length+h.length>1&&(p.result=`(?:${p.result})`),Ve.cache[u]=p,p.result};function Bp(e,t,n){let r=yr(e,t,"-",!1,n)||[],i=yr(t,e,"",!1,n)||[],o=yr(e,t,"-?",!0,n)||[];return r.concat(o).concat(i).join("|")}function Gp(e,t){let n=1,r=1,i=ia(e,n),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),n+=1,i=ia(e,n);for(i=oa(t+1,r)-1;e<i&&i<=t;)o.add(i),r+=1,i=oa(t+1,r)-1;return o=[...o],o.sort(Vp),o}function Wp(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=Yp(e,t),i=r.length,o="",s=0;for(let a=0;a<i;a++){let[u,l]=r[a];u===l?o+=u:u!=="0"||l!=="9"?o+=Kp(u,l,n):s++}return s&&(o+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function na(e,t,n,r){let i=Gp(e,t),o=[],s=e,a;for(let u=0;u<i.length;u++){let l=i[u],c=Wp(String(s),String(l),r),f="";if(!n.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+sa(a.count),s=l+1;continue}n.isPadded&&(f=Jp(l,n,r)),c.string=f+c.pattern+sa(c.count),o.push(c),s=l+1,a=c}return o}function yr(e,t,n,r,i){let o=[];for(let s of e){let{string:a}=s;!r&&!ra(t,"string",a)&&o.push(n+a),r&&ra(t,"string",a)&&o.push(n+a)}return o}function Yp(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function Vp(e,t){return e>t?1:t>e?-1:0}function ra(e,t,n){return e.some(r=>r[t]===n)}function ia(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function oa(e,t){return e-e%Math.pow(10,t)}function sa(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function Kp(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function aa(e){return/^-?(0+)\d/.test(e)}function Jp(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}Ve.cache={};Ve.clearCache=()=>Ve.cache={};ua.exports=Ve});var br=M((Bm,ma)=>{"use strict";var Xp=require("util"),fa=ca(),la=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),zp=e=>t=>e===!0?Number(t):String(t),xr=e=>typeof e=="number"||typeof e=="string"&&e!=="",Lt=e=>Number.isInteger(+e),vr=e=>{let t=`${e}`,n=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++n]==="0";);return n>0},Qp=(e,t,n)=>typeof e=="string"||typeof t=="string"?!0:n.stringify===!0,Zp=(e,t,n)=>{if(t>0){let r=e[0]==="-"?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return n===!1?String(e):e},hn=(e,t)=>{let n=e[0]==="-"?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},eh=(e,t,n)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let r=t.capture?"":"?:",i="",o="",s;return e.positives.length&&(i=e.positives.map(a=>hn(String(a),n)).join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.map(a=>hn(String(a),n)).join("|")})`),i&&o?s=`${i}|${o}`:s=i||o,t.wrap?`(${r}${s})`:s},pa=(e,t,n,r)=>{if(n)return fa(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`},ha=(e,t,n)=>{if(Array.isArray(e)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${e.join("|")})`:e.join("|")}return fa(e,t,n)},da=(...e)=>new RangeError("Invalid range arguments: "+Xp.inspect(...e)),ga=(e,t,n)=>{if(n.strictRanges===!0)throw da([e,t]);return[]},th=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},nh=(e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===!0)throw da([e,t]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,a=String(e),u=String(t),l=String(n);n=Math.max(Math.abs(n),1);let c=vr(a)||vr(u)||vr(l),f=c?Math.max(a.length,u.length,l.length):0,p=c===!1&&Qp(e,t,r)===!1,m=r.transform||zp(p);if(r.toRegex&&n===1)return pa(hn(e,f),hn(t,f),!0,r);let h={negatives:[],positives:[]},y=R=>h[R<0?"negatives":"positives"].push(Math.abs(R)),E=[],O=0;for(;s?i>=o:i<=o;)r.toRegex===!0&&n>1?y(i):E.push(Zp(m(i,O),f,p)),i=s?i-n:i+n,O++;return r.toRegex===!0?n>1?eh(h,r,f):ha(E,null,{wrap:!1,...r}):E},rh=(e,t,n=1,r={})=>{if(!Lt(e)&&e.length>1||!Lt(t)&&t.length>1)return ga(e,t,r);let i=r.transform||(p=>String.fromCharCode(p)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=o>s,u=Math.min(o,s),l=Math.max(o,s);if(r.toRegex&&n===1)return pa(u,l,!1,r);let c=[],f=0;for(;a?o>=s:o<=s;)c.push(i(o,f)),o=a?o-n:o+n,f++;return r.toRegex===!0?ha(c,null,{wrap:!1,options:r}):c},pn=(e,t,n,r={})=>{if(t==null&&xr(e))return[e];if(!xr(e)||!xr(t))return ga(e,t,r);if(typeof n=="function")return pn(e,t,1,{transform:n});if(la(n))return pn(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,Lt(n)?Lt(e)&&Lt(t)?nh(e,t,n,i):rh(e,t,Math.max(Math.abs(n),1),i):n!=null&&!la(n)?th(n,i):pn(e,t,1,n)};ma.exports=pn});var va=M((Gm,xa)=>{"use strict";var ih=br(),ya=ln(),oh=(e,t={})=>{let n=(r,i={})=>{let o=ya.isInvalidBrace(i),s=r.invalid===!0&&t.escapeInvalid===!0,a=o===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",l="";if(r.isOpen===!0)return u+r.value;if(r.isClose===!0)return console.log("node.isClose",u,r.value),u+r.value;if(r.type==="open")return a?u+r.value:"(";if(r.type==="close")return a?u+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let c=ya.reduce(r.nodes),f=ih(...c,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(r.nodes)for(let c of r.nodes)l+=n(c,r);return l};return n(e)};xa.exports=oh});var Aa=M((Wm,wa)=>{"use strict";var sh=br(),ba=fn(),pt=ln(),Ke=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?pt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let o of i)r.push(Ke(o,t,n));else for(let o of t)n===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?Ke(i,o,n):i+o);return pt.flatten(r)},ah=(e,t={})=>{let n=t.rangeLimit===void 0?1e3:t.rangeLimit,r=(i,o={})=>{i.queue=[];let s=o,a=o.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(Ke(a.pop(),ba(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ke(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=pt.reduce(i.nodes);if(pt.exceedsLimit(...f,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=sh(...f,t);p.length===0&&(p=ba(i,t)),a.push(Ke(a.pop(),p)),i.nodes=[];return}let u=pt.encloseBrace(i),l=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let f=0;f<i.nodes.length;f++){let p=i.nodes[f];if(p.type==="comma"&&i.type==="brace"){f===1&&l.push(""),l.push("");continue}if(p.type==="close"){a.push(Ke(a.pop(),l,u));continue}if(p.value&&p.type!=="open"){l.push(Ke(l.pop(),p.value));continue}p.nodes&&r(p,i)}return l};return pt.flatten(r(e))};wa.exports=ah});var ka=M((Ym,Sa)=>{"use strict";Sa.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:`
`,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 Oa=M((Vm,Ra)=>{"use strict";var uh=fn(),{MAX_LENGTH:Ea,CHAR_BACKSLASH:wr,CHAR_BACKTICK:ch,CHAR_COMMA:lh,CHAR_DOT:fh,CHAR_LEFT_PARENTHESES:ph,CHAR_RIGHT_PARENTHESES:hh,CHAR_LEFT_CURLY_BRACE:dh,CHAR_RIGHT_CURLY_BRACE:gh,CHAR_LEFT_SQUARE_BRACKET:_a,CHAR_RIGHT_SQUARE_BRACKET:Ta,CHAR_DOUBLE_QUOTE:mh,CHAR_SINGLE_QUOTE:yh,CHAR_NO_BREAK_SPACE:xh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:vh}=ka(),bh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(Ea,n.maxLength):Ea;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let i={type:"root",input:e,nodes:[]},o=[i],s=i,a=i,u=0,l=e.length,c=0,f=0,p,m=()=>e[c++],h=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return s.nodes.push(y),y.parent=s,y.prev=a,a=y,y};for(h({type:"bos"});c<l;)if(s=o[o.length-1],p=m(),!(p===vh||p===xh)){if(p===wr){h({type:"text",value:(t.keepEscaping?p:"")+m()});continue}if(p===Ta){h({type:"text",value:"\\"+p});continue}if(p===_a){u++;let y;for(;c<l&&(y=m());){if(p+=y,y===_a){u++;continue}if(y===wr){p+=m();continue}if(y===Ta&&(u--,u===0))break}h({type:"text",value:p});continue}if(p===ph){s=h({type:"paren",nodes:[]}),o.push(s),h({type:"text",value:p});continue}if(p===hh){if(s.type!=="paren"){h({type:"text",value:p});continue}s=o.pop(),h({type:"text",value:p}),s=o[o.length-1];continue}if(p===mh||p===yh||p===ch){let y=p,E;for(t.keepQuotes!==!0&&(p="");c<l&&(E=m());){if(E===wr){p+=E+m();continue}if(E===y){t.keepQuotes===!0&&(p+=E);break}p+=E}h({type:"text",value:p});continue}if(p===dh){f++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};s=h(E),o.push(s),h({type:"open",value:p});continue}if(p===gh){if(s.type!=="brace"){h({type:"text",value:p});continue}let y="close";s=o.pop(),s.close=!0,h({type:y,value:p}),f--,s=o[o.length-1];continue}if(p===lh&&f>0){if(s.ranges>0){s.ranges=0;let y=s.nodes.shift();s.nodes=[y,{type:"text",value:uh(s)}]}h({type:"comma",value:p}),s.commas++;continue}if(p===fh&&f>0&&s.commas===0){let y=s.nodes;if(f===0||y.length===0){h({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){y.pop();let E=y[y.length-1];E.value+=a.value+p,a=E,s.ranges--;continue}h({type:"dot",value:p});continue}h({type:"text",value:p})}do if(s=o.pop(),s.type!=="root"){s.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=o[o.length-1],E=y.nodes.indexOf(s);y.nodes.splice(E,1,...s.nodes)}while(o.length>0);return h({type:"eos"}),i};Ra.exports=bh});var La=M((Km,Pa)=>{"use strict";var Ca=fn(),wh=va(),Ah=Aa(),Sh=Oa(),xe=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=xe.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(xe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};xe.parse=(e,t={})=>Sh(e,t);xe.stringify=(e,t={})=>Ca(typeof e=="string"?xe.parse(e,t):e,t);xe.compile=(e,t={})=>(typeof e=="string"&&(e=xe.parse(e,t)),wh(e,t));xe.expand=(e,t={})=>{typeof e=="string"&&(e=xe.parse(e,t));let n=Ah(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};xe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?xe.compile(e,t):xe.expand(e,t);Pa.exports=xe});var Nt=M((Jm,Da)=>{"use strict";var kh=require("path"),Ee="\\\\/",Na=`[^${Ee}]`,Eh=0,Oe="\\.",_h="\\+",Th="\\?",dn="\\/",Rh="(?=.)",Ia="[^/]",Ar=`(?:${dn}|$)`,Fa=`(?:^|${dn})`,Sr=`${Oe}{1,2}${Ar}`,Oh=`(?!${Oe})`,Ch=`(?!${Fa}${Sr})`,Ph=`(?!${Oe}{0,1}${Ar})`,Lh=`(?!${Sr})`,Nh=`[^.${dn}]`,Ih=`${Ia}*?`,Ma={DOT_LITERAL:Oe,PLUS_LITERAL:_h,QMARK_LITERAL:Th,SLASH_LITERAL:dn,ONE_CHAR:Rh,QMARK:Ia,END_ANCHOR:Ar,DOTS_SLASH:Sr,NO_DOT:Oh,NO_DOTS:Ch,NO_DOT_SLASH:Ph,NO_DOTS_SLASH:Lh,QMARK_NO_DOT:Nh,STAR:Ih,START_ANCHOR:Fa},Fh={...Ma,SLASH_LITERAL:`[${Ee}]`,QMARK:Na,STAR:`${Na}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${Ee}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${Ee}])${Oe}{1,2}(?:[${Ee}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${Ee}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${Ee}]|$))`,QMARK_NO_DOT:`[^.${Ee}]`,START_ANCHOR:`(?:^|[${Ee}])`,END_ANCHOR:`(?:[${Ee}]|$)`},Mh={__proto__:null,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"};Da.exports={DEFAULT_MAX_EXTGLOB_RECURSION:Eh,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Mh,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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:kh.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?Fh:Ma}}});var It=M(ge=>{"use strict";var Dh=require("path"),Hh=process.platform==="win32",{REGEX_BACKSLASH:jh,REGEX_REMOVE_BACKSLASH:$h,REGEX_SPECIAL_CHARS:qh,REGEX_SPECIAL_CHARS_GLOBAL:Uh}=Nt();ge.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ge.hasRegexChars=e=>qh.test(e);ge.isRegexChar=e=>e.length===1&&ge.hasRegexChars(e);ge.escapeRegex=e=>e.replace(Uh,"\\$1");ge.toPosixSlashes=e=>e.replace(jh,"/");ge.removeBackslashes=e=>e.replace($h,t=>t==="\\"?"":t);ge.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ge.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Hh===!0||Dh.sep==="\\";ge.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?ge.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};ge.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};ge.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",o=`${r}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Wa=M((zm,Ga)=>{"use strict";var Ha=It(),{CHAR_ASTERISK:kr,CHAR_AT:Bh,CHAR_BACKWARD_SLASH:Ft,CHAR_COMMA:Gh,CHAR_DOT:Er,CHAR_EXCLAMATION_MARK:_r,CHAR_FORWARD_SLASH:Ba,CHAR_LEFT_CURLY_BRACE:Tr,CHAR_LEFT_PARENTHESES:Rr,CHAR_LEFT_SQUARE_BRACKET:Wh,CHAR_PLUS:Yh,CHAR_QUESTION_MARK:ja,CHAR_RIGHT_CURLY_BRACE:Vh,CHAR_RIGHT_PARENTHESES:$a,CHAR_RIGHT_SQUARE_BRACKET:Kh}=Nt(),qa=e=>e===Ba||e===Ft,Ua=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Jh=(e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,o=[],s=[],a=[],u=e,l=-1,c=0,f=0,p=!1,m=!1,h=!1,y=!1,E=!1,O=!1,R=!1,k=!1,_=!1,P=!1,L=0,S,x,b={value:"",depth:0,isGlob:!1},C=()=>l>=r,d=()=>u.charCodeAt(l+1),g=()=>(S=x,u.charCodeAt(++l));for(;l<r;){x=g();let F;if(x===Ft){R=b.backslashes=!0,x=g(),x===Tr&&(O=!0);continue}if(O===!0||x===Tr){for(L++;C()!==!0&&(x=g());){if(x===Ft){R=b.backslashes=!0,g();continue}if(x===Tr){L++;continue}if(O!==!0&&x===Er&&(x=g())===Er){if(p=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(O!==!0&&x===Gh){if(p=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(x===Vh&&(L--,L===0)){O=!1,p=b.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(x===Ba){if(o.push(l),s.push(b),b={value:"",depth:0,isGlob:!1},P===!0)continue;if(S===Er&&l===c+1){c+=2;continue}f=l+1;continue}if(n.noext!==!0&&(x===Yh||x===Bh||x===kr||x===ja||x===_r)===!0&&d()===Rr){if(h=b.isGlob=!0,y=b.isExtglob=!0,P=!0,x===_r&&l===c&&(_=!0),i===!0){for(;C()!==!0&&(x=g());){if(x===Ft){R=b.backslashes=!0,x=g();continue}if(x===$a){h=b.isGlob=!0,P=!0;break}}continue}break}if(x===kr){if(S===kr&&(E=b.isGlobstar=!0),h=b.isGlob=!0,P=!0,i===!0)continue;break}if(x===ja){if(h=b.isGlob=!0,P=!0,i===!0)continue;break}if(x===Wh){for(;C()!==!0&&(F=g());){if(F===Ft){R=b.backslashes=!0,g();continue}if(F===Kh){m=b.isBracket=!0,h=b.isGlob=!0,P=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&x===_r&&l===c){k=b.negated=!0,c++;continue}if(n.noparen!==!0&&x===Rr){if(h=b.isGlob=!0,i===!0){for(;C()!==!0&&(x=g());){if(x===Rr){R=b.backslashes=!0,x=g();continue}if(x===$a){P=!0;break}}continue}break}if(h===!0){if(P=!0,i===!0)continue;break}}n.noext===!0&&(y=!1,h=!1);let A=u,T="",v="";c>0&&(T=u.slice(0,c),u=u.slice(c),f-=c),A&&h===!0&&f>0?(A=u.slice(0,f),v=u.slice(f)):h===!0?(A="",v=u):A=u,A&&A!==""&&A!=="/"&&A!==u&&qa(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),n.unescape===!0&&(v&&(v=Ha.removeBackslashes(v)),A&&R===!0&&(A=Ha.removeBackslashes(A)));let w={prefix:T,input:e,start:c,base:A,glob:v,isBrace:p,isBracket:m,isGlob:h,isExtglob:y,isGlobstar:E,negated:k,negatedExtglob:_};if(n.tokens===!0&&(w.maxDepth=0,qa(x)||s.push(b),w.tokens=s),n.parts===!0||n.tokens===!0){let F;for(let D=0;D<o.length;D++){let H=F?F+1:c,$=o[D],B=e.slice(H,$);n.tokens&&(D===0&&c!==0?(s[D].isPrefix=!0,s[D].value=T):s[D].value=B,Ua(s[D]),w.maxDepth+=s[D].depth),(D!==0||B!=="")&&a.push(B),F=$}if(F&&F+1<e.length){let D=e.slice(F+1);a.push(D),n.tokens&&(s[s.length-1].value=D,Ua(s[s.length-1]),w.maxDepth+=s[s.length-1].depth)}w.slashes=o,w.parts=a}return w};Ga.exports=Jh});var Xa=M((Qm,Ja)=>{"use strict";var Mt=Nt(),le=It(),{MAX_LENGTH:gn,POSIX_REGEX_SOURCE:Xh,REGEX_NON_SPECIAL_CHARS:zh,REGEX_SPECIAL_CHARS_BACKREF:Qh,REPLACEMENTS:Ya}=Mt,Zh=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>le.escapeRegex(i)).join("..")}return n},ht=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Va=e=>{let t=[],n=0,r=0,i=0,o="",s=!1;for(let a of e){if(s===!0){o+=a,s=!1;continue}if(a==="\\"){o+=a,s=!0;continue}if(a==='"'){i=i===1?0:1,o+=a;continue}if(i===0){if(a==="[")n++;else if(a==="]"&&n>0)n--;else if(n===0){if(a==="(")r++;else if(a===")"&&r>0)r--;else if(a==="|"&&r===0){t.push(o),o="";continue}}}o+=a}return t.push(o),t},ed=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},Ka=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(ed(t))return t.replace(/\\(.)/g,"$1")},td=e=>{let t=e.map(Ka).filter(Boolean);for(let n=0;n<t.length;n++)for(let r=n+1;r<t.length;r++){let i=t[n],o=t[r],s=i[0];if(!(!s||i!==s.repeat(i.length)||o!==s.repeat(o.length))&&(i===o||i.startsWith(o)||o.startsWith(i)))return!0}return!1},Or=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let n=0,r=0,i=0,o=!1;for(let s=1;s<e.length;s++){let a=e[s];if(o===!0){o=!1;continue}if(a==="\\"){o=!0;continue}if(a==='"'){i=i===1?0:1;continue}if(i!==1){if(a==="["){n++;continue}if(a==="]"&&n>0){n--;continue}if(!(n>0)){if(a==="("){r++;continue}if(a===")"&&(r--,r===0))return t===!0&&s!==e.length-1?void 0:{type:e[0],body:e.slice(2,s),end:s}}}}},nd=e=>{let t=0,n=[];for(;t<e.length;){let i=Or(e.slice(t),!1);if(!i||i.type!=="*")return;let o=Va(i.body).map(a=>a.trim());if(o.length!==1)return;let s=Ka(o[0]);if(!s||s.length!==1)return;n.push(s),t+=i.end+1}return n.length<1?void 0:`${n.length===1?le.escapeRegex(n[0]):`[${n.map(i=>le.escapeRegex(i)).join("")}]`}*`},rd=e=>{let t=0,n=e.trim(),r=Or(n);for(;r;)t++,n=r.body.trim(),r=Or(n);return t},id=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let n=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Mt.DEFAULT_MAX_EXTGLOB_RECURSION,r=Va(e).map(i=>i.trim());if(r.length>1&&(r.some(i=>i==="")||r.some(i=>/^[*?]+$/.test(i))||td(r)))return{risky:!0};for(let i of r){let o=nd(i);if(o)return{risky:!0,safeOutput:o};if(rd(i)>n)return{risky:!0}}return{risky:!1}},Cr=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Ya[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(gn,n.maxLength):gn,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let o={type:"bos",value:"",output:n.prepend||""},s=[o],a=n.capture?"":"?:",u=le.isWindows(t),l=Mt.globChars(u),c=Mt.extglobChars(l),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:h,DOTS_SLASH:y,NO_DOT:E,NO_DOT_SLASH:O,NO_DOTS_SLASH:R,QMARK:k,QMARK_NO_DOT:_,STAR:P,START_ANCHOR:L}=l,S=I=>`(${a}(?:(?!${L}${I.dot?y:f}).)*?)`,x=n.dot?"":E,b=n.dot?k:_,C=n.bash===!0?S(n):P;n.capture&&(C=`(${C})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let d={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=le.removePrefix(e,d),i=e.length;let g=[],A=[],T=[],v=o,w,F=()=>d.index===i-1,D=d.peek=(I=1)=>e[d.index+I],H=d.advance=()=>e[++d.index]||"",$=()=>e.slice(d.index+1),B=(I="",z=0)=>{d.consumed+=I,d.index+=z},K=I=>{d.output+=I.output!=null?I.output:I.value,B(I.value)},ie=()=>{let I=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)H(),d.start++,I++;return I%2===0?!1:(d.negated=!0,d.start++,!0)},Le=I=>{d[I]++,T.push(I)},he=I=>{d[I]--,T.pop()},W=I=>{if(v.type==="globstar"){let z=d.braces>0&&(I.type==="comma"||I.type==="brace"),N=I.extglob===!0||g.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!z&&!N&&(d.output=d.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=C,d.output+=v.output)}if(g.length&&I.type!=="paren"&&(g[g.length-1].inner+=I.value),(I.value||I.output)&&K(I),v&&v.type==="text"&&I.type==="text"){v.value+=I.value,v.output=(v.output||"")+I.value;return}I.prev=v,s.push(I),v=I},Te=(I,z)=>{let N={...c[z],conditions:1,inner:""};N.prev=v,N.parens=d.parens,N.output=d.output,N.startIndex=d.index,N.tokensIndex=s.length;let Y=(n.capture?"(":"")+N.open;Le("parens"),W({type:I,value:z,output:d.output?"":h}),W({type:"paren",extglob:!0,value:H(),output:Y}),g.push(N)},tt=I=>{let z=e.slice(I.startIndex,d.index+1),N=e.slice(I.startIndex+2,d.index),Y=id(N,n);if((I.type==="plus"||I.type==="star")&&Y.risky){let Q=Y.safeOutput?(I.output?"":h)+(n.capture?`(${Y.safeOutput})`:Y.safeOutput):void 0,Ae=s[I.tokensIndex];Ae.type="text",Ae.value=z,Ae.output=Q||le.escapeRegex(z);for(let Se=I.tokensIndex+1;Se<s.length;Se++)s[Se].value="",s[Se].output="",delete s[Se].suffix;d.output=I.output+Ae.output,d.backtrack=!0,W({type:"paren",extglob:!0,value:w,output:""}),he("parens");return}let J=I.close+(n.capture?")":""),oe;if(I.type==="negate"){let Q=C;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(Q=S(n)),(Q!==C||F()||/^\)+$/.test($()))&&(J=I.close=`)$))${Q}`),I.inner.includes("*")&&(oe=$())&&/^\.[^\\/.]+$/.test(oe)){let Ae=Cr(oe,{...t,fastpaths:!1}).output;J=I.close=`)${Ae})${Q})`}I.prev.type==="bos"&&(d.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:J}),he("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,z=e.replace(Qh,(N,Y,J,oe,Q,Ae)=>oe==="\\"?(I=!0,N):oe==="?"?Y?Y+oe+(Q?k.repeat(Q.length):""):Ae===0?b+(Q?k.repeat(Q.length):""):k.repeat(J.length):oe==="."?f.repeat(J.length):oe==="*"?Y?Y+oe+(Q?C:""):C:Y?N:`\\${N}`);return I===!0&&(n.unescape===!0?z=z.replace(/\\/g,""):z=z.replace(/\\+/g,N=>N.length%2===0?"\\\\":N?"\\":"")),z===e&&n.contains===!0?(d.output=e,d):(d.output=le.wrapOutput(z,d,t),d)}for(;!F();){if(w=H(),w==="\0")continue;if(w==="\\"){let N=D();if(N==="/"&&n.bash!==!0||N==="."||N===";")continue;if(!N){w+="\\",W({type:"text",value:w});continue}let Y=/^\\+/.exec($()),J=0;if(Y&&Y[0].length>2&&(J=Y[0].length,d.index+=J,J%2!==0&&(w+="\\")),n.unescape===!0?w=H():w+=H(),d.brackets===0){W({type:"text",value:w});continue}}if(d.brackets>0&&(w!=="]"||v.value==="["||v.value==="[^")){if(n.posix!==!1&&w===":"){let N=v.value.slice(1);if(N.includes("[")&&(v.posix=!0,N.includes(":"))){let Y=v.value.lastIndexOf("["),J=v.value.slice(0,Y),oe=v.value.slice(Y+2),Q=Xh[oe];if(Q){v.value=J+Q,d.backtrack=!0,H(),!o.output&&s.indexOf(v)===1&&(o.output=h);continue}}}(w==="["&&D()!==":"||w==="-"&&D()==="]")&&(w=`\\${w}`),w==="]"&&(v.value==="["||v.value==="[^")&&(w=`\\${w}`),n.posix===!0&&w==="!"&&v.value==="["&&(w="^"),v.value+=w,K({value:w});continue}if(d.quotes===1&&w!=='"'){w=le.escapeRegex(w),v.value+=w,K({value:w});continue}if(w==='"'){d.quotes=d.quotes===1?0:1,n.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){Le("parens"),W({type:"paren",value:w});continue}if(w===")"){if(d.parens===0&&n.strictBrackets===!0)throw new SyntaxError(ht("opening","("));let N=g[g.length-1];if(N&&d.parens===N.parens+1){tt(g.pop());continue}W({type:"paren",value:w,output:d.parens?")":"\\)"}),he("parens");continue}if(w==="["){if(n.nobracket===!0||!$().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(ht("closing","]"));w=`\\${w}`}else Le("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(n.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(d.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(ht("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}he("brackets");let N=v.value.slice(1);if(v.posix!==!0&&N[0]==="^"&&!N.includes("/")&&(w=`/${w}`),v.value+=w,K({value:w}),n.literalBrackets===!1||le.hasRegexChars(N))continue;let Y=le.escapeRegex(v.value);if(d.output=d.output.slice(0,-v.value.length),n.literalBrackets===!0){d.output+=Y,v.value=Y;continue}v.value=`(${a}${Y}|${v.value})`,d.output+=v.value;continue}if(w==="{"&&n.nobrace!==!0){Le("braces");let N={type:"brace",value:w,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};A.push(N),W(N);continue}if(w==="}"){let N=A[A.length-1];if(n.nobrace===!0||!N){W({type:"text",value:w,output:w});continue}let Y=")";if(N.dots===!0){let J=s.slice(),oe=[];for(let Q=J.length-1;Q>=0&&(s.pop(),J[Q].type!=="brace");Q--)J[Q].type!=="dots"&&oe.unshift(J[Q].value);Y=Zh(oe,n),d.backtrack=!0}if(N.comma!==!0&&N.dots!==!0){let J=d.output.slice(0,N.outputIndex),oe=d.tokens.slice(N.tokensIndex);N.value=N.output="\\{",w=Y="\\}",d.output=J;for(let Q of oe)d.output+=Q.output||Q.value}W({type:"brace",value:w,output:Y}),he("braces"),A.pop();continue}if(w==="|"){g.length>0&&g[g.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let N=w,Y=A[A.length-1];Y&&T[T.length-1]==="braces"&&(Y.comma=!0,N="|"),W({type:"comma",value:w,output:N});continue}if(w==="/"){if(v.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",s.pop(),v=o;continue}W({type:"slash",value:w,output:m});continue}if(w==="."){if(d.braces>0&&v.type==="dot"){v.value==="."&&(v.output=f);let N=A[A.length-1];v.type="dots",v.output+=w,v.value+=w,N.dots=!0;continue}if(d.braces+d.parens===0&&v.type!=="bos"&&v.type!=="slash"){W({type:"text",value:w,output:f});continue}W({type:"dot",value:w,output:f});continue}if(w==="?"){if(!(v&&v.value==="(")&&n.noextglob!==!0&&D()==="("&&D(2)!=="?"){Te("qmark",w);continue}if(v&&v.type==="paren"){let Y=D(),J=w;if(Y==="<"&&!le.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test($()))&&(J=`\\${w}`),W({type:"text",value:w,output:J});continue}if(n.dot!==!0&&(v.type==="slash"||v.type==="bos")){W({type:"qmark",value:w,output:_});continue}W({type:"qmark",value:w,output:k});continue}if(w==="!"){if(n.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){Te("negate",w);continue}if(n.nonegate!==!0&&d.index===0){ie();continue}}if(w==="+"){if(n.noextglob!==!0&&D()==="("&&D(2)!=="?"){Te("plus",w);continue}if(v&&v.value==="("||n.regex===!1){W({type:"plus",value:w,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||d.parens>0){W({type:"plus",value:w});continue}W({type:"plus",value:p});continue}if(w==="@"){if(n.noextglob!==!0&&D()==="("&&D(2)!=="?"){W({type:"at",extglob:!0,value:w,output:""});continue}W({type:"text",value:w});continue}if(w!=="*"){(w==="$"||w==="^")&&(w=`\\${w}`);let N=zh.exec($());N&&(w+=N[0],d.index+=N[0].length),W({type:"text",value:w});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=w,v.output=C,d.backtrack=!0,d.globstar=!0,B(w);continue}let I=$();if(n.noextglob!==!0&&/^\([^?]/.test(I)){Te("star",w);continue}if(v.type==="star"){if(n.noglobstar===!0){B(w);continue}let N=v.prev,Y=N.prev,J=N.type==="slash"||N.type==="bos",oe=Y&&(Y.type==="star"||Y.type==="globstar");if(n.bash===!0&&(!J||I[0]&&I[0]!=="/")){W({type:"star",value:w,output:""});continue}let Q=d.braces>0&&(N.type==="comma"||N.type==="brace"),Ae=g.length&&(N.type==="pipe"||N.type==="paren");if(!J&&N.type!=="paren"&&!Q&&!Ae){W({type:"star",value:w,output:""});continue}for(;I.slice(0,3)==="/**";){let Se=e[d.index+4];if(Se&&Se!=="/")break;I=I.slice(3),B("/**",3)}if(N.type==="bos"&&F()){v.type="globstar",v.value+=w,v.output=S(n),d.output=v.output,d.globstar=!0,B(w);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&!oe&&F()){d.output=d.output.slice(0,-(N.output+v.output).length),N.output=`(?:${N.output}`,v.type="globstar",v.output=S(n)+(n.strictSlashes?")":"|$)"),v.value+=w,d.globstar=!0,d.output+=N.output+v.output,B(w);continue}if(N.type==="slash"&&N.prev.type!=="bos"&&I[0]==="/"){let Se=I[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(N.output+v.output).length),N.output=`(?:${N.output}`,v.type="globstar",v.output=`${S(n)}${m}|${m}${Se})`,v.value+=w,d.output+=N.output+v.output,d.globstar=!0,B(w+H()),W({type:"slash",value:"/",output:""});continue}if(N.type==="bos"&&I[0]==="/"){v.type="globstar",v.value+=w,v.output=`(?:^|${m}|${S(n)}${m})`,d.output=v.output,d.globstar=!0,B(w+H()),W({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-v.output.length),v.type="globstar",v.output=S(n),v.value+=w,d.output+=v.output,d.globstar=!0,B(w);continue}let z={type:"star",value:w,output:C};if(n.bash===!0){z.output=".*?",(v.type==="bos"||v.type==="slash")&&(z.output=x+z.output),W(z);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&n.regex===!0){z.output=w,W(z);continue}(d.index===d.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(d.output+=O,v.output+=O):n.dot===!0?(d.output+=R,v.output+=R):(d.output+=x,v.output+=x),D()!=="*"&&(d.output+=h,v.output+=h)),W(z)}for(;d.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(ht("closing","]"));d.output=le.escapeLast(d.output,"["),he("brackets")}for(;d.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(ht("closing",")"));d.output=le.escapeLast(d.output,"("),he("parens")}for(;d.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(ht("closing","}"));d.output=le.escapeLast(d.output,"{"),he("braces")}if(n.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${m}?`}),d.backtrack===!0){d.output="";for(let I of d.tokens)d.output+=I.output!=null?I.output:I.value,I.suffix&&(d.output+=I.suffix)}return d};Cr.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(gn,n.maxLength):gn,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=Ya[e]||e;let o=le.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:h}=Mt.globChars(o),y=n.dot?f:c,E=n.dot?p:c,O=n.capture?"":"?:",R={negated:!1,prefix:""},k=n.bash===!0?".*?":m;n.capture&&(k=`(${k})`);let _=x=>x.noglobstar===!0?k:`(${O}(?:(?!${h}${x.dot?l:s}).)*?)`,P=x=>{switch(x){case"*":return`${y}${u}${k}`;case".*":return`${s}${u}${k}`;case"*.*":return`${y}${k}${s}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${E}${k}`;case"**":return y+_(n);case"**/*":return`(?:${y}${_(n)}${a})?${E}${u}${k}`;case"**/*.*":return`(?:${y}${_(n)}${a})?${E}${k}${s}${u}${k}`;case"**/.*":return`(?:${y}${_(n)}${a})?${s}${u}${k}`;default:{let b=/^(.*?)\.(\w+)$/.exec(x);if(!b)return;let C=P(b[1]);return C?C+s+b[2]:void 0}}},L=le.removePrefix(e,R),S=P(L);return S&&n.strictSlashes!==!0&&(S+=`${a}?`),S};Ja.exports=Cr});var Qa=M((Zm,za)=>{"use strict";var od=require("path"),sd=Wa(),Pr=Xa(),Lr=It(),ad=Nt(),ud=e=>e&&typeof e=="object"&&!Array.isArray(e),te=(e,t,n=!1)=>{if(Array.isArray(e)){let c=e.map(p=>te(p,t,n));return p=>{for(let m of c){let h=m(p);if(h)return h}return!1}}let r=ud(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},o=Lr.isWindows(t),s=r?te.compileRe(e,t):te.makeRe(e,t,!1,!0),a=s.state;delete s.state;let u=()=>!1;if(i.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=te(i.ignore,c,n)}let l=(c,f=!1)=>{let{isMatch:p,match:m,output:h}=te.test(c,s,t,{glob:e,posix:o}),y={glob:e,state:a,regex:s,posix:o,input:c,output:h,match:m,isMatch:p};return typeof i.onResult=="function"&&i.onResult(y),p===!1?(y.isMatch=!1,f?y:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return n&&(l.state=a),l};te.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=n||{},s=o.format||(i?Lr.toPosixSlashes:null),a=e===r,u=a&&s?s(e):e;return a===!1&&(u=s?s(e):e,a=u===r),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=te.matchBase(e,t,n,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};te.matchBase=(e,t,n,r=Lr.isWindows(n))=>(t instanceof RegExp?t:te.makeRe(t,n)).test(od.basename(e));te.isMatch=(e,t,n)=>te(t,n)(e);te.parse=(e,t)=>Array.isArray(e)?e.map(n=>te.parse(n,t)):Pr(e,{...t,fastpaths:!1});te.scan=(e,t)=>sd(e,t);te.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},o=i.contains?"":"^",s=i.contains?"":"$",a=`${o}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=te.toRegex(a,t);return r===!0&&(u.state=e),u};te.makeRe=(e,t={},n=!1,r=!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=Pr.fastpaths(e,t)),i.output||(i=Pr(e,t)),te.compileRe(i,t,n,r)};te.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};te.constants=ad;za.exports=te});var eu=M((e0,Za)=>{"use strict";Za.exports=Qa()});var su=M((t0,ou)=>{"use strict";var nu=require("util"),ru=La(),_e=eu(),Nr=It(),tu=e=>e===""||e==="./",iu=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Z=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,o=new Set,s=0,a=c=>{o.add(c.output),n&&n.onResult&&n.onResult(c)};for(let c=0;c<t.length;c++){let f=_e(String(t[c]),{...n,onResult:a},!0),p=f.state.negated||f.state.negatedExtglob;p&&s++;for(let m of e){let h=f(m,!0);(p?!h.isMatch:h.isMatch)&&(p?r.add(h.output):(r.delete(h.output),i.add(h.output)))}}let l=(s===t.length?[...o]:[...i]).filter(c=>!r.has(c));if(n&&l.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(c=>c.replace(/\\/g,"")):t}return l};Z.match=Z;Z.matcher=(e,t)=>_e(e,t);Z.isMatch=(e,t,n)=>_e(t,n)(e);Z.any=Z.isMatch;Z.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=a=>{n.onResult&&n.onResult(a),i.push(a.output)},s=new Set(Z(e,t,{...n,onResult:o}));for(let a of i)s.has(a)||r.add(a);return[...r]};Z.contains=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${nu.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>Z.contains(e,r,n));if(typeof t=="string"){if(tu(e)||tu(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Z.isMatch(e,t,{...n,contains:!0})};Z.matchKeys=(e,t,n)=>{if(!Nr.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=Z(Object.keys(e),t,n),i={};for(let o of r)i[o]=e[o];return i};Z.some=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=_e(String(i),n);if(r.some(s=>o(s)))return!0}return!1};Z.every=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=_e(String(i),n);if(!r.every(s=>o(s)))return!1}return!0};Z.all=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${nu.inspect(e)}"`);return[].concat(t).every(r=>_e(r,n)(e))};Z.capture=(e,t,n)=>{let r=Nr.isWindows(n),o=_e.makeRe(String(e),{...n,capture:!0}).exec(r?Nr.toPosixSlashes(t):t);if(o)return o.slice(1).map(s=>s===void 0?"":s)};Z.makeRe=(...e)=>_e.makeRe(...e);Z.scan=(...e)=>_e.scan(...e);Z.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let i of ru(String(r),t))n.push(_e.parse(i,t));return n};Z.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!iu(e)?[e]:ru(e,t)};Z.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Z.braces(e,{...t,expand:!0})};Z.hasBraces=iu;ou.exports=Z});var cu=M((n0,uu)=>{"use strict";var au=require("fs"),cd=su(),mn=require("path");uu.exports=ld;function ld(e){e||(e=process.cwd());let t=null,n=mn.normalize(e);do{let r=pd(n),i=fd(r);if(i){let o=mn.relative(n,e);return o===""||cd([o],i).length>0?n:null}t=n,n=mn.dirname(n)}while(n!==t);return null}function fd(e){let t=(e||{}).workspaces;return t&&t.packages||(Array.isArray(t)?t:null)}function pd(e){let t=mn.join(e,"package.json");return au.existsSync(t)?JSON.parse(au.readFileSync(t,"utf8")):null}});var Iu=M(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.sync=xt.isexe=void 0;var Pd=require("fs"),Ld=require("fs/promises"),Nd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Nu(await(0,Ld.stat)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};xt.isexe=Nd;var Id=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Nu((0,Pd.statSync)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};xt.sync=Id;var Nu=(e,t)=>e.isFile()&&Fd(e,t),Fd=(e,t)=>{let n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(n===void 0||i===void 0)throw new Error("cannot get uid or gid");let o=new Set([i,...r]),s=e.mode,a=e.uid,u=e.gid,l=parseInt("100",8),c=parseInt("010",8),f=parseInt("001",8),p=l|c;return!!(s&f||s&c&&o.has(u)||s&l&&a===n||s&p&&n===0)}});var Mu=M(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.sync=vt.isexe=void 0;var Md=require("fs"),Dd=require("fs/promises"),Hd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Fu(await(0,Dd.stat)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};vt.isexe=Hd;var jd=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Fu((0,Md.statSync)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};vt.sync=jd;var $d=(e,t)=>{let{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(r.indexOf("")!==-1)return!0;for(let i=0;i<r.length;i++){let o=r[i].toLowerCase(),s=e.substring(e.length-o.length).toLowerCase();if(o&&s===o)return!0}return!1},Fu=(e,t,n)=>e.isFile()&&$d(t,n)});var Hu=M(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0})});var Gu=M(ae=>{"use strict";var ju=ae&&ae.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qd=ae&&ae.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),$u=ae&&ae.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&ju(t,e,n);return qd(t,e),t},Ud=ae&&ae.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ju(t,e,n)};Object.defineProperty(ae,"__esModule",{value:!0});ae.sync=ae.isexe=ae.posix=ae.win32=void 0;var qu=$u(Iu());ae.posix=qu;var Uu=$u(Mu());ae.win32=Uu;Ud(Hu(),ae);var Bd=process.env._ISEXE_TEST_PLATFORM_||process.platform,Bu=Bd==="win32"?Uu:qu;ae.isexe=Bu.isexe;ae.sync=Bu.sync});var ec=M((uy,Zu)=>{var{isexe:Gd,sync:Wd}=Gu(),{join:Yd,delimiter:Vd,sep:Wu,posix:Yu}=require("path"),Vu=process.platform==="win32",Ku=new RegExp(`[${Yu.sep}${Wu===Yu.sep?"":Wu}]`.replace(/(\\)/g,"\\$1")),Kd=new RegExp(`^\\.${Ku.source}`),Ju=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Xu=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=Vd})=>{let i=e.match(Ku)?[""]:[...Vu?[process.cwd()]:[],...(t||"").split(r)];if(Vu){let o=n||[".EXE",".CMD",".BAT",".COM"].join(r),s=o.split(r).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:o}}return{pathEnv:i,pathExt:[""]}},zu=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&Kd.test(t)?t.slice(0,2):"")+Yd(n,t)},Qu=async(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Xu(e,t),o=[];for(let s of n){let a=zu(s,e);for(let u of r){let l=a+u;if(await Gd(l,{pathExt:i,ignoreErrors:!0})){if(!t.all)return l;o.push(l)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Ju(e)},Jd=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Xu(e,t),o=[];for(let s of n){let a=zu(s,e);for(let u of r){let l=a+u;if(Wd(l,{pathExt:i,ignoreErrors:!0})){if(!t.all)return l;o.push(l)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Ju(e)};Zu.exports=Qu;Qu.sync=Jd});var rg={};uc(rg,{activate:()=>Xd,deactivate:()=>ng});module.exports=cc(rg);var Rn=me(Ur()),X=me(require("vscode"));function wt(e,t=!1){let n=e.length,r=0,i="",o=0,s=16,a=0,u=0,l=0,c=0,f=0;function p(k,_){let P=0,L=0;for(;P<k||!_;){let S=e.charCodeAt(r);if(S>=48&&S<=57)L=L*16+S-48;else if(S>=65&&S<=70)L=L*16+S-65+10;else if(S>=97&&S<=102)L=L*16+S-97+10;else break;r++,P++}return P<k&&(L=-1),L}function m(k){r=k,i="",o=0,s=16,f=0}function h(){let k=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&nt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&nt(e.charCodeAt(r)))for(r++;r<e.length&&nt(e.charCodeAt(r));)r++;else return f=3,e.substring(k,r);let _=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&nt(e.charCodeAt(r))){for(r++;r<e.length&&nt(e.charCodeAt(r));)r++;_=r}else f=3;return e.substring(k,_)}function y(){let k="",_=r;for(;;){if(r>=n){k+=e.substring(_,r),f=2;break}let P=e.charCodeAt(r);if(P===34){k+=e.substring(_,r),r++;break}if(P===92){if(k+=e.substring(_,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:k+='"';break;case 92:k+="\\";break;case 47:k+="/";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+=`
`;break;case 114:k+="\r";break;case 116:k+=" ";break;case 117:let S=p(4,!0);S>=0?k+=String.fromCharCode(S):f=4;break;default:f=5}_=r;continue}if(P>=0&&P<=31)if(bt(P)){k+=e.substring(_,r),f=2;break}else f=6;r++}return k}function E(){if(i="",f=0,o=r,u=a,c=l,r>=n)return o=n,s=17;let k=e.charCodeAt(r);if(On(k)){do r++,i+=String.fromCharCode(k),k=e.charCodeAt(r);while(On(k));return s=15}if(bt(k))return r++,i+=String.fromCharCode(k),k===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),a++,l=r,s=14;switch(k){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=y(),s=10;case 47:let _=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!bt(e.charCodeAt(r));)r++;return i=e.substring(_,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let P=n-1,L=!1;for(;r<P;){let S=e.charCodeAt(r);if(S===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,bt(S)&&(S===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return L||(r++,f=1),i=e.substring(_,r),s=13}return i+=String.fromCharCode(k),r++,s=16;case 45:if(i+=String.fromCharCode(k),r++,r===n||!nt(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=h(),s=11;default:for(;r<n&&O(k);)r++,k=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(k),r++,s=16}}function O(k){if(On(k)||bt(k))return!1;switch(k){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function R(){let k;do k=E();while(k>=12&&k<=15);return k}return{setPosition:m,getPosition:()=>r,scan:t?R:E,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-c,getTokenError:()=>f}}function On(e){return e===32||e===9}function bt(e){return e===10||e===13}function nt(e){return e>=48&&e<=57}var Br;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Br||(Br={}));var Cn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Cn||(Cn={}));function Gr(e,t){let n=[],r=new Object,i,o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(u,l,c,f){o.value=u,o.offset=l,o.length=c,o.type=f,o.colonOffset=void 0,i=o}try{Pn(e,{onObjectBegin:(u,l)=>{if(t<=u)throw r;i=void 0,s=t>u,n.push("")},onObjectProperty:(u,l,c)=>{if(t<l||(a(u,l,c,"property"),n[n.length-1]=u,t<=l+c))throw r},onObjectEnd:(u,l)=>{if(t<=u)throw r;i=void 0,n.pop()},onArrayBegin:(u,l)=>{if(t<=u)throw r;i=void 0,n.push(0)},onArrayEnd:(u,l)=>{if(t<=u)throw r;i=void 0,n.pop()},onLiteralValue:(u,l,c)=>{if(t<l||(a(u,l,c,pc(u)),t<=l+c))throw r},onSeparator:(u,l,c)=>{if(t<=l)throw r;if(u===":"&&i&&i.type==="property")i.colonOffset=l,s=!1,i=void 0;else if(u===","){let f=n[n.length-1];typeof f=="number"?n[n.length-1]=f+1:(s=!0,n[n.length-1]=""),i=void 0}}})}catch(u){if(u!==r)throw u}return{path:n,previousNode:i,isAtPropertyKey:s,matches:u=>{let l=0;for(let c=0;l<u.length&&c<n.length;c++)if(u[l]===n[c]||u[l]==="*")l++;else if(u[l]!=="**")return!1;return l===u.length}}}function Pn(e,t,n=Cn.DEFAULT){let r=wt(e,!1),i=[];function o(g){return g?()=>g(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(g){return g?()=>g(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function a(g){return g?A=>g(A,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(g){return g?A=>g(A,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}let l=s(t.onObjectBegin),c=u(t.onObjectProperty),f=o(t.onObjectEnd),p=s(t.onArrayBegin),m=o(t.onArrayEnd),h=u(t.onLiteralValue),y=a(t.onSeparator),E=o(t.onComment),O=a(t.onError),R=n&&n.disallowComments,k=n&&n.allowTrailingComma;function _(){for(;;){let g=r.scan();switch(r.getTokenError()){case 4:P(14);break;case 5:P(15);break;case 3:P(13);break;case 1:R||P(11);break;case 2:P(12);break;case 6:P(16);break}switch(g){case 12:case 13:R?P(10):E();break;case 16:P(1);break;case 15:case 14:break;default:return g}}}function P(g,A=[],T=[]){if(O(g),A.length+T.length>0){let v=r.getToken();for(;v!==17;){if(A.indexOf(v)!==-1){_();break}else if(T.indexOf(v)!==-1)break;v=_()}}}function L(g){let A=r.getTokenValue();return g?h(A):(c(A),i.push(A)),_(),!0}function S(){switch(r.getToken()){case 11:let g=r.getTokenValue(),A=Number(g);isNaN(A)&&(P(2),A=0),h(A);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return _(),!0}function x(){return r.getToken()!==10?(P(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(y(":"),_(),d()||P(4,[],[2,5])):P(5,[],[2,5]),i.pop(),!0)}function b(){l(),_();let g=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(g||P(4,[],[]),y(","),_(),r.getToken()===2&&k)break}else g&&P(6,[],[]);x()||P(4,[],[2,5]),g=!0}return f(),r.getToken()!==2?P(7,[2],[]):_(),!0}function C(){p(),_();let g=!0,A=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(A||P(4,[],[]),y(","),_(),r.getToken()===4&&k)break}else A&&P(6,[],[]);g?(i.push(0),g=!1):i[i.length-1]++,d()||P(4,[],[4,5]),A=!0}return m(),g||i.pop(),r.getToken()!==4?P(8,[4],[]):_(),!0}function d(){switch(r.getToken()){case 3:return C();case 1:return b();case 10:return L(!0);default:return S()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(P(4,[],[]),!1):d()?(r.getToken()!==17&&P(9,[],[]),!0):(P(4,[],[]),!1)}function pc(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var Yr=wt,Bt;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Bt||(Bt={}));var He;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(He||(He={}));var Ln=Gr;var Vr=Pn;var Wr;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Wr||(Wr={}));var V=require("vscode"),Qr=require("path");var q=require("vscode"),Nn=60,In=Nn*60,At=In*24,Kr=At*7,Jr=At*30,Xr=At*365;function Fn(e,t,n,r){typeof e!="number"&&(e=e.getTime());let i=Math.round((new Date().getTime()-e)/1e3);if(i<-30)return q.l10n.t("in {0}",Fn(new Date().getTime()+i*1e3,!1));if(!r&&i<30)return q.l10n.t("now");let o;return i<Nn?(o=i,t?o===1?n?q.l10n.t("{0} second ago",o):q.l10n.t("{0} sec ago",o):n?q.l10n.t("{0} seconds ago",o):q.l10n.t("{0} secs ago",o):o===1?n?q.l10n.t("{0} second",o):q.l10n.t("{0} sec",o):n?q.l10n.t("{0} seconds",o):q.l10n.t("{0} secs",o)):i<In?(o=Math.floor(i/Nn),t?o===1?n?q.l10n.t("{0} minute ago",o):q.l10n.t("{0} min ago",o):n?q.l10n.t("{0} minutes ago",o):q.l10n.t("{0} mins ago",o):o===1?n?q.l10n.t("{0} minute",o):q.l10n.t("{0} min",o):n?q.l10n.t("{0} minutes",o):q.l10n.t("{0} mins",o)):i<At?(o=Math.floor(i/In),t?o===1?n?q.l10n.t("{0} hour ago",o):q.l10n.t("{0} hr ago",o):n?q.l10n.t("{0} hours ago",o):q.l10n.t("{0} hrs ago",o):o===1?n?q.l10n.t("{0} hour",o):q.l10n.t("{0} hr",o):n?q.l10n.t("{0} hours",o):q.l10n.t("{0} hrs",o)):i<Kr?(o=Math.floor(i/At),t?o===1?q.l10n.t("{0} day ago",o):q.l10n.t("{0} days ago",o):o===1?q.l10n.t("{0} day",o):q.l10n.t("{0} days",o)):i<Jr?(o=Math.floor(i/Kr),t?o===1?n?q.l10n.t("{0} week ago",o):q.l10n.t("{0} wk ago",o):n?q.l10n.t("{0} weeks ago",o):q.l10n.t("{0} wks ago",o):o===1?n?q.l10n.t("{0} week",o):q.l10n.t("{0} wk",o):n?q.l10n.t("{0} weeks",o):q.l10n.t("{0} wks",o)):i<Xr?(o=Math.floor(i/Jr),t?o===1?n?q.l10n.t("{0} month ago",o):q.l10n.t("{0} mo ago",o):n?q.l10n.t("{0} months ago",o):q.l10n.t("{0} mos ago",o):o===1?n?q.l10n.t("{0} month",o):q.l10n.t("{0} mo",o):n?q.l10n.t("{0} months",o):q.l10n.t("{0} mos",o)):(o=Math.floor(i/Xr),t?o===1?n?q.l10n.t("{0} year ago",o):q.l10n.t("{0} yr ago",o):n?q.l10n.t("{0} years ago",o):q.l10n.t("{0} yrs ago",o):o===1?n?q.l10n.t("{0} year",o):q.l10n.t("{0} yr",o):n?q.l10n.t("{0} years",o):q.l10n.t("{0} yrs",o))}function zr(e){try{let t=JSON.parse(e),n=Array.isArray(t)?t[0]:t,r=n["dist-tags.latest"]||n.version;return{description:n.description??"",version:r,time:r?n.time?.[r]:void 0,homepage:n.homepage}}catch{return}}var xc=40,Mn="Visual Studio Code",Gt=class{constructor(t,n){this.xhr=t;this.npmCommandPath=n}xhr;npmCommandPath;mostDependedOn=["lodash","async","underscore","request","commander","express","debug","chalk","colors","q","coffee-script","mkdirp","optimist","through2","yeoman-generator","moment","bluebird","glob","gulp-util","minimist","cheerio","pug","redis","node-uuid","socket","io","uglify-js","winston","through","fs-extra","handlebars","body-parser","rimraf","mime","semver","mongodb","jquery","grunt","connect","yosay","underscore","string","xml2js","ejs","mongoose","marked","extend","mocha","superagent","js-yaml","xtend","shelljs","gulp","yargs","browserify","minimatch","react","less","prompt","inquirer","ws","event-stream","inherits","mysql","esprima","jsdom","stylus","when","readable-stream","aws-sdk","concat-stream","chai","Thenable","wrench"];knownScopes=["@types","@angular","@babel","@nuxtjs","@vue","@bazel"];getDocumentSelector(){return[{language:"json",scheme:"*",pattern:"**/package.json"}]}collectDefaultSuggestions(t,n){let r={name:"${1:name}",description:"${2:description}",authors:"${3:author}",version:"${4:1.0.0}",main:"${5:pathToMain}",dependencies:{}},i=new V.CompletionItem(V.l10n.t("Default package.json"));return i.kind=V.CompletionItemKind.Module,i.insertText=new V.SnippetString(JSON.stringify(r,null," ")),n.add(i),Promise.resolve(null)}isEnabled(){return this.npmCommandPath||this.onlineEnabled()}onlineEnabled(){return!!V.workspace.getConfiguration("npm").get("fetchOnlinePackageInfo")}collectPropertySuggestions(t,n,r,i,o,s){if(!this.isEnabled())return null;if(n.matches(["dependencies"])||n.matches(["devDependencies"])||n.matches(["optionalDependencies"])||n.matches(["peerDependencies"])||n.matches(["catalog"])){let a;if(r.length>0){if(r[0]==="@"){if(r.indexOf("/")!==-1)return this.collectScopedPackages(r,i,o,s);for(let u of this.knownScopes){let l=new V.CompletionItem(u);l.kind=V.CompletionItemKind.Property,l.insertText=new V.SnippetString().appendText(`"${u}/`).appendTabstop().appendText('"'),l.filterText=JSON.stringify(u),l.documentation="",l.command={title:"",command:"editor.action.triggerSuggest"},s.add(l)}s.setAsIncomplete()}return a=`https://registry.npmjs.org/-/v1/search?size=${xc}&text=${encodeURIComponent(r)}`,this.xhr({url:a,headers:{agent:Mn}}).then(u=>{if(u.status===200){try{let l=JSON.parse(u.responseText);if(l&&l.objects&&Array.isArray(l.objects)){let c=l.objects;for(let f of c)this.processPackage(f.package,i,o,s)}}catch{}s.setAsIncomplete()}else return s.error(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0},u=>(s.error(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0))}else return this.mostDependedOn.forEach(u=>{let l=new V.SnippetString().appendText(JSON.stringify(u));i&&(l.appendText(': "').appendTabstop().appendText('"'),o||l.appendText(","));let c=new V.CompletionItem(u);c.kind=V.CompletionItemKind.Property,c.insertText=l,c.filterText=JSON.stringify(u),c.documentation="",s.add(c)}),this.collectScopedPackages(r,i,o,s),s.setAsIncomplete(),Promise.resolve(null)}return null}collectScopedPackages(t,n,r,i){let o=t.split("/");if(o.length===2&&o[0].length>1){let s=o[0].substr(1),a=o[1];a.length<4&&(a="");let u=`https://registry.npmjs.com/-/v1/search?text=scope:${s}%20${a}&size=250`;return this.xhr({url:u,headers:{agent:Mn}}).then(l=>{if(l.status===200){try{let c=JSON.parse(l.responseText);if(c&&Array.isArray(c.objects)){let f=c.objects;for(let p of f)this.processPackage(p.package,n,r,i)}}catch{}i.setAsIncomplete()}else i.error(V.l10n.t("Request to the NPM repository failed: {0}",l.responseText));return null})}return Promise.resolve(null)}async collectValueSuggestions(t,n,r){if(!this.isEnabled())return null;if(n.matches(["dependencies","*"])||n.matches(["devDependencies","*"])||n.matches(["optionalDependencies","*"])||n.matches(["peerDependencies","*"])||n.matches(["catalog","*"])){let i=n.path[n.path.length-1];if(typeof i=="string"){let o=await this.fetchPackageInfo(i,t);if(o&&o.version){let s=JSON.stringify(o.version),a=new V.CompletionItem(s);a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("The currently latest version of the package"),r.add(a),s=JSON.stringify("^"+o.version),a=new V.CompletionItem(s),a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("Matches the most recent major version (1.x.x)"),r.add(a),s=JSON.stringify("~"+o.version),a=new V.CompletionItem(s),a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("Matches the most recent minor version (1.2.x)"),r.add(a)}}}return null}getDocumentation(t,n,r,i,o){let s=new V.MarkdownString;return t&&s.appendText(t),n&&(s.appendText(`
`),s.appendText(r?V.l10n.t("Latest version: {0} published {1}",n,Fn(Date.parse(r),!0,!0)):V.l10n.t("Latest version: {0}",n))),o&&(s.appendText(`
`),s.appendText(V.l10n.t("Installed version: {0}",o))),i&&(s.appendText(`
`),s.appendText(i)),s}resolveSuggestion(t,n){if(n.kind===V.CompletionItemKind.Property&&!n.documentation){let r=n.label;return typeof r!="string"&&(r=r.label),this.fetchPackageInfo(r,t).then(i=>i?(n.documentation=this.getDocumentation(i.description,i.version,i.time,i.homepage,i.installedVersion),n):null)}return null}isValidNPMName(t){if(!t||t.length>214||t.match(/^[-_.\s]/))return!1;let n=t.match(/^(?:@([^/~\s)('!*]+?)[/])?([^/~)('!*\s]+?)$/);if(n){let r=n[1];if(r&&encodeURIComponent(r)!==r)return!1;let i=n[2];return encodeURIComponent(i)===i}return!1}async fetchPackageInfo(t,n){if(!this.isValidNPMName(t))return;let r,i;return this.npmCommandPath&&([r,i]=await Promise.all([this.npmView(this.npmCommandPath,t,n),this.npmListInstalledVersion(this.npmCommandPath,t,n)])),!r&&this.onlineEnabled()&&(r=await this.npmjsView(t)),i&&(r=r??{description:""},r.installedVersion=i),r}async runNpmCommand(t,n,r){let i=await import("child_process");return new Promise((o,s)=>{let a=r&&r.scheme==="file"?(0,Qr.dirname)(r.fsPath):void 0,u={...process.env,COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"},l={cwd:a,env:u},c=t;process.platform==="win32"&&(l={cwd:a,env:u,shell:!0},c=`"${t}"`),i.execFile(c,n,l,(f,p)=>{o(f?void 0:p.toString())})})}async npmView(t,n,r){let i=["view","--json","--",n,"description","dist-tags.latest","homepage","version","time"],o=await this.runNpmCommand(t,i,r);return o?zr(o):void 0}async npmjsView(t){let n="https://registry.npmjs.org/"+encodeURIComponent(t);try{let r=await this.xhr({url:n,headers:{agent:Mn}}),i=JSON.parse(r.responseText),o=i["dist-tags"]?.latest||Object.keys(i.versions).pop()||"";return{description:i.description||"",version:o,time:i.time?.[o],homepage:i.homepage||""}}catch{}}async npmListInstalledVersion(t,n,r){let i=["ls","--json","--depth=0","--",n],o=await this.runNpmCommand(t,i,r);if(o)try{let a=JSON.parse(o)?.dependencies?.[n]?.version;return typeof a=="string"?a:void 0}catch{}}getInfoContribution(t,n){if(!this.isEnabled())return null;if(n.matches(["dependencies","*"])||n.matches(["devDependencies","*"])||n.matches(["optionalDependencies","*"])||n.matches(["peerDependencies","*"])||n.matches(["catalog","*"])){let r=n.path[n.path.length-1];if(typeof r=="string")return this.fetchPackageInfo(r,t).then(i=>i?[this.getDocumentation(i.description,i.version,i.time,i.homepage,i.installedVersion)]:null)}return null}processPackage(t,n,r,i){if(t&&t.name){let o=t.name,s=new V.SnippetString().appendText(JSON.stringify(o));n&&(s.appendText(': "'),t.version?s.appendVariable("version",t.version):s.appendTabstop(),s.appendText('"'),r||s.appendText(","));let a=new V.CompletionItem(o);a.kind=V.CompletionItemKind.Property,a.insertText=s,a.filterText=JSON.stringify(o),a.documentation=this.getDocumentation(t.description,t.version,void 0,t?.links?.homepage,void 0),i.add(a)}}};var ve=require("vscode");function Zr(e,t){let n=[new Gt(e,t)],r=[];return n.forEach(i=>{let o=i.getDocumentSelector();r.push(ve.languages.registerCompletionItemProvider(o,new Hn(i),'"',":")),r.push(ve.languages.registerHoverProvider(o,new Dn(i)))}),ve.Disposable.from(...r)}var Dn=class{constructor(t){this.jsonContribution=t}jsonContribution;provideHover(t,n,r){let i=t.offsetAt(n),o=Ln(t.getText(),i);if(!o.previousNode)return null;let s=o.previousNode;if(s&&s.offset<=i&&i<=s.offset+s.length){let a=this.jsonContribution.getInfoContribution(t.uri,o);if(a)return a.then(u=>{let l=new ve.Range(t.positionAt(s.offset),t.positionAt(s.offset+s.length));return{contents:u||[],range:l}})}return null}},Hn=class{constructor(t){this.jsonContribution=t}jsonContribution;lastResource;resolveCompletionItem(t,n){if(this.jsonContribution.resolveSuggestion){let r=this.jsonContribution.resolveSuggestion(this.lastResource,t);if(r)return r}return Promise.resolve(t)}provideCompletionItems(t,n,r){this.lastResource=t.uri;let i=this.getCurrentWord(t,n),o,s=[],a=!1,u=t.offsetAt(n),l=Ln(t.getText(),u),c=l.previousNode;c&&c.offset<=u&&u<=c.offset+c.length&&(c.type==="property"||c.type==="string"||c.type==="number"||c.type==="boolean"||c.type==="null")?o=new ve.Range(t.positionAt(c.offset),t.positionAt(c.offset+c.length)):o=new ve.Range(t.positionAt(u-i.length),n);let f={},p={add:h=>{let y=typeof h.label=="string"?h.label:h.label.label;f[y]||(f[y]=!0,h.range={replacing:o,inserting:new ve.Range(o.start,o.start)},s.push(h))},setAsIncomplete:()=>a=!0,error:h=>console.error(h),log:h=>console.log(h)},m=null;if(l.isAtPropertyKey){let h=Yr(t.getText(),!0),y=!l.previousNode||!this.hasColonAfter(h,l.previousNode.offset+l.previousNode.length),E=this.isLast(h,t.offsetAt(n));m=this.jsonContribution.collectPropertySuggestions(t.uri,l,i,y,E,p)}else l.path.length===0?m=this.jsonContribution.collectDefaultSuggestions(t.uri,p):m=this.jsonContribution.collectValueSuggestions(t.uri,l,p);return m?m.then(()=>s.length>0||a?new ve.CompletionList(s,a):null):null}getCurrentWord(t,n){let r=n.character-1,i=t.lineAt(n.line).text;for(;r>=0&&`
\r\v":{[,`.indexOf(i.charAt(r))===-1;)r--;return i.substring(r+1,n.character)}isLast(t,n){t.setPosition(n);let r=t.scan();return r===He.StringLiteral&&t.getTokenError()===Bt.UnexpectedEndOfString&&(r=t.scan()),r===He.CloseBraceToken||r===He.EOF}hasColonAfter(t,n){return t.setPosition(n),t.scan()===He.ColonToken}};var Pe=me(require("vscode"));var j=require("vscode"),mt=me(require("path")),gu=me(require("fs")),mu=me(vi());var bi;(()=>{"use strict";var e={470:i=>{function o(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function s(u,l){for(var c,f="",p=0,m=-1,h=0,y=0;y<=u.length;++y){if(y<u.length)c=u.charCodeAt(y);else{if(c===47)break;c=47}if(c===47){if(!(m===y-1||h===1))if(m!==y-1&&h===2){if(f.length<2||p!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var E=f.lastIndexOf("/");if(E!==f.length-1){E===-1?(f="",p=0):p=(f=f.slice(0,E)).length-1-f.lastIndexOf("/"),m=y,h=0;continue}}else if(f.length===2||f.length===1){f="",p=0,m=y,h=0;continue}}l&&(f.length>0?f+="/..":f="..",p=2)}else f.length>0?f+="/"+u.slice(m+1,y):f=u.slice(m+1,y),p=y-m-1;m=y,h=0}else c===46&&h!==-1?++h:h=-1}return f}var a={resolve:function(){for(var u,l="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var p;f>=0?p=arguments[f]:(u===void 0&&(u=process.cwd()),p=u),o(p),p.length!==0&&(l=p+"/"+l,c=p.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(u){if(o(u),u.length===0)return".";var l=u.charCodeAt(0)===47,c=u.charCodeAt(u.length-1)===47;return(u=s(u,!l)).length!==0||l||(u="."),u.length>0&&c&&(u+="/"),l?"/"+u:u},isAbsolute:function(u){return o(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,l=0;l<arguments.length;++l){var c=arguments[l];o(c),c.length>0&&(u===void 0?u=c:u+="/"+c)}return u===void 0?".":a.normalize(u)},relative:function(u,l){if(o(u),o(l),u===l||(u=a.resolve(u))===(l=a.resolve(l)))return"";for(var c=1;c<u.length&&u.charCodeAt(c)===47;++c);for(var f=u.length,p=f-c,m=1;m<l.length&&l.charCodeAt(m)===47;++m);for(var h=l.length-m,y=p<h?p:h,E=-1,O=0;O<=y;++O){if(O===y){if(h>y){if(l.charCodeAt(m+O)===47)return l.slice(m+O+1);if(O===0)return l.slice(m+O)}else p>y&&(u.charCodeAt(c+O)===47?E=O:O===0&&(E=0));break}var R=u.charCodeAt(c+O);if(R!==l.charCodeAt(m+O))break;R===47&&(E=O)}var k="";for(O=c+E+1;O<=f;++O)O!==f&&u.charCodeAt(O)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+l.slice(m+E):(m+=E,l.charCodeAt(m)===47&&++m,l.slice(m))},_makeLong:function(u){return u},dirname:function(u){if(o(u),u.length===0)return".";for(var l=u.charCodeAt(0),c=l===47,f=-1,p=!0,m=u.length-1;m>=1;--m)if((l=u.charCodeAt(m))===47){if(!p){f=m;break}}else p=!1;return f===-1?c?"/":".":c&&f===1?"//":u.slice(0,f)},basename:function(u,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');o(u);var c,f=0,p=-1,m=!0;if(l!==void 0&&l.length>0&&l.length<=u.length){if(l.length===u.length&&l===u)return"";var h=l.length-1,y=-1;for(c=u.length-1;c>=0;--c){var E=u.charCodeAt(c);if(E===47){if(!m){f=c+1;break}}else y===-1&&(m=!1,y=c+1),h>=0&&(E===l.charCodeAt(h)?--h==-1&&(p=c):(h=-1,p=y))}return f===p?p=y:p===-1&&(p=u.length),u.slice(f,p)}for(c=u.length-1;c>=0;--c)if(u.charCodeAt(c)===47){if(!m){f=c+1;break}}else p===-1&&(m=!1,p=c+1);return p===-1?"":u.slice(f,p)},extname:function(u){o(u);for(var l=-1,c=0,f=-1,p=!0,m=0,h=u.length-1;h>=0;--h){var y=u.charCodeAt(h);if(y!==47)f===-1&&(p=!1,f=h+1),y===46?l===-1?l=h:m!==1&&(m=1):l!==-1&&(m=-1);else if(!p){c=h+1;break}}return l===-1||f===-1||m===0||m===1&&l===f-1&&l===c+1?"":u.slice(l,f)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return(function(l,c){var f=c.dir||c.root,p=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+p:f+"/"+p:p})(0,u)},parse:function(u){o(u);var l={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return l;var c,f=u.charCodeAt(0),p=f===47;p?(l.root="/",c=1):c=0;for(var m=-1,h=0,y=-1,E=!0,O=u.length-1,R=0;O>=c;--O)if((f=u.charCodeAt(O))!==47)y===-1&&(E=!1,y=O+1),f===46?m===-1?m=O:R!==1&&(R=1):m!==-1&&(R=-1);else if(!E){h=O+1;break}return m===-1||y===-1||R===0||R===1&&m===y-1&&m===h+1?y!==-1&&(l.base=l.name=h===0&&p?u.slice(1,y):u.slice(h,y)):(h===0&&p?(l.name=u.slice(1,m),l.base=u.slice(1,y)):(l.name=u.slice(h,m),l.base=u.slice(h,y)),l.ext=u.slice(m,y)),h>0?l.dir=u.slice(0,h-1):p&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>p,Utils:()=>C}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function u(d,g){if(!d.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${d.authority}", path: "${d.path}", query: "${d.query}", fragment: "${d.fragment}"}`);if(d.scheme&&!o.test(d.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(d.path){if(d.authority){if(!s.test(d.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(d.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static isUri(g){return g instanceof p||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}scheme;authority;path;query;fragment;constructor(g,A,T,v,w,F=!1){typeof g=="object"?(this.scheme=g.scheme||l,this.authority=g.authority||l,this.path=g.path||l,this.query=g.query||l,this.fragment=g.fragment||l):(this.scheme=(function(D,H){return D||H?D:"file"})(g,F),this.authority=A||l,this.path=(function(D,H){switch(D){case"https":case"http":case"file":H?H[0]!==c&&(H=c+H):H=c}return H})(this.scheme,T||l),this.query=v||l,this.fragment=w||l,u(this,F))}get fsPath(){return R(this,!1)}with(g){if(!g)return this;let{scheme:A,authority:T,path:v,query:w,fragment:F}=g;return A===void 0?A=this.scheme:A===null&&(A=l),T===void 0?T=this.authority:T===null&&(T=l),v===void 0?v=this.path:v===null&&(v=l),w===void 0?w=this.query:w===null&&(w=l),F===void 0?F=this.fragment:F===null&&(F=l),A===this.scheme&&T===this.authority&&v===this.path&&w===this.query&&F===this.fragment?this:new h(A,T,v,w,F)}static parse(g,A=!1){let T=f.exec(g);return T?new h(T[2]||l,L(T[4]||l),L(T[5]||l),L(T[7]||l),L(T[9]||l),A):new h(l,l,l,l,l)}static file(g){let A=l;if(i&&(g=g.replace(/\\/g,c)),g[0]===c&&g[1]===c){let T=g.indexOf(c,2);T===-1?(A=g.substring(2),g=c):(A=g.substring(2,T),g=g.substring(T)||c)}return new h("file",A,g,l,l)}static from(g){let A=new h(g.scheme,g.authority,g.path,g.query,g.fragment);return u(A,!0),A}toString(g=!1){return k(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof p)return g;{let A=new h(g);return A._formatted=g.external,A._fsPath=g._sep===m?g.fsPath:null,A}}return g}}let m=i?1:void 0;class h extends p{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=R(this,!1)),this._fsPath}toString(g=!1){return g?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)}toJSON(){let g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=m),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(d,g,A){let T,v=-1;for(let w=0;w<d.length;w++){let F=d.charCodeAt(w);if(F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===45||F===46||F===95||F===126||g&&F===47||A&&F===91||A&&F===93||A&&F===58)v!==-1&&(T+=encodeURIComponent(d.substring(v,w)),v=-1),T!==void 0&&(T+=d.charAt(w));else{T===void 0&&(T=d.substr(0,w));let D=y[F];D!==void 0?(v!==-1&&(T+=encodeURIComponent(d.substring(v,w)),v=-1),T+=D):v===-1&&(v=w)}}return v!==-1&&(T+=encodeURIComponent(d.substring(v))),T!==void 0?T:d}function O(d){let g;for(let A=0;A<d.length;A++){let T=d.charCodeAt(A);T===35||T===63?(g===void 0&&(g=d.substr(0,A)),g+=y[T]):g!==void 0&&(g+=d[A])}return g!==void 0?g:d}function R(d,g){let A;return A=d.authority&&d.path.length>1&&d.scheme==="file"?`//${d.authority}${d.path}`:d.path.charCodeAt(0)===47&&(d.path.charCodeAt(1)>=65&&d.path.charCodeAt(1)<=90||d.path.charCodeAt(1)>=97&&d.path.charCodeAt(1)<=122)&&d.path.charCodeAt(2)===58?g?d.path.substr(1):d.path[1].toLowerCase()+d.path.substr(2):d.path,i&&(A=A.replace(/\//g,"\\")),A}function k(d,g){let A=g?O:E,T="",{scheme:v,authority:w,path:F,query:D,fragment:H}=d;if(v&&(T+=v,T+=":"),(w||v==="file")&&(T+=c,T+=c),w){let $=w.indexOf("@");if($!==-1){let B=w.substr(0,$);w=w.substr($+1),$=B.lastIndexOf(":"),$===-1?T+=A(B,!1,!1):(T+=A(B.substr(0,$),!1,!1),T+=":",T+=A(B.substr($+1),!1,!0)),T+="@"}w=w.toLowerCase(),$=w.lastIndexOf(":"),$===-1?T+=A(w,!1,!0):(T+=A(w.substr(0,$),!1,!0),T+=w.substr($))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){let $=F.charCodeAt(1);$>=65&&$<=90&&(F=`/${String.fromCharCode($+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){let $=F.charCodeAt(0);$>=65&&$<=90&&(F=`${String.fromCharCode($+32)}:${F.substr(2)}`)}T+=A(F,!0,!1)}return D&&(T+="?",T+=A(D,!1,!1)),H&&(T+="#",T+=g?H:E(H,!1,!1)),T}function _(d){try{return decodeURIComponent(d)}catch{return d.length>3?d.substr(0,3)+_(d.substr(3)):d}}let P=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(d){return d.match(P)?d.replace(P,(g=>_(g))):d}var S=n(470);let x=S.posix||S,b="/";var C;(function(d){d.joinPath=function(g,...A){return g.with({path:x.join(g.path,...A)})},d.resolvePath=function(g,...A){let T=g.path,v=!1;T[0]!==b&&(T=b+T,v=!0);let w=x.resolve(T,...A);return v&&w[0]===b&&!g.authority&&(w=w.substring(1)),g.with({path:w})},d.dirname=function(g){if(g.path.length===0||g.path===b)return g;let A=x.dirname(g.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),g.with({path:A})},d.basename=function(g){return x.basename(g.path)},d.extname=function(g){return x.extname(g.path)}})(C||(C={}))})(),bi=r})();var{URI:Vg,Utils:Kn}=bi;var lu=me(Mi()),Je=me(require("path")),fu=me(Xs()),yn=require("vscode"),hd=cu();async function dt(e){try{await yn.workspace.fs.stat(yn.Uri.file(e))}catch{return!1}return!0}async function dd(e){return await dt(Je.join(e,"bun.lockb"))?{isPreferred:!0,hasLockfile:!0}:await dt(Je.join(e,"bun.lock"))?{isPreferred:!0,hasLockfile:!0}:{isPreferred:!1,hasLockfile:!1}}async function gd(e){return await dt(Je.join(e,"pnpm-lock.yaml"))?{isPreferred:!0,hasLockfile:!0}:await dt(Je.join(e,"shrinkwrap.yaml"))?{isPreferred:!0,hasLockfile:!0}:await(0,lu.default)("pnpm-lock.yaml",{cwd:e})?{isPreferred:!0,hasLockfile:!0}:{isPreferred:!1,hasLockfile:!1}}async function md(e){if(await dt(Je.join(e,"yarn.lock")))return{isPreferred:!0,hasLockfile:!0};try{if(typeof hd(e)=="string")return{isPreferred:!0,hasLockfile:!1}}catch{}return{isPreferred:!1,hasLockfile:!1}}async function yd(e){let t=await dt(Je.join(e,"package-lock.json"));return{isPreferred:t,hasLockfile:t}}async function pu(e){let t=[],n=[],r=await yd(e);r.isPreferred&&(t.push("npm"),n.push(r));let i=await gd(e);i.isPreferred&&(t.push("pnpm"),n.push(i));let o=await md(e);o.isPreferred&&(t.push("yarn"),n.push(o));let s=await dd(e);s.isPreferred&&(t.push("bun"),n.push(s));let a=await(0,fu.default)(e);a&&!t.includes(a.name)&&(t.push(a.name),n.push({isPreferred:!0,hasLockfile:!1}));let u=0;return n.forEach(l=>u+=l.hasLockfile?1:0),{name:t[0]||"npm",multipleLockFilesDetected:u>1}}var gt=require("vscode"),Ce=(e,t=e.getText())=>{let n,r,i=!1,o,s=0,a=[];if(Vr(t,{onError(){},onObjectBegin(){s++},onObjectEnd(l){i&&(r=e.positionAt(l),i=!1),s--},onLiteralValue(l,c,f){o&&typeof l=="string"&&(a.push({...o,value:l,valueRange:new gt.Range(e.positionAt(c),e.positionAt(c+f))}),o=void 0)},onObjectProperty(l,c,f){s===1&&l==="scripts"?(i=!0,n=e.positionAt(c)):i&&(o={name:l,nameRange:new gt.Range(e.positionAt(c),e.positionAt(c+f))})}}),n!==void 0)return{location:new gt.Location(e.uri,new gt.Range(n,r??n)),scripts:a}};function hu(e,t){return/\]\(|command:/i.test(e)?t:e}var yu=new RegExp("^(node_modules|.vscode-test)$","i"),xn,Xe="install",vn=class{constructor(t){this.context=t}context;get tasksWithLocation(){return du(this.context,!1)}async provideTasks(){return(await du(this.context,!0)).map(n=>n.task)}async resolveTask(t){if(t.definition.script){let r=t.definition,i;if(t.scope===void 0||t.scope===j.TaskScope.Global||t.scope===j.TaskScope.Workspace)return;r.path?i=t.scope.uri.with({path:t.scope.uri.path+"/"+r.path+`${r.path.endsWith("/")?"":"/"}package.json`}):i=t.scope.uri.with({path:t.scope.uri.path+"/package.json"});let o;return r.script===Xe?o=await An(this.context,t.scope,i):o=await Ht(this.context,r.script,t.scope,i),o.definition=r,o}}};function Ir(){xn=void 0}var xd=["build","compile","watch"];function vd(e){for(let t of xd)if(e.indexOf(t)!==-1)return!0;return!1}var bd=["test"];function wd(e){for(let t of bd)if(e===t)return!0;return!1}var Ad=new Set(["install","pack","pack","publish","restart","shrinkwrap","stop","test","uninstall","version"]),Sd=new Set(["install","pack","pack","publish","publishOnly","restart","shrinkwrap","stop","test","uninstall","version"]);function kd(e){return Ad.has(e)||Sd.has(e)}function xu(e){return e&&typeof e!="number"}async function Fr(e,t,n){let r=j.workspace.getConfiguration("npm",e).get("scriptRunner","npm");return r==="auto"&&(r=await bn(e,t,n)),r}async function Mr(e,t,n){let r=j.workspace.getConfiguration("npm",e).get("packageManager","npm");return r==="auto"&&(r=await bn(e,t,n)),r}async function bn(e,t,n=!1){let{name:r,multipleLockFilesDetected:i}=await pu(e.fsPath),o="npm.multiplePMWarning.neverShow";if(n&&i&&t&&!t.globalState.get(o)){let s=j.l10n.t(`Using {0} as the preferred package manager. Found multiple lockfiles for {1}. To resolve this issue, delete the lockfiles that don't match your preferred package manager or change the setting "npm.packageManager" to a value other than "auto".`,r,e.fsPath),a=j.l10n.t("Do not show again"),u=j.l10n.t("Learn more");j.window.showInformationMessage(hu(s,j.l10n.t(`Found multiple package manager lockfiles. To resolve this issue, delete the lockfiles that don't match your preferred package manager or change the setting "npm.packageManager" to a value other than "auto".`)),u,a).then(l=>{switch(l){case a:t.globalState.update(o,!0);break;case u:j.env.openExternal(j.Uri.parse("https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json"))}})}return r}async function*Ed(){let e=new Set,t=j.workspace.workspaceFolders;if(t){for(let n of t)if(Dr(n)&&!yu.test(Kn.basename(n.uri))){let r=new j.RelativePattern(n,"**/package.json"),i=await j.workspace.findFiles(r,"**/{node_modules,.vscode-test}/**");for(let o of i)!_d(n,o)&&!e.has(o.fsPath)&&(yield o,e.add(o.fsPath))}}}async function vu(e,t){let n=[];if(yu.test(Kn.basename(t)))return n;let r=new j.RelativePattern(t.fsPath,"**/package.json"),i=await j.workspace.findFiles(r,"**/node_modules/**"),o=new Set;for(let s of i)if(!o.has(s.fsPath)){let a=await bu(e,s,!0);o.add(s.fsPath),n.push(...a.map(u=>({label:u.task.name,task:u.task})))}return n}async function du(e,t){if(!xn){let n=[];for await(let r of Ed()){let i=await bu(e,r,t);n.push(...i)}xn=n}return xn}function Dr(e){return j.workspace.getConfiguration("npm",e?.uri).get("autoDetect")==="on"}function _d(e,t){function n(o,s){return(0,mu.default)(o,s,{dot:!0})}let r=j.workspace.getConfiguration("npm",e.uri).get("exclude"),i=mt.dirname(t.fsPath);if(r){if(Array.isArray(r)){for(let o of r)if(n(i,o))return!0}else if(n(i,r))return!0}return!1}function Td(e){return e.match(/--(inspect|debug)(-brk)?(=((\[[0-9a-fA-F:]*\]|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9\.]*):)?(\d+))?/)!==null}async function bu(e,t,n){let r=[],i=j.workspace.getWorkspaceFolder(t);if(!i)return r;let o=await Cd(t);if(!o)return r;let s=[];for(let{name:a,value:u,nameRange:l}of o.scripts){let c=await Ht(e,a,i,t,u,n);s.push({task:c,location:new j.Location(t,l)})}return j.workspace.getConfiguration("npm",i).get("scriptExplorerExclude",[]).find(a=>a.includes(Xe))||s.push({task:await An(e,i,t,"install dependencies from package",n)}),s}function Dt(e,t){return t&&t.length?`${e} - ${t.substring(0,t.length-1)}`:e}function wu(e){return e.map(t=>/\s/.test(t)?{value:t,quoting:t.includes("--")?j.ShellQuoting.Weak:j.ShellQuoting.Strong}:t)}function Au(e,t){return t.path.substring(0,t.path.length-12).substring(e.path.length+1)}async function wn(e,t,n,r=!0){let i=await Fr(t,n,r);if(i==="node")return["node","--run",e];{let o=[i,"run"];return j.workspace.getConfiguration("npm",t).get("runSilent")&&o.push("--silent"),o.push(e),o}}async function Ht(e,t,n,r,i,o){let s={type:"npm",script:t},a=Au(n.uri,r);a.length&&!s.path&&(s.path=a.substring(0,a.length-1));let u=Dt(t,a),l=mt.dirname(r.fsPath),c=await wn(t,n.uri,e,o),f=c.shift(),p=new j.Task(s,n,u,"npm",new j.ShellExecution(f,wu(c),{cwd:l}));p.detail=i;let m=t.toLowerCase();return vd(m)?p.group=j.TaskGroup.Build:wd(m)?p.group=j.TaskGroup.Test:kd(m)?p.group=j.TaskGroup.Clean:i&&Td(i)&&(p.group=j.TaskGroup.Rebuild),p}async function Rd(e,t,n=!0){let i=[await Mr(e,t,n),Xe];return j.workspace.getConfiguration("npm",e).get("runSilent")&&i.push("--silent"),i}async function An(e,t,n,r,i){let o={type:"npm",script:Xe},s=Au(t.uri,n);s.length&&!o.path&&(o.path=s.substring(0,s.length-1));let a=Dt(Xe,s),u=mt.dirname(n.fsPath),l=await Rd(t.uri,e,i),c=l.shift(),f=new j.Task(o,t,a,"npm",new j.ShellExecution(c,wu(l),{cwd:u}));return f.detail=r,f.group=j.TaskGroup.Clean,f}async function Su(){if(await Od())return!0;let e=new j.CancellationTokenSource,t=setTimeout(()=>e.cancel(),1e3),n=await j.workspace.findFiles("**/package.json",void 0,1,e.token);return clearTimeout(t),n.length>0}async function Od(){let e=j.workspace.workspaceFolders;if(!e)return!1;for(let t of e)if(t.uri.scheme==="file"){let n=mt.join(t.uri.fsPath,"package.json");if(await ku(n))return!0}return!1}async function ku(e){return new Promise((t,n)=>{gu.exists(e,r=>{t(r)})})}async function Eu(e,t,n){let r=n.uri,i=j.workspace.getWorkspaceFolder(r);if(i){let o=await Ht(e,t,i,r);j.tasks.executeTask(o)}}async function Sn(e,t,n,r){let i=await wn(t,r.uri,e,!0);j.commands.executeCommand("extension.js-debug.createDebuggerTerminal",i.join(" "),r,{cwd:n})}function _u(e,t,n){let r=Ce(e,t);if(r){for(let i of r.scripts)if(i.nameRange.start.isBeforeOrEqual(n)&&i.valueRange.end.isAfterOrEqual(n))return i.name}}async function Cd(e){if(e.scheme!=="file")return;let t=e.fsPath;if(await ku(t))try{let n=await j.workspace.openTextDocument(e);return Ce(n)}catch{let r=j.l10n.t("Npm task detection: failed to parse the file {0}",e.fsPath);throw new Error(r)}}function Tu(e){let t=Pe.window.activeTextEditor;if(!t)return;let n=t.document,r=n.getText(),i=_u(t.document,r,t.selection.anchor);if(i)Eu(e,i,n);else{let o=Pe.l10n.t("Could not find a valid npm script at the selection.");Pe.window.showErrorMessage(o)}}async function Ru(e,t){if(t.length===0)return;let n=t[0],r=await vu(e,n);if(r&&r.length>0){let i=Pe.window.createQuickPick();i.placeholder="Select an npm script to run in folder",i.items=r;let o=[],s=new Promise(u=>{o.push(i.onDidAccept(()=>{o.forEach(l=>l.dispose()),u(i.selectedItems[0])})),o.push(i.onDidHide(()=>{o.forEach(l=>l.dispose()),u(void 0)}))});i.show();let a=await s;i.dispose(),a&&Pe.tasks.executeTask(a.task)}else Pe.window.showInformationMessage(`No npm scripts found in ${n.fsPath}`,{modal:!0})}var Ze=me(require("path")),G=require("vscode");var jt=class extends G.TreeItem{packages=[];workspaceFolder;constructor(t){super(t.name,G.TreeItemCollapsibleState.Expanded),this.contextValue="folder",this.resourceUri=t.uri,this.workspaceFolder=t,this.iconPath=G.ThemeIcon.Folder}addPackage(t){this.packages.push(t)}},kn="package.json",ze=class e extends G.TreeItem{path;folder;scripts=[];static getLabel(t){return t.length>0?Ze.join(t,kn):kn}constructor(t,n){super(e.getLabel(n),G.TreeItemCollapsibleState.Expanded),this.folder=t,this.path=n,this.contextValue="packageJSON",n?this.resourceUri=G.Uri.file(Ze.join(t.resourceUri.fsPath,n,kn)):this.resourceUri=G.Uri.file(Ze.join(t.resourceUri.fsPath,kn)),this.iconPath=G.ThemeIcon.File}addScript(t){this.scripts.push(t)}},Qe=class extends G.TreeItem{task;package;taskLocation;constructor(t,n,r){let i=n.path.length>0?r.task.name.substring(0,r.task.name.length-n.path.length-2):r.task.name;super(i,G.TreeItemCollapsibleState.None),this.taskLocation=r.location;let o=i===`${Xe} `?"run":G.workspace.getConfiguration("npm").get("scriptExplorerAction")||"open",s={open:{title:"Edit Script",command:"vscode.open",arguments:[this.taskLocation?.uri,this.taskLocation?{selection:new G.Range(this.taskLocation.range.start,this.taskLocation.range.start)}:void 0]},run:{title:"Run Script",command:"npm.runScript",arguments:[this]}};this.contextValue="script",this.package=n,this.task=r.task,this.command=s[o],this.task.group&&this.task.group===G.TaskGroup.Clean?this.iconPath=new G.ThemeIcon("wrench-subaction"):this.iconPath=new G.ThemeIcon("wrench"),this.task.detail&&(this.tooltip=this.task.detail,this.description=this.task.detail)}getFolder(){return this.package.folder.workspaceFolder}},$t=class extends G.TreeItem{constructor(t){super(t,G.TreeItemCollapsibleState.None),this.contextValue="noscripts"}},En=class{constructor(t,n){this.context=t;this.taskProvider=n;let r=t.subscriptions;this.extensionContext=t,r.push(G.commands.registerCommand("npm.runScript",this.runScript,this)),r.push(G.commands.registerCommand("npm.debugScript",this.debugScript,this)),r.push(G.commands.registerCommand("npm.openScript",this.openScript,this)),r.push(G.commands.registerCommand("npm.runInstall",this.runInstall,this))}context;taskProvider;taskTree=null;extensionContext;_onDidChangeTreeData=new G.EventEmitter;onDidChangeTreeData=this._onDidChangeTreeData.event;async runScript(t){await bn(t.getFolder().uri,this.context,!0),G.tasks.executeTask(t.task)}async debugScript(t){Sn(this.extensionContext,t.task.definition.script,Ze.dirname(t.package.resourceUri.fsPath),t.getFolder())}findScriptPosition(t,n){let r=Ce(t);return r?n?r.scripts.find(o=>Dt(o.name,n.task.definition.path)===n.task.name)?.nameRange.start:r.location.range.start:void 0}async runInstall(t){let n;if(t instanceof ze&&(n=t.resourceUri),!n)return;let r=await An(this.context,t.folder.workspaceFolder,n);G.tasks.executeTask(r)}async openScript(t){let n;if(t instanceof ze?n=t.resourceUri:t instanceof Qe&&(n=t.package.resourceUri),!n)return;let r=await G.workspace.openTextDocument(n),i=this.findScriptPosition(r,t instanceof Qe?t:void 0)||new G.Position(0,0);await G.window.showTextDocument(r,{preserveFocus:!0,selection:new G.Selection(i,i)})}refresh(){this.taskTree=null,this._onDidChangeTreeData.fire(null)}getTreeItem(t){return t}getParent(t){return t instanceof jt?null:t instanceof ze?t.folder:t instanceof Qe?t.package:(t instanceof $t,null)}async getChildren(t){if(!this.taskTree){let n=await this.taskProvider.tasksWithLocation;if(n){let r=this.buildTaskTree(n);if(this.taskTree=this.sortTaskTree(r),this.taskTree.length===0){let i=G.l10n.t("No scripts found.");Dr()||(i=G.l10n.t('The setting "npm.autoDetect" is "off".')),this.taskTree=[new $t(i)]}}}return t instanceof jt?t.packages:t instanceof ze?t.scripts:t instanceof Qe?[]:t instanceof $t?[]:!t&&this.taskTree?this.taskTree:[]}isInstallTask(t){return Dt("install",t.definition.path)===t.name}getTaskTreeItemLabel(t){return t===void 0?"":typeof t=="string"?t:t.label}sortTaskTree(t){return t.sort((n,r)=>{let i=this.getTaskTreeItemLabel(n.label),o=this.getTaskTreeItemLabel(r.label);return i.localeCompare(o)})}buildTaskTree(t){let n=new Map,r=new Map,i=null,o=null,s=new Map;return t.forEach(a=>{let u=a.location;if(u&&!s.has(u.uri.toString())){let c=G.workspace.getConfiguration("npm",u.uri).get("scriptExplorerExclude",[]);s.set(u.uri.toString(),c?.map(f=>RegExp(f)))}let l=u&&s.has(u.uri.toString())?s.get(u.uri.toString()):void 0;if(!(l&&l.some(c=>a.task.definition.script.match(c)))&&xu(a.task.scope)&&!this.isInstallTask(a.task)){i=n.get(a.task.scope.name),i||(i=new jt(a.task.scope),n.set(a.task.scope.name,i));let c=a.task.definition,f=c.path?c.path:"",p=Ze.join(a.task.scope.name,f);o=r.get(p),o||(o=new ze(i,f),i.addPackage(o),r.set(p,o));let m=new Qe(this.extensionContext,o,a);o.addScript(m)}}),n.size===1?[...r.values()]:[...n.values()]}};var Cu=require("path"),re=require("vscode");var yt,Ou;function Hr(e){if(!e){yt=void 0;return}e.uri===yt&&(yt=void 0)}var _n=class{constructor(t){this.context=t;t.subscriptions.push(re.commands.registerCommand("npm.runScriptFromHover",this.runScriptFromHover,this)),t.subscriptions.push(re.commands.registerCommand("npm.debugScriptFromHover",this.debugScriptFromHover,this)),t.subscriptions.push(re.workspace.onDidChangeTextDocument(r=>{Hr(r.document)}));let n=()=>re.workspace.getConfiguration("npm").get("scriptHover",!0);this.enabled=n(),t.subscriptions.push(re.workspace.onDidChangeConfiguration(r=>{r.affectsConfiguration("npm.scriptHover")&&(this.enabled=n())}))}context;enabled;provideHover(t,n,r){if(!this.enabled)return;let i;return(!yt||yt.fsPath!==t.uri.fsPath)&&(Ou=Ce(t),yt=t.uri),Ou?.scripts.forEach(({name:o,nameRange:s})=>{if(s.contains(n)){let a=new re.MarkdownString;a.isTrusted=!0,a.appendMarkdown(this.createRunScriptMarkdown(o,t.uri)),a.appendMarkdown(this.createDebugScriptMarkdown(o,t.uri)),i=new re.Hover(a)}}),i}createRunScriptMarkdown(t,n){let r={documentUri:n,script:t};return this.createMarkdownLink(re.l10n.t("Run Script"),"npm.runScriptFromHover",r,re.l10n.t("Run the script as a task"))}createDebugScriptMarkdown(t,n){let r={documentUri:n,script:t};return this.createMarkdownLink(re.l10n.t("Debug Script"),"npm.debugScriptFromHover",r,re.l10n.t("Runs the script under the debugger"),"|")}createMarkdownLink(t,n,r,i,o){let s=encodeURIComponent(JSON.stringify(r)),a="";return o&&(a=` ${o} `),`${a}[${t}](command:${n}?${s} "${i}")`}async runScriptFromHover(t){let n=t.script,r=t.documentUri,i=re.workspace.getWorkspaceFolder(r);if(i){let o=await Ht(this.context,n,i,r);await re.tasks.executeTask(o)}}debugScriptFromHover(t){let n=t.script,r=t.documentUri,i=re.workspace.getWorkspaceFolder(r);i&&Sn(this.context,n,(0,Cu.dirname)(r.fsPath),i)}};var Lu=me(require("path")),pe=require("vscode");var Pu=()=>pe.workspace.getConfiguration().get("debug.javascript.codelens.npmScripts"),Tn=class{lensLocation=Pu();changeEmitter=new pe.EventEmitter;subscriptions=[];onDidChangeCodeLenses=this.changeEmitter.event;constructor(){this.subscriptions.push(this.changeEmitter,pe.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("debug.javascript.codelens.npmScripts")&&(this.lensLocation=Pu(),this.changeEmitter.fire())}),pe.languages.registerCodeLensProvider({language:"json",pattern:"**/package.json"},this))}async provideCodeLenses(t){if(this.lensLocation==="never")return[];let n=Ce(t);if(!n)return[];let r="$(debug-start) "+pe.l10n.t("Debug"),i=Lu.dirname(t.uri.fsPath);if(this.lensLocation==="top")return[new pe.CodeLens(n.location.range,{title:r,command:"extension.js-debug.npmScript",arguments:[i]})];if(this.lensLocation==="all"){let o=pe.Uri.joinPath(t.uri,"..");return Promise.all(n.scripts.map(async({name:s,nameRange:a})=>{let u=await wn(s,o);return new pe.CodeLens(a,{title:r,command:"extension.js-debug.createDebuggerTerminal",arguments:[u.join(" "),pe.workspace.getWorkspaceFolder(t.uri),{cwd:i}]})}))}return[]}dispose(){this.subscriptions.forEach(t=>t.dispose())}};var nc=me(ec()),et;function qt(){Hr(),Ir(),et&&et.refresh()}async function Xd(e){tc(),e.subscriptions.push(X.workspace.onDidChangeConfiguration(n=>{(n.affectsConfiguration("http.proxy")||n.affectsConfiguration("http.proxyStrictSSL"))&&tc()}));let t=await zd();e.subscriptions.push(Zr(Rn.xhr,t)),Zd(e),et=eg(e),e.subscriptions.push(X.workspace.onDidChangeConfiguration(n=>{(n.affectsConfiguration("npm.exclude")||n.affectsConfiguration("npm.autoDetect")||n.affectsConfiguration("npm.scriptExplorerExclude")||n.affectsConfiguration("npm.runSilent")||n.affectsConfiguration("npm.packageManager")||n.affectsConfiguration("npm.scriptRunner"))&&(Ir(),et&&et.refresh()),n.affectsConfiguration("npm.scriptExplorerAction")&&et&&et.refresh()})),tg(e),e.subscriptions.push(X.commands.registerCommand("npm.runSelectedScript",Tu)),await Su()&&X.commands.executeCommand("setContext","npm:showScriptExplorer",!0),e.subscriptions.push(X.commands.registerCommand("npm.runScriptFromFolder",Ru)),e.subscriptions.push(X.commands.registerCommand("npm.refresh",()=>{qt()})),e.subscriptions.push(X.commands.registerCommand("npm.scriptRunner",n=>n instanceof X.Uri?Fr(n,e,!0):"")),e.subscriptions.push(X.commands.registerCommand("npm.packageManager",n=>n instanceof X.Uri?Mr(n,e,!0):"")),e.subscriptions.push(new Tn),e.subscriptions.push(X.window.registerTerminalQuickFixProvider("ms-vscode.npm-command",{provideTerminalQuickFixes({outputMatch:n}){if(!n)return;let r=n.regexMatch[1],i=[];for(let o of r.split(`
`)){let s=o.indexOf("npm",1);if(s===-1)continue;let a=o.lastIndexOf("#");i.push({terminalCommand:o.slice(s,a===-1?void 0:a-1)})}return i}}))}async function zd(){if(X.workspace.isTrusted&&Qd())try{return await(0,nc.default)(process.platform==="win32"?"npm.cmd":"npm")}catch{return}}function Qd(){return X.workspace.workspaceFolders?X.workspace.workspaceFolders.some(e=>e.uri.scheme==="file"):!1}var jr;function Zd(e){if(X.workspace.workspaceFolders){let t=X.workspace.createFileSystemWatcher("**/package.json");t.onDidChange(i=>qt()),t.onDidDelete(i=>qt()),t.onDidCreate(i=>qt()),e.subscriptions.push(t);let n=X.workspace.onDidChangeWorkspaceFolders(i=>qt());e.subscriptions.push(n),jr=new vn(e);let r=X.tasks.registerTaskProvider("npm",jr);return e.subscriptions.push(r),r}}function eg(e){if(X.workspace.workspaceFolders){let t=new En(e,jr),n=X.window.createTreeView("npm",{treeDataProvider:t,showCollapseAll:!0});return e.subscriptions.push(n),t}}function tg(e){if(X.workspace.workspaceFolders){let t={language:"json",scheme:"file",pattern:"**/package.json"},n=new _n(e);return e.subscriptions.push(X.languages.registerHoverProvider(t,n)),n}}function tc(){let e=X.workspace.getConfiguration("http");Rn.configure(e.get("proxy",""),e.get("proxyStrictSSL",!0))}function ng(){}0&&(module.exports={activate,deactivate});
/*! Bundled license information:
is-number/index.js:
(*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*)
to-regex-range/index.js:
(*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*)
fill-range/index.js:
(*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*)
*/
//# sourceMappingURL=npmMain.js.map