"use strict";var Xu=Object.create;var Ut=Object.defineProperty;var Zu=Object.getOwnPropertyDescriptor;var ec=Object.getOwnPropertyNames;var tc=Object.getPrototypeOf,nc=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},rc=(e,t)=>{for(var n in t)Ut(e,n,{get:t[n],enumerable:!0})},Hr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ec(t))!nc.call(e,i)&&i!==n&&Ut(e,i,{get:()=>t[i],enumerable:!(r=Zu(t,i))||r.enumerable});return e};var me=(e,t,n)=>(n=e!=null?Xu(tc(e)):{},Hr(t||!e||!e.__esModule?Ut(n,"default",{value:e,enumerable:!0}):n,e)),ic=e=>Hr(Ut({},"__esModule",{value:!0}),e);var $r=M(jr=>{(()=>{var e={46:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a,u,{signal:c}={}){return new Promise(((l,f)=>{function p(){c?.removeEventListener("abort",p),a.removeListener(u,m),a.removeListener("error",h)}function m(...x){p(),l(x)}function h(x){p(),f(x)}c?.addEventListener("abort",p),a.on(u,m),a.on("error",h)}))}},54:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};let c=a(361),l=u(a(374)),f=u(a(304)),p=l.default("agent-base");function m(){let{stack:x}=new Error;return typeof x=="string"&&x.split(`
`).some((k=>k.indexOf("(https.js:")!==-1||k.indexOf("node:https:")!==-1))}function h(x,k){return new h.Agent(x,k)}(function(x){class k extends c.EventEmitter{constructor(R,S){super();let _=S;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,S,_){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(R,S){let _=Object.assign({},S);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,E=_.timeout||this.timeout,y=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 ${E}ms`);g.code="ETIMEOUT",y(g)},O=g=>{P||(L!==null&&(clearTimeout(L),L=null),y(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}\``);y(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 E=="number"&&E>0&&(L=setTimeout(b,E)),"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,O)}catch(g){Promise.reject(g).catch(O)}}else y(new Error("`callback` is not defined"))}freeSocket(R,S){p("Freeing socket %o %o",R.constructor.name,S),R.destroy()}destroy(){p("Destroying agent %o",this.constructor.name)}}x.Agent=k,x.prototype=x.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,c){return new Promise(((l,f)=>{a.call(this,u,c,((p,m)=>{p?f(p):l(m)}))}))}}},370:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(R,S,_,P){return new(_||(_=Promise))((function(L,E){function y(d){try{O(P.next(d))}catch(g){E(g)}}function b(d){try{O(P.throw(d))}catch(g){E(g)}}function O(d){var g;d.done?L(d.value):(g=d.value,g instanceof _?g:new _((function(A){A(g)}))).then(y,b)}O((P=P.apply(R,S||[])).next())}))},c=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0});let l=c(a(808)),f=c(a(404)),p=c(a(310)),m=c(a(374)),h=c(a(46)),x=a(54),k=(0,m.default)("http-proxy-agent");class C extends x.Agent{constructor(S){let _;if(_=typeof S=="string"?p.default.parse(S):S,!_)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");k("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(S,_){return u(this,void 0,void 0,(function*(){let{proxy:P,secureProxy:L}=this,E=p.default.parse(S.path),y;if(E.protocol||(E.protocol="http:"),E.hostname||(E.hostname=_.hostname||_.host||null),E.port==null&&(_.port,1)&&(E.port=String(_.port)),E.port==="80"&&(E.port=""),S.path=p.default.format(E),P.auth&&S.setHeader("Proxy-Authorization",`Basic ${Buffer.from(P.auth).toString("base64")}`),L?(k("Creating `tls.Socket`: %o",P),y=f.default.connect(P)):(k("Creating `net.Socket`: %o",P),y=l.default.connect(P)),S._header){let b,O;k("Regenerating stored HTTP header string for request"),S._header=null,S._implicitHeader(),S.output&&S.output.length>0?(k("Patching connection write() output buffer with updated header"),b=S.output[0],O=b.indexOf(`\r
\r
`)+4,S.output[0]=S._header+b.substring(O),k("Output buffer: %o",S.output)):S.outputData&&S.outputData.length>0&&(k("Patching connection write() output buffer with updated header"),b=S.outputData[0].data,O=b.indexOf(`\r
\r
`)+4,S.outputData[0].data=S._header+b.substring(O),k("Output buffer: %o",S.outputData[0].data))}return yield(0,h.default)(y,"connect"),y}))}}s.default=C},201:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}})(a(370));function c(l){return new u.default(l)}(function(l){l.HttpProxyAgent=u.default,l.prototype=u.default.prototype})(c||(c={})),o.exports=c},146:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(_,P,L,E){return new(L||(L=Promise))((function(y,b){function O(A){try{g(E.next(A))}catch(T){b(T)}}function d(A){try{g(E.throw(A))}catch(T){b(T)}}function g(A){var T;A.done?y(A.value):(T=A.value,T instanceof L?T:new L((function(v){v(T)}))).then(O,d)}g((E=E.apply(_,P||[])).next())}))},c=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(s,"__esModule",{value:!0});let l=c(a(808)),f=c(a(404)),p=c(a(310)),m=c(a(491)),h=c(a(374)),x=a(54),k=c(a(829)),C=h.default("https-proxy-agent:agent");class R extends x.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!");C("creating new HttpsProxyAgent instance: %o",L),super(L);let E=Object.assign({},L);var y;this.secureProxy=L.secureProxy||typeof(y=E.protocol)=="string"&&/^https:?$/i.test(y),E.host=E.hostname||E.host,typeof E.port=="string"&&(E.port=parseInt(E.port,10)),!E.port&&E.host&&(E.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in E)&&(E.ALPNProtocols=["http 1.1"]),E.host&&E.path&&(delete E.path,delete E.pathname),this.proxy=E}callback(P,L){return u(this,void 0,void 0,(function*(){let{proxy:E,secureProxy:y}=this,b;y?(C("Creating `tls.Socket`: %o",E),b=f.default.connect(E)):(C("Creating `net.Socket`: %o",E),b=l.default.connect(E));let O=Object.assign({},E.headers),d=`CONNECT ${L.host}:${L.port} HTTP/1.1\r
`;E.auth&&(O["Proxy-Authorization"]=`Basic ${Buffer.from(E.auth).toString("base64")}`);let{host:g,port:A,secureEndpoint:T}=L;(function(H,j){return!!(!j&&H===80||j&&H===443)})(A,T)||(g+=`:${A}`),O.Host=g,O.Connection="close";for(let H of Object.keys(O))d+=`${H}: ${O[H]}\r
`;let v=k.default(b);b.write(`${d}\r
`);let{statusCode:w,buffered:F}=yield v;if(w===200){if(P.once("socket",S),L.secureEndpoint){C("Upgrading socket connection to TLS");let H=L.servername||L.host;return f.default.connect(Object.assign(Object.assign({},(function(j,...B){let V={},ie;for(ie in j)B.includes(ie)||(V[ie]=j[ie]);return V})(L,"host","hostname","path","port")),{socket:b,servername:H}))}return b}b.destroy();let D=new l.default.Socket({writable:!1});return D.readable=!0,P.once("socket",(H=>{C("replaying proxy buffer for failed request"),m.default(H.listenerCount("data")>0),H.push(F),H.push(null)})),D}))}}function S(_){_.resume()}s.default=R},18:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}})(a(146));function c(l){return new u.default(l)}(function(l){l.HttpsProxyAgent=u.default,l.prototype=u.default.prototype})(c||(c={})),o.exports=c},829:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(s,"__esModule",{value:!0});let c=u(a(374)).default("https-proxy-agent:parse-proxy-response");s.default=function(l){return new Promise(((f,p)=>{let m=0,h=[];function x(){let R=l.read();R?(function(S){h.push(S),m+=S.length;let _=Buffer.concat(h,m);if(_.indexOf(`\r
\r
`)===-1)return c("have not received end of HTTP headers yet..."),void x();let P=_.toString("ascii",0,_.indexOf(`\r
`)),L=+P.split(" ")[1];c("got proxy server response: %o",P),f({statusCode:L,buffered:_})})(R):l.once("readable",x)}function k(R){c("onclose had error %o",R)}function C(){c("onend")}l.on("error",(function R(S){l.removeListener("end",C),l.removeListener("error",R),l.removeListener("close",k),l.removeListener("readable",x),c("onerror %o",S),p(S)})),l.on("close",k),l.on("end",C),x()}))}},539:function(o,s,a){"use strict";var u,c=this&&this.__extends||(u=function(y,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,d){O.__proto__=d}||function(O,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(O[g]=d[g])},u(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=y}u(y,b),y.prototype=b===null?Object.create(b):(O.prototype=b.prototype,new O)}),l=this&&this.__assign||function(){return l=Object.assign||function(y){for(var b,O=1,d=arguments.length;O<d;O++)for(var g in b=arguments[O])Object.prototype.hasOwnProperty.call(b,g)&&(y[g]=b[g]);return y},l.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),x=a(796),k=a(201),C=a(18);if(process.env.VSCODE_NLS_CONFIG){var R=process.env.VSCODE_NLS_CONFIG;h.config(JSON.parse(R))}var S=h.loadMessageBundle(),_=void 0,P=!0;function L(y){var b;return new Promise((function(O,d){var g=(0,m.parse)(y.url),A={hostname:g.hostname,agent:!!y.agent&&y.agent,port:g.port?parseInt(g.port):g.protocol==="https:"?443:80,path:g.path,method:y.type||"GET",headers:y.headers,rejectUnauthorized:typeof y.strictSSL!="boolean"||y.strictSSL};y.user&&y.password&&(A.auth=y.user+":"+y.password);var T=function(v){if(v.statusCode>=300&&v.statusCode<400&&y.followRedirects&&y.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})),O(L((function(F){for(var D=[],H=1;H<arguments.length;H++)D[H-1]=arguments[H];return D.forEach((function(j){return Object.keys(j).forEach((function(B){return F[B]=j[B]}))})),F})({},y,{url:w,followRedirects:y.followRedirects-1})))}else O({req:b,res:v})};(b=g.protocol==="https:"?p.request(A,T):f.request(A,T)).on("error",d),y.timeout&&b.setTimeout(y.timeout),y.data&&b.write(y.data),b.end(),y.token&&(y.token.isCancellationRequested&&b.destroy(new E),y.token.onCancellationRequested((function(){b.destroy(new E)})))}))}s.configure=function(y,b){_=y,P=b},s.xhr=function(y){return typeof(y=l({},y)).strictSSL!="boolean"&&(y.strictSSL=P),y.agent||(y.agent=(function(b,O){O===void 0&&(O={});var d=(0,m.parse)(b),g=O.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 O.strictSSL!="boolean"||O.strictSSL,protocol:A.protocol};return d.protocol==="http:"?k(T):C(T)})(y.url,{proxyUrl:_,strictSSL:P})),typeof y.followRedirects!="number"&&(y.followRedirects=5),L(y).then((function(b){return new Promise((function(O,d){var g,A,T=b.res,v=T,w=!1,F=T.headers&&T.headers["content-encoding"];if(F&&(g=y.type,A=b.res.statusCode,!(g==="HEAD"||A>=100&&A<200||A===204||A===304))){var D={flush:x.constants.Z_SYNC_FLUSH,finishFlush:x.constants.Z_SYNC_FLUSH};if(F==="gzip"){var H=x.createGunzip(D);T.pipe(H),v=H}else if(F==="deflate"){var j=x.createInflate(D);T.pipe(j),v=j}}var B=[];v.on("data",(function(V){return B.push(V)})),v.on("end",(function(){if(!w){if(w=!0,y.followRedirects>0&&(T.statusCode>=300&&T.statusCode<=303||T.statusCode===307)){var V=T.headers.location;if(V.startsWith("/")){var ie=(0,m.parse)(y.url);V=(0,m.format)({protocol:ie.protocol,hostname:ie.hostname,port:ie.port,pathname:V})}if(V){var Le={type:y.type,url:V,user:y.user,password:y.password,headers:y.headers,timeout:y.timeout,followRedirects:y.followRedirects-1,data:y.data,token:y.token};return void(0,s.xhr)(Le).then(O,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?O(W):d(W)}})),v.on("error",(function(V){var ie;ie=E.is(V)?V:{responseText:S("error","Unable to access {0}. Error: {1}",y.url,V.message),body:Buffer.concat(B),status:500,headers:{}},w=!0,d(ie)})),y.token&&(y.token.isCancellationRequested&&v.destroy(new E),y.token.onCancellationRequested((function(){v.destroy(new E)})))}))}),(function(b){var O;return O=E.is(b)?b:{responseText:y.agent?S("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",y.url,b.message):S("error.cannot.connect","Unable to connect to {0}. Error: {1}",y.url,b.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(O)}))},s.getErrorStatusDescription=function(y){if(!(y<400))switch(y){case 400:return S("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return S("status.401","Unauthorized. The server is refusing to respond.");case 403:return S("status.403","Forbidden. The server is refusing to respond.");case 404:return S("status.404","Not Found. The requested location could not be found.");case 405:return S("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return S("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return S("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return S("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return S("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return S("status.410","Gone. The requested page is no longer available.");case 411:return S("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return S("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return S("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return S("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return S("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return S("status.500","Internal Server Error.");case 501:return S("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 S("status.502","Bad Gateway. The upstream server did not respond.");case 503:return S("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return S("status.416","HTTP status code {0}",y)}};var E=(function(y){function b(){var O=y.call(this,"The user aborted a request")||this;return O.name="AbortError",Object.setPrototypeOf(O,b.prototype),O}return c(b,y),b.is=function(O){return O 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,c,l,f=a(926);function p(h){return h!==void 0}function m(h,x){return s.isPseudo&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),x.length===0?h:h.replace(/\{(\d+)\}/g,(function(k,C){var R=C[0],S=x[R],_=k;return typeof S=="string"?_=S:typeof S!="number"&&typeof S!="boolean"&&S!=null||(_=String(S)),_}))}(l=s.MessageFormat||(s.MessageFormat={})).file="file",l.bundle="bundle",l.both="both",(c=s.BundleFormat||(s.BundleFormat={})).standalone="standalone",c.languagePack="languagePack",(function(h){h.is=function(x){var k=x;return k&&p(k.key)&&p(k.comment)}})(u||(u={})),s.isDefined=p,s.isPseudo=!1,s.setPseudo=function(h){s.isPseudo=h},s.format=m,s.localize=function(h,x){for(var k=[],C=2;C<arguments.length;C++)k[C-2]=arguments[C];return m(x,k)},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(c){c.install=function(l){if(l===void 0)throw new Error("No runtime abstraction layer provided");a=l}})(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),c=a(147),l=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,x=Object.prototype.toString;function k(b){return x.call(b)==="[object Number]"}function C(b){return x.call(b)==="[object String]"}function R(b){return JSON.parse(c.readFileSync(b,"utf8"))}function S(b){return function(O,d){for(var g=[],A=2;A<arguments.length;A++)g[A-2]=arguments[A];return k(O)?O>=b.length?void console.error(`Broken localize call found. Index out of bounds. Stacktrace is
: `.concat(new Error("").stack)):(0,f.format)(b[O],g):C(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,O){return m[b]=O,O}function P(b){try{return(function(O){var d=R(u.join(O,"nls.metadata.json")),g=Object.create(null);for(var A in d){var T=d[A];g[A]=T.messages}return g})(b)}catch(O){return void console.log("Generating default bundle from meta data failed.",O)}}function L(b,O){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,j=!1;try{return v=JSON.parse(c.readFileSync(D,{encoding:"utf8",flag:"r"})),w=D,F=new Date,c.utimes(w,F,F,(function(){})),v}catch(B){if(B.code==="ENOENT")j=!0;else{if(!(B instanceof SyntaxError))throw B;console.log("Syntax error parsing message bundle: ".concat(B.message,".")),c.unlink(D,(function(V){V&&console.error("Deleting corrupted bundle ".concat(D," failed."))})),H=!0}}if(v=(function(B,V){var ie=h.translationsConfig[B.id];if(ie){var Le=R(ie).contents,he=R(u.join(V,"nls.metadata.json")),W=Object.create(null);for(var Te in he){var tt=he[Te],N=Le["".concat(B.outDir,"/").concat(Te)];if(N){for(var Q=[],I=0;I<tt.keys.length;I++){var Y=tt.keys[I],J=N[C(Y)?Y:Y.key];J===void 0&&(J=tt.messages[I]),Q.push(J)}W[Te]=Q}else W[Te]=tt.messages}return W}})(A,T),!v||H)return v;if(j)try{c.writeFileSync(D,JSON.stringify(v),{encoding:"utf8",flag:"wx"})}catch(B){if(B.code==="EEXIST")return v;throw B}return v})(b,O)}catch(A){console.log("Load or create bundle failed ",A)}if(!d){if(h.languagePackSupport)return P(O);var g=(function(A){for(var T=h.language;T;){var v=u.join(A,"nls.bundle.".concat(T,".json"));if(c.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"),c.existsSync(v)))return v})(O);if(g)try{return R(g)}catch(A){console.log("Loading in the box message bundle failed.",A)}d=P(O)}return d}function E(b){if(!b)return f.localize;var O=u.extname(b);if(O&&(b=b.substr(0,b.length-O.length)),h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.bundle){var d=(function(H){for(var j,B=u.dirname(H);j=u.join(B,"nls.metadata.header.json"),!c.existsSync(j);){var V=u.dirname(B);if(V===B){j=void 0;break}B=V}return j})(b);if(d){var g=u.dirname(d),A=m[g];if(A===void 0)try{var T=JSON.parse(c.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."}):S(F)}}}if(h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.file)try{var D=R((function(H){var j;if(!(h.cacheLanguageResolution&&j)){if(f.isPseudo||!h.language)j=".nls.json";else for(var B=h.language;B;){var V=".nls."+B+".json";if(c.existsSync(H+V)){j=V;break}var ie=B.lastIndexOf("-");ie>0?B=B.substring(0,ie):(j=".nls.json",B=null)}h.cacheLanguageResolution}return H+j})(b));return Array.isArray(D)?S(D):(0,f.isDefined)(D.messages)&&(0,f.isDefined)(D.keys)?S(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 y(b){return b&&(C(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"),E}(function(){if(h={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:f.MessageFormat.bundle},C(process.env.VSCODE_NLS_CONFIG))try{var b=JSON.parse(process.env.VSCODE_NLS_CONFIG),O=void 0;if(b.availableLanguages){var d=b.availableLanguages["*"];C(d)&&(O=d)}if(C(b.locale)&&(h.locale=b.locale.toLowerCase()),O===void 0?h.language=h.locale:O!=="en"&&(h.language=O),(function(A){return A===!0||A===!1})(b._languagePackSupport)&&(h.languagePackSupport=b._languagePackSupport),C(b._cacheRoot)&&(h.cacheRoot=b._cacheRoot),C(b._languagePackId)&&(h.languagePackId=b._languagePackId),C(b._translationsConfigFile)){h.translationsConfigFile=b._translationsConfigFile;try{h.translationsConfig=R(h.translationsConfigFile)}catch{if(b._corruptedFile){var g=u.dirname(b._corruptedFile);c.exists(g,(function(T){T&&c.writeFile(b._corruptedFile,"corrupted","utf8",(function(v){console.error(v)}))}))}}}}catch{}(0,f.setPseudo)(h.locale==="pseudo"),m=Object.create(null)})(),s.loadMessageBundle=E,s.config=y,l.default.install(Object.freeze({loadMessageBundle:E,config:y}))},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=jr;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()});var Xr=M((Og,Qr)=>{var dc=typeof process=="object"&&process&&process.platform==="win32";Qr.exports=dc?{sep:"\\"}:{sep:"/"}});var ri=M((Cg,ni)=>{"use strict";ni.exports=ei;function ei(e,t,n){e instanceof RegExp&&(e=Zr(e,n)),t instanceof RegExp&&(t=Zr(t,n));var r=ti(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 Zr(e,t){var n=t.match(e);return n?n[0]:null}ei.range=ti;function ti(e,t,n){var r,i,o,s,a,u=n.indexOf(e),c=n.indexOf(t,u+1),l=u;if(u>=0&&c>0){for(r=[],o=n.length;l>=0&&!a;)l==u?(r.push(l),u=n.indexOf(e,l+1)):r.length==1?a=[r.pop(),c]:(i=r.pop(),i<o&&(o=i,s=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(a=[o,s])}return a}});var fi=M((Pg,li)=>{var ii=ri();li.exports=yc;var oi="\0SLASH"+Math.random()+"\0",si="\0OPEN"+Math.random()+"\0",$n="\0CLOSE"+Math.random()+"\0",ai="\0COMMA"+Math.random()+"\0",ui="\0PERIOD"+Math.random()+"\0";function jn(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function gc(e){return e.split("\\\\").join(oi).split("\\{").join(si).split("\\}").join($n).split("\\,").join(ai).split("\\.").join(ui)}function mc(e){return e.split(oi).join("\\").split(si).join("{").split($n).join("}").split(ai).join(",").split(ui).join(".")}function ci(e){if(!e)return[""];var t=[],n=ii("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var a=ci(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function yc(e,t){if(!e)return[];t=t||{};var n=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),St(gc(e),n,!0).map(mc)}function xc(e){return"{"+e+"}"}function vc(e){return/^-?0\d/.test(e)}function bc(e,t){return e<=t}function wc(e,t){return e>=t}function St(e,t,n){for(var r=[];;){let y=ii("{","}",e);if(!y)return[e];let b=y.pre;if(/\$$/.test(y.pre)){let d=y.post.length?St(y.post,t,!1):[""];for(let g=0;g<d.length&&g<t;g++){let A=b+"{"+y.body+"}"+d[g];r.push(A)}return r}var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),s=i||o,a=y.body.indexOf(",")>=0;if(!s&&!a){if(y.post.match(/,(?!,).*\}/)){e=y.pre+"{"+y.body+$n+y.post,n=!0;continue}return[e]}let O=y.post.length?St(y.post,t,!1):[""];var u;if(s)u=y.body.split(/\.\./);else if(u=ci(y.body),u.length===1&&(u=St(u[0],t,!1).map(xc),u.length===1))return O.map(function(d){return y.pre+u[0]+d});var c;if(s){var l=jn(u[0]),f=jn(u[1]),p=Math.max(u[0].length,u[1].length),m=u.length==3?Math.max(Math.abs(jn(u[2])),1):1,h=bc,x=f<l;x&&(m*=-1,h=wc);var k=u.some(vc);c=[];for(var C=l;h(C,f)&&c.length<t;C+=m){var R;if(o)R=String.fromCharCode(C),R==="\\"&&(R="");else if(R=String(C),k){var S=p-R.length;if(S>0){var _=new Array(S+1).join("0");C<0?R="-"+_+R.slice(1):R=_+R}}c.push(R)}}else{c=[];for(var P=0;P<u.length;P++)c.push.apply(c,St(u[P],t,!1))}for(var P=0;P<c.length;P++)for(var L=0;L<O.length&&r.length<t;L++){var E=b+c[P]+O[L];(!n||s||E)&&r.push(E)}return r}}});var yi=M((Ig,Wn)=>{var ye=Wn.exports=(e,t,n={})=>(Wt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new rt(t,n).match(e));Wn.exports=ye;var Bn=Xr();ye.sep=Bn.sep;var fe=Symbol("globstar **");ye.GLOBSTAR=fe;var Ac=fi(),pi={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Gn="[^/]",qn=Gn+"*?",Sc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ec="(?:(?!(?:\\/|^)\\.).)*?",gi=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),hi=gi("().*{}+?[]^$\\!"),kc=gi("[.("),di=/\/+/;ye.filter=(e,t={})=>(n,r,i)=>ye(n,e,t);var Ie=(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,Ie(e,o));return n.Minimatch=class extends t.Minimatch{constructor(i,o){super(i,Ie(e,o))}},n.Minimatch.defaults=r=>t.defaults(Ie(e,r)).Minimatch,n.filter=(r,i)=>t.filter(r,Ie(e,i)),n.defaults=r=>t.defaults(Ie(e,r)),n.makeRe=(r,i)=>t.makeRe(r,Ie(e,i)),n.braceExpand=(r,i)=>t.braceExpand(r,Ie(e,i)),n.match=(r,i,o)=>t.match(r,i,Ie(e,o)),n};ye.braceExpand=(e,t)=>mi(e,t);var mi=(e,t={})=>(Wt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Ac(e)),_c=1024*64,Wt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>_c)throw new TypeError("pattern is too long")},Un=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 Tc=e=>e.replace(/\\(.)/g,"$1"),Rc=e=>e.replace(/\\([^-\]])/g,"$1"),Oc=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Cc=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(di)),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),c=n.slice(s+1,a),l=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(l.length){if(l.length+i>t.length)return!1;let R=t.length-l.length;if(this._matchOne(t,l,r,R,0))f=l.length;else{if(t[t.length-1]!==""||i+l.length===t.length||!this._matchOne(t,l,r,R-1,0))return!1;f=l.length+1}}if(!c.length){let R=!!f;for(let S=i;S<t.length-f;S++){let _=String(t[S]);if(R=!0,_==="."||_===".."||!this.options.dot&&_.charAt(0)===".")return!1}return R}let p=[[[],0]],m=p[0],h=0,x=[0];for(let R of c)R===fe?(x.push(h),m=[[],0],p.push(m)):(m[0].push(R),h++);let k=p.length-1,C=t.length-f;for(let R of p)R[1]=C-(x[k--]+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[c,l]=u;for(;r<=l;){if(this._matchOne(t.slice(0,r+c.length),c,o,r,0)&&s<this.maxGlobstarRecursion){let m=this._matchGlobStarBodySections(t,n,r+c.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,c;for(s=i,a=o,u=t.length,c=n.length;s<u&&a<c;s++,a++){this.debug("matchOne loop");let l=n[a],f=t[s];if(this.debug(n,l,f),l===!1||l===fe)return!1;let p;if(typeof l=="string"?(p=f===l,this.debug("string match",l,f,p)):(p=f.match(l),this.debug("pattern match",l,f,p)),!p)return!1}if(s===u&&a===c)return!0;if(s===u)return r;if(a===c)return s===u-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return mi(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=[],c,l=!1,f=-1,p=-1,m,h,x,k=t.charAt(0)===".",C=r.dot||k,R=()=>k?"":C?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=E=>E.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=()=>{if(c){switch(c){case"*":i+=qn,o=!0;break;case"?":i+=Gn,o=!0;break;default:i+="\\"+c;break}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let E=0,y;E<t.length&&(y=t.charAt(E));E++){if(this.debug("%s	%s %s %j",t,E,i,y),s){if(y==="/")return!1;hi[y]&&(i+="\\"),i+=y,s=!1;continue}switch(y){case"/":return!1;case"\\":if(l&&t.charAt(E+1)==="-"){i+=y;continue}_(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s	%s %s %j <-- stateChar",t,E,i,y),l){this.debug("  in class"),y==="!"&&E===p+1&&(y="^"),i+=y;continue}if(y==="*"&&c==="*")continue;this.debug("call clearStateChar %j",c),_(),c=y,r.noext&&_();continue;case"(":{if(l){i+="(";continue}if(!c){i+="\\(";continue}let b={type:c,start:E-1,reStart:i.length,open:pi[c].open,close:pi[c].close};this.debug(this.pattern,"	",b),a.push(b),i+=b.open,b.start===0&&b.type!=="!"&&(k=!0,i+=S(t.slice(E+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{let b=a[a.length-1];if(l||!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(l||!b){i+="\\|";continue}_(),i+="|",b.start===0&&b.type!=="!"&&(k=!0,i+=S(t.slice(E+1)));continue}case"[":if(_(),l){i+="\\"+y;continue}l=!0,p=E,f=i.length,i+=y;continue;case"]":if(E===p+1||!l){i+="\\"+y;continue}m=t.substring(p+1,E);try{RegExp("["+Cc(Rc(m))+"]"),i+=y}catch{i=i.substring(0,f)+"(?:$.)"}o=!0,l=!1;continue;default:_(),hi[y]&&!(y==="^"&&l)&&(i+="\\"),i+=y;break}}for(l&&(m=t.slice(p+1),x=this.parse(m,Un),i=i.substring(0,f)+"\\["+x[0],o=o||x[1]),h=a.pop();h;h=a.pop()){let E;E=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,(b,O,d)=>(d||(d="\\"),O+O+d+"|")),this.debug(`tail=%j
   %s`,E,E,h,i);let y=h.type==="*"?qn:h.type==="?"?Gn:"\\"+h.type;o=!0,i=i.slice(0,h.reStart)+y+"\\("+E}_(),s&&(i+="\\\\");let P=kc[i.charAt(0)];for(let E=u.length-1;E>-1;E--){let y=u[E],b=i.slice(0,y.reStart),O=i.slice(y.reStart,y.reEnd-8),d=i.slice(y.reEnd),g=i.slice(y.reEnd-8,y.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!==Un?"(?:$|\\/)":"";i=b+O+d+w+g}if(i!==""&&o&&(i="(?=.)"+i),P&&(i=R()+i),n===Un)return[i,o];if(r.nocase&&!o&&(o=t.toUpperCase()!==t.toLowerCase()),!o)return Tc(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?qn:n.dot?Sc:Ec,i=n.nocase?"i":"",o=t.map(s=>(s=s.map(a=>typeof a=="string"?Oc(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;Bn.sep!=="/"&&(t=t.split(Bn.sep).join("/")),t=t.split(di),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 bi=M((Mg,vi)=>{var Kn=class{constructor(t){this.value=t,this.next=void 0}},Vn=class{constructor(){this.clear()}enqueue(t){let n=new Kn(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}};vi.exports=Vn});var Ai=M((Dg,wi)=>{"use strict";var Pc=bi(),Lc=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 Pc,n=0,r=()=>{n--,t.size>0&&t.dequeue()()},i=async(a,u,...c)=>{n++;let l=(async()=>a(...c))();u(l);try{await l}catch{}r()},o=(a,u,...c)=>{t.enqueue(i.bind(null,a,u,...c)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},s=(a,...u)=>new Promise(c=>{o(a,c,...u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};wi.exports=Lc});var ki=M((Hg,Ei)=>{"use strict";var Si=Ai(),Yt=class extends Error{constructor(t){super(),this.value=t}},Ic=async(e,t)=>t(await e),Nc=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Yt(t[0]);return!1},Fc=async(e,t,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};let r=Si(n.concurrency),i=[...e].map(s=>[s,r(Ic,s,t)]),o=Si(n.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Nc,s)))}catch(s){if(s instanceof Yt)return s.value;throw s}};Ei.exports=Fc});var Pi=M((jg,Jn)=>{"use strict";var _i=require("path"),Kt=require("fs"),{promisify:Ti}=require("util"),Mc=ki(),Dc=Ti(Kt.stat),Hc=Ti(Kt.lstat),Ri={directory:"isDirectory",file:"isFile"};function Oi({type:e}){if(!(e in Ri))throw new Error(`Invalid type specified: ${e}`)}var Ci=(e,t)=>e===void 0||t[Ri[e]]();Jn.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Oi(t);let n=t.allowSymlinks?Dc:Hc;return Mc(e,async r=>{try{let i=await n(_i.resolve(t.cwd,r));return Ci(t.type,i)}catch{return!1}},t)};Jn.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Oi(t);let n=t.allowSymlinks?Kt.statSync:Kt.lstatSync;for(let r of e)try{let i=n(_i.resolve(t.cwd,r));if(Ci(t.type,i))return r}catch{}}});var Qn=M(($g,zn)=>{"use strict";var Li=require("fs"),{promisify:jc}=require("util"),$c=jc(Li.access);zn.exports=async e=>{try{return await $c(e),!0}catch{return!1}};zn.exports.sync=e=>{try{return Li.accessSync(e),!0}catch{return!1}}});var Ni=M((qg,it)=>{"use strict";var Ne=require("path"),Vt=Pi(),Ii=Qn(),Xn=Symbol("findUp.stop");it.exports=async(e,t={})=>{let n=Ne.resolve(t.cwd||""),{root:r}=Ne.parse(n),i=[].concat(e),o=async s=>{if(typeof e!="function")return Vt(i,s);let a=await e(s.cwd);return typeof a=="string"?Vt([a],s):a};for(;;){let s=await o({...t,cwd:n});if(s===Xn)return;if(s)return Ne.resolve(n,s);if(n===r)return;n=Ne.dirname(n)}};it.exports.sync=(e,t={})=>{let n=Ne.resolve(t.cwd||""),{root:r}=Ne.parse(n),i=[].concat(e),o=s=>{if(typeof e!="function")return Vt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Vt.sync([a],s):a};for(;;){let s=o({...t,cwd:n});if(s===Xn)return;if(s)return Ne.resolve(n,s);if(n===r)return;n=Ne.dirname(n)}};it.exports.exists=Ii;it.exports.sync.exists=Ii.sync;it.exports.stop=Xn});var Mi=M((Ug,Fi)=>{var Fe=require("constants"),qc=process.cwd,Jt=null,Uc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jt||(Jt=qc.call(process)),Jt};try{process.cwd()}catch{}var Bc=process.chdir;process.chdir=function(e){Jt=null,Bc.call(process,e)};Fi.exports=Gc;function Gc(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(l,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(l,f,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Uc==="win32"&&(e.rename=(function(l){return function(f,p,m){var h=Date.now(),x=0;l(f,p,function k(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(p,function(R,S){R&&R.code==="ENOENT"?l(f,p,k):m(C)})},x),x<100&&(x+=10);return}m&&m(C)})}})(e.rename)),e.read=(function(l){function f(p,m,h,x,k,C){var R;if(C&&typeof C=="function"){var S=0;R=function(_,P,L){if(_&&_.code==="EAGAIN"&&S<10)return S++,l.call(e,p,m,h,x,k,R);C.apply(this,arguments)}}return l.call(e,p,m,h,x,k,R)}return f.__proto__=l,f})(e.read),e.readSync=(function(l){return function(f,p,m,h,x){for(var k=0;;)try{return l.call(e,f,p,m,h,x)}catch(C){if(C.code==="EAGAIN"&&k<10){k++;continue}throw C}}})(e.readSync);function t(l){l.lchmod=function(f,p,m){l.open(f,Fe.O_WRONLY|Fe.O_SYMLINK,p,function(h,x){if(h){m&&m(h);return}l.fchmod(x,p,function(k){l.close(x,function(C){m&&m(k||C)})})})},l.lchmodSync=function(f,p){var m=l.openSync(f,Fe.O_WRONLY|Fe.O_SYMLINK,p),h=!0,x;try{x=l.fchmodSync(m,p),h=!1}finally{if(h)try{l.closeSync(m)}catch{}else l.closeSync(m)}return x}}function n(l){Fe.hasOwnProperty("O_SYMLINK")?(l.lutimes=function(f,p,m,h){l.open(f,Fe.O_SYMLINK,function(x,k){if(x){h&&h(x);return}l.futimes(k,p,m,function(C){l.close(k,function(R){h&&h(C||R)})})})},l.lutimesSync=function(f,p,m){var h=l.openSync(f,Fe.O_SYMLINK),x,k=!0;try{x=l.futimesSync(h,p,m),k=!1}finally{if(k)try{l.closeSync(h)}catch{}else l.closeSync(h)}return x}):(l.lutimes=function(f,p,m,h){h&&process.nextTick(h)},l.lutimesSync=function(){})}function r(l){return l&&function(f,p,m){return l.call(e,f,p,function(h){c(h)&&(h=null),m&&m.apply(this,arguments)})}}function i(l){return l&&function(f,p){try{return l.call(e,f,p)}catch(m){if(!c(m))throw m}}}function o(l){return l&&function(f,p,m,h){return l.call(e,f,p,m,function(x){c(x)&&(x=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(f,p,m){try{return l.call(e,f,p,m)}catch(h){if(!c(h))throw h}}}function a(l){return l&&function(f,p,m){typeof p=="function"&&(m=p,p=null);function h(x,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),m&&m.apply(this,arguments)}return p?l.call(e,f,p,h):l.call(e,f,h)}}function u(l){return l&&function(f,p){var m=p?l.call(e,f,p):l.call(e,f);return m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296),m}}function c(l){if(!l||l.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var ji=M((Bg,Hi)=>{var Di=require("stream").Stream;Hi.exports=Wc;function Wc(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);Di.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 c=s[a];this[c]=i[c]}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(l,f){if(l){o.emit("error",l),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);Di.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 qi=M((Gg,$i)=>{"use strict";$i.exports=Yc;function Yc(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 Gi=M((Wg,er)=>{var ue=require("fs"),Kc=Mi(),Vc=ji(),Jc=qi(),zt=require("util"),we,Qt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(we=Symbol.for("graceful-fs.queue"),Qt=Symbol.for("graceful-fs.previous")):(we="___graceful-fs.queue",Qt="___graceful-fs.previous");function zc(){}function Bi(e,t){Object.defineProperty(e,we,{get:function(){return t}})}var kt=zc;zt.debuglog?kt=zt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(kt=function(){var e=zt.format.apply(zt,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});ue[we]||(Ui=global[we]||[],Bi(ue,Ui),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,Qt,{value:e}),t})(ue.close),ue.closeSync=(function(e){function t(n){e.apply(ue,arguments),je()}return Object.defineProperty(t,Qt,{value:e}),t})(ue.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kt(ue[we]),require("assert").equal(ue[we].length,0)}));var Ui;global[we]||Bi(global,ue[we]);er.exports=Zn(Jc(ue));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ue.__patched&&(er.exports=Zn(ue),ue.__patched=!0);function Zn(e){Kc(e),e.gracefulify=Zn,e.createReadStream=S,e.createWriteStream=_;var t=e.readFile;e.readFile=n;function n(E,y,b){return typeof y=="function"&&(b=y,y=null),O(E,y,b);function O(d,g,A){return t(d,g,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Et([O,[d,g,A]]):(typeof A=="function"&&A.apply(this,arguments),je())})}}var r=e.writeFile;e.writeFile=i;function i(E,y,b,O){return typeof b=="function"&&(O=b,b=null),d(E,y,b,O);function d(g,A,T,v){return r(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}var o=e.appendFile;o&&(e.appendFile=s);function s(E,y,b,O){return typeof b=="function"&&(O=b,b=null),d(E,y,b,O);function d(g,A,T,v){return o(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}var a=e.readdir;e.readdir=u;function u(E,y,b){var O=[E];return typeof y!="function"?O.push(y):b=y,O.push(d),c(O);function d(g,A){A&&A.sort&&A.sort(),g&&(g.code==="EMFILE"||g.code==="ENFILE")?Et([c,[O]]):(typeof b=="function"&&b.apply(this,arguments),je())}}function c(E){return a.apply(e,E)}if(process.version.substr(0,4)==="v0.8"){var l=Vc(e);x=l.ReadStream,C=l.WriteStream}var f=e.ReadStream;f&&(x.prototype=Object.create(f.prototype),x.prototype.open=k);var p=e.WriteStream;p&&(C.prototype=Object.create(p.prototype),C.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(E){x=E},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(E){C=E},enumerable:!0,configurable:!0});var m=x;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(E){m=E},enumerable:!0,configurable:!0});var h=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(E){h=E},enumerable:!0,configurable:!0});function x(E,y){return this instanceof x?(f.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function k(){var E=this;L(E.path,E.flags,E.mode,function(y,b){y?(E.autoClose&&E.destroy(),E.emit("error",y)):(E.fd=b,E.emit("open",b),E.read())})}function C(E,y){return this instanceof C?(p.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function R(){var E=this;L(E.path,E.flags,E.mode,function(y,b){y?(E.destroy(),E.emit("error",y)):(E.fd=b,E.emit("open",b))})}function S(E,y){return new e.ReadStream(E,y)}function _(E,y){return new e.WriteStream(E,y)}var P=e.open;e.open=L;function L(E,y,b,O){return typeof b=="function"&&(O=b,b=null),d(E,y,b,O);function d(g,A,T,v){return P(g,A,T,function(w,F){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Et([d,[g,A,T,v]]):(typeof v=="function"&&v.apply(this,arguments),je())})}}return e}function Et(e){kt("ENQUEUE",e[0].name,e[1]),ue[we].push(e)}function je(){var e=ue[we].shift();e&&(kt("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Ki=M((Yg,Yi)=>{"use strict";var Wi=(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)})};Yi.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):Wi(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)?Wi(s,t):s}return i}});var Ji=M((Kg,Vi)=>{"use strict";Vi.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((Vg,$e)=>{"use strict";function zi(e){return typeof e>"u"||e===null}function Qc(e){return typeof e=="object"&&e!==null}function Xc(e){return Array.isArray(e)?e:zi(e)?[]:[e]}function Zc(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 el(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function tl(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}$e.exports.isNothing=zi;$e.exports.isObject=Qc;$e.exports.toArray=Xc;$e.exports.repeat=el;$e.exports.isNegativeZero=tl;$e.exports.extend=Zc});var ot=M((Jg,Qi)=>{"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};Qi.exports=_t});var eo=M((zg,Zi)=>{"use strict";var Xi=qe();function tr(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}tr.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),Xi.repeat(" ",t)+r+a+o+`
`+Xi.repeat(" ",t+this.position-i+r.length)+"^"};tr.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};Zi.exports=tr});var se=M((Qg,no)=>{"use strict";var to=ot(),nl=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],rl=["scalar","sequence","mapping"];function il(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function ol(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(nl.indexOf(n)===-1)throw new to('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=il(t.styleAliases||null),rl.indexOf(this.kind)===-1)throw new to('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}no.exports=ol});var Ue=M((Xg,io)=>{"use strict";var ro=qe(),Xt=ot(),sl=se();function nr(e,t,n){var r=[];return e.include.forEach(function(i){n=nr(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 al(){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 Xt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=nr(this,"implicit",[]),this.compiledExplicit=nr(this,"explicit",[]),this.compiledTypeMap=al(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 Xt("Wrong number of arguments for Schema.create function")}if(t=ro.toArray(t),n=ro.toArray(n),!t.every(function(r){return r instanceof st}))throw new Xt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(r){return r instanceof sl}))throw new Xt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new st({include:t,explicit:n})};io.exports=st});var so=M((Zg,oo)=>{"use strict";var ul=se();oo.exports=new ul("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var uo=M((em,ao)=>{"use strict";var cl=se();ao.exports=new cl("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var lo=M((tm,co)=>{"use strict";var ll=se();co.exports=new ll("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Zt=M((nm,fo)=>{"use strict";var fl=Ue();fo.exports=new fl({explicit:[so(),uo(),lo()]})});var ho=M((rm,po)=>{"use strict";var pl=se();function hl(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function dl(){return null}function gl(e){return e===null}po.exports=new pl("tag:yaml.org,2002:null",{kind:"scalar",resolve:hl,construct:dl,predicate:gl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var mo=M((im,go)=>{"use strict";var ml=se();function yl(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 xl(e){return e==="true"||e==="True"||e==="TRUE"}function vl(e){return Object.prototype.toString.call(e)==="[object Boolean]"}go.exports=new ml("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yl,construct:xl,predicate:vl,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 xo=M((om,yo)=>{"use strict";var bl=qe(),wl=se();function Al(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Sl(e){return 48<=e&&e<=55}function El(e){return 48<=e&&e<=57}function kl(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(!Al(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}for(;n<t;n++)if(i=e[n],i!=="_"){if(!Sl(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(!El(e.charCodeAt(n)))return!1;r=!0}return!r||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(n))}function _l(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 Tl(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!bl.isNegativeZero(e)}yo.exports=new wl("tag:yaml.org,2002:int",{kind:"scalar",resolve:kl,construct:_l,predicate:Tl,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 wo=M((sm,bo)=>{"use strict";var vo=qe(),Rl=se(),Ol=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 Cl(e){return!(e===null||!Ol.test(e)||e[e.length-1]==="_")}function Pl(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 Ll=/^[-+]?[0-9]+e/;function Il(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(vo.isNegativeZero(e))return"-0.0";return n=e.toString(10),Ll.test(n)?n.replace("e",".e"):n}function Nl(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||vo.isNegativeZero(e))}bo.exports=new Rl("tag:yaml.org,2002:float",{kind:"scalar",resolve:Cl,construct:Pl,predicate:Nl,represent:Il,defaultStyle:"lowercase"})});var rr=M((am,Ao)=>{"use strict";var Fl=Ue();Ao.exports=new Fl({include:[Zt()],implicit:[ho(),mo(),xo(),wo()]})});var ir=M((um,So)=>{"use strict";var Ml=Ue();So.exports=new Ml({include:[rr()]})});var To=M((cm,_o)=>{"use strict";var Dl=se(),Eo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ko=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 Hl(e){return e===null?!1:Eo.exec(e)!==null||ko.exec(e)!==null}function jl(e){var t,n,r,i,o,s,a,u=0,c=null,l,f,p;if(t=Eo.exec(e),t===null&&(t=ko.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]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(n,r,i,o,s,a,u)),c&&p.setTime(p.getTime()-c),p}function $l(e){return e.toISOString()}_o.exports=new Dl("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Hl,construct:jl,instanceOf:Date,represent:$l})});var Oo=M((lm,Ro)=>{"use strict";var ql=se();function Ul(e){return e==="<<"||e===null}Ro.exports=new ql("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ul})});var Lo=M((fm,Po)=>{"use strict";var Be;try{Co=require,Be=Co("buffer").Buffer}catch{}var Co,Bl=se(),or=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Gl(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=or;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 Wl(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=or,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 Yl(e){var t="",n=0,r,i,o=e.length,s=or;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 Kl(e){return Be&&Be.isBuffer(e)}Po.exports=new Bl("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gl,construct:Wl,predicate:Kl,represent:Yl})});var No=M((pm,Io)=>{"use strict";var Vl=se(),Jl=Object.prototype.hasOwnProperty,zl=Object.prototype.toString;function Ql(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,zl.call(i)!=="[object Object]")return!1;for(o in i)if(Jl.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function Xl(e){return e!==null?e:[]}Io.exports=new Vl("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ql,construct:Xl})});var Mo=M((hm,Fo)=>{"use strict";var Zl=se(),ef=Object.prototype.toString;function tf(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],ef.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function nf(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}Fo.exports=new Zl("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tf,construct:nf})});var Ho=M((dm,Do)=>{"use strict";var rf=se(),of=Object.prototype.hasOwnProperty;function sf(e){if(e===null)return!0;var t,n=e;for(t in n)if(of.call(n,t)&&n[t]!==null)return!1;return!0}function af(e){return e!==null?e:{}}Do.exports=new rf("tag:yaml.org,2002:set",{kind:"mapping",resolve:sf,construct:af})});var at=M((gm,jo)=>{"use strict";var uf=Ue();jo.exports=new uf({include:[ir()],implicit:[To(),Oo()],explicit:[Lo(),No(),Mo(),Ho()]})});var qo=M((mm,$o)=>{"use strict";var cf=se();function lf(){return!0}function ff(){}function pf(){return""}function hf(e){return typeof e>"u"}$o.exports=new cf("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:lf,construct:ff,predicate:hf,represent:pf})});var Bo=M((ym,Uo)=>{"use strict";var df=se();function gf(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 mf(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 yf(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function xf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Uo.exports=new df("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:gf,construct:mf,predicate:xf,represent:yf})});var Yo=M((xm,Wo)=>{"use strict";var en;try{Go=require,en=Go("esprima")}catch{typeof window<"u"&&(en=window.esprima)}var Go,vf=se();function bf(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 wf(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 Af(e){return e.toString()}function Sf(e){return Object.prototype.toString.call(e)==="[object Function]"}Wo.exports=new vf("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:bf,construct:wf,predicate:Sf,represent:Af})});var Tt=M((vm,Vo)=>{"use strict";var Ko=Ue();Vo.exports=Ko.DEFAULT=new Ko({include:[at()],explicit:[qo(),Bo(),Yo()]})});var ds=M((bm,Rt)=>{"use strict";var Re=qe(),ts=ot(),Ef=eo(),ns=at(),kf=Tt(),De=Object.prototype.hasOwnProperty,tn=1,rs=2,is=3,nn=4,sr=1,_f=2,Jo=3,Tf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rf=/[\x85\u2028\u2029]/,Of=/[,\[\]\{\}]/,os=/^(?:!|!!|![a-z\-]+!)$/i,ss=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zo(e){return Object.prototype.toString.call(e)}function Ee(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 Cf(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Pf(e){return e===120?2:e===117?4:e===85?8:0}function Lf(e){return 48<=e&&e<=57?e-48:-1}function Qo(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 If(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function as(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var us=new Array(256),cs=new Array(256);for(Ge=0;Ge<256;Ge++)us[Ge]=Qo(Ge)?1:0,cs[Ge]=Qo(Ge);var Ge;function Nf(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||kf,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 ls(e,t){return new ts(t,new Ef(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function U(e,t){throw ls(e,t)}function rn(e,t){e.onWarning&&e.onWarning.call(null,ls(e,t))}var Xo={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],os.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'),ss.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 Tf.test(a)&&U(e,"the stream contains non-printable characters");e.result+=a}}function Zo(e,t,n,r){var i,o,s,a;for(Re.isObject(n)||U(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&U(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),De.call(t,o)||(as(t,o,n[o]),r[o]=!0)}function ct(e,t,n,r,i,o,s,a){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;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(u=0,c=o.length;u<c;u+=1)Zo(e,t,o[u],n);else Zo(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")),as(t,i,o),delete n[i];return t}function ar(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(Ee(i))for(ar(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 ur(e,t){t===1?e.result+=" ":t>1&&(e.result+=Re.repeat(`
`,t-1))}function Ff(e,t,n){var r,i,o,s,a,u,c,l,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(Ee(m))if(u=e.line,c=e.lineStart,l=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=c,e.lineIndent=l;break}}a&&(Me(e,o,s,!1),ur(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 Mf(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 Ee(n)?(Me(e,r,i,!0),ur(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 Df(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),Ee(a))ne(e,!1,t);else if(a<256&&us[a])e.result+=cs[a],e.position++;else if((s=Pf(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=Cf(a))>=0?o=(o<<4)+s:U(e,"expected hexadecimal character");e.result+=If(o),e.position++}else U(e,"unknown escape sequence");n=r=e.position}else Ee(a)?(Me(e,n,r,!0),ur(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 Hf(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,u,c,l,f,p={},m,h,x,k;if(k=e.input.charCodeAt(e.position),k===91)u=93,f=!1,o=[];else if(k===123)u=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),k=e.input.charCodeAt(++e.position);k!==0;){if(ne(e,!0,t),k=e.input.charCodeAt(e.position),k===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=x=null,c=l=!1,k===63&&(a=e.input.charCodeAt(e.position+1),de(a)&&(c=l=!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),k=e.input.charCodeAt(e.position),(l||e.line===r)&&k===58&&(c=!0,k=e.input.charCodeAt(++e.position),ne(e,!0,t),lt(e,t,tn,!1,!0),x=e.result),f?ct(e,o,p,h,m,x):c?o.push(ct(e,null,p,h,m,x)):o.push(m),ne(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(n=!0,k=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=sr,o=!1,s=!1,a=t,u=0,c=!1,l,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)sr===i?i=f===43?Jo:_f:U(e,"repeat of a chomping mode identifier");else if((l=Lf(f))>=0)l===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+l-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(!Ee(f)&&f!==0)}for(;f!==0;){for(ar(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),Ee(f)){u++;continue}if(e.lineIndent<a){i===Jo?e.result+=Re.repeat(`
`,o?1+u:u):i===sr&&o&&(e.result+=`
`);break}for(r?We(f)?(c=!0,e.result+=Re.repeat(`
`,o?1+u:u)):c?(c=!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;!Ee(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Me(e,n,e.position,!1)}return!0}function es(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,is,!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 $f(e,t,n){var r,i,o,s,a=e.tag,u=e.anchor,c={},l={},f=null,p=null,m=null,h=!1,x=!1,k;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),k=e.input.charCodeAt(e.position);k!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(k===63||k===58)&&de(r))k===63?(h&&(ct(e,c,l,f,p,null),f=p=m=null),x=!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,k=r;else if(lt(e,n,rs,!1,!0))if(e.line===o){for(k=e.input.charCodeAt(e.position);We(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),de(k)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(ct(e,c,l,f,p,null),f=p=m=null),x=!0,h=!1,i=!1,f=e.tag,p=e.result;else if(x)U(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=u,!0}else if(x)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,c,l,f,p,m,o,s),f=p=m=null),ne(e,!0,-1),k=e.input.charCodeAt(e.position)),e.lineIndent>t&&k!==0)U(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&ct(e,c,l,f,p,null),x&&(e.tag=a,e.anchor=u,e.kind="mapping",e.result=c),x}function qf(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),os.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),Of.test(o)&&U(e,"tag suffix cannot contain flow indicator characters")}return o&&!ss.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 Uf(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 Bf(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,c=!1,l=!1,f,p,m,h,x;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||is===n,r&&ne(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;qf(e)||Uf(e);)ne(e,!0,-1)?(c=!0,a=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||nn===n)&&(tn===n||rs===n?h=t:h=t+1,x=e.position-e.lineStart,u===1?a&&(es(e,x)||$f(e,x,h))||Hf(e,h)?l=!0:(s&&jf(e,h)||Mf(e,h)||Df(e,h)?l=!0:Bf(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&U(e,"alias node should not have any properties")):Ff(e,h,tn===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&es(e,x))),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||l}function Gf(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&&!Ee(s));break}if(Ee(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&&ar(e),De.call(Xo,r)?Xo[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&&Rf.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 fs(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 Nf(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;)Gf(n);return n.documents}function ps(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=fs(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function hs(e,t){var n=fs(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new ts("expected a single document in the stream, but found more")}}function Wf(e,t,n){return typeof t=="object"&&t!==null&&typeof n>"u"&&(n=t,t=null),ps(e,t,Re.extend({schema:ns},n))}function Yf(e,t){return hs(e,Re.extend({schema:ns},t))}Rt.exports.loadAll=ps;Rt.exports.load=hs;Rt.exports.safeLoadAll=Wf;Rt.exports.safeLoad=Yf});var Ds=M((wm,pr)=>{"use strict";var Ct=qe(),Pt=ot(),Kf=Tt(),Vf=at(),As=Object.prototype.toString,Ss=Object.prototype.hasOwnProperty,Jf=9,Ot=10,zf=13,Qf=32,Xf=33,Zf=34,Es=35,ep=37,tp=38,np=39,rp=42,ks=44,ip=45,_s=58,op=61,sp=62,ap=63,up=64,Ts=91,Rs=93,cp=96,Os=123,lp=124,Cs=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 fp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function pp(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&&Ss.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function gs(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 hp(e){this.schema=e.schema||Kf,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=pp(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 ms(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 cr(e,t){return`
`+Ct.repeat(" ",e.indent*t)}function dp(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 fr(e){return e===Qf||e===Jf}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 gp(e){return ft(e)&&!fr(e)&&e!==65279&&e!==zf&&e!==Ot}function ys(e,t){return ft(e)&&e!==65279&&e!==ks&&e!==Ts&&e!==Rs&&e!==Os&&e!==Cs&&e!==_s&&(e!==Es||t&&gp(t))}function mp(e){return ft(e)&&e!==65279&&!fr(e)&&e!==ip&&e!==ap&&e!==_s&&e!==ks&&e!==Ts&&e!==Rs&&e!==Os&&e!==Cs&&e!==Es&&e!==tp&&e!==rp&&e!==Xf&&e!==lp&&e!==op&&e!==sp&&e!==np&&e!==Zf&&e!==ep&&e!==up&&e!==cp}function Ps(e){var t=/^\n* /;return t.test(e)}var Ls=1,Is=2,Ns=3,Fs=4,sn=5;function yp(e,t,n,r,i){var o,s,a,u=!1,c=!1,l=r!==-1,f=-1,p=mp(e.charCodeAt(0))&&!fr(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&&ys(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Ot)u=!0,l&&(c=c||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&&ys(s,a)}c=c||l&&o-f-1>r&&e[f+1]!==" "}return!u&&!c?p&&!i(e)?Ls:Is:n>9&&Ps(e)?sn:c?Fs:Ns}function xp(e,t,n,r){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&fp.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 dp(e,u)}switch(yp(t,s,e.indent,o,a)){case Ls:return t;case Is:return"'"+t.replace(/'/g,"''")+"'";case Ns:return"|"+xs(t,e.indent)+vs(ms(t,i));case Fs:return">"+xs(t,e.indent)+vs(ms(vp(t,o),i));case sn:return'"'+bp(t,o)+'"';default:throw new Pt("impossible error: invalid scalar style")}})()}function xs(e,t){var n=Ps(e)?String(t):"",r=e[e.length-1]===`
`,i=r&&(e[e.length-2]===`
`||e===`
`),o=i?"+":r?"":"-";return n+o+`
`}function vs(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function vp(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,n.lastIndex=c,bs(e.slice(0,c),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!==""?`
`:"")+bs(u,t),i=o}return r}function bs(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 bp(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+=gs((n-55296)*1024+r-56320+65536),o++;continue}i=ce[n],t+=!i&&ft(n)?e[o]:i||gs(n)}return t}function wp(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 Ap(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+=cr(e,t)),e.dump&&Ot===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function Sp(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,a,u,c,l;for(s=0,a=o.length;s<a;s+=1)l="",s!==0&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[s],c=n[u],Ye(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ye(e,t,c,!1,!1)&&(l+=e.dump,r+=l));e.tag=i,e.dump="{"+r+"}"}function Ep(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,u,c,l,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+=cr(e,t)),c=s[a],l=n[c],Ye(e,t+1,c,!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+=cr(e,t)),Ye(e,t+1,l,!0,f)&&(e.dump&&Ot===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function ws(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,As.call(a.represent)==="[object Function]")r=a.represent(t,u);else if(Ss.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,ws(e,n,!1)||ws(e,n,!0);var s=As.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",u,c;if(a&&(u=e.duplicates.indexOf(n),c=u!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(i=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(a&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(Ep(e,t,e.dump,i),c&&(e.dump="&ref_"+u+e.dump)):(Sp(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]"){var l=e.noArrayIndent&&t>0?t-1:t;r&&e.dump.length!==0?(Ap(e,l,e.dump,i),c&&(e.dump="&ref_"+u+e.dump)):(wp(e,l,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&xp(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 kp(e,t){var n=[],r=[],i,o;for(lr(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function lr(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)lr(e[i],t,n);else for(r=Object.keys(e),i=0,o=r.length;i<o;i+=1)lr(e[r[i]],t,n)}function Ms(e,t){t=t||{};var n=new hp(t);return n.noRefs||kp(e,n),Ye(n,0,e,!0,!0)?n.dump+`
`:""}function _p(e,t){return Ms(e,Ct.extend({schema:Vf},t))}pr.exports.dump=Ms;pr.exports.safeDump=_p});var js=M((Am,ee)=>{"use strict";var an=ds(),Hs=Ds();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=rr();ee.exports.CORE_SCHEMA=ir();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=Hs.dump;ee.exports.safeDump=Hs.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 qs=M((Sm,$s)=>{"use strict";var Tp=js();$s.exports=Tp});var Gs=M((Em,hr)=>{"use strict";var Us=Gi(),Rp=Ki(),Op=Ji(),Cp=qs(),Bs=e=>Cp.safeLoad(Op(e));hr.exports=e=>Rp(Us.readFile)(e,"utf8").then(t=>Bs(t));hr.exports.sync=e=>Bs(Us.readFileSync(e,"utf8"))});var Ys=M((km,Ws)=>{"use strict";var cn=require("path"),dr=Qn(),Pp=Gs();Ws.exports=async function(e){let t=cn.join(e,"node_modules");if(await dr(cn.join(t,".yarn-integrity")))return{name:"yarn"};if(await dr(cn.join(e,"bun.lockb")))return{name:"bun"};try{let i=await Pp(cn.join(t,".modules.yaml"));return Lp(i.packageManager)}catch(i){if(i.code!=="ENOENT")throw i}return await dr(t)?{name:"npm"}:null};function Lp(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((Tm,Vs)=>{"use strict";var Ks=ln();Vs.exports=(e,t={})=>{let n=(r,i={})=>{let o=t.escapeInvalid&&Ks.isInvalidBrace(i),s=r.invalid===!0&&t.escapeInvalid===!0,a="";if(r.value)return(o||s)&&Ks.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 zs=M((Rm,Js)=>{"use strict";Js.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var oa=M((Om,ia)=>{"use strict";var Qs=zs(),Ke=(e,t,n)=>{if(Qs(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Qs(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(Ke.cache.hasOwnProperty(u))return Ke.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let x=e+"|"+t;return r.capture?`(${x})`:r.wrap===!1?x:`(?:${x})`}let f=ra(e)||ra(t),p={min:e,max:t,a:c,b:l},m=[],h=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let x=l<0?Math.abs(l):1;h=Xs(x,Math.abs(c),p,r),c=p.a=0}return l>=0&&(m=Xs(c,l,p,r)),p.negatives=h,p.positives=m,p.result=Ip(h,m,r),r.capture===!0?p.result=`(${p.result})`:r.wrap!==!1&&m.length+h.length>1&&(p.result=`(?:${p.result})`),Ke.cache[u]=p,p.result};function Ip(e,t,n){let r=gr(e,t,"-",!1,n)||[],i=gr(t,e,"",!1,n)||[],o=gr(e,t,"-?",!0,n)||[];return r.concat(o).concat(i).join("|")}function Np(e,t){let n=1,r=1,i=ea(e,n),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),n+=1,i=ea(e,n);for(i=ta(t+1,r)-1;e<i&&i<=t;)o.add(i),r+=1,i=ta(t+1,r)-1;return o=[...o],o.sort(Dp),o}function Fp(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=Mp(e,t),i=r.length,o="",s=0;for(let a=0;a<i;a++){let[u,c]=r[a];u===c?o+=u:u!=="0"||c!=="9"?o+=Hp(u,c,n):s++}return s&&(o+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function Xs(e,t,n,r){let i=Np(e,t),o=[],s=e,a;for(let u=0;u<i.length;u++){let c=i[u],l=Fp(String(s),String(c),r),f="";if(!n.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+na(a.count),s=c+1;continue}n.isPadded&&(f=jp(c,n,r)),l.string=f+l.pattern+na(l.count),o.push(l),s=c+1,a=l}return o}function gr(e,t,n,r,i){let o=[];for(let s of e){let{string:a}=s;!r&&!Zs(t,"string",a)&&o.push(n+a),r&&Zs(t,"string",a)&&o.push(n+a)}return o}function Mp(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function Dp(e,t){return e>t?1:t>e?-1:0}function Zs(e,t,n){return e.some(r=>r[t]===n)}function ea(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ta(e,t){return e-e%Math.pow(10,t)}function na(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function Hp(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function ra(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}}`}}Ke.cache={};Ke.clearCache=()=>Ke.cache={};ia.exports=Ke});var xr=M((Cm,pa)=>{"use strict";var $p=require("util"),aa=oa(),sa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),qp=e=>t=>e===!0?Number(t):String(t),mr=e=>typeof e=="number"||typeof e=="string"&&e!=="",Lt=e=>Number.isInteger(+e),yr=e=>{let t=`${e}`,n=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++n]==="0";);return n>0},Up=(e,t,n)=>typeof e=="string"||typeof t=="string"?!0:n.stringify===!0,Bp=(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},Gp=(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},ua=(e,t,n,r)=>{if(n)return aa(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`},ca=(e,t,n)=>{if(Array.isArray(e)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${e.join("|")})`:e.join("|")}return aa(e,t,n)},la=(...e)=>new RangeError("Invalid range arguments: "+$p.inspect(...e)),fa=(e,t,n)=>{if(n.strictRanges===!0)throw la([e,t]);return[]},Wp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Yp=(e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===!0)throw la([e,t]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,a=String(e),u=String(t),c=String(n);n=Math.max(Math.abs(n),1);let l=yr(a)||yr(u)||yr(c),f=l?Math.max(a.length,u.length,c.length):0,p=l===!1&&Up(e,t,r)===!1,m=r.transform||qp(p);if(r.toRegex&&n===1)return ua(hn(e,f),hn(t,f),!0,r);let h={negatives:[],positives:[]},x=R=>h[R<0?"negatives":"positives"].push(Math.abs(R)),k=[],C=0;for(;s?i>=o:i<=o;)r.toRegex===!0&&n>1?x(i):k.push(Bp(m(i,C),f,p)),i=s?i-n:i+n,C++;return r.toRegex===!0?n>1?Gp(h,r,f):ca(k,null,{wrap:!1,...r}):k},Kp=(e,t,n=1,r={})=>{if(!Lt(e)&&e.length>1||!Lt(t)&&t.length>1)return fa(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),c=Math.max(o,s);if(r.toRegex&&n===1)return ua(u,c,!1,r);let l=[],f=0;for(;a?o>=s:o<=s;)l.push(i(o,f)),o=a?o-n:o+n,f++;return r.toRegex===!0?ca(l,null,{wrap:!1,options:r}):l},pn=(e,t,n,r={})=>{if(t==null&&mr(e))return[e];if(!mr(e)||!mr(t))return fa(e,t,r);if(typeof n=="function")return pn(e,t,1,{transform:n});if(sa(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)?Yp(e,t,n,i):Kp(e,t,Math.max(Math.abs(n),1),i):n!=null&&!sa(n)?Wp(n,i):pn(e,t,1,n)};pa.exports=pn});var ga=M((Pm,da)=>{"use strict";var Vp=xr(),ha=ln(),Jp=(e,t={})=>{let n=(r,i={})=>{let o=ha.isInvalidBrace(i),s=r.invalid===!0&&t.escapeInvalid===!0,a=o===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",c="";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 l=ha.reduce(r.nodes),f=Vp(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(r.nodes)for(let l of r.nodes)c+=n(l,r);return c};return n(e)};da.exports=Jp});var xa=M((Lm,ya)=>{"use strict";var zp=xr(),ma=fn(),pt=ln(),Ve=(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(Ve(o,t,n));else for(let o of t)n===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?Ve(i,o,n):i+o);return pt.flatten(r)},Qp=(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(Ve(a.pop(),ma(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ve(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=zp(...f,t);p.length===0&&(p=ma(i,t)),a.push(Ve(a.pop(),p)),i.nodes=[];return}let u=pt.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let p=i.nodes[f];if(p.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(Ve(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(Ve(c.pop(),p.value));continue}p.nodes&&r(p,i)}return c};return pt.flatten(r(e))};ya.exports=Qp});var ba=M((Im,va)=>{"use strict";va.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 ka=M((Nm,Ea)=>{"use strict";var Xp=fn(),{MAX_LENGTH:wa,CHAR_BACKSLASH:vr,CHAR_BACKTICK:Zp,CHAR_COMMA:eh,CHAR_DOT:th,CHAR_LEFT_PARENTHESES:nh,CHAR_RIGHT_PARENTHESES:rh,CHAR_LEFT_CURLY_BRACE:ih,CHAR_RIGHT_CURLY_BRACE:oh,CHAR_LEFT_SQUARE_BRACKET:Aa,CHAR_RIGHT_SQUARE_BRACKET:Sa,CHAR_DOUBLE_QUOTE:sh,CHAR_SINGLE_QUOTE:ah,CHAR_NO_BREAK_SPACE:uh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ch}=ba(),lh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(wa,n.maxLength):wa;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,c=e.length,l=0,f=0,p,m=()=>e[l++],h=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return s.nodes.push(x),x.parent=s,x.prev=a,a=x,x};for(h({type:"bos"});l<c;)if(s=o[o.length-1],p=m(),!(p===ch||p===uh)){if(p===vr){h({type:"text",value:(t.keepEscaping?p:"")+m()});continue}if(p===Sa){h({type:"text",value:"\\"+p});continue}if(p===Aa){u++;let x;for(;l<c&&(x=m());){if(p+=x,x===Aa){u++;continue}if(x===vr){p+=m();continue}if(x===Sa&&(u--,u===0))break}h({type:"text",value:p});continue}if(p===nh){s=h({type:"paren",nodes:[]}),o.push(s),h({type:"text",value:p});continue}if(p===rh){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===sh||p===ah||p===Zp){let x=p,k;for(t.keepQuotes!==!0&&(p="");l<c&&(k=m());){if(k===vr){p+=k+m();continue}if(k===x){t.keepQuotes===!0&&(p+=k);break}p+=k}h({type:"text",value:p});continue}if(p===ih){f++;let k={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(k),o.push(s),h({type:"open",value:p});continue}if(p===oh){if(s.type!=="brace"){h({type:"text",value:p});continue}let x="close";s=o.pop(),s.close=!0,h({type:x,value:p}),f--,s=o[o.length-1];continue}if(p===eh&&f>0){if(s.ranges>0){s.ranges=0;let x=s.nodes.shift();s.nodes=[x,{type:"text",value:Xp(s)}]}h({type:"comma",value:p}),s.commas++;continue}if(p===th&&f>0&&s.commas===0){let x=s.nodes;if(f===0||x.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"){x.pop();let k=x[x.length-1];k.value+=a.value+p,a=k,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(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let x=o[o.length-1],k=x.nodes.indexOf(s);x.nodes.splice(k,1,...s.nodes)}while(o.length>0);return h({type:"eos"}),i};Ea.exports=lh});var Ra=M((Fm,Ta)=>{"use strict";var _a=fn(),fh=ga(),ph=xa(),hh=ka(),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={})=>hh(e,t);xe.stringify=(e,t={})=>_a(typeof e=="string"?xe.parse(e,t):e,t);xe.compile=(e,t={})=>(typeof e=="string"&&(e=xe.parse(e,t)),fh(e,t));xe.expand=(e,t={})=>{typeof e=="string"&&(e=xe.parse(e,t));let n=ph(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);Ta.exports=xe});var It=M((Mm,Ia)=>{"use strict";var dh=require("path"),ke="\\\\/",Oa=`[^${ke}]`,gh=0,Oe="\\.",mh="\\+",yh="\\?",dn="\\/",xh="(?=.)",Ca="[^/]",br=`(?:${dn}|$)`,Pa=`(?:^|${dn})`,wr=`${Oe}{1,2}${br}`,vh=`(?!${Oe})`,bh=`(?!${Pa}${wr})`,wh=`(?!${Oe}{0,1}${br})`,Ah=`(?!${wr})`,Sh=`[^.${dn}]`,Eh=`${Ca}*?`,La={DOT_LITERAL:Oe,PLUS_LITERAL:mh,QMARK_LITERAL:yh,SLASH_LITERAL:dn,ONE_CHAR:xh,QMARK:Ca,END_ANCHOR:br,DOTS_SLASH:wr,NO_DOT:vh,NO_DOTS:bh,NO_DOT_SLASH:wh,NO_DOTS_SLASH:Ah,QMARK_NO_DOT:Sh,STAR:Eh,START_ANCHOR:Pa},kh={...La,SLASH_LITERAL:`[${ke}]`,QMARK:Oa,STAR:`${Oa}*?`,DOTS_SLASH:`${Oe}{1,2}(?:[${ke}]|$)`,NO_DOT:`(?!${Oe})`,NO_DOTS:`(?!(?:^|[${ke}])${Oe}{1,2}(?:[${ke}]|$))`,NO_DOT_SLASH:`(?!${Oe}{0,1}(?:[${ke}]|$))`,NO_DOTS_SLASH:`(?!${Oe}{1,2}(?:[${ke}]|$))`,QMARK_NO_DOT:`[^.${ke}]`,START_ANCHOR:`(?:^|[${ke}])`,END_ANCHOR:`(?:[${ke}]|$)`},_h={__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"};Ia.exports={DEFAULT_MAX_EXTGLOB_RECURSION:gh,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:_h,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:dh.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?kh:La}}});var Nt=M(ge=>{"use strict";var Th=require("path"),Rh=process.platform==="win32",{REGEX_BACKSLASH:Oh,REGEX_REMOVE_BACKSLASH:Ch,REGEX_SPECIAL_CHARS:Ph,REGEX_SPECIAL_CHARS_GLOBAL:Lh}=It();ge.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ge.hasRegexChars=e=>Ph.test(e);ge.isRegexChar=e=>e.length===1&&ge.hasRegexChars(e);ge.escapeRegex=e=>e.replace(Lh,"\\$1");ge.toPosixSlashes=e=>e.replace(Oh,"/");ge.removeBackslashes=e=>e.replace(Ch,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:Rh===!0||Th.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 qa=M((Hm,$a)=>{"use strict";var Na=Nt(),{CHAR_ASTERISK:Ar,CHAR_AT:Ih,CHAR_BACKWARD_SLASH:Ft,CHAR_COMMA:Nh,CHAR_DOT:Sr,CHAR_EXCLAMATION_MARK:Er,CHAR_FORWARD_SLASH:ja,CHAR_LEFT_CURLY_BRACE:kr,CHAR_LEFT_PARENTHESES:_r,CHAR_LEFT_SQUARE_BRACKET:Fh,CHAR_PLUS:Mh,CHAR_QUESTION_MARK:Fa,CHAR_RIGHT_CURLY_BRACE:Dh,CHAR_RIGHT_PARENTHESES:Ma,CHAR_RIGHT_SQUARE_BRACKET:Hh}=It(),Da=e=>e===ja||e===Ft,Ha=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,c=-1,l=0,f=0,p=!1,m=!1,h=!1,x=!1,k=!1,C=!1,R=!1,S=!1,_=!1,P=!1,L=0,E,y,b={value:"",depth:0,isGlob:!1},O=()=>c>=r,d=()=>u.charCodeAt(c+1),g=()=>(E=y,u.charCodeAt(++c));for(;c<r;){y=g();let F;if(y===Ft){R=b.backslashes=!0,y=g(),y===kr&&(C=!0);continue}if(C===!0||y===kr){for(L++;O()!==!0&&(y=g());){if(y===Ft){R=b.backslashes=!0,g();continue}if(y===kr){L++;continue}if(C!==!0&&y===Sr&&(y=g())===Sr){if(p=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(C!==!0&&y===Nh){if(p=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(y===Dh&&(L--,L===0)){C=!1,p=b.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(y===ja){if(o.push(c),s.push(b),b={value:"",depth:0,isGlob:!1},P===!0)continue;if(E===Sr&&c===l+1){l+=2;continue}f=c+1;continue}if(n.noext!==!0&&(y===Mh||y===Ih||y===Ar||y===Fa||y===Er)===!0&&d()===_r){if(h=b.isGlob=!0,x=b.isExtglob=!0,P=!0,y===Er&&c===l&&(_=!0),i===!0){for(;O()!==!0&&(y=g());){if(y===Ft){R=b.backslashes=!0,y=g();continue}if(y===Ma){h=b.isGlob=!0,P=!0;break}}continue}break}if(y===Ar){if(E===Ar&&(k=b.isGlobstar=!0),h=b.isGlob=!0,P=!0,i===!0)continue;break}if(y===Fa){if(h=b.isGlob=!0,P=!0,i===!0)continue;break}if(y===Fh){for(;O()!==!0&&(F=g());){if(F===Ft){R=b.backslashes=!0,g();continue}if(F===Hh){m=b.isBracket=!0,h=b.isGlob=!0,P=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&y===Er&&c===l){S=b.negated=!0,l++;continue}if(n.noparen!==!0&&y===_r){if(h=b.isGlob=!0,i===!0){for(;O()!==!0&&(y=g());){if(y===_r){R=b.backslashes=!0,y=g();continue}if(y===Ma){P=!0;break}}continue}break}if(h===!0){if(P=!0,i===!0)continue;break}}n.noext===!0&&(x=!1,h=!1);let A=u,T="",v="";l>0&&(T=u.slice(0,l),u=u.slice(l),f-=l),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&&Da(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),n.unescape===!0&&(v&&(v=Na.removeBackslashes(v)),A&&R===!0&&(A=Na.removeBackslashes(A)));let w={prefix:T,input:e,start:l,base:A,glob:v,isBrace:p,isBracket:m,isGlob:h,isExtglob:x,isGlobstar:k,negated:S,negatedExtglob:_};if(n.tokens===!0&&(w.maxDepth=0,Da(y)||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:l,j=o[D],B=e.slice(H,j);n.tokens&&(D===0&&l!==0?(s[D].isPrefix=!0,s[D].value=T):s[D].value=B,Ha(s[D]),w.maxDepth+=s[D].depth),(D!==0||B!=="")&&a.push(B),F=j}if(F&&F+1<e.length){let D=e.slice(F+1);a.push(D),n.tokens&&(s[s.length-1].value=D,Ha(s[s.length-1]),w.maxDepth+=s[s.length-1].depth)}w.slashes=o,w.parts=a}return w};$a.exports=jh});var Ya=M((jm,Wa)=>{"use strict";var Mt=It(),le=Nt(),{MAX_LENGTH:gn,POSIX_REGEX_SOURCE:$h,REGEX_NON_SPECIAL_CHARS:qh,REGEX_SPECIAL_CHARS_BACKREF:Uh,REPLACEMENTS:Ua}=Mt,Bh=(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`,Ba=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},Gh=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},Ga=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(Gh(t))return t.replace(/\\(.)/g,"$1")},Wh=e=>{let t=e.map(Ga).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},Tr=(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}}}}},Yh=e=>{let t=0,n=[];for(;t<e.length;){let i=Tr(e.slice(t),!1);if(!i||i.type!=="*")return;let o=Ba(i.body).map(a=>a.trim());if(o.length!==1)return;let s=Ga(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("")}]`}*`},Kh=e=>{let t=0,n=e.trim(),r=Tr(n);for(;r;)t++,n=r.body.trim(),r=Tr(n);return t},Vh=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let n=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Mt.DEFAULT_MAX_EXTGLOB_RECURSION,r=Ba(e).map(i=>i.trim());if(r.length>1&&(r.some(i=>i==="")||r.some(i=>/^[*?]+$/.test(i))||Wh(r)))return{risky:!0};for(let i of r){let o=Yh(i);if(o)return{risky:!0,safeOutput:o};if(Kh(i)>n)return{risky:!0}}return{risky:!1}},Rr=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Ua[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),c=Mt.globChars(u),l=Mt.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:h,DOTS_SLASH:x,NO_DOT:k,NO_DOT_SLASH:C,NO_DOTS_SLASH:R,QMARK:S,QMARK_NO_DOT:_,STAR:P,START_ANCHOR:L}=c,E=N=>`(${a}(?:(?!${L}${N.dot?x:f}).)*?)`,y=n.dot?"":k,b=n.dot?S:_,O=n.bash===!0?E(n):P;n.capture&&(O=`(${O})`),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=(N=1)=>e[d.index+N],H=d.advance=()=>e[++d.index]||"",j=()=>e.slice(d.index+1),B=(N="",Q=0)=>{d.consumed+=N,d.index+=Q},V=N=>{d.output+=N.output!=null?N.output:N.value,B(N.value)},ie=()=>{let N=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)H(),d.start++,N++;return N%2===0?!1:(d.negated=!0,d.start++,!0)},Le=N=>{d[N]++,T.push(N)},he=N=>{d[N]--,T.pop()},W=N=>{if(v.type==="globstar"){let Q=d.braces>0&&(N.type==="comma"||N.type==="brace"),I=N.extglob===!0||g.length&&(N.type==="pipe"||N.type==="paren");N.type!=="slash"&&N.type!=="paren"&&!Q&&!I&&(d.output=d.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=O,d.output+=v.output)}if(g.length&&N.type!=="paren"&&(g[g.length-1].inner+=N.value),(N.value||N.output)&&V(N),v&&v.type==="text"&&N.type==="text"){v.value+=N.value,v.output=(v.output||"")+N.value;return}N.prev=v,s.push(N),v=N},Te=(N,Q)=>{let I={...l[Q],conditions:1,inner:""};I.prev=v,I.parens=d.parens,I.output=d.output,I.startIndex=d.index,I.tokensIndex=s.length;let Y=(n.capture?"(":"")+I.open;Le("parens"),W({type:N,value:Q,output:d.output?"":h}),W({type:"paren",extglob:!0,value:H(),output:Y}),g.push(I)},tt=N=>{let Q=e.slice(N.startIndex,d.index+1),I=e.slice(N.startIndex+2,d.index),Y=Vh(I,n);if((N.type==="plus"||N.type==="star")&&Y.risky){let X=Y.safeOutput?(N.output?"":h)+(n.capture?`(${Y.safeOutput})`:Y.safeOutput):void 0,Ae=s[N.tokensIndex];Ae.type="text",Ae.value=Q,Ae.output=X||le.escapeRegex(Q);for(let Se=N.tokensIndex+1;Se<s.length;Se++)s[Se].value="",s[Se].output="",delete s[Se].suffix;d.output=N.output+Ae.output,d.backtrack=!0,W({type:"paren",extglob:!0,value:w,output:""}),he("parens");return}let J=N.close+(n.capture?")":""),oe;if(N.type==="negate"){let X=O;if(N.inner&&N.inner.length>1&&N.inner.includes("/")&&(X=E(n)),(X!==O||F()||/^\)+$/.test(j()))&&(J=N.close=`)$))${X}`),N.inner.includes("*")&&(oe=j())&&/^\.[^\\/.]+$/.test(oe)){let Ae=Rr(oe,{...t,fastpaths:!1}).output;J=N.close=`)${Ae})${X})`}N.prev.type==="bos"&&(d.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:J}),he("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let N=!1,Q=e.replace(Uh,(I,Y,J,oe,X,Ae)=>oe==="\\"?(N=!0,I):oe==="?"?Y?Y+oe+(X?S.repeat(X.length):""):Ae===0?b+(X?S.repeat(X.length):""):S.repeat(J.length):oe==="."?f.repeat(J.length):oe==="*"?Y?Y+oe+(X?O:""):O:Y?I:`\\${I}`);return N===!0&&(n.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),Q===e&&n.contains===!0?(d.output=e,d):(d.output=le.wrapOutput(Q,d,t),d)}for(;!F();){if(w=H(),w==="\0")continue;if(w==="\\"){let I=D();if(I==="/"&&n.bash!==!0||I==="."||I===";")continue;if(!I){w+="\\",W({type:"text",value:w});continue}let Y=/^\\+/.exec(j()),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 I=v.value.slice(1);if(I.includes("[")&&(v.posix=!0,I.includes(":"))){let Y=v.value.lastIndexOf("["),J=v.value.slice(0,Y),oe=v.value.slice(Y+2),X=$h[oe];if(X){v.value=J+X,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,V({value:w});continue}if(d.quotes===1&&w!=='"'){w=le.escapeRegex(w),v.value+=w,V({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 I=g[g.length-1];if(I&&d.parens===I.parens+1){tt(g.pop());continue}W({type:"paren",value:w,output:d.parens?")":"\\)"}),he("parens");continue}if(w==="["){if(n.nobracket===!0||!j().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 I=v.value.slice(1);if(v.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(w=`/${w}`),v.value+=w,V({value:w}),n.literalBrackets===!1||le.hasRegexChars(I))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 I={type:"brace",value:w,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};A.push(I),W(I);continue}if(w==="}"){let I=A[A.length-1];if(n.nobrace===!0||!I){W({type:"text",value:w,output:w});continue}let Y=")";if(I.dots===!0){let J=s.slice(),oe=[];for(let X=J.length-1;X>=0&&(s.pop(),J[X].type!=="brace");X--)J[X].type!=="dots"&&oe.unshift(J[X].value);Y=Bh(oe,n),d.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let J=d.output.slice(0,I.outputIndex),oe=d.tokens.slice(I.tokensIndex);I.value=I.output="\\{",w=Y="\\}",d.output=J;for(let X of oe)d.output+=X.output||X.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 I=w,Y=A[A.length-1];Y&&T[T.length-1]==="braces"&&(Y.comma=!0,I="|"),W({type:"comma",value:w,output:I});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 I=A[A.length-1];v.type="dots",v.output+=w,v.value+=w,I.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()))&&(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:S});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 I=qh.exec(j());I&&(w+=I[0],d.index+=I[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=O,d.backtrack=!0,d.globstar=!0,B(w);continue}let N=j();if(n.noextglob!==!0&&/^\([^?]/.test(N)){Te("star",w);continue}if(v.type==="star"){if(n.noglobstar===!0){B(w);continue}let I=v.prev,Y=I.prev,J=I.type==="slash"||I.type==="bos",oe=Y&&(Y.type==="star"||Y.type==="globstar");if(n.bash===!0&&(!J||N[0]&&N[0]!=="/")){W({type:"star",value:w,output:""});continue}let X=d.braces>0&&(I.type==="comma"||I.type==="brace"),Ae=g.length&&(I.type==="pipe"||I.type==="paren");if(!J&&I.type!=="paren"&&!X&&!Ae){W({type:"star",value:w,output:""});continue}for(;N.slice(0,3)==="/**";){let Se=e[d.index+4];if(Se&&Se!=="/")break;N=N.slice(3),B("/**",3)}if(I.type==="bos"&&F()){v.type="globstar",v.value+=w,v.output=E(n),d.output=v.output,d.globstar=!0,B(w);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!oe&&F()){d.output=d.output.slice(0,-(I.output+v.output).length),I.output=`(?:${I.output}`,v.type="globstar",v.output=E(n)+(n.strictSlashes?")":"|$)"),v.value+=w,d.globstar=!0,d.output+=I.output+v.output,B(w);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&N[0]==="/"){let Se=N[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(I.output+v.output).length),I.output=`(?:${I.output}`,v.type="globstar",v.output=`${E(n)}${m}|${m}${Se})`,v.value+=w,d.output+=I.output+v.output,d.globstar=!0,B(w+H()),W({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&N[0]==="/"){v.type="globstar",v.value+=w,v.output=`(?:^|${m}|${E(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=E(n),v.value+=w,d.output+=v.output,d.globstar=!0,B(w);continue}let Q={type:"star",value:w,output:O};if(n.bash===!0){Q.output=".*?",(v.type==="bos"||v.type==="slash")&&(Q.output=y+Q.output),W(Q);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&n.regex===!0){Q.output=w,W(Q);continue}(d.index===d.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(d.output+=C,v.output+=C):n.dot===!0?(d.output+=R,v.output+=R):(d.output+=y,v.output+=y),D()!=="*"&&(d.output+=h,v.output+=h)),W(Q)}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 N of d.tokens)d.output+=N.output!=null?N.output:N.value,N.suffix&&(d.output+=N.suffix)}return d};Rr.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=Ua[e]||e;let o=le.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:h}=Mt.globChars(o),x=n.dot?f:l,k=n.dot?p:l,C=n.capture?"":"?:",R={negated:!1,prefix:""},S=n.bash===!0?".*?":m;n.capture&&(S=`(${S})`);let _=y=>y.noglobstar===!0?S:`(${C}(?:(?!${h}${y.dot?c:s}).)*?)`,P=y=>{switch(y){case"*":return`${x}${u}${S}`;case".*":return`${s}${u}${S}`;case"*.*":return`${x}${S}${s}${u}${S}`;case"*/*":return`${x}${S}${a}${u}${k}${S}`;case"**":return x+_(n);case"**/*":return`(?:${x}${_(n)}${a})?${k}${u}${S}`;case"**/*.*":return`(?:${x}${_(n)}${a})?${k}${S}${s}${u}${S}`;case"**/.*":return`(?:${x}${_(n)}${a})?${s}${u}${S}`;default:{let b=/^(.*?)\.(\w+)$/.exec(y);if(!b)return;let O=P(b[1]);return O?O+s+b[2]:void 0}}},L=le.removePrefix(e,R),E=P(L);return E&&n.strictSlashes!==!0&&(E+=`${a}?`),E};Wa.exports=Rr});var Va=M(($m,Ka)=>{"use strict";var Jh=require("path"),zh=qa(),Or=Ya(),Cr=Nt(),Qh=It(),Xh=e=>e&&typeof e=="object"&&!Array.isArray(e),te=(e,t,n=!1)=>{if(Array.isArray(e)){let l=e.map(p=>te(p,t,n));return p=>{for(let m of l){let h=m(p);if(h)return h}return!1}}let r=Xh(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=Cr.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 l={...t,ignore:null,onMatch:null,onResult:null};u=te(i.ignore,l,n)}let c=(l,f=!1)=>{let{isMatch:p,match:m,output:h}=te.test(l,s,t,{glob:e,posix:o}),x={glob:e,state:a,regex:s,posix:o,input:l,output:h,match:m,isMatch:p};return typeof i.onResult=="function"&&i.onResult(x),p===!1?(x.isMatch=!1,f?x:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(x),x.isMatch=!1,f?x:!1):(typeof i.onMatch=="function"&&i.onMatch(x),f?x:!0)};return n&&(c.state=a),c};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?Cr.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=Cr.isWindows(n))=>(t instanceof RegExp?t:te.makeRe(t,n)).test(Jh.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)):Or(e,{...t,fastpaths:!1});te.scan=(e,t)=>zh(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=Or.fastpaths(e,t)),i.output||(i=Or(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=Qh;Ka.exports=te});var za=M((qm,Ja)=>{"use strict";Ja.exports=Va()});var nu=M((Um,tu)=>{"use strict";var Xa=require("util"),Za=Ra(),_e=za(),Pr=Nt(),Qa=e=>e===""||e==="./",eu=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=l=>{o.add(l.output),n&&n.onResult&&n.onResult(l)};for(let l=0;l<t.length;l++){let f=_e(String(t[l]),{...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 c=(s===t.length?[...o]:[...i]).filter(l=>!r.has(l));if(n&&c.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(l=>l.replace(/\\/g,"")):t}return c};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: "${Xa.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>Z.contains(e,r,n));if(typeof t=="string"){if(Qa(e)||Qa(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(!Pr.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: "${Xa.inspect(e)}"`);return[].concat(t).every(r=>_e(r,n)(e))};Z.capture=(e,t,n)=>{let r=Pr.isWindows(n),o=_e.makeRe(String(e),{...n,capture:!0}).exec(r?Pr.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 Za(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||!eu(e)?[e]:Za(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=eu;tu.exports=Z});var ou=M((Bm,iu)=>{"use strict";var ru=require("fs"),Zh=nu(),mn=require("path");iu.exports=ed;function ed(e){e||(e=process.cwd());let t=null,n=mn.normalize(e);do{let r=nd(n),i=td(r);if(i){let o=mn.relative(n,e);return o===""||Zh([o],i).length>0?n:null}t=n,n=mn.dirname(n)}while(n!==t);return null}function td(e){let t=(e||{}).workspaces;return t&&t.packages||(Array.isArray(t)?t:null)}function nd(e){let t=mn.join(e,"package.json");return ru.existsSync(t)?JSON.parse(ru.readFileSync(t,"utf8")):null}});var Ou=M(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.sync=xt.isexe=void 0;var wd=require("fs"),Ad=require("fs/promises"),Sd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Ru(await(0,Ad.stat)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};xt.isexe=Sd;var Ed=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Ru((0,wd.statSync)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};xt.sync=Ed;var Ru=(e,t)=>e.isFile()&&kd(e,t),kd=(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,c=parseInt("100",8),l=parseInt("010",8),f=parseInt("001",8),p=c|l;return!!(s&f||s&l&&o.has(u)||s&c&&a===n||s&p&&n===0)}});var Pu=M(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.sync=vt.isexe=void 0;var _d=require("fs"),Td=require("fs/promises"),Rd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Cu(await(0,Td.stat)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};vt.isexe=Rd;var Od=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Cu((0,_d.statSync)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};vt.sync=Od;var Cd=(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},Cu=(e,t,n)=>e.isFile()&&Cd(t,n)});var Iu=M(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0})});var ju=M(ae=>{"use strict";var Nu=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]})),Pd=ae&&ae.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Fu=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)&&Nu(t,e,n);return Pd(t,e),t},Ld=ae&&ae.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Nu(t,e,n)};Object.defineProperty(ae,"__esModule",{value:!0});ae.sync=ae.isexe=ae.posix=ae.win32=void 0;var Mu=Fu(Ou());ae.posix=Mu;var Du=Fu(Pu());ae.win32=Du;Ld(Iu(),ae);var Id=process.env._ISEXE_TEST_PLATFORM_||process.platform,Hu=Id==="win32"?Du:Mu;ae.isexe=Hu.isexe;ae.sync=Hu.sync});var Ju=M((K0,Vu)=>{var{isexe:Nd,sync:Fd}=ju(),{join:Md,delimiter:Dd,sep:$u,posix:qu}=require("path"),Uu=process.platform==="win32",Bu=new RegExp(`[${qu.sep}${$u===qu.sep?"":$u}]`.replace(/(\\)/g,"\\$1")),Hd=new RegExp(`^\\.${Bu.source}`),Gu=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Wu=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=Dd})=>{let i=e.match(Bu)?[""]:[...Uu?[process.cwd()]:[],...(t||"").split(r)];if(Uu){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:[""]}},Yu=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&Hd.test(t)?t.slice(0,2):"")+Md(n,t)},Ku=async(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Wu(e,t),o=[];for(let s of n){let a=Yu(s,e);for(let u of r){let c=a+u;if(await Nd(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;o.push(c)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Gu(e)},jd=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Wu(e,t),o=[];for(let s of n){let a=Yu(s,e);for(let u of r){let c=a+u;if(Fd(c,{pathExt:i,ignoreErrors:!0})){if(!t.all)return c;o.push(c)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Gu(e)};Vu.exports=Ku;Ku.sync=jd});var Kd={};rc(Kd,{activate:()=>$d,deactivate:()=>Yd});module.exports=ic(Kd);var Rn=me($r()),z=me(require("vscode"));function wt(e,t=!1){let n=e.length,r=0,i="",o=0,s=16,a=0,u=0,c=0,l=0,f=0;function p(S,_){let P=0,L=0;for(;P<S||!_;){let E=e.charCodeAt(r);if(E>=48&&E<=57)L=L*16+E-48;else if(E>=65&&E<=70)L=L*16+E-65+10;else if(E>=97&&E<=102)L=L*16+E-97+10;else break;r++,P++}return P<S&&(L=-1),L}function m(S){r=S,i="",o=0,s=16,f=0}function h(){let S=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(S,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(S,_)}function x(){let S="",_=r;for(;;){if(r>=n){S+=e.substring(_,r),f=2;break}let P=e.charCodeAt(r);if(P===34){S+=e.substring(_,r),r++;break}if(P===92){if(S+=e.substring(_,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:S+='"';break;case 92:S+="\\";break;case 47:S+="/";break;case 98:S+="\b";break;case 102:S+="\f";break;case 110:S+=`
`;break;case 114:S+="\r";break;case 116:S+="	";break;case 117:let E=p(4,!0);E>=0?S+=String.fromCharCode(E):f=4;break;default:f=5}_=r;continue}if(P>=0&&P<=31)if(bt(P)){S+=e.substring(_,r),f=2;break}else f=6;r++}return S}function k(){if(i="",f=0,o=r,u=a,l=c,r>=n)return o=n,s=17;let S=e.charCodeAt(r);if(On(S)){do r++,i+=String.fromCharCode(S),S=e.charCodeAt(r);while(On(S));return s=15}if(bt(S))return r++,i+=String.fromCharCode(S),S===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),a++,c=r,s=14;switch(S){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=x(),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 E=e.charCodeAt(r);if(E===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,bt(E)&&(E===13&&e.charCodeAt(r)===10&&r++,a++,c=r)}return L||(r++,f=1),i=e.substring(_,r),s=13}return i+=String.fromCharCode(S),r++,s=16;case 45:if(i+=String.fromCharCode(S),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&&C(S);)r++,S=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(S),r++,s=16}}function C(S){if(On(S)||bt(S))return!1;switch(S){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function R(){let S;do S=k();while(S>=12&&S<=15);return S}return{setPosition:m,getPosition:()=>r,scan:t?R:k,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-l,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 qr;(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"})(qr||(qr={}));var Cn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Cn||(Cn={}));function Ur(e,t){let n=[],r=new Object,i,o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(u,c,l,f){o.value=u,o.offset=c,o.length=l,o.type=f,o.colonOffset=void 0,i=o}try{Pn(e,{onObjectBegin:(u,c)=>{if(t<=u)throw r;i=void 0,s=t>u,n.push("")},onObjectProperty:(u,c,l)=>{if(t<c||(a(u,c,l,"property"),n[n.length-1]=u,t<=c+l))throw r},onObjectEnd:(u,c)=>{if(t<=u)throw r;i=void 0,n.pop()},onArrayBegin:(u,c)=>{if(t<=u)throw r;i=void 0,n.push(0)},onArrayEnd:(u,c)=>{if(t<=u)throw r;i=void 0,n.pop()},onLiteralValue:(u,c,l)=>{if(t<c||(a(u,c,l,ac(u)),t<=c+l))throw r},onSeparator:(u,c,l)=>{if(t<=c)throw r;if(u===":"&&i&&i.type==="property")i.colonOffset=c,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 c=0;for(let l=0;c<u.length&&l<n.length;l++)if(u[c]===n[l]||u[c]==="*")c++;else if(u[c]!=="**")return!1;return c===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 c=s(t.onObjectBegin),l=u(t.onObjectProperty),f=o(t.onObjectEnd),p=s(t.onArrayBegin),m=o(t.onArrayEnd),h=u(t.onLiteralValue),x=a(t.onSeparator),k=o(t.onComment),C=a(t.onError),R=n&&n.disallowComments,S=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):k();break;case 16:P(1);break;case 15:case 14:break;default:return g}}}function P(g,A=[],T=[]){if(C(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):(l(A),i.push(A)),_(),!0}function E(){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 y(){return r.getToken()!==10?(P(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(x(":"),_(),d()||P(4,[],[2,5])):P(5,[],[2,5]),i.pop(),!0)}function b(){c(),_();let g=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(g||P(4,[],[]),x(","),_(),r.getToken()===2&&S)break}else g&&P(6,[],[]);y()||P(4,[],[2,5]),g=!0}return f(),r.getToken()!==2?P(7,[2],[]):_(),!0}function O(){p(),_();let g=!0,A=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(A||P(4,[],[]),x(","),_(),r.getToken()===4&&S)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 O();case 1:return b();case 10:return L(!0);default:return E()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(P(4,[],[]),!1):d()?(r.getToken()!==17&&P(9,[],[]),!0):(P(4,[],[]),!1)}function ac(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 Gr=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=Ur;var Wr=Pn;var Br;(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"})(Br||(Br={}));var K=require("vscode"),Jr=require("path");var q=require("vscode"),In=60,Nn=In*60,At=Nn*24,Yr=At*7,Kr=At*30,Vr=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<In?(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<Nn?(o=Math.floor(i/In),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/Nn),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<Yr?(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<Kr?(o=Math.floor(i/Yr),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<Vr?(o=Math.floor(i/Kr),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/Vr),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))}var hc=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 K.CompletionItem(K.l10n.t("Default package.json"));return i.kind=K.CompletionItemKind.Module,i.insertText=new K.SnippetString(JSON.stringify(r,null,"	")),n.add(i),Promise.resolve(null)}isEnabled(){return this.npmCommandPath||this.onlineEnabled()}onlineEnabled(){return!!K.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 c=new K.CompletionItem(u);c.kind=K.CompletionItemKind.Property,c.insertText=new K.SnippetString().appendText(`"${u}/`).appendTabstop().appendText('"'),c.filterText=JSON.stringify(u),c.documentation="",c.command={title:"",command:"editor.action.triggerSuggest"},s.add(c)}s.setAsIncomplete()}return a=`https://registry.npmjs.org/-/v1/search?size=${hc}&text=${encodeURIComponent(r)}`,this.xhr({url:a,headers:{agent:Mn}}).then(u=>{if(u.status===200){try{let c=JSON.parse(u.responseText);if(c&&c.objects&&Array.isArray(c.objects)){let l=c.objects;for(let f of l)this.processPackage(f.package,i,o,s)}}catch{}s.setAsIncomplete()}else return s.error(K.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0},u=>(s.error(K.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0))}else return this.mostDependedOn.forEach(u=>{let c=new K.SnippetString().appendText(JSON.stringify(u));i&&(c.appendText(': "').appendTabstop().appendText('"'),o||c.appendText(","));let l=new K.CompletionItem(u);l.kind=K.CompletionItemKind.Property,l.insertText=c,l.filterText=JSON.stringify(u),l.documentation="",s.add(l)}),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(c=>{if(c.status===200){try{let l=JSON.parse(c.responseText);if(l&&Array.isArray(l.objects)){let f=l.objects;for(let p of f)this.processPackage(p.package,n,r,i)}}catch{}i.setAsIncomplete()}else i.error(K.l10n.t("Request to the NPM repository failed: {0}",c.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 K.CompletionItem(s);a.kind=K.CompletionItemKind.Property,a.insertText=s,a.documentation=K.l10n.t("The currently latest version of the package"),r.add(a),s=JSON.stringify("^"+o.version),a=new K.CompletionItem(s),a.kind=K.CompletionItemKind.Property,a.insertText=s,a.documentation=K.l10n.t("Matches the most recent major version (1.x.x)"),r.add(a),s=JSON.stringify("~"+o.version),a=new K.CompletionItem(s),a.kind=K.CompletionItemKind.Property,a.insertText=s,a.documentation=K.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 K.MarkdownString;return t&&s.appendText(t),n&&(s.appendText(`

`),s.appendText(r?K.l10n.t("Latest version: {0} published {1}",n,Fn(Date.parse(r),!0,!0)):K.l10n.t("Latest version: {0}",n))),o&&(s.appendText(`

`),s.appendText(K.l10n.t("Installed version: {0}",o))),i&&(s.appendText(`

`),s.appendText(i)),s}resolveSuggestion(t,n){if(n.kind===K.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,Jr.dirname)(r.fsPath):void 0,u={...process.env,COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"},c={cwd:a,env:u},l=t;process.platform==="win32"&&(c={cwd:a,env:u,shell:!0},l=`"${t}"`),i.execFile(l,n,c,(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);if(o)try{let s=JSON.parse(o),a=s["dist-tags.latest"]||s.version;return{description:s.description,version:a,time:s.time?.[a],homepage:s.homepage}}catch{}}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 K.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 K.CompletionItem(o);a.kind=K.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 c=new ve.Range(t.positionAt(s.offset),t.positionAt(s.offset+s.length));return{contents:u||[],range:c}})}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),c=Ln(t.getText(),u),l=c.previousNode;l&&l.offset<=u&&u<=l.offset+l.length&&(l.type==="property"||l.type==="string"||l.type==="number"||l.type==="boolean"||l.type==="null")?o=new ve.Range(t.positionAt(l.offset),t.positionAt(l.offset+l.length)):o=new ve.Range(t.positionAt(u-i.length),n);let f={},p={add:h=>{let x=typeof h.label=="string"?h.label:h.label.label;f[x]||(f[x]=!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(c.isAtPropertyKey){let h=Gr(t.getText(),!0),x=!c.previousNode||!this.hasColonAfter(h,c.previousNode.offset+c.previousNode.length),k=this.isLast(h,t.offsetAt(n));m=this.jsonContribution.collectPropertySuggestions(t.uri,c,i,x,k,p)}else c.path.length===0?m=this.jsonContribution.collectDefaultSuggestions(t.uri,p):m=this.jsonContribution.collectValueSuggestions(t.uri,c,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 $=require("vscode"),mt=me(require("path")),lu=me(require("fs")),fu=me(yi());var xi;(()=>{"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,c){for(var l,f="",p=0,m=-1,h=0,x=0;x<=u.length;++x){if(x<u.length)l=u.charCodeAt(x);else{if(l===47)break;l=47}if(l===47){if(!(m===x-1||h===1))if(m!==x-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 k=f.lastIndexOf("/");if(k!==f.length-1){k===-1?(f="",p=0):p=(f=f.slice(0,k)).length-1-f.lastIndexOf("/"),m=x,h=0;continue}}else if(f.length===2||f.length===1){f="",p=0,m=x,h=0;continue}}c&&(f.length>0?f+="/..":f="..",p=2)}else f.length>0?f+="/"+u.slice(m+1,x):f=u.slice(m+1,x),p=x-m-1;m=x,h=0}else l===46&&h!==-1?++h:h=-1}return f}var a={resolve:function(){for(var u,c="",l=!1,f=arguments.length-1;f>=-1&&!l;f--){var p;f>=0?p=arguments[f]:(u===void 0&&(u=process.cwd()),p=u),o(p),p.length!==0&&(c=p+"/"+c,l=p.charCodeAt(0)===47)}return c=s(c,!l),l?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(u){if(o(u),u.length===0)return".";var c=u.charCodeAt(0)===47,l=u.charCodeAt(u.length-1)===47;return(u=s(u,!c)).length!==0||c||(u="."),u.length>0&&l&&(u+="/"),c?"/"+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,c=0;c<arguments.length;++c){var l=arguments[c];o(l),l.length>0&&(u===void 0?u=l:u+="/"+l)}return u===void 0?".":a.normalize(u)},relative:function(u,c){if(o(u),o(c),u===c||(u=a.resolve(u))===(c=a.resolve(c)))return"";for(var l=1;l<u.length&&u.charCodeAt(l)===47;++l);for(var f=u.length,p=f-l,m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var h=c.length-m,x=p<h?p:h,k=-1,C=0;C<=x;++C){if(C===x){if(h>x){if(c.charCodeAt(m+C)===47)return c.slice(m+C+1);if(C===0)return c.slice(m+C)}else p>x&&(u.charCodeAt(l+C)===47?k=C:C===0&&(k=0));break}var R=u.charCodeAt(l+C);if(R!==c.charCodeAt(m+C))break;R===47&&(k=C)}var S="";for(C=l+k+1;C<=f;++C)C!==f&&u.charCodeAt(C)!==47||(S.length===0?S+="..":S+="/..");return S.length>0?S+c.slice(m+k):(m+=k,c.charCodeAt(m)===47&&++m,c.slice(m))},_makeLong:function(u){return u},dirname:function(u){if(o(u),u.length===0)return".";for(var c=u.charCodeAt(0),l=c===47,f=-1,p=!0,m=u.length-1;m>=1;--m)if((c=u.charCodeAt(m))===47){if(!p){f=m;break}}else p=!1;return f===-1?l?"/":".":l&&f===1?"//":u.slice(0,f)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');o(u);var l,f=0,p=-1,m=!0;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var h=c.length-1,x=-1;for(l=u.length-1;l>=0;--l){var k=u.charCodeAt(l);if(k===47){if(!m){f=l+1;break}}else x===-1&&(m=!1,x=l+1),h>=0&&(k===c.charCodeAt(h)?--h==-1&&(p=l):(h=-1,p=x))}return f===p?p=x:p===-1&&(p=u.length),u.slice(f,p)}for(l=u.length-1;l>=0;--l)if(u.charCodeAt(l)===47){if(!m){f=l+1;break}}else p===-1&&(m=!1,p=l+1);return p===-1?"":u.slice(f,p)},extname:function(u){o(u);for(var c=-1,l=0,f=-1,p=!0,m=0,h=u.length-1;h>=0;--h){var x=u.charCodeAt(h);if(x!==47)f===-1&&(p=!1,f=h+1),x===46?c===-1?c=h:m!==1&&(m=1):c!==-1&&(m=-1);else if(!p){l=h+1;break}}return c===-1||f===-1||m===0||m===1&&c===f-1&&c===l+1?"":u.slice(c,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(c,l){var f=l.dir||l.root,p=l.base||(l.name||"")+(l.ext||"");return f?f===l.root?f+p:f+"/"+p:p})(0,u)},parse:function(u){o(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var l,f=u.charCodeAt(0),p=f===47;p?(c.root="/",l=1):l=0;for(var m=-1,h=0,x=-1,k=!0,C=u.length-1,R=0;C>=l;--C)if((f=u.charCodeAt(C))!==47)x===-1&&(k=!1,x=C+1),f===46?m===-1?m=C:R!==1&&(R=1):m!==-1&&(R=-1);else if(!k){h=C+1;break}return m===-1||x===-1||R===0||R===1&&m===x-1&&m===h+1?x!==-1&&(c.base=c.name=h===0&&p?u.slice(1,x):u.slice(h,x)):(h===0&&p?(c.name=u.slice(1,m),c.base=u.slice(1,x)):(c.name=u.slice(h,m),c.base=u.slice(h,x)),c.ext=u.slice(m,x)),h>0?c.dir=u.slice(0,h-1):p&&(c.dir="/"),c},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:()=>O}),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 c="",l="/",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||c,this.authority=g.authority||c,this.path=g.path||c,this.query=g.query||c,this.fragment=g.fragment||c):(this.scheme=(function(D,H){return D||H?D:"file"})(g,F),this.authority=A||c,this.path=(function(D,H){switch(D){case"https":case"http":case"file":H?H[0]!==l&&(H=l+H):H=l}return H})(this.scheme,T||c),this.query=v||c,this.fragment=w||c,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=c),T===void 0?T=this.authority:T===null&&(T=c),v===void 0?v=this.path:v===null&&(v=c),w===void 0?w=this.query:w===null&&(w=c),F===void 0?F=this.fragment:F===null&&(F=c),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]||c,L(T[4]||c),L(T[5]||c),L(T[7]||c),L(T[9]||c),A):new h(c,c,c,c,c)}static file(g){let A=c;if(i&&(g=g.replace(/\\/g,l)),g[0]===l&&g[1]===l){let T=g.indexOf(l,2);T===-1?(A=g.substring(2),g=l):(A=g.substring(2,T),g=g.substring(T)||l)}return new h("file",A,g,c,c)}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 S(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?S(this,!0):(this._formatted||(this._formatted=S(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 x={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 k(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=x[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 C(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+=x[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 S(d,g){let A=g?C:k,T="",{scheme:v,authority:w,path:F,query:D,fragment:H}=d;if(v&&(T+=v,T+=":"),(w||v==="file")&&(T+=l,T+=l),w){let j=w.indexOf("@");if(j!==-1){let B=w.substr(0,j);w=w.substr(j+1),j=B.lastIndexOf(":"),j===-1?T+=A(B,!1,!1):(T+=A(B.substr(0,j),!1,!1),T+=":",T+=A(B.substr(j+1),!1,!0)),T+="@"}w=w.toLowerCase(),j=w.lastIndexOf(":"),j===-1?T+=A(w,!1,!0):(T+=A(w.substr(0,j),!1,!0),T+=w.substr(j))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){let j=F.charCodeAt(1);j>=65&&j<=90&&(F=`/${String.fromCharCode(j+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){let j=F.charCodeAt(0);j>=65&&j<=90&&(F=`${String.fromCharCode(j+32)}:${F.substr(2)}`)}T+=A(F,!0,!1)}return D&&(T+="?",T+=A(D,!1,!1)),H&&(T+="#",T+=g?H:k(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 E=n(470);let y=E.posix||E,b="/";var O;(function(d){d.joinPath=function(g,...A){return g.with({path:y.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=y.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=y.dirname(g.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),g.with({path:A})},d.basename=function(g){return y.basename(g.path)},d.extname=function(g){return y.extname(g.path)}})(O||(O={}))})(),xi=r})();var{URI:Ng,Utils:Yn}=xi;var su=me(Ni()),Je=me(require("path")),au=me(Ys()),yn=require("vscode"),rd=ou();async function dt(e){try{await yn.workspace.fs.stat(yn.Uri.file(e))}catch{return!1}return!0}async function id(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 od(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,su.default)("pnpm-lock.yaml",{cwd:e})?{isPreferred:!0,hasLockfile:!0}:{isPreferred:!1,hasLockfile:!1}}async function sd(e){if(await dt(Je.join(e,"yarn.lock")))return{isPreferred:!0,hasLockfile:!0};try{if(typeof rd(e)=="string")return{isPreferred:!0,hasLockfile:!1}}catch{}return{isPreferred:!1,hasLockfile:!1}}async function ad(e){let t=await dt(Je.join(e,"package-lock.json"));return{isPreferred:t,hasLockfile:t}}async function uu(e){let t=[],n=[],r=await ad(e);r.isPreferred&&(t.push("npm"),n.push(r));let i=await od(e);i.isPreferred&&(t.push("pnpm"),n.push(i));let o=await sd(e);o.isPreferred&&(t.push("yarn"),n.push(o));let s=await id(e);s.isPreferred&&(t.push("bun"),n.push(s));let a=await(0,au.default)(e);a&&!t.includes(a.name)&&(t.push(a.name),n.push({isPreferred:!0,hasLockfile:!1}));let u=0;return n.forEach(c=>u+=c.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(Wr(t,{onError(){},onObjectBegin(){s++},onObjectEnd(c){i&&(r=e.positionAt(c),i=!1),s--},onLiteralValue(c,l,f){o&&typeof c=="string"&&(a.push({...o,value:c,valueRange:new gt.Range(e.positionAt(l),e.positionAt(l+f))}),o=void 0)},onObjectProperty(c,l,f){s===1&&c==="scripts"?(i=!0,n=e.positionAt(l)):i&&(o={name:c,nameRange:new gt.Range(e.positionAt(l),e.positionAt(l+f))})}}),n!==void 0)return{location:new gt.Location(e.uri,new gt.Range(n,r??n)),scripts:a}};var pu=new RegExp("^(node_modules|.vscode-test)$","i"),xn,ze="install",vn=class{constructor(t){this.context=t}context;get tasksWithLocation(){return cu(this.context,!1)}async provideTasks(){return(await cu(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===$.TaskScope.Global||t.scope===$.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===ze?o=await An(this.context,t.scope,i):o=await Ht(this.context,r.script,t.scope,i),o.definition=r,o}}};function Lr(){xn=void 0}var ud=["build","compile","watch"];function cd(e){for(let t of ud)if(e.indexOf(t)!==-1)return!0;return!1}var ld=["test"];function fd(e){for(let t of ld)if(e===t)return!0;return!1}var pd=new Set(["install","pack","pack","publish","restart","shrinkwrap","stop","test","uninstall","version"]),hd=new Set(["install","pack","pack","publish","publishOnly","restart","shrinkwrap","stop","test","uninstall","version"]);function dd(e){return pd.has(e)||hd.has(e)}function hu(e){return e&&typeof e!="number"}async function Ir(e,t,n){let r=$.workspace.getConfiguration("npm",e).get("scriptRunner","npm");return r==="auto"&&(r=await bn(e,t,n)),r}async function Nr(e,t,n){let r=$.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 uu(e.fsPath),o="npm.multiplePMWarning.neverShow";if(n&&i&&t&&!t.globalState.get(o)){let s=$.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=$.l10n.t("Do not show again"),u=$.l10n.t("Learn more");$.window.showInformationMessage(s,u,a).then(c=>{switch(c){case a:t.globalState.update(o,!0);break;case u:$.env.openExternal($.Uri.parse("https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json"))}})}return r}async function*gd(){let e=new Set,t=$.workspace.workspaceFolders;if(t){for(let n of t)if(Fr(n)&&!pu.test(Yn.basename(n.uri))){let r=new $.RelativePattern(n,"**/package.json"),i=await $.workspace.findFiles(r,"**/{node_modules,.vscode-test}/**");for(let o of i)!md(n,o)&&!e.has(o.fsPath)&&(yield o,e.add(o.fsPath))}}}async function du(e,t){let n=[];if(pu.test(Yn.basename(t)))return n;let r=new $.RelativePattern(t.fsPath,"**/package.json"),i=await $.workspace.findFiles(r,"**/node_modules/**"),o=new Set;for(let s of i)if(!o.has(s.fsPath)){let a=await gu(e,s,!0);o.add(s.fsPath),n.push(...a.map(u=>({label:u.task.name,task:u.task})))}return n}async function cu(e,t){if(!xn){let n=[];for await(let r of gd()){let i=await gu(e,r,t);n.push(...i)}xn=n}return xn}function Fr(e){return $.workspace.getConfiguration("npm",e?.uri).get("autoDetect")==="on"}function md(e,t){function n(o,s){return(0,fu.default)(o,s,{dot:!0})}let r=$.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 yd(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 gu(e,t,n){let r=[],i=$.workspace.getWorkspaceFolder(t);if(!i)return r;let o=await bd(t);if(!o)return r;let s=[];for(let{name:a,value:u,nameRange:c}of o.scripts){let l=await Ht(e,a,i,t,u,n);s.push({task:l,location:new $.Location(t,c)})}return $.workspace.getConfiguration("npm",i).get("scriptExplorerExclude",[]).find(a=>a.includes(ze))||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 mu(e){return e.map(t=>/\s/.test(t)?{value:t,quoting:t.includes("--")?$.ShellQuoting.Weak:$.ShellQuoting.Strong}:t)}function yu(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 Ir(t,n,r);if(i==="node")return["node","--run",e];{let o=[i,"run"];return $.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=yu(n.uri,r);a.length&&!s.path&&(s.path=a.substring(0,a.length-1));let u=Dt(t,a),c=mt.dirname(r.fsPath),l=await wn(t,n.uri,e,o),f=l.shift(),p=new $.Task(s,n,u,"npm",new $.ShellExecution(f,mu(l),{cwd:c}));p.detail=i;let m=t.toLowerCase();return cd(m)?p.group=$.TaskGroup.Build:fd(m)?p.group=$.TaskGroup.Test:dd(m)?p.group=$.TaskGroup.Clean:i&&yd(i)&&(p.group=$.TaskGroup.Rebuild),p}async function xd(e,t,n=!0){let i=[await Nr(e,t,n),ze];return $.workspace.getConfiguration("npm",e).get("runSilent")&&i.push("--silent"),i}async function An(e,t,n,r,i){let o={type:"npm",script:ze},s=yu(t.uri,n);s.length&&!o.path&&(o.path=s.substring(0,s.length-1));let a=Dt(ze,s),u=mt.dirname(n.fsPath),c=await xd(t.uri,e,i),l=c.shift(),f=new $.Task(o,t,a,"npm",new $.ShellExecution(l,mu(c),{cwd:u}));return f.detail=r,f.group=$.TaskGroup.Clean,f}async function xu(){if(await vd())return!0;let e=new $.CancellationTokenSource,t=setTimeout(()=>e.cancel(),1e3),n=await $.workspace.findFiles("**/package.json",void 0,1,e.token);return clearTimeout(t),n.length>0}async function vd(){let e=$.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 vu(n))return!0}return!1}async function vu(e){return new Promise((t,n)=>{lu.exists(e,r=>{t(r)})})}async function bu(e,t,n){let r=n.uri,i=$.workspace.getWorkspaceFolder(r);if(i){let o=await Ht(e,t,i,r);$.tasks.executeTask(o)}}async function Sn(e,t,n,r){let i=await wn(t,r.uri,e,!0);$.commands.executeCommand("extension.js-debug.createDebuggerTerminal",i.join(" "),r,{cwd:n})}function wu(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 bd(e){if(e.scheme!=="file")return;let t=e.fsPath;if(await vu(t))try{let n=await $.workspace.openTextDocument(e);return Ce(n)}catch{let r=$.l10n.t("Npm task detection: failed to parse the file {0}",e.fsPath);throw new Error(r)}}function Au(e){let t=Pe.window.activeTextEditor;if(!t)return;let n=t.document,r=n.getText(),i=wu(t.document,r,t.selection.anchor);if(i)bu(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 Su(e,t){if(t.length===0)return;let n=t[0],r=await du(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(c=>c.dispose()),u(i.selectedItems[0])})),o.push(i.onDidHide(()=>{o.forEach(c=>c.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)}},En="package.json",Qe=class e extends G.TreeItem{path;folder;scripts=[];static getLabel(t){return t.length>0?Ze.join(t,En):En}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,En)):this.resourceUri=G.Uri.file(Ze.join(t.resourceUri.fsPath,En)),this.iconPath=G.ThemeIcon.File}addScript(t){this.scripts.push(t)}},Xe=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===`${ze} `?"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"}},kn=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 Qe&&(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 Qe?n=t.resourceUri:t instanceof Xe&&(n=t.package.resourceUri),!n)return;let r=await G.workspace.openTextDocument(n),i=this.findScriptPosition(r,t instanceof Xe?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 Qe?t.folder:t instanceof Xe?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.");Fr()||(i=G.l10n.t('The setting "npm.autoDetect" is "off".')),this.taskTree=[new $t(i)]}}}return t instanceof jt?t.packages:t instanceof Qe?t.scripts:t instanceof Xe?[]: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 l=G.workspace.getConfiguration("npm",u.uri).get("scriptExplorerExclude",[]);s.set(u.uri.toString(),l?.map(f=>RegExp(f)))}let c=u&&s.has(u.uri.toString())?s.get(u.uri.toString()):void 0;if(!(c&&c.some(l=>a.task.definition.script.match(l)))&&hu(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 l=a.task.definition,f=l.path?l.path:"",p=Ze.join(a.task.scope.name,f);o=r.get(p),o||(o=new Qe(i,f),i.addPackage(o),r.set(p,o));let m=new Xe(this.extensionContext,o,a);o.addScript(m)}}),n.size===1?[...r.values()]:[...n.values()]}};var ku=require("path"),re=require("vscode");var yt,Eu;function Mr(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=>{Mr(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)&&(Eu=Ce(t),yt=t.uri),Eu?.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,ku.dirname)(r.fsPath),i)}};var Tu=me(require("path")),pe=require("vscode");var _u=()=>pe.workspace.getConfiguration().get("debug.javascript.codelens.npmScripts"),Tn=class{lensLocation=_u();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=_u(),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=Tu.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 Qu=me(Ju()),et;function qt(){Mr(),Lr(),et&&et.refresh()}async function $d(e){zu(),e.subscriptions.push(z.workspace.onDidChangeConfiguration(n=>{(n.affectsConfiguration("http.proxy")||n.affectsConfiguration("http.proxyStrictSSL"))&&zu()}));let t=await qd();e.subscriptions.push(zr(Rn.xhr,t)),Bd(e),et=Gd(e),e.subscriptions.push(z.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"))&&(Lr(),et&&et.refresh()),n.affectsConfiguration("npm.scriptExplorerAction")&&et&&et.refresh()})),Wd(e),e.subscriptions.push(z.commands.registerCommand("npm.runSelectedScript",Au)),await xu()&&z.commands.executeCommand("setContext","npm:showScriptExplorer",!0),e.subscriptions.push(z.commands.registerCommand("npm.runScriptFromFolder",Su)),e.subscriptions.push(z.commands.registerCommand("npm.refresh",()=>{qt()})),e.subscriptions.push(z.commands.registerCommand("npm.scriptRunner",n=>n instanceof z.Uri?Ir(n,e,!0):"")),e.subscriptions.push(z.commands.registerCommand("npm.packageManager",n=>n instanceof z.Uri?Nr(n,e,!0):"")),e.subscriptions.push(new Tn),e.subscriptions.push(z.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 qd(){if(z.workspace.isTrusted&&Ud())try{return await(0,Qu.default)(process.platform==="win32"?"npm.cmd":"npm")}catch{return}}function Ud(){return z.workspace.workspaceFolders?z.workspace.workspaceFolders.some(e=>e.uri.scheme==="file"):!1}var Dr;function Bd(e){if(z.workspace.workspaceFolders){let t=z.workspace.createFileSystemWatcher("**/package.json");t.onDidChange(i=>qt()),t.onDidDelete(i=>qt()),t.onDidCreate(i=>qt()),e.subscriptions.push(t);let n=z.workspace.onDidChangeWorkspaceFolders(i=>qt());e.subscriptions.push(n),Dr=new vn(e);let r=z.tasks.registerTaskProvider("npm",Dr);return e.subscriptions.push(r),r}}function Gd(e){if(z.workspace.workspaceFolders){let t=new kn(e,Dr),n=z.window.createTreeView("npm",{treeDataProvider:t,showCollapseAll:!0});return e.subscriptions.push(n),t}}function Wd(e){if(z.workspace.workspaceFolders){let t={language:"json",scheme:"file",pattern:"**/package.json"},n=new _n(e);return e.subscriptions.push(z.languages.registerHoverProvider(t,n)),n}}function zu(){let e=z.workspace.getConfiguration("http");Rn.configure(e.get("proxy",""),e.get("proxyStrictSSL",!0))}function Yd(){}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
