"use strict";var Ju=Object.create;var $t=Object.defineProperty;var Qu=Object.getOwnPropertyDescriptor;var zu=Object.getOwnPropertyNames;var Xu=Object.getPrototypeOf,Zu=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ec=(e,t)=>{for(var n in t)$t(e,n,{get:t[n],enumerable:!0})},Mr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zu(t))!Zu.call(e,i)&&i!==n&&$t(e,i,{get:()=>t[i],enumerable:!(r=Qu(t,i))||r.enumerable});return e};var de=(e,t,n)=>(n=e!=null?Ju(Xu(e)):{},Mr(t||!e||!e.__esModule?$t(n,"default",{value:e,enumerable:!0}):n,e)),tc=e=>Mr($t({},"__esModule",{value:!0}),e);var Hr=F(Dr=>{(()=>{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,g),a.removeListener("error",h)}function g(...y){p(),l(y)}function h(y){p(),f(y)}c?.addEventListener("abort",p),a.on(u,g),a.on("error",h)}))}},54:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};let c=a(361),l=u(a(374)),f=u(a(304)),p=l.default("agent-base");function g(){let{stack:y}=new Error;return typeof y=="string"&&y.split(`
`).some((E=>E.indexOf("(https.js:")!==-1||E.indexOf("node:https:")!==-1))}function h(y,E){return new h.Agent(y,E)}(function(y){class E extends c.EventEmitter{constructor(P,k){super();let T=k;typeof P=="function"?this.callback=P:P&&(T=P),this.timeout=null,T&&typeof T.timeout=="number"&&(this.timeout=T.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:g()?443:80}set defaultPort(P){this.explicitDefaultPort=P}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:g()?"https:":"http:"}set protocol(P){this.explicitProtocol=P}callback(P,k,T){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(P,k){let T=Object.assign({},k);typeof T.secureEndpoint!="boolean"&&(T.secureEndpoint=g()),T.host==null&&(T.host="localhost"),T.port==null&&(T.port=T.secureEndpoint?443:80),T.protocol==null&&(T.protocol=T.secureEndpoint?"https:":"http:"),T.host&&T.path&&delete T.path,delete T.agent,delete T.hostname,delete T._defaultAgent,delete T.defaultPort,delete T.createConnection,P._last=!0,P.shouldKeepAlive=!1;let O=!1,L=null,S=T.timeout||this.timeout,b=d=>{P._hadError||(P.emit("error",d),P._hadError=!0)},v=()=>{L=null,O=!0;let d=new Error(`A "socket" was not created for HTTP request before ${S}ms`);d.code="ETIMEOUT",b(d)},R=d=>{O||(L!==null&&(clearTimeout(L),L=null),b(d))},m=d=>{if(O)return;if(L!=null&&(clearTimeout(L),L=null),A=d,!!A&&typeof A.addRequest=="function")return p("Callback returned another Agent instance %o",d.constructor.name),void d.addRequest(P,T);var A;if(d)return d.once("free",(()=>{this.freeSocket(d,T)})),void P.onSocket(d);let _=new Error(`no Duplex stream was returned to agent-base for \`${P.method} ${P.path}\``);b(_)};if(typeof this.callback=="function"){this.promisifiedCallback||(this.callback.length>=3?(p("Converting legacy callback function to promise"),this.promisifiedCallback=f.default(this.callback)):this.promisifiedCallback=this.callback),typeof S=="number"&&S>0&&(L=setTimeout(v,S)),"port"in T&&typeof T.port!="number"&&(T.port=Number(T.port));try{p("Resolving socket for %o request: %o",T.protocol,`${P.method} ${P.path}`),Promise.resolve(this.promisifiedCallback(P,T)).then(m,R)}catch(d){Promise.reject(d).catch(R)}}else b(new Error("`callback` is not defined"))}freeSocket(P,k){p("Freeing socket %o %o",P.constructor.name,k),P.destroy()}destroy(){p("Destroying agent %o",this.constructor.name)}}y.Agent=E,y.prototype=y.Agent.prototype})(h||(h={})),o.exports=h},304:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a){return function(u,c){return new Promise(((l,f)=>{a.call(this,u,c,((p,g)=>{p?f(p):l(g)}))}))}}},370:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(P,k,T,O){return new(T||(T=Promise))((function(L,S){function b(m){try{R(O.next(m))}catch(d){S(d)}}function v(m){try{R(O.throw(m))}catch(d){S(d)}}function R(m){var d;m.done?L(m.value):(d=m.value,d instanceof T?d:new T((function(A){A(d)}))).then(b,v)}R((O=O.apply(P,k||[])).next())}))},c=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(s,"__esModule",{value:!0});let l=c(a(808)),f=c(a(404)),p=c(a(310)),g=c(a(374)),h=c(a(46)),y=a(54),E=(0,g.default)("http-proxy-agent");class C extends y.Agent{constructor(k){let T;if(T=typeof k=="string"?p.default.parse(k):k,!T)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");E("Creating new HttpProxyAgent instance: %o",T),super(T);let O=Object.assign({},T);var L;this.secureProxy=T.secureProxy||typeof(L=O.protocol)=="string"&&/^https:?$/i.test(L),O.host=O.hostname||O.host,typeof O.port=="string"&&(O.port=parseInt(O.port,10)),!O.port&&O.host&&(O.port=this.secureProxy?443:80),O.host&&O.path&&(delete O.path,delete O.pathname),this.proxy=O}callback(k,T){return u(this,void 0,void 0,(function*(){let{proxy:O,secureProxy:L}=this,S=p.default.parse(k.path),b;if(S.protocol||(S.protocol="http:"),S.hostname||(S.hostname=T.hostname||T.host||null),S.port==null&&(T.port,1)&&(S.port=String(T.port)),S.port==="80"&&(S.port=""),k.path=p.default.format(S),O.auth&&k.setHeader("Proxy-Authorization",`Basic ${Buffer.from(O.auth).toString("base64")}`),L?(E("Creating `tls.Socket`: %o",O),b=f.default.connect(O)):(E("Creating `net.Socket`: %o",O),b=l.default.connect(O)),k._header){let v,R;E("Regenerating stored HTTP header string for request"),k._header=null,k._implicitHeader(),k.output&&k.output.length>0?(E("Patching connection write() output buffer with updated header"),v=k.output[0],R=v.indexOf(`\r
\r
`)+4,k.output[0]=k._header+v.substring(R),E("Output buffer: %o",k.output)):k.outputData&&k.outputData.length>0&&(E("Patching connection write() output buffer with updated header"),v=k.outputData[0].data,R=v.indexOf(`\r
\r
`)+4,k.outputData[0].data=k._header+v.substring(R),E("Output buffer: %o",k.outputData[0].data))}return yield(0,h.default)(b,"connect"),b}))}}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(T,O,L,S){return new(L||(L=Promise))((function(b,v){function R(A){try{d(S.next(A))}catch(_){v(_)}}function m(A){try{d(S.throw(A))}catch(_){v(_)}}function d(A){var _;A.done?b(A.value):(_=A.value,_ instanceof L?_:new L((function(x){x(_)}))).then(R,m)}d((S=S.apply(T,O||[])).next())}))},c=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(s,"__esModule",{value:!0});let l=c(a(808)),f=c(a(404)),p=c(a(310)),g=c(a(491)),h=c(a(374)),y=a(54),E=c(a(829)),C=h.default("https-proxy-agent:agent");class P extends y.Agent{constructor(O){let L;if(L=typeof O=="string"?p.default.parse(O):O,!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 S=Object.assign({},L);var b;this.secureProxy=L.secureProxy||typeof(b=S.protocol)=="string"&&/^https:?$/i.test(b),S.host=S.hostname||S.host,typeof S.port=="string"&&(S.port=parseInt(S.port,10)),!S.port&&S.host&&(S.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in S)&&(S.ALPNProtocols=["http 1.1"]),S.host&&S.path&&(delete S.path,delete S.pathname),this.proxy=S}callback(O,L){return u(this,void 0,void 0,(function*(){let{proxy:S,secureProxy:b}=this,v;b?(C("Creating `tls.Socket`: %o",S),v=f.default.connect(S)):(C("Creating `net.Socket`: %o",S),v=l.default.connect(S));let R=Object.assign({},S.headers),m=`CONNECT ${L.host}:${L.port} HTTP/1.1\r
`;S.auth&&(R["Proxy-Authorization"]=`Basic ${Buffer.from(S.auth).toString("base64")}`);let{host:d,port:A,secureEndpoint:_}=L;(function(H,j){return!!(!j&&H===80||j&&H===443)})(A,_)||(d+=`:${A}`),R.Host=d,R.Connection="close";for(let H of Object.keys(R))m+=`${H}: ${R[H]}\r
`;let x=E.default(v);v.write(`${m}\r
`);let{statusCode:w,buffered:N}=yield x;if(w===200){if(O.once("socket",k),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 K={},re;for(re in j)B.includes(re)||(K[re]=j[re]);return K})(L,"host","hostname","path","port")),{socket:v,servername:H}))}return v}v.destroy();let D=new l.default.Socket({writable:!1});return D.readable=!0,O.once("socket",(H=>{C("replaying proxy buffer for failed request"),g.default(H.listenerCount("data")>0),H.push(N),H.push(null)})),D}))}}function k(T){T.resume()}s.default=P},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 g=0,h=[];function y(){let P=l.read();P?(function(k){h.push(k),g+=k.length;let T=Buffer.concat(h,g);if(T.indexOf(`\r
\r
`)===-1)return c("have not received end of HTTP headers yet..."),void y();let O=T.toString("ascii",0,T.indexOf(`\r
`)),L=+O.split(" ")[1];c("got proxy server response: %o",O),f({statusCode:L,buffered:T})})(P):l.once("readable",y)}function E(P){c("onclose had error %o",P)}function C(){c("onend")}l.on("error",(function P(k){l.removeListener("end",C),l.removeListener("error",P),l.removeListener("close",E),l.removeListener("readable",y),c("onerror %o",k),p(k)})),l.on("close",E),l.on("end",C),y()}))}},539:function(o,s,a){"use strict";var u,c=this&&this.__extends||(u=function(b,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,m){R.__proto__=m}||function(R,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(R[d]=m[d])},u(b,v)},function(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function R(){this.constructor=b}u(b,v),b.prototype=v===null?Object.create(v):(R.prototype=v.prototype,new R)}),l=this&&this.__assign||function(){return l=Object.assign||function(b){for(var v,R=1,m=arguments.length;R<m;R++)for(var d in v=arguments[R])Object.prototype.hasOwnProperty.call(v,d)&&(b[d]=v[d]);return b},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),g=a(310),h=a(472),y=a(796),E=a(201),C=a(18);if(process.env.VSCODE_NLS_CONFIG){var P=process.env.VSCODE_NLS_CONFIG;h.config(JSON.parse(P))}var k=h.loadMessageBundle(),T=void 0,O=!0;function L(b){var v;return new Promise((function(R,m){var d=(0,g.parse)(b.url),A={hostname:d.hostname,agent:!!b.agent&&b.agent,port:d.port?parseInt(d.port):d.protocol==="https:"?443:80,path:d.path,method:b.type||"GET",headers:b.headers,rejectUnauthorized:typeof b.strictSSL!="boolean"||b.strictSSL};b.user&&b.password&&(A.auth=b.user+":"+b.password);var _=function(x){if(x.statusCode>=300&&x.statusCode<400&&b.followRedirects&&b.followRedirects>0&&x.headers.location){var w=x.headers.location;w.startsWith("/")&&(w=(0,g.format)({protocol:d.protocol,hostname:d.hostname,port:d.port,pathname:w})),R(L((function(N){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 N[B]=j[B]}))})),N})({},b,{url:w,followRedirects:b.followRedirects-1})))}else R({req:v,res:x})};(v=d.protocol==="https:"?p.request(A,_):f.request(A,_)).on("error",m),b.timeout&&v.setTimeout(b.timeout),b.data&&v.write(b.data),v.end(),b.token&&(b.token.isCancellationRequested&&v.destroy(new S),b.token.onCancellationRequested((function(){v.destroy(new S)})))}))}s.configure=function(b,v){T=b,O=v},s.xhr=function(b){return typeof(b=l({},b)).strictSSL!="boolean"&&(b.strictSSL=O),b.agent||(b.agent=(function(v,R){R===void 0&&(R={});var m=(0,g.parse)(v),d=R.proxyUrl||(function(x){return x.protocol==="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:x.protocol==="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy)||null})(m);if(!d)return null;var A=(0,g.parse)(d);if(!/^https?:$/.test(A.protocol))return null;var _={host:A.hostname,port:Number(A.port),auth:A.auth,rejectUnauthorized:typeof R.strictSSL!="boolean"||R.strictSSL,protocol:A.protocol};return m.protocol==="http:"?E(_):C(_)})(b.url,{proxyUrl:T,strictSSL:O})),typeof b.followRedirects!="number"&&(b.followRedirects=5),L(b).then((function(v){return new Promise((function(R,m){var d,A,_=v.res,x=_,w=!1,N=_.headers&&_.headers["content-encoding"];if(N&&(d=b.type,A=v.res.statusCode,!(d==="HEAD"||A>=100&&A<200||A===204||A===304))){var D={flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH};if(N==="gzip"){var H=y.createGunzip(D);_.pipe(H),x=H}else if(N==="deflate"){var j=y.createInflate(D);_.pipe(j),x=j}}var B=[];x.on("data",(function(K){return B.push(K)})),x.on("end",(function(){if(!w){if(w=!0,b.followRedirects>0&&(_.statusCode>=300&&_.statusCode<=303||_.statusCode===307)){var K=_.headers.location;if(K.startsWith("/")){var re=(0,g.parse)(b.url);K=(0,g.format)({protocol:re.protocol,hostname:re.hostname,port:re.port,pathname:K})}if(K){var Oe={type:b.type,url:K,user:b.user,password:b.password,headers:b.headers,timeout:b.timeout,followRedirects:b.followRedirects-1,data:b.data,token:b.token};return void(0,s.xhr)(Oe).then(R,m)}}var he=Buffer.concat(B),W={responseText:he.toString(),body:he,status:_.statusCode,headers:_.headers||{}};_.statusCode>=200&&_.statusCode<300||_.statusCode===1223?R(W):m(W)}})),x.on("error",(function(K){var re;re=S.is(K)?K:{responseText:k("error","Unable to access {0}. Error: {1}",b.url,K.message),body:Buffer.concat(B),status:500,headers:{}},w=!0,m(re)})),b.token&&(b.token.isCancellationRequested&&x.destroy(new S),b.token.onCancellationRequested((function(){x.destroy(new S)})))}))}),(function(v){var R;return R=S.is(v)?v:{responseText:b.agent?k("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",b.url,v.message):k("error.cannot.connect","Unable to connect to {0}. Error: {1}",b.url,v.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(R)}))},s.getErrorStatusDescription=function(b){if(!(b<400))switch(b){case 400:return k("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return k("status.401","Unauthorized. The server is refusing to respond.");case 403:return k("status.403","Forbidden. The server is refusing to respond.");case 404:return k("status.404","Not Found. The requested location could not be found.");case 405:return k("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return k("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return k("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return k("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return k("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return k("status.410","Gone. The requested page is no longer available.");case 411:return k("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return k("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return k("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return k("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return k("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return k("status.500","Internal Server Error.");case 501:return k("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 502:return k("status.502","Bad Gateway. The upstream server did not respond.");case 503:return k("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return k("status.416","HTTP status code {0}",b)}};var S=(function(b){function v(){var R=b.call(this,"The user aborted a request")||this;return R.name="AbortError",Object.setPrototypeOf(R,v.prototype),R}return c(v,b),v.is=function(R){return R instanceof v},v})(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 g(h,y){return s.isPseudo&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),y.length===0?h:h.replace(/\{(\d+)\}/g,(function(E,C){var P=C[0],k=y[P],T=E;return typeof k=="string"?T=k:typeof k!="number"&&typeof k!="boolean"&&k!=null||(T=String(k)),T}))}(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(y){var E=y;return E&&p(E.key)&&p(E.comment)}})(u||(u={})),s.isDefined=p,s.isPseudo=!1,s.setPseudo=function(h){s.isPseudo=h},s.format=g,s.localize=function(h,y){for(var E=[],C=2;C<arguments.length;C++)E[C-2]=arguments[C];return g(y,E)},s.loadMessageBundle=function(h){return(0,f.default)().loadMessageBundle(h)},s.config=function(h){return(0,f.default)().config(h)}},926:(o,s)=>{"use strict";var a;function u(){if(a===void 0)throw new Error("No runtime abstraction layer installed");return a}Object.defineProperty(s,"__esModule",{value:!0}),(function(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 g,h,y=Object.prototype.toString;function E(v){return y.call(v)==="[object Number]"}function C(v){return y.call(v)==="[object String]"}function P(v){return JSON.parse(c.readFileSync(v,"utf8"))}function k(v){return function(R,m){for(var d=[],A=2;A<arguments.length;A++)d[A-2]=arguments[A];return E(R)?R>=v.length?void console.error(`Broken localize call found. Index out of bounds. Stacktrace is
: `.concat(new Error("").stack)):(0,f.format)(v[R],d):C(m)?(console.warn("Message ".concat(m," didn't get externalized correctly.")),(0,f.format)(m,d)):void console.error(`Broken localize call found. Stacktrace is
: `.concat(new Error("").stack))}}function T(v,R){return g[v]=R,R}function O(v){try{return(function(R){var m=P(u.join(R,"nls.metadata.json")),d=Object.create(null);for(var A in m){var _=m[A];d[A]=_.messages}return d})(v)}catch(R){return void console.log("Generating default bundle from meta data failed.",R)}}function L(v,R){var m;if(h.languagePackSupport===!0&&h.cacheRoot!==void 0&&h.languagePackId!==void 0&&h.translationsConfigFile!==void 0&&h.translationsConfig!==void 0)try{m=(function(A,_){var x,w,N,D=u.join(h.cacheRoot,"".concat(A.id,"-").concat(A.hash,".json")),H=!1,j=!1;try{return x=JSON.parse(c.readFileSync(D,{encoding:"utf8",flag:"r"})),w=D,N=new Date,c.utimes(w,N,N,(function(){})),x}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(K){K&&console.error("Deleting corrupted bundle ".concat(D," failed."))})),H=!0}}if(x=(function(B,K){var re=h.translationsConfig[B.id];if(re){var Oe=P(re).contents,he=P(u.join(K,"nls.metadata.json")),W=Object.create(null);for(var Ee in he){var Ze=he[Ee],M=Oe["".concat(B.outDir,"/").concat(Ee)];if(M){for(var Q=[],I=0;I<Ze.keys.length;I++){var Y=Ze.keys[I],z=M[C(Y)?Y:Y.key];z===void 0&&(z=Ze.messages[I]),Q.push(z)}W[Ee]=Q}else W[Ee]=Ze.messages}return W}})(A,_),!x||H)return x;if(j)try{c.writeFileSync(D,JSON.stringify(x),{encoding:"utf8",flag:"wx"})}catch(B){if(B.code==="EEXIST")return x;throw B}return x})(v,R)}catch(A){console.log("Load or create bundle failed ",A)}if(!m){if(h.languagePackSupport)return O(R);var d=(function(A){for(var _=h.language;_;){var x=u.join(A,"nls.bundle.".concat(_,".json"));if(c.existsSync(x))return x;var w=_.lastIndexOf("-");_=w>0?_.substring(0,w):void 0}if(_===void 0&&(x=u.join(A,"nls.bundle.json"),c.existsSync(x)))return x})(R);if(d)try{return P(d)}catch(A){console.log("Loading in the box message bundle failed.",A)}m=O(R)}return m}function S(v){if(!v)return f.localize;var R=u.extname(v);if(R&&(v=v.substr(0,v.length-R.length)),h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.bundle){var m=(function(H){for(var j,B=u.dirname(H);j=u.join(B,"nls.metadata.header.json"),!c.existsSync(j);){var K=u.dirname(B);if(K===B){j=void 0;break}B=K}return j})(v);if(m){var d=u.dirname(m),A=g[d];if(A===void 0)try{var _=JSON.parse(c.readFileSync(m,"utf8"));try{var x=L(_,d);A=T(d,x?{header:_,nlsBundle:x}:null)}catch(H){console.error("Failed to load nls bundle",H),A=T(d,null)}}catch(H){console.error("Failed to read header file",H),A=T(d,null)}if(A){var w=v.substr(d.length+1).replace(/\\/g,"/"),N=A.nlsBundle[w];return N===void 0?(console.error("Messages for file ".concat(v," not found. See console for details.")),function(){return"Messages not found."}):k(N)}}}if(h.messageFormat===f.MessageFormat.both||h.messageFormat===f.MessageFormat.file)try{var D=P((function(H){var j;if(!(h.cacheLanguageResolution&&j)){if(f.isPseudo||!h.language)j=".nls.json";else for(var B=h.language;B;){var K=".nls."+B+".json";if(c.existsSync(H+K)){j=K;break}var re=B.lastIndexOf("-");re>0?B=B.substring(0,re):(j=".nls.json",B=null)}h.cacheLanguageResolution}return H+j})(v));return Array.isArray(D)?k(D):(0,f.isDefined)(D.messages)&&(0,f.isDefined)(D.keys)?k(D.messages):(console.error("String bundle '".concat(v,"' 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(v)),function(){return"Failed to load message bundle. See console for details."}}function b(v){return v&&(C(v.locale)&&(h.locale=v.locale.toLowerCase(),h.language=h.locale,g=Object.create(null)),v.messageFormat!==void 0&&(h.messageFormat=v.messageFormat),v.bundleFormat===f.BundleFormat.standalone&&h.languagePackSupport===!0&&(h.languagePackSupport=!1)),(0,f.setPseudo)(h.locale==="pseudo"),S}(function(){if(h={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:f.MessageFormat.bundle},C(process.env.VSCODE_NLS_CONFIG))try{var v=JSON.parse(process.env.VSCODE_NLS_CONFIG),R=void 0;if(v.availableLanguages){var m=v.availableLanguages["*"];C(m)&&(R=m)}if(C(v.locale)&&(h.locale=v.locale.toLowerCase()),R===void 0?h.language=h.locale:R!=="en"&&(h.language=R),(function(A){return A===!0||A===!1})(v._languagePackSupport)&&(h.languagePackSupport=v._languagePackSupport),C(v._cacheRoot)&&(h.cacheRoot=v._cacheRoot),C(v._languagePackId)&&(h.languagePackId=v._languagePackId),C(v._translationsConfigFile)){h.translationsConfigFile=v._translationsConfigFile;try{h.translationsConfig=P(h.translationsConfigFile)}catch{if(v._corruptedFile){var d=u.dirname(v._corruptedFile);c.exists(d,(function(_){_&&c.writeFile(v._corruptedFile,"corrupted","utf8",(function(x){console.error(x)}))}))}}}}catch{}(0,f.setPseudo)(h.locale==="pseudo"),g=Object.create(null)})(),s.loadMessageBundle=S,s.config=b,l.default.install(Object.freeze({loadMessageBundle:S,config:b}))},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=Dr;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()});var Qr=F((bg,Jr)=>{var fc=typeof process=="object"&&process&&process.platform==="win32";Jr.exports=fc?{sep:"\\"}:{sep:"/"}});var ti=F((wg,ei)=>{"use strict";ei.exports=Xr;function Xr(e,t,n){e instanceof RegExp&&(e=zr(e,n)),t instanceof RegExp&&(t=zr(t,n));var r=Zr(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}Xr.range=Zr;function Zr(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 ci=F((Ag,ui)=>{var ni=ti();ui.exports=dc;var ri="\0SLASH"+Math.random()+"\0",ii="\0OPEN"+Math.random()+"\0",jn="\0CLOSE"+Math.random()+"\0",oi="\0COMMA"+Math.random()+"\0",si="\0PERIOD"+Math.random()+"\0";function Hn(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function pc(e){return e.split("\\\\").join(ri).split("\\{").join(ii).split("\\}").join(jn).split("\\,").join(oi).split("\\.").join(si)}function hc(e){return e.split(ri).join("\\").split(ii).join("{").split(jn).join("}").split(oi).join(",").split(si).join(".")}function ai(e){if(!e)return[""];var t=[],n=ni("{","}",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=ai(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function dc(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),wt(pc(e),!0).map(hc)):[]}function gc(e){return"{"+e+"}"}function mc(e){return/^-?0\d/.test(e)}function yc(e,t){return e<=t}function xc(e,t){return e>=t}function wt(e,t){var n=[],r=ni("{","}",e);if(!r)return[e];var i=r.pre,o=r.post.length?wt(r.post,!1):[""];if(/\$$/.test(r.pre))for(var s=0;s<o.length;s++){var a=i+"{"+r.body+"}"+o[s];n.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),l=u||c,f=r.body.indexOf(",")>=0;if(!l&&!f)return r.post.match(/,(?!,).*\}/)?(e=r.pre+"{"+r.body+jn+r.post,wt(e)):[e];var p;if(l)p=r.body.split(/\.\./);else if(p=ai(r.body),p.length===1&&(p=wt(p[0],!1).map(gc),p.length===1))return o.map(function(R){return r.pre+p[0]+R});var g;if(l){var h=Hn(p[0]),y=Hn(p[1]),E=Math.max(p[0].length,p[1].length),C=p.length==3?Math.abs(Hn(p[2])):1,P=yc,k=y<h;k&&(C*=-1,P=xc);var T=p.some(mc);g=[];for(var O=h;P(O,y);O+=C){var L;if(c)L=String.fromCharCode(O),L==="\\"&&(L="");else if(L=String(O),T){var S=E-L.length;if(S>0){var b=new Array(S+1).join("0");O<0?L="-"+b+L.slice(1):L=b+L}}g.push(L)}}else{g=[];for(var v=0;v<p.length;v++)g.push.apply(g,wt(p[v],!1))}for(var v=0;v<g.length;v++)for(var s=0;s<o.length;s++){var a=i+g[v]+o[s];(!t||l||a)&&n.push(a)}}return n}});var gi=F((kg,Gn)=>{var ge=Gn.exports=(e,t,n={})=>(Bt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new tt(t,n).match(e));Gn.exports=ge;var Un=Qr();ge.sep=Un.sep;var be=Symbol("globstar **");ge.GLOBSTAR=be;var vc=ci(),li={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Bn="[^/]",$n=Bn+"*?",bc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wc="(?:(?!(?:\\/|^)\\.).)*?",hi=e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),fi=hi("().*{}+?[]^$\\!"),Ac=hi("[.("),pi=/\/+/;ge.filter=(e,t={})=>(n,r,i)=>ge(n,e,t);var Pe=(e,t={})=>{let n={};return Object.keys(e).forEach(r=>n[r]=e[r]),Object.keys(t).forEach(r=>n[r]=t[r]),n};ge.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ge;let t=ge,n=(r,i,o)=>t(r,i,Pe(e,o));return n.Minimatch=class extends t.Minimatch{constructor(i,o){super(i,Pe(e,o))}},n.Minimatch.defaults=r=>t.defaults(Pe(e,r)).Minimatch,n.filter=(r,i)=>t.filter(r,Pe(e,i)),n.defaults=r=>t.defaults(Pe(e,r)),n.makeRe=(r,i)=>t.makeRe(r,Pe(e,i)),n.braceExpand=(r,i)=>t.braceExpand(r,Pe(e,i)),n.match=(r,i,o)=>t.match(r,i,Pe(e,o)),n};ge.braceExpand=(e,t)=>di(e,t);var di=(e,t={})=>(Bt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:vc(e)),Sc=1024*64,Bt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Sc)throw new TypeError("pattern is too long")},qn=Symbol("subparse");ge.makeRe=(e,t)=>new tt(e,t||{}).makeRe();ge.match=(e,t,n={})=>{let r=new tt(t,n);return e=e.filter(i=>r.match(i)),r.options.nonull&&!e.length&&e.push(t),e};var kc=e=>e.replace(/\\(.)/g,"$1"),Ec=e=>e.replace(/\\([^-\]])/g,"$1"),_c=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tc=e=>e.replace(/[[\]\\]/g,"\\$&"),tt=class{constructor(t,n){Bt(t),n||(n={}),this.options=n,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(pi)),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){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:n}),this.debug("matchOne",t.length,n.length);for(var o=0,s=0,a=t.length,u=n.length;o<a&&s<u;o++,s++){this.debug("matchOne loop");var c=n[s],l=t[o];if(this.debug(n,c,l),c===!1)return!1;if(c===be){this.debug("GLOBSTAR",[n,c,l]);var f=o,p=s+1;if(p===u){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;f<a;){var g=t[f];if(this.debug(`
globstar while`,t,f,n,p,g),this.matchOne(t.slice(f),n.slice(p),r))return this.debug("globstar found match!",f,a,g),!0;if(g==="."||g===".."||!i.dot&&g.charAt(0)==="."){this.debug("dot detected!",t,f,n,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,f,n,p),f===a))}var h;if(typeof c=="string"?(h=l===c,this.debug("string match",c,l,h)):(h=l.match(c),this.debug("pattern match",c,l,h)),!h)return!1}if(o===a&&s===u)return!0;if(o===a)return r;if(s===u)return o===a-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return di(this.pattern,this.options)}parse(t,n){Bt(t);let r=this.options;if(t==="**")if(r.noglobstar)t="*";else return be;if(t==="")return"";let i="",o=!1,s=!1,a=[],u=[],c,l=!1,f=-1,p=-1,g,h,y,E=t.charAt(0)===".",C=r.dot||E,P=()=>E?"":C?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=S=>S.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",T=()=>{if(c){switch(c){case"*":i+=$n,o=!0;break;case"?":i+=Bn,o=!0;break;default:i+="\\"+c;break}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let S=0,b;S<t.length&&(b=t.charAt(S));S++){if(this.debug("%s	%s %s %j",t,S,i,b),s){if(b==="/")return!1;fi[b]&&(i+="\\"),i+=b,s=!1;continue}switch(b){case"/":return!1;case"\\":if(l&&t.charAt(S+1)==="-"){i+=b;continue}T(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s	%s %s %j <-- stateChar",t,S,i,b),l){this.debug("  in class"),b==="!"&&S===p+1&&(b="^"),i+=b;continue}this.debug("call clearStateChar %j",c),T(),c=b,r.noext&&T();continue;case"(":{if(l){i+="(";continue}if(!c){i+="\\(";continue}let v={type:c,start:S-1,reStart:i.length,open:li[c].open,close:li[c].close};this.debug(this.pattern,"	",v),a.push(v),i+=v.open,v.start===0&&v.type!=="!"&&(E=!0,i+=k(t.slice(S+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{let v=a[a.length-1];if(l||!v){i+="\\)";continue}a.pop(),T(),o=!0,h=v,i+=h.close,h.type==="!"&&u.push(Object.assign(h,{reEnd:i.length}));continue}case"|":{let v=a[a.length-1];if(l||!v){i+="\\|";continue}T(),i+="|",v.start===0&&v.type!=="!"&&(E=!0,i+=k(t.slice(S+1)));continue}case"[":if(T(),l){i+="\\"+b;continue}l=!0,p=S,f=i.length,i+=b;continue;case"]":if(S===p+1||!l){i+="\\"+b;continue}g=t.substring(p+1,S);try{RegExp("["+Tc(Ec(g))+"]"),i+=b}catch{i=i.substring(0,f)+"(?:$.)"}o=!0,l=!1;continue;default:T(),fi[b]&&!(b==="^"&&l)&&(i+="\\"),i+=b;break}}for(l&&(g=t.slice(p+1),y=this.parse(g,qn),i=i.substring(0,f)+"\\["+y[0],o=o||y[1]),h=a.pop();h;h=a.pop()){let S;S=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(v,R,m)=>(m||(m="\\"),R+R+m+"|")),this.debug(`tail=%j
   %s`,S,S,h,i);let b=h.type==="*"?$n:h.type==="?"?Bn:"\\"+h.type;o=!0,i=i.slice(0,h.reStart)+b+"\\("+S}T(),s&&(i+="\\\\");let O=Ac[i.charAt(0)];for(let S=u.length-1;S>-1;S--){let b=u[S],v=i.slice(0,b.reStart),R=i.slice(b.reStart,b.reEnd-8),m=i.slice(b.reEnd),d=i.slice(b.reEnd-8,b.reEnd)+m,A=v.split(")").length,_=v.split("(").length-A,x=m;for(let N=0;N<_;N++)x=x.replace(/\)[+*?]?/,"");m=x;let w=m===""&&n!==qn?"(?:$|\\/)":"";i=v+R+m+w+d}if(i!==""&&o&&(i="(?=.)"+i),O&&(i=P()+i),n===qn)return[i,o];if(r.nocase&&!o&&(o=t.toUpperCase()!==t.toLowerCase()),!o)return kc(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?$n:n.dot?bc:wc,i=n.nocase?"i":"",o=t.map(s=>(s=s.map(a=>typeof a=="string"?_c(a):a===be?be:a._src).reduce((a,u)=>(a[a.length-1]===be&&u===be||a.push(u),a),[]),s.forEach((a,u)=>{a!==be||s[u-1]===be||(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]=be))}),s.filter(a=>a!==be).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;Un.sep!=="/"&&(t=t.split(Un.sep).join("/")),t=t.split(pi),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 ge.defaults(t).Minimatch}};ge.Minimatch=tt});var xi=F((Tg,yi)=>{var Yn=class{constructor(t){this.value=t,this.next=void 0}},Vn=class{constructor(){this.clear()}enqueue(t){let n=new Yn(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}};yi.exports=Vn});var bi=F((Rg,vi)=>{"use strict";var Rc=xi(),Cc=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 Rc,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};vi.exports=Cc});var Si=F((Cg,Ai)=>{"use strict";var wi=bi(),Gt=class extends Error{constructor(t){super(),this.value=t}},Oc=async(e,t)=>t(await e),Pc=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Gt(t[0]);return!1},Lc=async(e,t,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};let r=wi(n.concurrency),i=[...e].map(s=>[s,r(Oc,s,t)]),o=wi(n.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Pc,s)))}catch(s){if(s instanceof Gt)return s.value;throw s}};Ai.exports=Lc});var Ci=F((Og,Kn)=>{"use strict";var ki=require("path"),Wt=require("fs"),{promisify:Ei}=require("util"),Ic=Si(),Nc=Ei(Wt.stat),Fc=Ei(Wt.lstat),_i={directory:"isDirectory",file:"isFile"};function Ti({type:e}){if(!(e in _i))throw new Error(`Invalid type specified: ${e}`)}var Ri=(e,t)=>e===void 0||t[_i[e]]();Kn.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ti(t);let n=t.allowSymlinks?Nc:Fc;return Ic(e,async r=>{try{let i=await n(ki.resolve(t.cwd,r));return Ri(t.type,i)}catch{return!1}},t)};Kn.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ti(t);let n=t.allowSymlinks?Wt.statSync:Wt.lstatSync;for(let r of e)try{let i=n(ki.resolve(t.cwd,r));if(Ri(t.type,i))return r}catch{}}});var Qn=F((Pg,Jn)=>{"use strict";var Oi=require("fs"),{promisify:Mc}=require("util"),Dc=Mc(Oi.access);Jn.exports=async e=>{try{return await Dc(e),!0}catch{return!1}};Jn.exports.sync=e=>{try{return Oi.accessSync(e),!0}catch{return!1}}});var Li=F((Lg,nt)=>{"use strict";var Le=require("path"),Yt=Ci(),Pi=Qn(),zn=Symbol("findUp.stop");nt.exports=async(e,t={})=>{let n=Le.resolve(t.cwd||""),{root:r}=Le.parse(n),i=[].concat(e),o=async s=>{if(typeof e!="function")return Yt(i,s);let a=await e(s.cwd);return typeof a=="string"?Yt([a],s):a};for(;;){let s=await o({...t,cwd:n});if(s===zn)return;if(s)return Le.resolve(n,s);if(n===r)return;n=Le.dirname(n)}};nt.exports.sync=(e,t={})=>{let n=Le.resolve(t.cwd||""),{root:r}=Le.parse(n),i=[].concat(e),o=s=>{if(typeof e!="function")return Yt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Yt.sync([a],s):a};for(;;){let s=o({...t,cwd:n});if(s===zn)return;if(s)return Le.resolve(n,s);if(n===r)return;n=Le.dirname(n)}};nt.exports.exists=Pi;nt.exports.sync.exists=Pi.sync;nt.exports.stop=zn});var Ni=F((Ig,Ii)=>{var Ie=require("constants"),Hc=process.cwd,Vt=null,jc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Vt||(Vt=Hc.call(process)),Vt};try{process.cwd()}catch{}var $c=process.chdir;process.chdir=function(e){Vt=null,$c.call(process,e)};Ii.exports=qc;function qc(e){Ie.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,g){g&&process.nextTick(g)},e.lchownSync=function(){}),jc==="win32"&&(e.rename=(function(l){return function(f,p,g){var h=Date.now(),y=0;l(f,p,function E(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(p,function(P,k){P&&P.code==="ENOENT"?l(f,p,E):g(C)})},y),y<100&&(y+=10);return}g&&g(C)})}})(e.rename)),e.read=(function(l){function f(p,g,h,y,E,C){var P;if(C&&typeof C=="function"){var k=0;P=function(T,O,L){if(T&&T.code==="EAGAIN"&&k<10)return k++,l.call(e,p,g,h,y,E,P);C.apply(this,arguments)}}return l.call(e,p,g,h,y,E,P)}return f.__proto__=l,f})(e.read),e.readSync=(function(l){return function(f,p,g,h,y){for(var E=0;;)try{return l.call(e,f,p,g,h,y)}catch(C){if(C.code==="EAGAIN"&&E<10){E++;continue}throw C}}})(e.readSync);function t(l){l.lchmod=function(f,p,g){l.open(f,Ie.O_WRONLY|Ie.O_SYMLINK,p,function(h,y){if(h){g&&g(h);return}l.fchmod(y,p,function(E){l.close(y,function(C){g&&g(E||C)})})})},l.lchmodSync=function(f,p){var g=l.openSync(f,Ie.O_WRONLY|Ie.O_SYMLINK,p),h=!0,y;try{y=l.fchmodSync(g,p),h=!1}finally{if(h)try{l.closeSync(g)}catch{}else l.closeSync(g)}return y}}function n(l){Ie.hasOwnProperty("O_SYMLINK")?(l.lutimes=function(f,p,g,h){l.open(f,Ie.O_SYMLINK,function(y,E){if(y){h&&h(y);return}l.futimes(E,p,g,function(C){l.close(E,function(P){h&&h(C||P)})})})},l.lutimesSync=function(f,p,g){var h=l.openSync(f,Ie.O_SYMLINK),y,E=!0;try{y=l.futimesSync(h,p,g),E=!1}finally{if(E)try{l.closeSync(h)}catch{}else l.closeSync(h)}return y}):(l.lutimes=function(f,p,g,h){h&&process.nextTick(h)},l.lutimesSync=function(){})}function r(l){return l&&function(f,p,g){return l.call(e,f,p,function(h){c(h)&&(h=null),g&&g.apply(this,arguments)})}}function i(l){return l&&function(f,p){try{return l.call(e,f,p)}catch(g){if(!c(g))throw g}}}function o(l){return l&&function(f,p,g,h){return l.call(e,f,p,g,function(y){c(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(l){return l&&function(f,p,g){try{return l.call(e,f,p,g)}catch(h){if(!c(h))throw h}}}function a(l){return l&&function(f,p,g){typeof p=="function"&&(g=p,p=null);function h(y,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),g&&g.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 g=p?l.call(e,f,p):l.call(e,f);return g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296),g}}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 Di=F((Ng,Mi)=>{var Fi=require("stream").Stream;Mi.exports=Uc;function Uc(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);Fi.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);Fi.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 ji=F((Fg,Hi)=>{"use strict";Hi.exports=Bc;function Bc(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 Ui=F((Mg,Zn)=>{var ae=require("fs"),Gc=Ni(),Wc=Di(),Yc=ji(),Kt=require("util"),we,Jt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(we=Symbol.for("graceful-fs.queue"),Jt=Symbol.for("graceful-fs.previous")):(we="___graceful-fs.queue",Jt="___graceful-fs.previous");function Vc(){}function qi(e,t){Object.defineProperty(e,we,{get:function(){return t}})}var St=Vc;Kt.debuglog?St=Kt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(St=function(){var e=Kt.format.apply(Kt,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});ae[we]||($i=global[we]||[],qi(ae,$i),ae.close=(function(e){function t(n,r){return e.call(ae,n,function(i){i||De(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,Jt,{value:e}),t})(ae.close),ae.closeSync=(function(e){function t(n){e.apply(ae,arguments),De()}return Object.defineProperty(t,Jt,{value:e}),t})(ae.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){St(ae[we]),require("assert").equal(ae[we].length,0)}));var $i;global[we]||qi(global,ae[we]);Zn.exports=Xn(Yc(ae));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ae.__patched&&(Zn.exports=Xn(ae),ae.__patched=!0);function Xn(e){Gc(e),e.gracefulify=Xn,e.createReadStream=k,e.createWriteStream=T;var t=e.readFile;e.readFile=n;function n(S,b,v){return typeof b=="function"&&(v=b,b=null),R(S,b,v);function R(m,d,A){return t(m,d,function(_){_&&(_.code==="EMFILE"||_.code==="ENFILE")?At([R,[m,d,A]]):(typeof A=="function"&&A.apply(this,arguments),De())})}}var r=e.writeFile;e.writeFile=i;function i(S,b,v,R){return typeof v=="function"&&(R=v,v=null),m(S,b,v,R);function m(d,A,_,x){return r(d,A,_,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[d,A,_,x]]):(typeof x=="function"&&x.apply(this,arguments),De())})}}var o=e.appendFile;o&&(e.appendFile=s);function s(S,b,v,R){return typeof v=="function"&&(R=v,v=null),m(S,b,v,R);function m(d,A,_,x){return o(d,A,_,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[d,A,_,x]]):(typeof x=="function"&&x.apply(this,arguments),De())})}}var a=e.readdir;e.readdir=u;function u(S,b,v){var R=[S];return typeof b!="function"?R.push(b):v=b,R.push(m),c(R);function m(d,A){A&&A.sort&&A.sort(),d&&(d.code==="EMFILE"||d.code==="ENFILE")?At([c,[R]]):(typeof v=="function"&&v.apply(this,arguments),De())}}function c(S){return a.apply(e,S)}if(process.version.substr(0,4)==="v0.8"){var l=Wc(e);y=l.ReadStream,C=l.WriteStream}var f=e.ReadStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=E);var p=e.WriteStream;p&&(C.prototype=Object.create(p.prototype),C.prototype.open=P),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(S){C=S},enumerable:!0,configurable:!0});var g=y;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(S){g=S},enumerable:!0,configurable:!0});var h=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(S){h=S},enumerable:!0,configurable:!0});function y(S,b){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function E(){var S=this;L(S.path,S.flags,S.mode,function(b,v){b?(S.autoClose&&S.destroy(),S.emit("error",b)):(S.fd=v,S.emit("open",v),S.read())})}function C(S,b){return this instanceof C?(p.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function P(){var S=this;L(S.path,S.flags,S.mode,function(b,v){b?(S.destroy(),S.emit("error",b)):(S.fd=v,S.emit("open",v))})}function k(S,b){return new e.ReadStream(S,b)}function T(S,b){return new e.WriteStream(S,b)}var O=e.open;e.open=L;function L(S,b,v,R){return typeof v=="function"&&(R=v,v=null),m(S,b,v,R);function m(d,A,_,x){return O(d,A,_,function(w,N){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[d,A,_,x]]):(typeof x=="function"&&x.apply(this,arguments),De())})}}return e}function At(e){St("ENQUEUE",e[0].name,e[1]),ae[we].push(e)}function De(){var e=ae[we].shift();e&&(St("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Wi=F((Dg,Gi)=>{"use strict";var Bi=(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)})};Gi.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):Bi(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)?Bi(s,t):s}return i}});var Vi=F((Hg,Yi)=>{"use strict";Yi.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 je=F((jg,He)=>{"use strict";function Ki(e){return typeof e>"u"||e===null}function Kc(e){return typeof e=="object"&&e!==null}function Jc(e){return Array.isArray(e)?e:Ki(e)?[]:[e]}function Qc(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 zc(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Xc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}He.exports.isNothing=Ki;He.exports.isObject=Kc;He.exports.toArray=Jc;He.exports.repeat=zc;He.exports.isNegativeZero=Xc;He.exports.extend=Qc});var rt=F(($g,Ji)=>{"use strict";function kt(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||""}kt.prototype=Object.create(Error.prototype);kt.prototype.constructor=kt;kt.prototype.toString=function(t){var n=this.name+": ";return n+=this.reason||"(unknown reason)",!t&&this.mark&&(n+=" "+this.mark.toString()),n};Ji.exports=kt});var Xi=F((qg,zi)=>{"use strict";var Qi=je();function er(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}er.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),Qi.repeat(" ",t)+r+a+o+`
`+Qi.repeat(" ",t+this.position-i+r.length)+"^"};er.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=er});var oe=F((Ug,eo)=>{"use strict";var Zi=rt(),Zc=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],el=["scalar","sequence","mapping"];function tl(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function nl(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Zc.indexOf(n)===-1)throw new Zi('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=tl(t.styleAliases||null),el.indexOf(this.kind)===-1)throw new Zi('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}eo.exports=nl});var $e=F((Bg,no)=>{"use strict";var to=je(),Qt=rt(),rl=oe();function tr(e,t,n){var r=[];return e.include.forEach(function(i){n=tr(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 il(){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 it(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Qt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=tr(this,"implicit",[]),this.compiledExplicit=tr(this,"explicit",[]),this.compiledTypeMap=il(this.compiledImplicit,this.compiledExplicit)}it.DEFAULT=null;it.create=function(){var t,n;switch(arguments.length){case 1:t=it.DEFAULT,n=arguments[0];break;case 2:t=arguments[0],n=arguments[1];break;default:throw new Qt("Wrong number of arguments for Schema.create function")}if(t=to.toArray(t),n=to.toArray(n),!t.every(function(r){return r instanceof it}))throw new Qt("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(r){return r instanceof rl}))throw new Qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new it({include:t,explicit:n})};no.exports=it});var io=F((Gg,ro)=>{"use strict";var ol=oe();ro.exports=new ol("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var so=F((Wg,oo)=>{"use strict";var sl=oe();oo.exports=new sl("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var uo=F((Yg,ao)=>{"use strict";var al=oe();ao.exports=new al("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var zt=F((Vg,co)=>{"use strict";var ul=$e();co.exports=new ul({explicit:[io(),so(),uo()]})});var fo=F((Kg,lo)=>{"use strict";var cl=oe();function ll(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function fl(){return null}function pl(e){return e===null}lo.exports=new cl("tag:yaml.org,2002:null",{kind:"scalar",resolve:ll,construct:fl,predicate:pl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var ho=F((Jg,po)=>{"use strict";var hl=oe();function dl(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 gl(e){return e==="true"||e==="True"||e==="TRUE"}function ml(e){return Object.prototype.toString.call(e)==="[object Boolean]"}po.exports=new hl("tag:yaml.org,2002:bool",{kind:"scalar",resolve:dl,construct:gl,predicate:ml,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 mo=F((Qg,go)=>{"use strict";var yl=je(),xl=oe();function vl(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function bl(e){return 48<=e&&e<=55}function wl(e){return 48<=e&&e<=57}function Al(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(!vl(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}for(;n<t;n++)if(i=e[n],i!=="_"){if(!bl(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(!wl(e.charCodeAt(n)))return!1;r=!0}return!r||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(n))}function Sl(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 kl(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!yl.isNegativeZero(e)}go.exports=new xl("tag:yaml.org,2002:int",{kind:"scalar",resolve:Al,construct:Sl,predicate:kl,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 vo=F((zg,xo)=>{"use strict";var yo=je(),El=oe(),_l=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Tl(e){return!(e===null||!_l.test(e)||e[e.length-1]==="_")}function Rl(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 Cl=/^[-+]?[0-9]+e/;function Ol(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(yo.isNegativeZero(e))return"-0.0";return n=e.toString(10),Cl.test(n)?n.replace("e",".e"):n}function Pl(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||yo.isNegativeZero(e))}xo.exports=new El("tag:yaml.org,2002:float",{kind:"scalar",resolve:Tl,construct:Rl,predicate:Pl,represent:Ol,defaultStyle:"lowercase"})});var nr=F((Xg,bo)=>{"use strict";var Ll=$e();bo.exports=new Ll({include:[zt()],implicit:[fo(),ho(),mo(),vo()]})});var rr=F((Zg,wo)=>{"use strict";var Il=$e();wo.exports=new Il({include:[nr()]})});var Eo=F((em,ko)=>{"use strict";var Nl=oe(),Ao=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),So=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 Fl(e){return e===null?!1:Ao.exec(e)!==null||So.exec(e)!==null}function Ml(e){var t,n,r,i,o,s,a,u=0,c=null,l,f,p;if(t=Ao.exec(e),t===null&&(t=So.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 Dl(e){return e.toISOString()}ko.exports=new Nl("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Fl,construct:Ml,instanceOf:Date,represent:Dl})});var To=F((tm,_o)=>{"use strict";var Hl=oe();function jl(e){return e==="<<"||e===null}_o.exports=new Hl("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jl})});var Oo=F((nm,Co)=>{"use strict";var qe;try{Ro=require,qe=Ro("buffer").Buffer}catch{}var Ro,$l=oe(),ir=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function ql(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=ir;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 Ul(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=ir,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),qe?qe.from?qe.from(a):new qe(a):a}function Bl(e){var t="",n=0,r,i,o=e.length,s=ir;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 Gl(e){return qe&&qe.isBuffer(e)}Co.exports=new $l("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ql,construct:Ul,predicate:Gl,represent:Bl})});var Lo=F((rm,Po)=>{"use strict";var Wl=oe(),Yl=Object.prototype.hasOwnProperty,Vl=Object.prototype.toString;function Kl(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,Vl.call(i)!=="[object Object]")return!1;for(o in i)if(Yl.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 Jl(e){return e!==null?e:[]}Po.exports=new Wl("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kl,construct:Jl})});var No=F((im,Io)=>{"use strict";var Ql=oe(),zl=Object.prototype.toString;function Xl(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],zl.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function Zl(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}Io.exports=new Ql("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xl,construct:Zl})});var Mo=F((om,Fo)=>{"use strict";var ef=oe(),tf=Object.prototype.hasOwnProperty;function nf(e){if(e===null)return!0;var t,n=e;for(t in n)if(tf.call(n,t)&&n[t]!==null)return!1;return!0}function rf(e){return e!==null?e:{}}Fo.exports=new ef("tag:yaml.org,2002:set",{kind:"mapping",resolve:nf,construct:rf})});var ot=F((sm,Do)=>{"use strict";var of=$e();Do.exports=new of({include:[rr()],implicit:[Eo(),To()],explicit:[Oo(),Lo(),No(),Mo()]})});var jo=F((am,Ho)=>{"use strict";var sf=oe();function af(){return!0}function uf(){}function cf(){return""}function lf(e){return typeof e>"u"}Ho.exports=new sf("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:af,construct:uf,predicate:lf,represent:cf})});var qo=F((um,$o)=>{"use strict";var ff=oe();function pf(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 hf(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 df(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function gf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}$o.exports=new ff("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:pf,construct:hf,predicate:gf,represent:df})});var Go=F((cm,Bo)=>{"use strict";var Xt;try{Uo=require,Xt=Uo("esprima")}catch{typeof window<"u"&&(Xt=window.esprima)}var Uo,mf=oe();function yf(e){if(e===null)return!1;try{var t="("+e+")",n=Xt.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 xf(e){var t="("+e+")",n=Xt.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 vf(e){return e.toString()}function bf(e){return Object.prototype.toString.call(e)==="[object Function]"}Bo.exports=new mf("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:yf,construct:xf,predicate:bf,represent:vf})});var Et=F((lm,Yo)=>{"use strict";var Wo=$e();Yo.exports=Wo.DEFAULT=new Wo({include:[ot()],explicit:[jo(),qo(),Go()]})});var ps=F((fm,_t)=>{"use strict";var _e=je(),Zo=rt(),wf=Xi(),es=ot(),Af=Et(),Fe=Object.prototype.hasOwnProperty,Zt=1,ts=2,ns=3,en=4,or=1,Sf=2,Vo=3,kf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ef=/[\x85\u2028\u2029]/,_f=/[,\[\]\{\}]/,rs=/^(?:!|!!|![a-z\-]+!)$/i,is=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ko(e){return Object.prototype.toString.call(e)}function Ae(e){return e===10||e===13}function Be(e){return e===9||e===32}function fe(e){return e===9||e===32||e===10||e===13}function st(e){return e===44||e===91||e===93||e===123||e===125}function Tf(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Rf(e){return e===120?2:e===117?4:e===85?8:0}function Cf(e){return 48<=e&&e<=57?e-48:-1}function Jo(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 Of(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function os(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var ss=new Array(256),as=new Array(256);for(Ue=0;Ue<256;Ue++)ss[Ue]=Jo(Ue)?1:0,as[Ue]=Jo(Ue);var Ue;function Pf(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Af,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function us(e,t){return new Zo(t,new wf(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function U(e,t){throw us(e,t)}function tn(e,t){e.onWarning&&e.onWarning.call(null,us(e,t))}var Qo={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&&tn(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],rs.test(i)||U(t,"ill-formed tag handle (first argument) of the TAG directive"),Fe.call(t.tagMap,i)&&U(t,'there is a previously declared suffix for "'+i+'" tag handle'),is.test(o)||U(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Ne(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 kf.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(_e.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],Fe.call(t,o)||(os(t,o,n[o]),r[o]=!0)}function at(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"&&Ko(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Ko(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&&!Fe.call(n,i)&&Fe.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,U(e,"duplicated mapping key")),os(t,i,o),delete n[i];return t}function sr(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 te(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Be(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(Ae(i))for(sr(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&&tn(e,"deficient indentation"),r}function nn(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||fe(n)))}function ar(e,t){t===1?e.result+=" ":t>1&&(e.result+=_e.repeat(`
`,t-1))}function Lf(e,t,n){var r,i,o,s,a,u,c,l,f=e.kind,p=e.result,g;if(g=e.input.charCodeAt(e.position),fe(g)||st(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),fe(i)||n&&st(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),fe(i)||n&&st(i))break}else if(g===35){if(r=e.input.charCodeAt(e.position-1),fe(r))break}else{if(e.position===e.lineStart&&nn(e)||n&&st(g))break;if(Ae(g))if(u=e.line,c=e.lineStart,l=e.lineIndent,te(e,!1,-1),e.lineIndent>=t){a=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Ne(e,o,s,!1),ar(e,e.line-u),o=s=e.position,a=!1),Be(g)||(s=e.position+1),g=e.input.charCodeAt(++e.position)}return Ne(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function If(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(Ne(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 Ae(n)?(Ne(e,r,i,!0),ar(e,te(e,!1,t)),r=i=e.position):e.position===e.lineStart&&nn(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 Nf(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 Ne(e,n,e.position,!0),e.position++,!0;if(a===92){if(Ne(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),Ae(a))te(e,!1,t);else if(a<256&&ss[a])e.result+=as[a],e.position++;else if((s=Rf(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=Tf(a))>=0?o=(o<<4)+s:U(e,"expected hexadecimal character");e.result+=Of(o),e.position++}else U(e,"unknown escape sequence");n=r=e.position}else Ae(a)?(Ne(e,n,r,!0),ar(e,te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&nn(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 Ff(e,t){var n=!0,r,i=e.tag,o,s=e.anchor,a,u,c,l,f,p={},g,h,y,E;if(E=e.input.charCodeAt(e.position),E===91)u=93,f=!1,o=[];else if(E===123)u=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),E=e.input.charCodeAt(++e.position);E!==0;){if(te(e,!0,t),E=e.input.charCodeAt(e.position),E===u)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;n||U(e,"missed comma between flow collection entries"),h=g=y=null,c=l=!1,E===63&&(a=e.input.charCodeAt(e.position+1),fe(a)&&(c=l=!0,e.position++,te(e,!0,t))),r=e.line,ut(e,t,Zt,!1,!0),h=e.tag,g=e.result,te(e,!0,t),E=e.input.charCodeAt(e.position),(l||e.line===r)&&E===58&&(c=!0,E=e.input.charCodeAt(++e.position),te(e,!0,t),ut(e,t,Zt,!1,!0),y=e.result),f?at(e,o,p,h,g,y):c?o.push(at(e,null,p,h,g,y)):o.push(g),te(e,!0,t),E=e.input.charCodeAt(e.position),E===44?(n=!0,E=e.input.charCodeAt(++e.position)):n=!1}U(e,"unexpected end of the stream within a flow collection")}function Mf(e,t){var n,r,i=or,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)or===i?i=f===43?Vo:Sf:U(e,"repeat of a chomping mode identifier");else if((l=Cf(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(Be(f)){do f=e.input.charCodeAt(++e.position);while(Be(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Ae(f)&&f!==0)}for(;f!==0;){for(sr(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),Ae(f)){u++;continue}if(e.lineIndent<a){i===Vo?e.result+=_e.repeat(`
`,o?1+u:u):i===or&&o&&(e.result+=`
`);break}for(r?Be(f)?(c=!0,e.result+=_e.repeat(`
`,o?1+u:u)):c?(c=!1,e.result+=_e.repeat(`
`,u+1)):u===0?o&&(e.result+=" "):e.result+=_e.repeat(`
`,u):e.result+=_e.repeat(`
`,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!Ae(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Ne(e,n,e.position,!1)}return!0}function Xo(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),!fe(s)));){if(a=!0,e.position++,te(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,ut(e,t,ns,!1,!0),o.push(e.result),te(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 Df(e,t,n){var r,i,o,s,a=e.tag,u=e.anchor,c={},l={},f=null,p=null,g=null,h=!1,y=!1,E;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),E=e.input.charCodeAt(e.position);E!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(E===63||E===58)&&fe(r))E===63?(h&&(at(e,c,l,f,p,null),f=p=g=null),y=!0,h=!0,i=!0):h?(h=!1,i=!0):U(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,E=r;else if(ut(e,n,ts,!1,!0))if(e.line===o){for(E=e.input.charCodeAt(e.position);Be(E);)E=e.input.charCodeAt(++e.position);if(E===58)E=e.input.charCodeAt(++e.position),fe(E)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(at(e,c,l,f,p,null),f=p=g=null),y=!0,h=!1,i=!1,f=e.tag,p=e.result;else if(y)U(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=u,!0}else if(y)U(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=u,!0;else break;if((e.line===o||e.lineIndent>t)&&(ut(e,t,en,!0,i)&&(h?p=e.result:g=e.result),h||(at(e,c,l,f,p,g,o,s),f=p=g=null),te(e,!0,-1),E=e.input.charCodeAt(e.position)),e.lineIndent>t&&E!==0)U(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&at(e,c,l,f,p,null),y&&(e.tag=a,e.anchor=u,e.kind="mapping",e.result=c),y}function Hf(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&&!fe(s);)s===33&&(r?U(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),rs.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),_f.test(o)&&U(e,"tag suffix cannot contain flow indicator characters")}return o&&!is.test(o)&&U(e,"tag name cannot contain such characters: "+o),n?e.tag=o:Fe.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 jf(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&&!fe(n)&&!st(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 $f(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&&!fe(r)&&!st(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),Fe.call(e.anchorMap,n)||U(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],te(e,!0,-1),!0}function ut(e,t,n,r,i){var o,s,a,u=1,c=!1,l=!1,f,p,g,h,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=en===n||ns===n,r&&te(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Hf(e)||jf(e);)te(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||en===n)&&(Zt===n||ts===n?h=t:h=t+1,y=e.position-e.lineStart,u===1?a&&(Xo(e,y)||Df(e,y,h))||Ff(e,h)?l=!0:(s&&Mf(e,h)||If(e,h)||Nf(e,h)?l=!0:$f(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&U(e,"alias node should not have any properties")):Lf(e,h,Zt===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&Xo(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&U(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Fe.call(e.typeMap[e.kind||"fallback"],e.tag)?(g=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&g.kind!==e.kind&&U(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result)?(e.result=g.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 qf(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&&(te(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&&!fe(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(;Be(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Ae(s));break}if(Ae(s))break;for(n=e.position;s!==0&&!fe(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&sr(e),Fe.call(Qo,r)?Qo[r](e,r,i):tn(e,'unknown document directive "'+r+'"')}if(te(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,te(e,!0,-1)):o&&U(e,"directives end mark is expected"),ut(e,e.lineIndent-1,en,!1,!0),te(e,!0,-1),e.checkLineBreaks&&Ef.test(e.input.slice(t,e.position))&&tn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&nn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,te(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 cs(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 Pf(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;)qf(n);return n.documents}function ls(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=cs(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function fs(e,t){var n=cs(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Zo("expected a single document in the stream, but found more")}}function Uf(e,t,n){return typeof t=="object"&&t!==null&&typeof n>"u"&&(n=t,t=null),ls(e,t,_e.extend({schema:es},n))}function Bf(e,t){return fs(e,_e.extend({schema:es},t))}_t.exports.loadAll=ls;_t.exports.load=fs;_t.exports.safeLoadAll=Uf;_t.exports.safeLoad=Bf});var Fs=F((pm,fr)=>{"use strict";var Rt=je(),Ct=rt(),Gf=Et(),Wf=ot(),bs=Object.prototype.toString,ws=Object.prototype.hasOwnProperty,Yf=9,Tt=10,Vf=13,Kf=32,Jf=33,Qf=34,As=35,zf=37,Xf=38,Zf=39,ep=42,Ss=44,tp=45,ks=58,np=61,rp=62,ip=63,op=64,Es=91,_s=93,sp=96,Ts=123,ap=124,Rs=125,ue={};ue[0]="\\0";ue[7]="\\a";ue[8]="\\b";ue[9]="\\t";ue[10]="\\n";ue[11]="\\v";ue[12]="\\f";ue[13]="\\r";ue[27]="\\e";ue[34]='\\"';ue[92]="\\\\";ue[133]="\\N";ue[160]="\\_";ue[8232]="\\L";ue[8233]="\\P";var up=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function cp(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&&ws.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function hs(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 Ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Rt.repeat("0",r-t.length)+t}function lp(e){this.schema=e.schema||Gf,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Rt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=cp(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 ds(e,t){for(var n=Rt.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 ur(e,t){return`
`+Rt.repeat(" ",e.indent*t)}function fp(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 lr(e){return e===Kf||e===Yf}function ct(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 pp(e){return ct(e)&&!lr(e)&&e!==65279&&e!==Vf&&e!==Tt}function gs(e,t){return ct(e)&&e!==65279&&e!==Ss&&e!==Es&&e!==_s&&e!==Ts&&e!==Rs&&e!==ks&&(e!==As||t&&pp(t))}function hp(e){return ct(e)&&e!==65279&&!lr(e)&&e!==tp&&e!==ip&&e!==ks&&e!==Ss&&e!==Es&&e!==_s&&e!==Ts&&e!==Rs&&e!==As&&e!==Xf&&e!==ep&&e!==Jf&&e!==ap&&e!==np&&e!==rp&&e!==Zf&&e!==Qf&&e!==zf&&e!==op&&e!==sp}function Cs(e){var t=/^\n* /;return t.test(e)}var Os=1,Ps=2,Ls=3,Is=4,rn=5;function dp(e,t,n,r,i){var o,s,a,u=!1,c=!1,l=r!==-1,f=-1,p=hp(e.charCodeAt(0))&&!lr(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!ct(s))return rn;a=o>0?e.charCodeAt(o-1):null,p=p&&gs(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Tt)u=!0,l&&(c=c||o-f-1>r&&e[f+1]!==" ",f=o);else if(!ct(s))return rn;a=o>0?e.charCodeAt(o-1):null,p=p&&gs(s,a)}c=c||l&&o-f-1>r&&e[f+1]!==" "}return!u&&!c?p&&!i(e)?Os:Ps:n>9&&Cs(e)?rn:c?Is:Ls}function gp(e,t,n,r){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&up.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 fp(e,u)}switch(dp(t,s,e.indent,o,a)){case Os:return t;case Ps:return"'"+t.replace(/'/g,"''")+"'";case Ls:return"|"+ms(t,e.indent)+ys(ds(t,i));case Is:return">"+ms(t,e.indent)+ys(ds(mp(t,o),i));case rn:return'"'+yp(t,o)+'"';default:throw new Ct("impossible error: invalid scalar style")}})()}function ms(e,t){var n=Cs(e)?String(t):"",r=e[e.length-1]===`
`,i=r&&(e[e.length-2]===`
`||e===`
`),o=i?"+":r?"":"-";return n+o+`
`}function ys(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function mp(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,n.lastIndex=c,xs(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!==""?`
`:"")+xs(u,t),i=o}return r}function xs(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 yp(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+=hs((n-55296)*1024+r-56320+65536),o++;continue}i=ue[n],t+=!i&&ct(n)?e[o]:i||hs(n)}return t}function xp(e,t,n){var r="",i=e.tag,o,s;for(o=0,s=n.length;o<s;o+=1)Ge(e,t,n[o],!1,!1)&&(o!==0&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function vp(e,t,n,r){var i="",o=e.tag,s,a;for(s=0,a=n.length;s<a;s+=1)Ge(e,t+1,n[s],!0,!0)&&((!r||s!==0)&&(i+=ur(e,t)),e.dump&&Tt===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function bp(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],Ge(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ge(e,t,c,!1,!1)&&(l+=e.dump,r+=l));e.tag=i,e.dump="{"+r+"}"}function wp(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 Ct("sortKeys must be a boolean or a function");for(a=0,u=s.length;a<u;a+=1)p="",(!r||a!==0)&&(p+=ur(e,t)),c=s[a],l=n[c],Ge(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Tt===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=ur(e,t)),Ge(e,t+1,l,!0,f)&&(e.dump&&Tt===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function vs(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,bs.call(a.represent)==="[object Function]")r=a.represent(t,u);else if(ws.call(a.represent,u))r=a.represent[u](t,u);else throw new Ct("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ge(e,t,n,r,i,o){e.tag=null,e.dump=n,vs(e,n,!1)||vs(e,n,!0);var s=bs.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?(wp(e,t,e.dump,i),c&&(e.dump="&ref_"+u+e.dump)):(bp(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?(vp(e,l,e.dump,i),c&&(e.dump="&ref_"+u+e.dump)):(xp(e,l,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&gp(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Ct("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Ap(e,t){var n=[],r=[],i,o;for(cr(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}function cr(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)cr(e[i],t,n);else for(r=Object.keys(e),i=0,o=r.length;i<o;i+=1)cr(e[r[i]],t,n)}function Ns(e,t){t=t||{};var n=new lp(t);return n.noRefs||Ap(e,n),Ge(n,0,e,!0,!0)?n.dump+`
`:""}function Sp(e,t){return Ns(e,Rt.extend({schema:Wf},t))}fr.exports.dump=Ns;fr.exports.safeDump=Sp});var Ds=F((hm,Z)=>{"use strict";var on=ps(),Ms=Fs();function sn(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Z.exports.Type=oe();Z.exports.Schema=$e();Z.exports.FAILSAFE_SCHEMA=zt();Z.exports.JSON_SCHEMA=nr();Z.exports.CORE_SCHEMA=rr();Z.exports.DEFAULT_SAFE_SCHEMA=ot();Z.exports.DEFAULT_FULL_SCHEMA=Et();Z.exports.load=on.load;Z.exports.loadAll=on.loadAll;Z.exports.safeLoad=on.safeLoad;Z.exports.safeLoadAll=on.safeLoadAll;Z.exports.dump=Ms.dump;Z.exports.safeDump=Ms.safeDump;Z.exports.YAMLException=rt();Z.exports.MINIMAL_SCHEMA=zt();Z.exports.SAFE_SCHEMA=ot();Z.exports.DEFAULT_SCHEMA=Et();Z.exports.scan=sn("scan");Z.exports.parse=sn("parse");Z.exports.compose=sn("compose");Z.exports.addConstructor=sn("addConstructor")});var js=F((dm,Hs)=>{"use strict";var kp=Ds();Hs.exports=kp});var Us=F((gm,pr)=>{"use strict";var $s=Ui(),Ep=Wi(),_p=Vi(),Tp=js(),qs=e=>Tp.safeLoad(_p(e));pr.exports=e=>Ep($s.readFile)(e,"utf8").then(t=>qs(t));pr.exports.sync=e=>qs($s.readFileSync(e,"utf8"))});var Ws=F((mm,Gs)=>{"use strict";var hr=require("path"),Bs=Qn(),Rp=Us();Gs.exports=async function(e){let t=hr.join(e,"node_modules");if(await Bs(hr.join(t,".yarn-integrity")))return{name:"yarn"};try{let i=await Rp(hr.join(t,".modules.yaml"));return Cp(i.packageManager)}catch(i){if(i.code!=="ENOENT")throw i}return await Bs(t)?{name:"npm"}:null};function Cp(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 an=F(ve=>{"use strict";ve.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ve.find=(e,t)=>e.nodes.find(n=>n.type===t);ve.exceedsLimit=(e,t,n=1,r)=>r===!1||!ve.isInteger(e)||!ve.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=r;ve.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)};ve.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ve.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;ve.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ve.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);ve.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 un=F((xm,Vs)=>{"use strict";var Ys=an();Vs.exports=(e,t={})=>{let n=(r,i={})=>{let o=t.escapeInvalid&&Ys.isInvalidBrace(i),s=r.invalid===!0&&t.escapeInvalid===!0,a="";if(r.value)return(o||s)&&Ys.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 Js=F((vm,Ks)=>{"use strict";Ks.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ia=F((bm,ra)=>{"use strict";var Qs=Js(),We=(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(We.cache.hasOwnProperty(u))return We.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let y=e+"|"+t;return r.capture?`(${y})`:r.wrap===!1?y:`(?:${y})`}let f=na(e)||na(t),p={min:e,max:t,a:c,b:l},g=[],h=[];if(f&&(p.isPadded=f,p.maxLen=String(p.max).length),c<0){let y=l<0?Math.abs(l):1;h=zs(y,Math.abs(c),p,r),c=p.a=0}return l>=0&&(g=zs(c,l,p,r)),p.negatives=h,p.positives=g,p.result=Op(h,g,r),r.capture===!0?p.result=`(${p.result})`:r.wrap!==!1&&g.length+h.length>1&&(p.result=`(?:${p.result})`),We.cache[u]=p,p.result};function Op(e,t,n){let r=dr(e,t,"-",!1,n)||[],i=dr(t,e,"",!1,n)||[],o=dr(e,t,"-?",!0,n)||[];return r.concat(o).concat(i).join("|")}function Pp(e,t){let n=1,r=1,i=Zs(e,n),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),n+=1,i=Zs(e,n);for(i=ea(t+1,r)-1;e<i&&i<=t;)o.add(i),r+=1,i=ea(t+1,r)-1;return o=[...o],o.sort(Np),o}function Lp(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=Ip(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+=Fp(u,c,n):s++}return s&&(o+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function zs(e,t,n,r){let i=Pp(e,t),o=[],s=e,a;for(let u=0;u<i.length;u++){let c=i[u],l=Lp(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+ta(a.count),s=c+1;continue}n.isPadded&&(f=Mp(c,n,r)),l.string=f+l.pattern+ta(l.count),o.push(l),s=c+1,a=l}return o}function dr(e,t,n,r,i){let o=[];for(let s of e){let{string:a}=s;!r&&!Xs(t,"string",a)&&o.push(n+a),r&&Xs(t,"string",a)&&o.push(n+a)}return o}function Ip(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function Np(e,t){return e>t?1:t>e?-1:0}function Xs(e,t,n){return e.some(r=>r[t]===n)}function Zs(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ea(e,t){return e-e%Math.pow(10,t)}function ta(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function Fp(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function na(e){return/^-?(0+)\d/.test(e)}function Mp(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}}`}}We.cache={};We.clearCache=()=>We.cache={};ra.exports=We});var yr=F((wm,fa)=>{"use strict";var Dp=require("util"),sa=ia(),oa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Hp=e=>t=>e===!0?Number(t):String(t),gr=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ot=e=>Number.isInteger(+e),mr=e=>{let t=`${e}`,n=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++n]==="0";);return n>0},jp=(e,t,n)=>typeof e=="string"||typeof t=="string"?!0:n.stringify===!0,$p=(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},ln=(e,t)=>{let n=e[0]==="-"?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},qp=(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=>ln(String(a),n)).join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.map(a=>ln(String(a),n)).join("|")})`),i&&o?s=`${i}|${o}`:s=i||o,t.wrap?`(${r}${s})`:s},aa=(e,t,n,r)=>{if(n)return sa(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`},ua=(e,t,n)=>{if(Array.isArray(e)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${e.join("|")})`:e.join("|")}return sa(e,t,n)},ca=(...e)=>new RangeError("Invalid range arguments: "+Dp.inspect(...e)),la=(e,t,n)=>{if(n.strictRanges===!0)throw ca([e,t]);return[]},Up=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Bp=(e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===!0)throw ca([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=mr(a)||mr(u)||mr(c),f=l?Math.max(a.length,u.length,c.length):0,p=l===!1&&jp(e,t,r)===!1,g=r.transform||Hp(p);if(r.toRegex&&n===1)return aa(ln(e,f),ln(t,f),!0,r);let h={negatives:[],positives:[]},y=P=>h[P<0?"negatives":"positives"].push(Math.abs(P)),E=[],C=0;for(;s?i>=o:i<=o;)r.toRegex===!0&&n>1?y(i):E.push($p(g(i,C),f,p)),i=s?i-n:i+n,C++;return r.toRegex===!0?n>1?qp(h,r,f):ua(E,null,{wrap:!1,...r}):E},Gp=(e,t,n=1,r={})=>{if(!Ot(e)&&e.length>1||!Ot(t)&&t.length>1)return la(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 aa(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?ua(l,null,{wrap:!1,options:r}):l},cn=(e,t,n,r={})=>{if(t==null&&gr(e))return[e];if(!gr(e)||!gr(t))return la(e,t,r);if(typeof n=="function")return cn(e,t,1,{transform:n});if(oa(n))return cn(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,Ot(n)?Ot(e)&&Ot(t)?Bp(e,t,n,i):Gp(e,t,Math.max(Math.abs(n),1),i):n!=null&&!oa(n)?Up(n,i):cn(e,t,1,n)};fa.exports=cn});var da=F((Am,ha)=>{"use strict";var Wp=yr(),pa=an(),Yp=(e,t={})=>{let n=(r,i={})=>{let o=pa.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=pa.reduce(r.nodes),f=Wp(...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)};ha.exports=Yp});var ya=F((Sm,ma)=>{"use strict";var Vp=yr(),ga=un(),lt=an(),Ye=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?lt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let o of i)r.push(Ye(o,t,n));else for(let o of t)n===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?Ye(i,o,n):i+o);return lt.flatten(r)},Kp=(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(Ye(a.pop(),ga(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ye(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=lt.reduce(i.nodes);if(lt.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=Vp(...f,t);p.length===0&&(p=ga(i,t)),a.push(Ye(a.pop(),p)),i.nodes=[];return}let u=lt.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(Ye(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(Ye(c.pop(),p.value));continue}p.nodes&&r(p,i)}return c};return lt.flatten(r(e))};ma.exports=Kp});var va=F((km,xa)=>{"use strict";xa.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=F((Em,Sa)=>{"use strict";var Jp=un(),{MAX_LENGTH:ba,CHAR_BACKSLASH:xr,CHAR_BACKTICK:Qp,CHAR_COMMA:zp,CHAR_DOT:Xp,CHAR_LEFT_PARENTHESES:Zp,CHAR_RIGHT_PARENTHESES:eh,CHAR_LEFT_CURLY_BRACE:th,CHAR_RIGHT_CURLY_BRACE:nh,CHAR_LEFT_SQUARE_BRACKET:wa,CHAR_RIGHT_SQUARE_BRACKET:Aa,CHAR_DOUBLE_QUOTE:rh,CHAR_SINGLE_QUOTE:ih,CHAR_NO_BREAK_SPACE:oh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:sh}=va(),ah=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(ba,n.maxLength):ba;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,g=()=>e[l++],h=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return s.nodes.push(y),y.parent=s,y.prev=a,a=y,y};for(h({type:"bos"});l<c;)if(s=o[o.length-1],p=g(),!(p===sh||p===oh)){if(p===xr){h({type:"text",value:(t.keepEscaping?p:"")+g()});continue}if(p===Aa){h({type:"text",value:"\\"+p});continue}if(p===wa){u++;let y;for(;l<c&&(y=g());){if(p+=y,y===wa){u++;continue}if(y===xr){p+=g();continue}if(y===Aa&&(u--,u===0))break}h({type:"text",value:p});continue}if(p===Zp){s=h({type:"paren",nodes:[]}),o.push(s),h({type:"text",value:p});continue}if(p===eh){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===rh||p===ih||p===Qp){let y=p,E;for(t.keepQuotes!==!0&&(p="");l<c&&(E=g());){if(E===xr){p+=E+g();continue}if(E===y){t.keepQuotes===!0&&(p+=E);break}p+=E}h({type:"text",value:p});continue}if(p===th){f++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};s=h(E),o.push(s),h({type:"open",value:p});continue}if(p===nh){if(s.type!=="brace"){h({type:"text",value:p});continue}let y="close";s=o.pop(),s.close=!0,h({type:y,value:p}),f--,s=o[o.length-1];continue}if(p===zp&&f>0){if(s.ranges>0){s.ranges=0;let y=s.nodes.shift();s.nodes=[y,{type:"text",value:Jp(s)}]}h({type:"comma",value:p}),s.commas++;continue}if(p===Xp&&f>0&&s.commas===0){let y=s.nodes;if(f===0||y.length===0){h({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){y.pop();let E=y[y.length-1];E.value+=a.value+p,a=E,s.ranges--;continue}h({type:"dot",value:p});continue}h({type:"text",value:p})}do if(s=o.pop(),s.type!=="root"){s.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let y=o[o.length-1],E=y.nodes.indexOf(s);y.nodes.splice(E,1,...s.nodes)}while(o.length>0);return h({type:"eos"}),i};Sa.exports=ah});var Ta=F((_m,_a)=>{"use strict";var Ea=un(),uh=da(),ch=ya(),lh=ka(),me=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=me.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(me.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};me.parse=(e,t={})=>lh(e,t);me.stringify=(e,t={})=>Ea(typeof e=="string"?me.parse(e,t):e,t);me.compile=(e,t={})=>(typeof e=="string"&&(e=me.parse(e,t)),uh(e,t));me.expand=(e,t={})=>{typeof e=="string"&&(e=me.parse(e,t));let n=ch(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};me.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?me.compile(e,t):me.expand(e,t);_a.exports=me});var Pt=F((Tm,La)=>{"use strict";var fh=require("path"),Se="\\\\/",Ra=`[^${Se}]`,Te="\\.",ph="\\+",hh="\\?",fn="\\/",dh="(?=.)",Ca="[^/]",vr=`(?:${fn}|$)`,Oa=`(?:^|${fn})`,br=`${Te}{1,2}${vr}`,gh=`(?!${Te})`,mh=`(?!${Oa}${br})`,yh=`(?!${Te}{0,1}${vr})`,xh=`(?!${br})`,vh=`[^.${fn}]`,bh=`${Ca}*?`,Pa={DOT_LITERAL:Te,PLUS_LITERAL:ph,QMARK_LITERAL:hh,SLASH_LITERAL:fn,ONE_CHAR:dh,QMARK:Ca,END_ANCHOR:vr,DOTS_SLASH:br,NO_DOT:gh,NO_DOTS:mh,NO_DOT_SLASH:yh,NO_DOTS_SLASH:xh,QMARK_NO_DOT:vh,STAR:bh,START_ANCHOR:Oa},wh={...Pa,SLASH_LITERAL:`[${Se}]`,QMARK:Ra,STAR:`${Ra}*?`,DOTS_SLASH:`${Te}{1,2}(?:[${Se}]|$)`,NO_DOT:`(?!${Te})`,NO_DOTS:`(?!(?:^|[${Se}])${Te}{1,2}(?:[${Se}]|$))`,NO_DOT_SLASH:`(?!${Te}{0,1}(?:[${Se}]|$))`,NO_DOTS_SLASH:`(?!${Te}{1,2}(?:[${Se}]|$))`,QMARK_NO_DOT:`[^.${Se}]`,START_ANCHOR:`(?:^|[${Se}])`,END_ANCHOR:`(?:[${Se}]|$)`},Ah={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"};La.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ah,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:fh.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?wh:Pa}}});var Lt=F(pe=>{"use strict";var Sh=require("path"),kh=process.platform==="win32",{REGEX_BACKSLASH:Eh,REGEX_REMOVE_BACKSLASH:_h,REGEX_SPECIAL_CHARS:Th,REGEX_SPECIAL_CHARS_GLOBAL:Rh}=Pt();pe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);pe.hasRegexChars=e=>Th.test(e);pe.isRegexChar=e=>e.length===1&&pe.hasRegexChars(e);pe.escapeRegex=e=>e.replace(Rh,"\\$1");pe.toPosixSlashes=e=>e.replace(Eh,"/");pe.removeBackslashes=e=>e.replace(_h,t=>t==="\\"?"":t);pe.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};pe.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:kh===!0||Sh.sep==="\\";pe.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?pe.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};pe.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};pe.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",o=`${r}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var $a=F((Cm,ja)=>{"use strict";var Ia=Lt(),{CHAR_ASTERISK:wr,CHAR_AT:Ch,CHAR_BACKWARD_SLASH:It,CHAR_COMMA:Oh,CHAR_DOT:Ar,CHAR_EXCLAMATION_MARK:Sr,CHAR_FORWARD_SLASH:Ha,CHAR_LEFT_CURLY_BRACE:kr,CHAR_LEFT_PARENTHESES:Er,CHAR_LEFT_SQUARE_BRACKET:Ph,CHAR_PLUS:Lh,CHAR_QUESTION_MARK:Na,CHAR_RIGHT_CURLY_BRACE:Ih,CHAR_RIGHT_PARENTHESES:Fa,CHAR_RIGHT_SQUARE_BRACKET:Nh}=Pt(),Ma=e=>e===Ha||e===It,Da=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Fh=(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,g=!1,h=!1,y=!1,E=!1,C=!1,P=!1,k=!1,T=!1,O=!1,L=0,S,b,v={value:"",depth:0,isGlob:!1},R=()=>c>=r,m=()=>u.charCodeAt(c+1),d=()=>(S=b,u.charCodeAt(++c));for(;c<r;){b=d();let N;if(b===It){P=v.backslashes=!0,b=d(),b===kr&&(C=!0);continue}if(C===!0||b===kr){for(L++;R()!==!0&&(b=d());){if(b===It){P=v.backslashes=!0,d();continue}if(b===kr){L++;continue}if(C!==!0&&b===Ar&&(b=d())===Ar){if(p=v.isBrace=!0,h=v.isGlob=!0,O=!0,i===!0)continue;break}if(C!==!0&&b===Oh){if(p=v.isBrace=!0,h=v.isGlob=!0,O=!0,i===!0)continue;break}if(b===Ih&&(L--,L===0)){C=!1,p=v.isBrace=!0,O=!0;break}}if(i===!0)continue;break}if(b===Ha){if(o.push(c),s.push(v),v={value:"",depth:0,isGlob:!1},O===!0)continue;if(S===Ar&&c===l+1){l+=2;continue}f=c+1;continue}if(n.noext!==!0&&(b===Lh||b===Ch||b===wr||b===Na||b===Sr)===!0&&m()===Er){if(h=v.isGlob=!0,y=v.isExtglob=!0,O=!0,b===Sr&&c===l&&(T=!0),i===!0){for(;R()!==!0&&(b=d());){if(b===It){P=v.backslashes=!0,b=d();continue}if(b===Fa){h=v.isGlob=!0,O=!0;break}}continue}break}if(b===wr){if(S===wr&&(E=v.isGlobstar=!0),h=v.isGlob=!0,O=!0,i===!0)continue;break}if(b===Na){if(h=v.isGlob=!0,O=!0,i===!0)continue;break}if(b===Ph){for(;R()!==!0&&(N=d());){if(N===It){P=v.backslashes=!0,d();continue}if(N===Nh){g=v.isBracket=!0,h=v.isGlob=!0,O=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&b===Sr&&c===l){k=v.negated=!0,l++;continue}if(n.noparen!==!0&&b===Er){if(h=v.isGlob=!0,i===!0){for(;R()!==!0&&(b=d());){if(b===Er){P=v.backslashes=!0,b=d();continue}if(b===Fa){O=!0;break}}continue}break}if(h===!0){if(O=!0,i===!0)continue;break}}n.noext===!0&&(y=!1,h=!1);let A=u,_="",x="";l>0&&(_=u.slice(0,l),u=u.slice(l),f-=l),A&&h===!0&&f>0?(A=u.slice(0,f),x=u.slice(f)):h===!0?(A="",x=u):A=u,A&&A!==""&&A!=="/"&&A!==u&&Ma(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),n.unescape===!0&&(x&&(x=Ia.removeBackslashes(x)),A&&P===!0&&(A=Ia.removeBackslashes(A)));let w={prefix:_,input:e,start:l,base:A,glob:x,isBrace:p,isBracket:g,isGlob:h,isExtglob:y,isGlobstar:E,negated:k,negatedExtglob:T};if(n.tokens===!0&&(w.maxDepth=0,Ma(b)||s.push(v),w.tokens=s),n.parts===!0||n.tokens===!0){let N;for(let D=0;D<o.length;D++){let H=N?N+1:l,j=o[D],B=e.slice(H,j);n.tokens&&(D===0&&l!==0?(s[D].isPrefix=!0,s[D].value=_):s[D].value=B,Da(s[D]),w.maxDepth+=s[D].depth),(D!==0||B!=="")&&a.push(B),N=j}if(N&&N+1<e.length){let D=e.slice(N+1);a.push(D),n.tokens&&(s[s.length-1].value=D,Da(s[s.length-1]),w.maxDepth+=s[s.length-1].depth)}w.slashes=o,w.parts=a}return w};ja.exports=Fh});var Ba=F((Om,Ua)=>{"use strict";var pn=Pt(),ye=Lt(),{MAX_LENGTH:hn,POSIX_REGEX_SOURCE:Mh,REGEX_NON_SPECIAL_CHARS:Dh,REGEX_SPECIAL_CHARS_BACKREF:Hh,REPLACEMENTS:qa}=pn,jh=(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=>ye.escapeRegex(i)).join("..")}return n},ft=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,_r=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=qa[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(hn,n.maxLength):hn,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=ye.isWindows(t),c=pn.globChars(u),l=pn.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:g,ONE_CHAR:h,DOTS_SLASH:y,NO_DOT:E,NO_DOT_SLASH:C,NO_DOTS_SLASH:P,QMARK:k,QMARK_NO_DOT:T,STAR:O,START_ANCHOR:L}=c,S=M=>`(${a}(?:(?!${L}${M.dot?y:f}).)*?)`,b=n.dot?"":E,v=n.dot?k:T,R=n.bash===!0?S(n):O;n.capture&&(R=`(${R})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let m={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=ye.removePrefix(e,m),i=e.length;let d=[],A=[],_=[],x=o,w,N=()=>m.index===i-1,D=m.peek=(M=1)=>e[m.index+M],H=m.advance=()=>e[++m.index]||"",j=()=>e.slice(m.index+1),B=(M="",Q=0)=>{m.consumed+=M,m.index+=Q},K=M=>{m.output+=M.output!=null?M.output:M.value,B(M.value)},re=()=>{let M=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)H(),m.start++,M++;return M%2===0?!1:(m.negated=!0,m.start++,!0)},Oe=M=>{m[M]++,_.push(M)},he=M=>{m[M]--,_.pop()},W=M=>{if(x.type==="globstar"){let Q=m.braces>0&&(M.type==="comma"||M.type==="brace"),I=M.extglob===!0||d.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!Q&&!I&&(m.output=m.output.slice(0,-x.output.length),x.type="star",x.value="*",x.output=R,m.output+=x.output)}if(d.length&&M.type!=="paren"&&(d[d.length-1].inner+=M.value),(M.value||M.output)&&K(M),x&&x.type==="text"&&M.type==="text"){x.value+=M.value,x.output=(x.output||"")+M.value;return}M.prev=x,s.push(M),x=M},Ee=(M,Q)=>{let I={...l[Q],conditions:1,inner:""};I.prev=x,I.parens=m.parens,I.output=m.output;let Y=(n.capture?"(":"")+I.open;Oe("parens"),W({type:M,value:Q,output:m.output?"":h}),W({type:"paren",extglob:!0,value:H(),output:Y}),d.push(I)},Ze=M=>{let Q=M.close+(n.capture?")":""),I;if(M.type==="negate"){let Y=R;if(M.inner&&M.inner.length>1&&M.inner.includes("/")&&(Y=S(n)),(Y!==R||N()||/^\)+$/.test(j()))&&(Q=M.close=`)$))${Y}`),M.inner.includes("*")&&(I=j())&&/^\.[^\\/.]+$/.test(I)){let z=_r(I,{...t,fastpaths:!1}).output;Q=M.close=`)${z})${Y})`}M.prev.type==="bos"&&(m.negatedExtglob=!0)}W({type:"paren",extglob:!0,value:w,output:Q}),he("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let M=!1,Q=e.replace(Hh,(I,Y,z,ce,ie,Tn)=>ce==="\\"?(M=!0,I):ce==="?"?Y?Y+ce+(ie?k.repeat(ie.length):""):Tn===0?v+(ie?k.repeat(ie.length):""):k.repeat(z.length):ce==="."?f.repeat(z.length):ce==="*"?Y?Y+ce+(ie?R:""):R:Y?I:`\\${I}`);return M===!0&&(n.unescape===!0?Q=Q.replace(/\\/g,""):Q=Q.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),Q===e&&n.contains===!0?(m.output=e,m):(m.output=ye.wrapOutput(Q,m,t),m)}for(;!N();){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()),z=0;if(Y&&Y[0].length>2&&(z=Y[0].length,m.index+=z,z%2!==0&&(w+="\\")),n.unescape===!0?w=H():w+=H(),m.brackets===0){W({type:"text",value:w});continue}}if(m.brackets>0&&(w!=="]"||x.value==="["||x.value==="[^")){if(n.posix!==!1&&w===":"){let I=x.value.slice(1);if(I.includes("[")&&(x.posix=!0,I.includes(":"))){let Y=x.value.lastIndexOf("["),z=x.value.slice(0,Y),ce=x.value.slice(Y+2),ie=Mh[ce];if(ie){x.value=z+ie,m.backtrack=!0,H(),!o.output&&s.indexOf(x)===1&&(o.output=h);continue}}}(w==="["&&D()!==":"||w==="-"&&D()==="]")&&(w=`\\${w}`),w==="]"&&(x.value==="["||x.value==="[^")&&(w=`\\${w}`),n.posix===!0&&w==="!"&&x.value==="["&&(w="^"),x.value+=w,K({value:w});continue}if(m.quotes===1&&w!=='"'){w=ye.escapeRegex(w),x.value+=w,K({value:w});continue}if(w==='"'){m.quotes=m.quotes===1?0:1,n.keepQuotes===!0&&W({type:"text",value:w});continue}if(w==="("){Oe("parens"),W({type:"paren",value:w});continue}if(w===")"){if(m.parens===0&&n.strictBrackets===!0)throw new SyntaxError(ft("opening","("));let I=d[d.length-1];if(I&&m.parens===I.parens+1){Ze(d.pop());continue}W({type:"paren",value:w,output:m.parens?")":"\\)"}),he("parens");continue}if(w==="["){if(n.nobracket===!0||!j().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(ft("closing","]"));w=`\\${w}`}else Oe("brackets");W({type:"bracket",value:w});continue}if(w==="]"){if(n.nobracket===!0||x&&x.type==="bracket"&&x.value.length===1){W({type:"text",value:w,output:`\\${w}`});continue}if(m.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(ft("opening","["));W({type:"text",value:w,output:`\\${w}`});continue}he("brackets");let I=x.value.slice(1);if(x.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(w=`/${w}`),x.value+=w,K({value:w}),n.literalBrackets===!1||ye.hasRegexChars(I))continue;let Y=ye.escapeRegex(x.value);if(m.output=m.output.slice(0,-x.value.length),n.literalBrackets===!0){m.output+=Y,x.value=Y;continue}x.value=`(${a}${Y}|${x.value})`,m.output+=x.value;continue}if(w==="{"&&n.nobrace!==!0){Oe("braces");let I={type:"brace",value:w,output:"(",outputIndex:m.output.length,tokensIndex:m.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 z=s.slice(),ce=[];for(let ie=z.length-1;ie>=0&&(s.pop(),z[ie].type!=="brace");ie--)z[ie].type!=="dots"&&ce.unshift(z[ie].value);Y=jh(ce,n),m.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let z=m.output.slice(0,I.outputIndex),ce=m.tokens.slice(I.tokensIndex);I.value=I.output="\\{",w=Y="\\}",m.output=z;for(let ie of ce)m.output+=ie.output||ie.value}W({type:"brace",value:w,output:Y}),he("braces"),A.pop();continue}if(w==="|"){d.length>0&&d[d.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let I=w,Y=A[A.length-1];Y&&_[_.length-1]==="braces"&&(Y.comma=!0,I="|"),W({type:"comma",value:w,output:I});continue}if(w==="/"){if(x.type==="dot"&&m.index===m.start+1){m.start=m.index+1,m.consumed="",m.output="",s.pop(),x=o;continue}W({type:"slash",value:w,output:g});continue}if(w==="."){if(m.braces>0&&x.type==="dot"){x.value==="."&&(x.output=f);let I=A[A.length-1];x.type="dots",x.output+=w,x.value+=w,I.dots=!0;continue}if(m.braces+m.parens===0&&x.type!=="bos"&&x.type!=="slash"){W({type:"text",value:w,output:f});continue}W({type:"dot",value:w,output:f});continue}if(w==="?"){if(!(x&&x.value==="(")&&n.noextglob!==!0&&D()==="("&&D(2)!=="?"){Ee("qmark",w);continue}if(x&&x.type==="paren"){let Y=D(),z=w;if(Y==="<"&&!ye.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(x.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(j()))&&(z=`\\${w}`),W({type:"text",value:w,output:z});continue}if(n.dot!==!0&&(x.type==="slash"||x.type==="bos")){W({type:"qmark",value:w,output:T});continue}W({type:"qmark",value:w,output:k});continue}if(w==="!"){if(n.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){Ee("negate",w);continue}if(n.nonegate!==!0&&m.index===0){re();continue}}if(w==="+"){if(n.noextglob!==!0&&D()==="("&&D(2)!=="?"){Ee("plus",w);continue}if(x&&x.value==="("||n.regex===!1){W({type:"plus",value:w,output:p});continue}if(x&&(x.type==="bracket"||x.type==="paren"||x.type==="brace")||m.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=Dh.exec(j());I&&(w+=I[0],m.index+=I[0].length),W({type:"text",value:w});continue}if(x&&(x.type==="globstar"||x.star===!0)){x.type="star",x.star=!0,x.value+=w,x.output=R,m.backtrack=!0,m.globstar=!0,B(w);continue}let M=j();if(n.noextglob!==!0&&/^\([^?]/.test(M)){Ee("star",w);continue}if(x.type==="star"){if(n.noglobstar===!0){B(w);continue}let I=x.prev,Y=I.prev,z=I.type==="slash"||I.type==="bos",ce=Y&&(Y.type==="star"||Y.type==="globstar");if(n.bash===!0&&(!z||M[0]&&M[0]!=="/")){W({type:"star",value:w,output:""});continue}let ie=m.braces>0&&(I.type==="comma"||I.type==="brace"),Tn=d.length&&(I.type==="pipe"||I.type==="paren");if(!z&&I.type!=="paren"&&!ie&&!Tn){W({type:"star",value:w,output:""});continue}for(;M.slice(0,3)==="/**";){let jt=e[m.index+4];if(jt&&jt!=="/")break;M=M.slice(3),B("/**",3)}if(I.type==="bos"&&N()){x.type="globstar",x.value+=w,x.output=S(n),m.output=x.output,m.globstar=!0,B(w);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!ce&&N()){m.output=m.output.slice(0,-(I.output+x.output).length),I.output=`(?:${I.output}`,x.type="globstar",x.output=S(n)+(n.strictSlashes?")":"|$)"),x.value+=w,m.globstar=!0,m.output+=I.output+x.output,B(w);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&M[0]==="/"){let jt=M[1]!==void 0?"|$":"";m.output=m.output.slice(0,-(I.output+x.output).length),I.output=`(?:${I.output}`,x.type="globstar",x.output=`${S(n)}${g}|${g}${jt})`,x.value+=w,m.output+=I.output+x.output,m.globstar=!0,B(w+H()),W({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&M[0]==="/"){x.type="globstar",x.value+=w,x.output=`(?:^|${g}|${S(n)}${g})`,m.output=x.output,m.globstar=!0,B(w+H()),W({type:"slash",value:"/",output:""});continue}m.output=m.output.slice(0,-x.output.length),x.type="globstar",x.output=S(n),x.value+=w,m.output+=x.output,m.globstar=!0,B(w);continue}let Q={type:"star",value:w,output:R};if(n.bash===!0){Q.output=".*?",(x.type==="bos"||x.type==="slash")&&(Q.output=b+Q.output),W(Q);continue}if(x&&(x.type==="bracket"||x.type==="paren")&&n.regex===!0){Q.output=w,W(Q);continue}(m.index===m.start||x.type==="slash"||x.type==="dot")&&(x.type==="dot"?(m.output+=C,x.output+=C):n.dot===!0?(m.output+=P,x.output+=P):(m.output+=b,x.output+=b),D()!=="*"&&(m.output+=h,x.output+=h)),W(Q)}for(;m.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing","]"));m.output=ye.escapeLast(m.output,"["),he("brackets")}for(;m.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing",")"));m.output=ye.escapeLast(m.output,"("),he("parens")}for(;m.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing","}"));m.output=ye.escapeLast(m.output,"{"),he("braces")}if(n.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${g}?`}),m.backtrack===!0){m.output="";for(let M of m.tokens)m.output+=M.output!=null?M.output:M.value,M.suffix&&(m.output+=M.suffix)}return m};_r.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(hn,n.maxLength):hn,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=qa[e]||e;let o=ye.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:g,START_ANCHOR:h}=pn.globChars(o),y=n.dot?f:l,E=n.dot?p:l,C=n.capture?"":"?:",P={negated:!1,prefix:""},k=n.bash===!0?".*?":g;n.capture&&(k=`(${k})`);let T=b=>b.noglobstar===!0?k:`(${C}(?:(?!${h}${b.dot?c:s}).)*?)`,O=b=>{switch(b){case"*":return`${y}${u}${k}`;case".*":return`${s}${u}${k}`;case"*.*":return`${y}${k}${s}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${E}${k}`;case"**":return y+T(n);case"**/*":return`(?:${y}${T(n)}${a})?${E}${u}${k}`;case"**/*.*":return`(?:${y}${T(n)}${a})?${E}${k}${s}${u}${k}`;case"**/.*":return`(?:${y}${T(n)}${a})?${s}${u}${k}`;default:{let v=/^(.*?)\.(\w+)$/.exec(b);if(!v)return;let R=O(v[1]);return R?R+s+v[2]:void 0}}},L=ye.removePrefix(e,P),S=O(L);return S&&n.strictSlashes!==!0&&(S+=`${a}?`),S};Ua.exports=_r});var Wa=F((Pm,Ga)=>{"use strict";var $h=require("path"),qh=$a(),Tr=Ba(),Rr=Lt(),Uh=Pt(),Bh=e=>e&&typeof e=="object"&&!Array.isArray(e),ee=(e,t,n=!1)=>{if(Array.isArray(e)){let l=e.map(p=>ee(p,t,n));return p=>{for(let g of l){let h=g(p);if(h)return h}return!1}}let r=Bh(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=Rr.isWindows(t),s=r?ee.compileRe(e,t):ee.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=ee(i.ignore,l,n)}let c=(l,f=!1)=>{let{isMatch:p,match:g,output:h}=ee.test(l,s,t,{glob:e,posix:o}),y={glob:e,state:a,regex:s,posix:o,input:l,output:h,match:g,isMatch:p};return typeof i.onResult=="function"&&i.onResult(y),p===!1?(y.isMatch=!1,f?y:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,f?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),f?y:!0)};return n&&(c.state=a),c};ee.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?Rr.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=ee.matchBase(e,t,n,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};ee.matchBase=(e,t,n,r=Rr.isWindows(n))=>(t instanceof RegExp?t:ee.makeRe(t,n)).test($h.basename(e));ee.isMatch=(e,t,n)=>ee(t,n)(e);ee.parse=(e,t)=>Array.isArray(e)?e.map(n=>ee.parse(n,t)):Tr(e,{...t,fastpaths:!1});ee.scan=(e,t)=>qh(e,t);ee.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=ee.toRegex(a,t);return r===!0&&(u.state=e),u};ee.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=Tr.fastpaths(e,t)),i.output||(i=Tr(e,t)),ee.compileRe(i,t,n,r)};ee.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/$^/}};ee.constants=Uh;Ga.exports=ee});var Va=F((Lm,Ya)=>{"use strict";Ya.exports=Wa()});var Za=F((Im,Xa)=>{"use strict";var Ja=require("util"),Qa=Ta(),ke=Va(),Cr=Lt(),Ka=e=>e===""||e==="./",za=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},X=(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=ke(String(t[l]),{...n,onResult:a},!0),p=f.state.negated||f.state.negatedExtglob;p&&s++;for(let g of e){let h=f(g,!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};X.match=X;X.matcher=(e,t)=>ke(e,t);X.isMatch=(e,t,n)=>ke(t,n)(e);X.any=X.isMatch;X.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(X(e,t,{...n,onResult:o}));for(let a of i)s.has(a)||r.add(a);return[...r]};X.contains=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ja.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>X.contains(e,r,n));if(typeof t=="string"){if(Ka(e)||Ka(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return X.isMatch(e,t,{...n,contains:!0})};X.matchKeys=(e,t,n)=>{if(!Cr.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=X(Object.keys(e),t,n),i={};for(let o of r)i[o]=e[o];return i};X.some=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=ke(String(i),n);if(r.some(s=>o(s)))return!0}return!1};X.every=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=ke(String(i),n);if(!r.every(s=>o(s)))return!1}return!0};X.all=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ja.inspect(e)}"`);return[].concat(t).every(r=>ke(r,n)(e))};X.capture=(e,t,n)=>{let r=Cr.isWindows(n),o=ke.makeRe(String(e),{...n,capture:!0}).exec(r?Cr.toPosixSlashes(t):t);if(o)return o.slice(1).map(s=>s===void 0?"":s)};X.makeRe=(...e)=>ke.makeRe(...e);X.scan=(...e)=>ke.scan(...e);X.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let i of Qa(String(r),t))n.push(ke.parse(i,t));return n};X.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!za(e)?[e]:Qa(e,t)};X.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return X.braces(e,{...t,expand:!0})};X.hasBraces=za;Xa.exports=X});var nu=F((Nm,tu)=>{"use strict";var eu=require("fs"),Gh=Za(),dn=require("path");tu.exports=Wh;function Wh(e){e||(e=process.cwd());let t=null,n=dn.normalize(e);do{let r=Vh(n),i=Yh(r);if(i){let o=dn.relative(n,e);return o===""||Gh([o],i).length>0?n:null}t=n,n=dn.dirname(n)}while(n!==t);return null}function Yh(e){let t=(e||{}).workspaces;return t&&t.packages||(Array.isArray(t)?t:null)}function Vh(e){let t=dn.join(e,"package.json");return eu.existsSync(t)?JSON.parse(eu.readFileSync(t,"utf8")):null}});var _u=F(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.sync=mt.isexe=void 0;var pd=require("fs"),hd=require("fs/promises"),dd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Eu(await(0,hd.stat)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};mt.isexe=dd;var gd=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Eu((0,pd.statSync)(e),t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};mt.sync=gd;var Eu=(e,t)=>e.isFile()&&md(e,t),md=(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 Ru=F(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.sync=yt.isexe=void 0;var yd=require("fs"),xd=require("fs/promises"),vd=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Tu(await(0,xd.stat)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};yt.isexe=vd;var bd=(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return Tu((0,yd.statSync)(e),e,t)}catch(r){let i=r;if(n||i.code==="EACCES")return!1;throw i}};yt.sync=bd;var wd=(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},Tu=(e,t,n)=>e.isFile()&&wd(t,n)});var Ou=F(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0})});var Mu=F(se=>{"use strict";var Pu=se&&se.__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]})),Ad=se&&se.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Lu=se&&se.__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)&&Pu(t,e,n);return Ad(t,e),t},Sd=se&&se.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Pu(t,e,n)};Object.defineProperty(se,"__esModule",{value:!0});se.sync=se.isexe=se.posix=se.win32=void 0;var Iu=Lu(_u());se.posix=Iu;var Nu=Lu(Ru());se.win32=Nu;Sd(Ou(),se);var kd=process.env._ISEXE_TEST_PLATFORM_||process.platform,Fu=kd==="win32"?Nu:Iu;se.isexe=Fu.isexe;se.sync=Fu.sync});var Yu=F((H0,Wu)=>{var{isexe:Ed,sync:_d}=Mu(),{join:Td,delimiter:Rd,sep:Du,posix:Hu}=require("path"),ju=process.platform==="win32",$u=new RegExp(`[${Hu.sep}${Du===Hu.sep?"":Du}]`.replace(/(\\)/g,"\\$1")),Cd=new RegExp(`^\\.${$u.source}`),qu=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Uu=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=Rd})=>{let i=e.match($u)?[""]:[...ju?[process.cwd()]:[],...(t||"").split(r)];if(ju){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:[""]}},Bu=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&Cd.test(t)?t.slice(0,2):"")+Td(n,t)},Gu=async(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Uu(e,t),o=[];for(let s of n){let a=Bu(s,e);for(let u of r){let c=a+u;if(await Ed(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 qu(e)},Od=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=Uu(e,t),o=[];for(let s of n){let a=Bu(s,e);for(let u of r){let c=a+u;if(_d(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 qu(e)};Wu.exports=Gu;Gu.sync=Od});var Hd={};ec(Hd,{activate:()=>Pd,deactivate:()=>Dd});module.exports=tc(Hd);var _n=de(Hr()),J=de(require("vscode"));function vt(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(k,T){let O=0,L=0;for(;O<k||!T;){let S=e.charCodeAt(r);if(S>=48&&S<=57)L=L*16+S-48;else if(S>=65&&S<=70)L=L*16+S-65+10;else if(S>=97&&S<=102)L=L*16+S-97+10;else break;r++,O++}return O<k&&(L=-1),L}function g(k){r=k,i="",o=0,s=16,f=0}function h(){let k=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&et(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&et(e.charCodeAt(r)))for(r++;r<e.length&&et(e.charCodeAt(r));)r++;else return f=3,e.substring(k,r);let T=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&&et(e.charCodeAt(r))){for(r++;r<e.length&&et(e.charCodeAt(r));)r++;T=r}else f=3;return e.substring(k,T)}function y(){let k="",T=r;for(;;){if(r>=n){k+=e.substring(T,r),f=2;break}let O=e.charCodeAt(r);if(O===34){k+=e.substring(T,r),r++;break}if(O===92){if(k+=e.substring(T,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:k+='"';break;case 92:k+="\\";break;case 47:k+="/";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+=`
`;break;case 114:k+="\r";break;case 116:k+="	";break;case 117:let S=p(4,!0);S>=0?k+=String.fromCharCode(S):f=4;break;default:f=5}T=r;continue}if(O>=0&&O<=31)if(xt(O)){k+=e.substring(T,r),f=2;break}else f=6;r++}return k}function E(){if(i="",f=0,o=r,u=a,l=c,r>=n)return o=n,s=17;let k=e.charCodeAt(r);if(Rn(k)){do r++,i+=String.fromCharCode(k),k=e.charCodeAt(r);while(Rn(k));return s=15}if(xt(k))return r++,i+=String.fromCharCode(k),k===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),a++,c=r,s=14;switch(k){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=y(),s=10;case 47:let T=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!xt(e.charCodeAt(r));)r++;return i=e.substring(T,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let O=n-1,L=!1;for(;r<O;){let S=e.charCodeAt(r);if(S===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,xt(S)&&(S===13&&e.charCodeAt(r)===10&&r++,a++,c=r)}return L||(r++,f=1),i=e.substring(T,r),s=13}return i+=String.fromCharCode(k),r++,s=16;case 45:if(i+=String.fromCharCode(k),r++,r===n||!et(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(k);)r++,k=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(k),r++,s=16}}function C(k){if(Rn(k)||xt(k))return!1;switch(k){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function P(){let k;do k=E();while(k>=12&&k<=15);return k}return{setPosition:g,getPosition:()=>r,scan:t?P:E,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-l,getTokenError:()=>f}}function Rn(e){return e===32||e===9}function xt(e){return e===10||e===13}function et(e){return e>=48&&e<=57}var jr;(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"})(jr||(jr={}));var Cn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Cn||(Cn={}));function $r(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{On(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,ic(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 On(e,t,n=Cn.DEFAULT){let r=vt(e,!1),i=[];function o(d){return d?()=>d(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(d){return d?()=>d(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function a(d){return d?A=>d(A,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(d){return d?A=>d(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),g=o(t.onArrayEnd),h=u(t.onLiteralValue),y=a(t.onSeparator),E=o(t.onComment),C=a(t.onError),P=n&&n.disallowComments,k=n&&n.allowTrailingComma;function T(){for(;;){let d=r.scan();switch(r.getTokenError()){case 4:O(14);break;case 5:O(15);break;case 3:O(13);break;case 1:P||O(11);break;case 2:O(12);break;case 6:O(16);break}switch(d){case 12:case 13:P?O(10):E();break;case 16:O(1);break;case 15:case 14:break;default:return d}}}function O(d,A=[],_=[]){if(C(d),A.length+_.length>0){let x=r.getToken();for(;x!==17;){if(A.indexOf(x)!==-1){T();break}else if(_.indexOf(x)!==-1)break;x=T()}}}function L(d){let A=r.getTokenValue();return d?h(A):(l(A),i.push(A)),T(),!0}function S(){switch(r.getToken()){case 11:let d=r.getTokenValue(),A=Number(d);isNaN(A)&&(O(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 T(),!0}function b(){return r.getToken()!==10?(O(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(y(":"),T(),m()||O(4,[],[2,5])):O(5,[],[2,5]),i.pop(),!0)}function v(){c(),T();let d=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(d||O(4,[],[]),y(","),T(),r.getToken()===2&&k)break}else d&&O(6,[],[]);b()||O(4,[],[2,5]),d=!0}return f(),r.getToken()!==2?O(7,[2],[]):T(),!0}function R(){p(),T();let d=!0,A=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(A||O(4,[],[]),y(","),T(),r.getToken()===4&&k)break}else A&&O(6,[],[]);d?(i.push(0),d=!1):i[i.length-1]++,m()||O(4,[],[4,5]),A=!0}return g(),d||i.pop(),r.getToken()!==4?O(8,[4],[]):T(),!0}function m(){switch(r.getToken()){case 3:return R();case 1:return v();case 10:return L(!0);default:return S()}}return T(),r.getToken()===17?n.allowEmptyContent?!0:(O(4,[],[]),!1):m()?(r.getToken()!==17&&O(9,[],[]),!0):(O(4,[],[]),!1)}function ic(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 Ur=vt,qt;(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"})(qt||(qt={}));var Me;(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"})(Me||(Me={}));var Pn=$r;var Br=On;var qr;(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"})(qr||(qr={}));var V=require("vscode"),Vr=require("path");var q=require("vscode"),Ln=60,In=Ln*60,bt=In*24,Gr=bt*7,Wr=bt*30,Yr=bt*365;function Nn(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}",Nn(new Date().getTime()+i*1e3,!1));if(!r&&i<30)return q.l10n.t("now");let o;return i<Ln?(o=i,t?o===1?n?q.l10n.t("{0} second ago",o):q.l10n.t("{0} sec ago",o):n?q.l10n.t("{0} seconds ago",o):q.l10n.t("{0} secs ago",o):o===1?n?q.l10n.t("{0} second",o):q.l10n.t("{0} sec",o):n?q.l10n.t("{0} seconds",o):q.l10n.t("{0} secs",o)):i<In?(o=Math.floor(i/Ln),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<bt?(o=Math.floor(i/In),t?o===1?n?q.l10n.t("{0} hour ago",o):q.l10n.t("{0} hr ago",o):n?q.l10n.t("{0} hours ago",o):q.l10n.t("{0} hrs ago",o):o===1?n?q.l10n.t("{0} hour",o):q.l10n.t("{0} hr",o):n?q.l10n.t("{0} hours",o):q.l10n.t("{0} hrs",o)):i<Gr?(o=Math.floor(i/bt),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<Wr?(o=Math.floor(i/Gr),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<Yr?(o=Math.floor(i/Wr),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/Yr),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 lc=40,Fn="Visual Studio Code",Ut=class{constructor(t,n){this.xhr=t;this.npmCommandPath=n}mostDependedOn=["lodash-es","async","underscore","request","commander","express","debug","chalk","colors","q","coffee-script","mkdirp","optimist","through2","yeoman-generator","moment","bluebird","glob","gulp-util","minimist","cheerio","pug","redis","node-uuid","socket","io","uglify-js","winston","through","fs-extra","handlebars","body-parser","rimraf","mime","semver","mongodb","jquery","grunt","connect","yosay","underscore","string","xml2js","ejs","mongoose","marked","extend","mocha","superagent","js-yaml","xtend","shelljs","gulp","yargs","browserify","minimatch","react","less","prompt","inquirer","ws","event-stream","inherits","mysql","esprima","jsdom","stylus","when","readable-stream","aws-sdk","concat-stream","chai","Thenable","wrench"];knownScopes=["@types","@angular","@babel","@nuxtjs","@vue","@bazel"];getDocumentSelector(){return[{language:"json",scheme:"*",pattern:"**/package.json"}]}collectDefaultSuggestions(t,n){let r={name:"${1:name}",description:"${2:description}",authors:"${3:author}",version:"${4:1.0.0}",main:"${5:pathToMain}",dependencies:{}},i=new V.CompletionItem(V.l10n.t("Default package.json"));return i.kind=V.CompletionItemKind.Module,i.insertText=new V.SnippetString(JSON.stringify(r,null,"	")),n.add(i),Promise.resolve(null)}isEnabled(){return this.npmCommandPath||this.onlineEnabled()}onlineEnabled(){return!!V.workspace.getConfiguration("npm").get("fetchOnlinePackageInfo")}collectPropertySuggestions(t,n,r,i,o,s){if(!this.isEnabled())return null;if(n.matches(["dependencies"])||n.matches(["devDependencies"])||n.matches(["optionalDependencies"])||n.matches(["peerDependencies"])){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 V.CompletionItem(u);c.kind=V.CompletionItemKind.Property,c.insertText=new V.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=${lc}&text=${encodeURIComponent(r)}`,this.xhr({url:a,headers:{agent:Fn}}).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(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0},u=>(s.error(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0))}else return this.mostDependedOn.forEach(u=>{let c=new V.SnippetString().appendText(JSON.stringify(u));i&&(c.appendText(': "').appendTabstop().appendText('"'),o||c.appendText(","));let l=new V.CompletionItem(u);l.kind=V.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:Fn}}).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(V.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","*"])){let i=n.path[n.path.length-1];if(typeof i=="string"){let o=await this.fetchPackageInfo(i,t);if(o&&o.version){let s=JSON.stringify(o.version),a=new V.CompletionItem(s);a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("The currently latest version of the package"),r.add(a),s=JSON.stringify("^"+o.version),a=new V.CompletionItem(s),a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("Matches the most recent major version (1.x.x)"),r.add(a),s=JSON.stringify("~"+o.version),a=new V.CompletionItem(s),a.kind=V.CompletionItemKind.Property,a.insertText=s,a.documentation=V.l10n.t("Matches the most recent minor version (1.2.x)"),r.add(a)}}}return null}getDocumentation(t,n,r,i){let o=new V.MarkdownString;return t&&o.appendText(t),n&&(o.appendText(`

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

`),o.appendText(i)),o}resolveSuggestion(t,n){if(n.kind===V.CompletionItemKind.Property&&!n.documentation){let r=n.label;return typeof r!="string"&&(r=r.label),this.fetchPackageInfo(r,t).then(i=>i?(n.documentation=this.getDocumentation(i.description,i.version,i.time,i.homepage),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;return this.npmCommandPath&&(r=await this.npmView(this.npmCommandPath,t,n)),!r&&this.onlineEnabled()&&(r=await this.npmjsView(t)),r}async npmView(t,n,r){let i=await import("child_process");return new Promise((o,s)=>{let a=["view","--json","--",n,"description","dist-tags.latest","homepage","version","time"],u=r&&r.scheme==="file"?(0,Vr.dirname)(r.fsPath):void 0,c={...process.env,COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"},l={cwd:u,env:c},f=t;process.platform==="win32"&&(l={cwd:u,env:c,shell:!0},f=`"${t}"`),i.execFile(f,a,l,(p,g)=>{if(!p)try{let h=JSON.parse(g),y=h["dist-tags.latest"]||h.version;o({description:h.description,version:y,time:h.time?.[y],homepage:h.homepage});return}catch{}o(void 0)})})}async npmjsView(t){let n="https://registry.npmjs.org/"+encodeURIComponent(t);try{let r=await this.xhr({url:n,headers:{agent:Fn}}),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{}}getInfoContribution(t,n){if(!this.isEnabled())return null;if(n.matches(["dependencies","*"])||n.matches(["devDependencies","*"])||n.matches(["optionalDependencies","*"])||n.matches(["peerDependencies","*"])){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)]:null)}return null}processPackage(t,n,r,i){if(t&&t.name){let o=t.name,s=new V.SnippetString().appendText(JSON.stringify(o));n&&(s.appendText(': "'),t.version?s.appendVariable("version",t.version):s.appendTabstop(),s.appendText('"'),r||s.appendText(","));let a=new V.CompletionItem(o);a.kind=V.CompletionItemKind.Property,a.insertText=s,a.filterText=JSON.stringify(o),a.documentation=this.getDocumentation(t.description,t.version,void 0,t?.links?.homepage),i.add(a)}}};var xe=require("vscode");function Kr(e,t){let n=[new Ut(e,t)],r=[];return n.forEach(i=>{let o=i.getDocumentSelector();r.push(xe.languages.registerCompletionItemProvider(o,new Dn(i),'"',":")),r.push(xe.languages.registerHoverProvider(o,new Mn(i)))}),xe.Disposable.from(...r)}var Mn=class{constructor(t){this.jsonContribution=t}provideHover(t,n,r){let i=t.offsetAt(n),o=Pn(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 xe.Range(t.positionAt(s.offset),t.positionAt(s.offset+s.length));return{contents:u||[],range:c}})}return null}},Dn=class{constructor(t){this.jsonContribution=t}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=Pn(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 xe.Range(t.positionAt(l.offset),t.positionAt(l.offset+l.length)):o=new xe.Range(t.positionAt(u-i.length),n);let f={},p={add:h=>{let y=typeof h.label=="string"?h.label:h.label.label;f[y]||(f[y]=!0,h.range={replacing:o,inserting:new xe.Range(o.start,o.start)},s.push(h))},setAsIncomplete:()=>a=!0,error:h=>console.error(h),log:h=>console.log(h)},g=null;if(c.isAtPropertyKey){let h=Ur(t.getText(),!0),y=!c.previousNode||!this.hasColonAfter(h,c.previousNode.offset+c.previousNode.length),E=this.isLast(h,t.offsetAt(n));g=this.jsonContribution.collectPropertySuggestions(t.uri,c,i,y,E,p)}else c.path.length===0?g=this.jsonContribution.collectDefaultSuggestions(t.uri,p):g=this.jsonContribution.collectValueSuggestions(t.uri,c,p);return g?g.then(()=>s.length>0||a?new xe.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===Me.StringLiteral&&t.getTokenError()===qt.UnexpectedEndOfString&&(r=t.scan()),r===Me.CloseBraceToken||r===Me.EOF}hasColonAfter(t,n){return t.setPosition(n),t.scan()===Me.ColonToken}};var Ce=de(require("vscode"));var $=require("vscode"),dt=de(require("path")),au=de(require("fs")),uu=de(gi());var mi;(()=>{"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,g=-1,h=0,y=0;y<=u.length;++y){if(y<u.length)l=u.charCodeAt(y);else{if(l===47)break;l=47}if(l===47){if(!(g===y-1||h===1))if(g!==y-1&&h===2){if(f.length<2||p!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var E=f.lastIndexOf("/");if(E!==f.length-1){E===-1?(f="",p=0):p=(f=f.slice(0,E)).length-1-f.lastIndexOf("/"),g=y,h=0;continue}}else if(f.length===2||f.length===1){f="",p=0,g=y,h=0;continue}}c&&(f.length>0?f+="/..":f="..",p=2)}else f.length>0?f+="/"+u.slice(g+1,y):f=u.slice(g+1,y),p=y-g-1;g=y,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,g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var h=c.length-g,y=p<h?p:h,E=-1,C=0;C<=y;++C){if(C===y){if(h>y){if(c.charCodeAt(g+C)===47)return c.slice(g+C+1);if(C===0)return c.slice(g+C)}else p>y&&(u.charCodeAt(l+C)===47?E=C:C===0&&(E=0));break}var P=u.charCodeAt(l+C);if(P!==c.charCodeAt(g+C))break;P===47&&(E=C)}var k="";for(C=l+E+1;C<=f;++C)C!==f&&u.charCodeAt(C)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+c.slice(g+E):(g+=E,c.charCodeAt(g)===47&&++g,c.slice(g))},_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,g=u.length-1;g>=1;--g)if((c=u.charCodeAt(g))===47){if(!p){f=g;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,g=!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,y=-1;for(l=u.length-1;l>=0;--l){var E=u.charCodeAt(l);if(E===47){if(!g){f=l+1;break}}else y===-1&&(g=!1,y=l+1),h>=0&&(E===c.charCodeAt(h)?--h==-1&&(p=l):(h=-1,p=y))}return f===p?p=y:p===-1&&(p=u.length),u.slice(f,p)}for(l=u.length-1;l>=0;--l)if(u.charCodeAt(l)===47){if(!g){f=l+1;break}}else p===-1&&(g=!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,g=0,h=u.length-1;h>=0;--h){var y=u.charCodeAt(h);if(y!==47)f===-1&&(p=!1,f=h+1),y===46?c===-1?c=h:g!==1&&(g=1):c!==-1&&(g=-1);else if(!p){l=h+1;break}}return c===-1||f===-1||g===0||g===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 g=-1,h=0,y=-1,E=!0,C=u.length-1,P=0;C>=l;--C)if((f=u.charCodeAt(C))!==47)y===-1&&(E=!1,y=C+1),f===46?g===-1?g=C:P!==1&&(P=1):g!==-1&&(P=-1);else if(!E){h=C+1;break}return g===-1||y===-1||P===0||P===1&&g===y-1&&g===h+1?y!==-1&&(c.base=c.name=h===0&&p?u.slice(1,y):u.slice(h,y)):(h===0&&p?(c.name=u.slice(1,g),c.base=u.slice(1,y)):(c.name=u.slice(h,g),c.base=u.slice(h,y)),c.ext=u.slice(g,y)),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:()=>R}),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(m,d){if(!m.scheme&&d)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${m.authority}", path: "${m.path}", query: "${m.query}", fragment: "${m.fragment}"}`);if(m.scheme&&!o.test(m.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(m.path){if(m.authority){if(!s.test(m.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(m.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(d){return d instanceof p||!!d&&typeof d.authority=="string"&&typeof d.fragment=="string"&&typeof d.path=="string"&&typeof d.query=="string"&&typeof d.scheme=="string"&&typeof d.fsPath=="string"&&typeof d.with=="function"&&typeof d.toString=="function"}scheme;authority;path;query;fragment;constructor(d,A,_,x,w,N=!1){typeof d=="object"?(this.scheme=d.scheme||c,this.authority=d.authority||c,this.path=d.path||c,this.query=d.query||c,this.fragment=d.fragment||c):(this.scheme=(function(D,H){return D||H?D:"file"})(d,N),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,_||c),this.query=x||c,this.fragment=w||c,u(this,N))}get fsPath(){return P(this,!1)}with(d){if(!d)return this;let{scheme:A,authority:_,path:x,query:w,fragment:N}=d;return A===void 0?A=this.scheme:A===null&&(A=c),_===void 0?_=this.authority:_===null&&(_=c),x===void 0?x=this.path:x===null&&(x=c),w===void 0?w=this.query:w===null&&(w=c),N===void 0?N=this.fragment:N===null&&(N=c),A===this.scheme&&_===this.authority&&x===this.path&&w===this.query&&N===this.fragment?this:new h(A,_,x,w,N)}static parse(d,A=!1){let _=f.exec(d);return _?new h(_[2]||c,L(_[4]||c),L(_[5]||c),L(_[7]||c),L(_[9]||c),A):new h(c,c,c,c,c)}static file(d){let A=c;if(i&&(d=d.replace(/\\/g,l)),d[0]===l&&d[1]===l){let _=d.indexOf(l,2);_===-1?(A=d.substring(2),d=l):(A=d.substring(2,_),d=d.substring(_)||l)}return new h("file",A,d,c,c)}static from(d){let A=new h(d.scheme,d.authority,d.path,d.query,d.fragment);return u(A,!0),A}toString(d=!1){return k(this,d)}toJSON(){return this}static revive(d){if(d){if(d instanceof p)return d;{let A=new h(d);return A._formatted=d.external,A._fsPath=d._sep===g?d.fsPath:null,A}}return d}}let g=i?1:void 0;class h extends p{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=P(this,!1)),this._fsPath}toString(d=!1){return d?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)}toJSON(){let d={$mid:1};return this._fsPath&&(d.fsPath=this._fsPath,d._sep=g),this._formatted&&(d.external=this._formatted),this.path&&(d.path=this.path),this.scheme&&(d.scheme=this.scheme),this.authority&&(d.authority=this.authority),this.query&&(d.query=this.query),this.fragment&&(d.fragment=this.fragment),d}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(m,d,A){let _,x=-1;for(let w=0;w<m.length;w++){let N=m.charCodeAt(w);if(N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||d&&N===47||A&&N===91||A&&N===93||A&&N===58)x!==-1&&(_+=encodeURIComponent(m.substring(x,w)),x=-1),_!==void 0&&(_+=m.charAt(w));else{_===void 0&&(_=m.substr(0,w));let D=y[N];D!==void 0?(x!==-1&&(_+=encodeURIComponent(m.substring(x,w)),x=-1),_+=D):x===-1&&(x=w)}}return x!==-1&&(_+=encodeURIComponent(m.substring(x))),_!==void 0?_:m}function C(m){let d;for(let A=0;A<m.length;A++){let _=m.charCodeAt(A);_===35||_===63?(d===void 0&&(d=m.substr(0,A)),d+=y[_]):d!==void 0&&(d+=m[A])}return d!==void 0?d:m}function P(m,d){let A;return A=m.authority&&m.path.length>1&&m.scheme==="file"?`//${m.authority}${m.path}`:m.path.charCodeAt(0)===47&&(m.path.charCodeAt(1)>=65&&m.path.charCodeAt(1)<=90||m.path.charCodeAt(1)>=97&&m.path.charCodeAt(1)<=122)&&m.path.charCodeAt(2)===58?d?m.path.substr(1):m.path[1].toLowerCase()+m.path.substr(2):m.path,i&&(A=A.replace(/\//g,"\\")),A}function k(m,d){let A=d?C:E,_="",{scheme:x,authority:w,path:N,query:D,fragment:H}=m;if(x&&(_+=x,_+=":"),(w||x==="file")&&(_+=l,_+=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?_+=A(B,!1,!1):(_+=A(B.substr(0,j),!1,!1),_+=":",_+=A(B.substr(j+1),!1,!0)),_+="@"}w=w.toLowerCase(),j=w.lastIndexOf(":"),j===-1?_+=A(w,!1,!0):(_+=A(w.substr(0,j),!1,!0),_+=w.substr(j))}if(N){if(N.length>=3&&N.charCodeAt(0)===47&&N.charCodeAt(2)===58){let j=N.charCodeAt(1);j>=65&&j<=90&&(N=`/${String.fromCharCode(j+32)}:${N.substr(3)}`)}else if(N.length>=2&&N.charCodeAt(1)===58){let j=N.charCodeAt(0);j>=65&&j<=90&&(N=`${String.fromCharCode(j+32)}:${N.substr(2)}`)}_+=A(N,!0,!1)}return D&&(_+="?",_+=A(D,!1,!1)),H&&(_+="#",_+=d?H:E(H,!1,!1)),_}function T(m){try{return decodeURIComponent(m)}catch{return m.length>3?m.substr(0,3)+T(m.substr(3)):m}}let O=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(m){return m.match(O)?m.replace(O,(d=>T(d))):m}var S=n(470);let b=S.posix||S,v="/";var R;(function(m){m.joinPath=function(d,...A){return d.with({path:b.join(d.path,...A)})},m.resolvePath=function(d,...A){let _=d.path,x=!1;_[0]!==v&&(_=v+_,x=!0);let w=b.resolve(_,...A);return x&&w[0]===v&&!d.authority&&(w=w.substring(1)),d.with({path:w})},m.dirname=function(d){if(d.path.length===0||d.path===v)return d;let A=b.dirname(d.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),d.with({path:A})},m.basename=function(d){return b.basename(d.path)},m.extname=function(d){return b.extname(d.path)}})(R||(R={}))})(),mi=r})();var{URI:Eg,Utils:Wn}=mi;var ru=de(Li()),Ve=de(require("path")),iu=de(Ws()),gn=require("vscode"),Kh=nu();async function pt(e){try{await gn.workspace.fs.stat(gn.Uri.file(e))}catch{return!1}return!0}async function Jh(e){return await pt(Ve.join(e,"bun.lockb"))?{isPreferred:!0,hasLockfile:!0}:await pt(Ve.join(e,"bun.lock"))?{isPreferred:!0,hasLockfile:!0}:{isPreferred:!1,hasLockfile:!1}}async function Qh(e){return await pt(Ve.join(e,"pnpm-lock.yaml"))?{isPreferred:!0,hasLockfile:!0}:await pt(Ve.join(e,"shrinkwrap.yaml"))?{isPreferred:!0,hasLockfile:!0}:await(0,ru.default)("pnpm-lock.yaml",{cwd:e})?{isPreferred:!0,hasLockfile:!0}:{isPreferred:!1,hasLockfile:!1}}async function zh(e){if(await pt(Ve.join(e,"yarn.lock")))return{isPreferred:!0,hasLockfile:!0};try{if(typeof Kh(e)=="string")return{isPreferred:!0,hasLockfile:!1}}catch{}return{isPreferred:!1,hasLockfile:!1}}async function Xh(e){let t=await pt(Ve.join(e,"package-lock.json"));return{isPreferred:t,hasLockfile:t}}async function ou(e){let t=[],n=[],r=await Xh(e);r.isPreferred&&(t.push("npm"),n.push(r));let i=await Qh(e);i.isPreferred&&(t.push("pnpm"),n.push(i));let o=await zh(e);o.isPreferred&&(t.push("yarn"),n.push(o));let s=await Jh(e);s.isPreferred&&(t.push("bun"),n.push(s));let a=await(0,iu.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 ht=require("vscode"),Re=(e,t=e.getText())=>{let n,r,i=!1,o,s=0,a=[];if(Br(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 ht.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 ht.Range(e.positionAt(l),e.positionAt(l+f))})}}),n!==void 0)return{location:new ht.Location(e.uri,new ht.Range(n,r??n)),scripts:a}};var cu=new RegExp("^(node_modules|.vscode-test)$","i"),mn,Ke="install",yn=class{constructor(t){this.context=t}get tasksWithLocation(){return su(this.context,!1)}async provideTasks(){return(await su(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===Ke?o=await bn(this.context,t.scope,i):o=await Ft(this.context,r.script,t.scope,i),o.definition=r,o}}};function Or(){mn=void 0}var Zh=["build","compile","watch"];function ed(e){for(let t of Zh)if(e.indexOf(t)!==-1)return!0;return!1}var td=["test"];function nd(e){for(let t of td)if(e===t)return!0;return!1}var rd=new Set(["install","pack","pack","publish","restart","shrinkwrap","stop","test","uninstall","version"]),id=new Set(["install","pack","pack","publish","publishOnly","restart","shrinkwrap","stop","test","uninstall","version"]);function od(e){return rd.has(e)||id.has(e)}function lu(e){return e&&typeof e!="number"}async function Pr(e,t,n){let r=$.workspace.getConfiguration("npm",e).get("scriptRunner","npm");return r==="auto"&&(r=await xn(e,t,n)),r}async function Lr(e,t,n){let r=$.workspace.getConfiguration("npm",e).get("packageManager","npm");return r==="auto"&&(r=await xn(e,t,n)),r}async function xn(e,t,n=!1){let{name:r,multipleLockFilesDetected:i}=await ou(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*sd(){let e=new Set,t=$.workspace.workspaceFolders;if(t){for(let n of t)if(Ir(n)&&!cu.test(Wn.basename(n.uri))){let r=new $.RelativePattern(n,"**/package.json"),i=await $.workspace.findFiles2([r],{exclude:["**/{node_modules,.vscode-test}/**"],useIgnoreFiles:{local:!0}});for(let o of i)!ad(n,o)&&!e.has(o.fsPath)&&(yield o,e.add(o.fsPath))}}}async function fu(e,t){let n=[];if(cu.test(Wn.basename(t)))return n;let r=new $.RelativePattern(t.fsPath,"**/package.json"),i=await $.workspace.findFiles2([r],{exclude:["**/node_modules/**"],useIgnoreFiles:{local:!0}}),o=new Set;for(let s of i)if(!o.has(s.fsPath)){let a=await pu(e,s,!0);o.add(s.fsPath),n.push(...a.map(u=>({label:u.task.name,task:u.task})))}return n}async function su(e,t){if(!mn){let n=[];for await(let r of sd()){let i=await pu(e,r,t);n.push(...i)}mn=n}return mn}function Ir(e){return $.workspace.getConfiguration("npm",e?.uri).get("autoDetect")==="on"}function ad(e,t){function n(o,s){return(0,uu.default)(o,s,{dot:!0})}let r=$.workspace.getConfiguration("npm",e.uri).get("exclude"),i=dt.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 ud(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 pu(e,t,n){let r=[],i=$.workspace.getWorkspaceFolder(t);if(!i)return r;let o=await fd(t);if(!o)return r;let s=[];for(let{name:a,value:u,nameRange:c}of o.scripts){let l=await Ft(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(Ke))||s.push({task:await bn(e,i,t,"install dependencies from package",n)}),s}function Nt(e,t){return t&&t.length?`${e} - ${t.substring(0,t.length-1)}`:e}function hu(e){return e.map(t=>/\s/.test(t)?{value:t,quoting:t.includes("--")?$.ShellQuoting.Weak:$.ShellQuoting.Strong}:t)}function du(e,t){return t.path.substring(0,t.path.length-12).substring(e.path.length+1)}async function vn(e,t,n,r=!0){let i=await Pr(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 Ft(e,t,n,r,i,o){let s={type:"npm",script:t},a=du(n.uri,r);a.length&&!s.path&&(s.path=a.substring(0,a.length-1));let u=Nt(t,a),c=dt.dirname(r.fsPath),l=await vn(t,n.uri,e,o),f=l.shift(),p=new $.Task(s,n,u,"npm",new $.ShellExecution(f,hu(l),{cwd:c}));p.detail=i;let g=t.toLowerCase();return ed(g)?p.group=$.TaskGroup.Build:nd(g)?p.group=$.TaskGroup.Test:od(g)?p.group=$.TaskGroup.Clean:i&&ud(i)&&(p.group=$.TaskGroup.Rebuild),p}async function cd(e,t,n=!0){let i=[await Lr(e,t,n),Ke];return $.workspace.getConfiguration("npm",e).get("runSilent")&&i.push("--silent"),i}async function bn(e,t,n,r,i){let o={type:"npm",script:Ke},s=du(t.uri,n);s.length&&!o.path&&(o.path=s.substring(0,s.length-1));let a=Nt(Ke,s),u=dt.dirname(n.fsPath),c=await cd(t.uri,e,i),l=c.shift(),f=new $.Task(o,t,a,"npm",new $.ShellExecution(l,hu(c),{cwd:u}));return f.detail=r,f.group=$.TaskGroup.Clean,f}async function gu(){if(await ld())return!0;let e=new $.CancellationTokenSource,t=setTimeout(()=>e.cancel(),1e3),n=await $.workspace.findFiles2(["**/package.json"],{exclude:["**/node_modules/**"],useIgnoreFiles:{local:!0},maxResults:1},e.token);return clearTimeout(t),n.length>0}async function ld(){let e=$.workspace.workspaceFolders;if(!e)return!1;for(let t of e)if(t.uri.scheme==="file"){let n=dt.join(t.uri.fsPath,"package.json");if(await mu(n))return!0}return!1}async function mu(e){return new Promise((t,n)=>{au.exists(e,r=>{t(r)})})}async function yu(e,t,n){let r=n.uri,i=$.workspace.getWorkspaceFolder(r);if(i){let o=await Ft(e,t,i,r);$.tasks.executeTask(o)}}async function wn(e,t,n,r){let i=await vn(t,r.uri,e,!0);$.commands.executeCommand("extension.js-debug.createDebuggerTerminal",i.join(" "),r,{cwd:n})}function xu(e,t,n){let r=Re(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 fd(e){if(e.scheme!=="file")return;let t=e.fsPath;if(await mu(t))try{let n=await $.workspace.openTextDocument(e);return Re(n)}catch{let r=$.l10n.t("Npm task detection: failed to parse the file {0}",e.fsPath);throw new Error(r)}}function vu(e){let t=Ce.window.activeTextEditor;if(!t)return;let n=t.document,r=n.getText(),i=xu(t.document,r,t.selection.anchor);if(i)yu(e,i,n);else{let o=Ce.l10n.t("Could not find a valid npm script at the selection.");Ce.window.showErrorMessage(o)}}async function bu(e,t){if(t.length===0)return;let n=t[0],r=await fu(e,n);if(r&&r.length>0){let i=Ce.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&&Ce.tasks.executeTask(a.task)}else Ce.window.showInformationMessage(`No npm scripts found in ${n.fsPath}`,{modal:!0})}var ze=de(require("path")),G=require("vscode");var Mt=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)}},An="package.json",Je=class e extends G.TreeItem{path;folder;scripts=[];static getLabel(t){return t.length>0?ze.join(t,An):An}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,An)):this.resourceUri=G.Uri.file(ze.join(t.resourceUri.fsPath,An)),this.iconPath=G.ThemeIcon.File}addScript(t){this.scripts.push(t)}},Qe=class extends G.TreeItem{task;package;taskLocation;constructor(t,n,r){let i=n.path.length>0?r.task.name.substring(0,r.task.name.length-n.path.length-2):r.task.name;super(i,G.TreeItemCollapsibleState.None),this.taskLocation=r.location;let o=i===`${Ke} `?"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}},Dt=class extends G.TreeItem{constructor(t){super(t,G.TreeItemCollapsibleState.None),this.contextValue="noscripts"}},Sn=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))}taskTree=null;extensionContext;_onDidChangeTreeData=new G.EventEmitter;onDidChangeTreeData=this._onDidChangeTreeData.event;async runScript(t){await xn(t.getFolder().uri,this.context,!0),G.tasks.executeTask(t.task)}async debugScript(t){wn(this.extensionContext,t.task.definition.script,ze.dirname(t.package.resourceUri.fsPath),t.getFolder())}findScriptPosition(t,n){let r=Re(t);return r?n?r.scripts.find(o=>Nt(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 Je&&(n=t.resourceUri),!n)return;let r=await bn(this.context,t.folder.workspaceFolder,n);G.tasks.executeTask(r)}async openScript(t){let n;if(t instanceof Je?n=t.resourceUri:t instanceof Qe&&(n=t.package.resourceUri),!n)return;let r=await G.workspace.openTextDocument(n),i=this.findScriptPosition(r,t instanceof Qe?t:void 0)||new G.Position(0,0);await G.window.showTextDocument(r,{preserveFocus:!0,selection:new G.Selection(i,i)})}refresh(){this.taskTree=null,this._onDidChangeTreeData.fire(null)}getTreeItem(t){return t}getParent(t){return t instanceof Mt?null:t instanceof Je?t.folder:t instanceof Qe?t.package:(t instanceof Dt,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.");Ir()||(i=G.l10n.t('The setting "npm.autoDetect" is "off".')),this.taskTree=[new Dt(i)]}}}return t instanceof Mt?t.packages:t instanceof Je?t.scripts:t instanceof Qe?[]:t instanceof Dt?[]:!t&&this.taskTree?this.taskTree:[]}isInstallTask(t){return Nt("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)))&&lu(a.task.scope)&&!this.isInstallTask(a.task)){i=n.get(a.task.scope.name),i||(i=new Mt(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 Je(i,f),i.addPackage(o),r.set(p,o));let g=new Qe(this.extensionContext,o,a);o.addScript(g)}}),n.size===1?[...r.values()]:[...n.values()]}};var Au=require("path"),ne=require("vscode");var gt,wu;function Nr(e){if(!e){gt=void 0;return}e.uri===gt&&(gt=void 0)}var kn=class{constructor(t){this.context=t;t.subscriptions.push(ne.commands.registerCommand("npm.runScriptFromHover",this.runScriptFromHover,this)),t.subscriptions.push(ne.commands.registerCommand("npm.debugScriptFromHover",this.debugScriptFromHover,this)),t.subscriptions.push(ne.workspace.onDidChangeTextDocument(r=>{Nr(r.document)}));let n=()=>ne.workspace.getConfiguration("npm").get("scriptHover",!0);this.enabled=n(),t.subscriptions.push(ne.workspace.onDidChangeConfiguration(r=>{r.affectsConfiguration("npm.scriptHover")&&(this.enabled=n())}))}enabled;provideHover(t,n,r){if(!this.enabled)return;let i;return(!gt||gt.fsPath!==t.uri.fsPath)&&(wu=Re(t),gt=t.uri),wu?.scripts.forEach(({name:o,nameRange:s})=>{if(s.contains(n)){let a=new ne.MarkdownString;a.isTrusted=!0,a.appendMarkdown(this.createRunScriptMarkdown(o,t.uri)),a.appendMarkdown(this.createDebugScriptMarkdown(o,t.uri)),i=new ne.Hover(a)}}),i}createRunScriptMarkdown(t,n){let r={documentUri:n,script:t};return this.createMarkdownLink(ne.l10n.t("Run Script"),"npm.runScriptFromHover",r,ne.l10n.t("Run the script as a task"))}createDebugScriptMarkdown(t,n){let r={documentUri:n,script:t};return this.createMarkdownLink(ne.l10n.t("Debug Script"),"npm.debugScriptFromHover",r,ne.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=ne.workspace.getWorkspaceFolder(r);if(i){let o=await Ft(this.context,n,i,r);await ne.tasks.executeTask(o)}}debugScriptFromHover(t){let n=t.script,r=t.documentUri,i=ne.workspace.getWorkspaceFolder(r);i&&wn(this.context,n,(0,Au.dirname)(r.fsPath),i)}};var ku=de(require("path")),le=require("vscode");var Su=()=>le.workspace.getConfiguration().get("debug.javascript.codelens.npmScripts"),En=class{lensLocation=Su();changeEmitter=new le.EventEmitter;subscriptions=[];onDidChangeCodeLenses=this.changeEmitter.event;constructor(){this.subscriptions.push(this.changeEmitter,le.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("debug.javascript.codelens.npmScripts")&&(this.lensLocation=Su(),this.changeEmitter.fire())}),le.languages.registerCodeLensProvider({language:"json",pattern:"**/package.json"},this))}async provideCodeLenses(t){if(this.lensLocation==="never")return[];let n=Re(t);if(!n)return[];let r="$(debug-start) "+le.l10n.t("Debug"),i=ku.dirname(t.uri.fsPath);if(this.lensLocation==="top")return[new le.CodeLens(n.location.range,{title:r,command:"extension.js-debug.npmScript",arguments:[i]})];if(this.lensLocation==="all"){let o=le.Uri.joinPath(t.uri,"..");return Promise.all(n.scripts.map(async({name:s,nameRange:a})=>{let u=await vn(s,o);return new le.CodeLens(a,{title:r,command:"extension.js-debug.createDebuggerTerminal",arguments:[u.join(" "),le.workspace.getWorkspaceFolder(t.uri),{cwd:i}]})}))}return[]}dispose(){this.subscriptions.forEach(t=>t.dispose())}};var Ku=de(Yu()),Xe;function Ht(){Nr(),Or(),Xe&&Xe.refresh()}async function Pd(e){Vu(),e.subscriptions.push(J.workspace.onDidChangeConfiguration(n=>{(n.affectsConfiguration("http.proxy")||n.affectsConfiguration("http.proxyStrictSSL"))&&Vu()}));let t=await Ld();e.subscriptions.push(Kr(_n.xhr,t)),Nd(e),Xe=Fd(e),e.subscriptions.push(J.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"))&&(Or(),Xe&&Xe.refresh()),n.affectsConfiguration("npm.scriptExplorerAction")&&Xe&&Xe.refresh()})),Md(e),e.subscriptions.push(J.commands.registerCommand("npm.runSelectedScript",vu)),await gu()&&J.commands.executeCommand("setContext","npm:showScriptExplorer",!0),e.subscriptions.push(J.commands.registerCommand("npm.runScriptFromFolder",bu)),e.subscriptions.push(J.commands.registerCommand("npm.refresh",()=>{Ht()})),e.subscriptions.push(J.commands.registerCommand("npm.scriptRunner",n=>n instanceof J.Uri?Pr(n,e,!0):"")),e.subscriptions.push(J.commands.registerCommand("npm.packageManager",n=>n instanceof J.Uri?Lr(n,e,!0):"")),e.subscriptions.push(new En),e.subscriptions.push(J.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 Ld(){if(J.workspace.isTrusted&&Id())try{return await(0,Ku.default)(process.platform==="win32"?"npm.cmd":"npm")}catch{return}}function Id(){return J.workspace.workspaceFolders?J.workspace.workspaceFolders.some(e=>e.uri.scheme==="file"):!1}var Fr;function Nd(e){if(J.workspace.workspaceFolders){let t=J.workspace.createFileSystemWatcher("**/package.json");t.onDidChange(i=>Ht()),t.onDidDelete(i=>Ht()),t.onDidCreate(i=>Ht()),e.subscriptions.push(t);let n=J.workspace.onDidChangeWorkspaceFolders(i=>Ht());e.subscriptions.push(n),Fr=new yn(e);let r=J.tasks.registerTaskProvider("npm",Fr);return e.subscriptions.push(r),r}}function Fd(e){if(J.workspace.workspaceFolders){let t=new Sn(e,Fr),n=J.window.createTreeView("npm",{treeDataProvider:t,showCollapseAll:!0});return e.subscriptions.push(n),t}}function Md(e){if(J.workspace.workspaceFolders){let t={language:"json",scheme:"file",pattern:"**/package.json"},n=new kn(e);return e.subscriptions.push(J.languages.registerHoverProvider(t,n)),n}}function Vu(){let e=J.workspace.getConfiguration("http");_n.configure(e.get("proxy",""),e.get("proxyStrictSSL",!0))}function Dd(){}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
