"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 ge=(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:l}={}){return new Promise(((c,p)=>{function f(){l?.removeEventListener("abort",f),a.removeListener(u,d),a.removeListener("error",h)}function d(...y){f(),c(y)}function h(y){f(),p(y)}l?.addEventListener("abort",f),a.on(u,d),a.on("error",h)}))}},54:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};let l=a(361),c=u(a(374)),p=u(a(304)),f=c.default("agent-base");function d(){let{stack:y}=new Error;return typeof y=="string"&&y.split(`
`).some((E=>E.indexOf("(https.js:")!==-1||E.indexOf("node:https:")!==-1))}function h(y,E){return new h.Agent(y,E)}(function(y){class E extends l.EventEmitter{constructor(R,k){super();let _=k;typeof R=="function"?this.callback=R:R&&(_=R),this.timeout=null,_&&typeof _.timeout=="number"&&(this.timeout=_.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:d()?443:80}set defaultPort(R){this.explicitDefaultPort=R}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:d()?"https:":"http:"}set protocol(R){this.explicitProtocol=R}callback(R,k,_){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(R,k){let _=Object.assign({},k);typeof _.secureEndpoint!="boolean"&&(_.secureEndpoint=d()),_.host==null&&(_.host="localhost"),_.port==null&&(_.port=_.secureEndpoint?443:80),_.protocol==null&&(_.protocol=_.secureEndpoint?"https:":"http:"),_.host&&_.path&&delete _.path,delete _.agent,delete _.hostname,delete _._defaultAgent,delete _.defaultPort,delete _.createConnection,R._last=!0,R.shouldKeepAlive=!1;let P=!1,L=null,S=_.timeout||this.timeout,v=g=>{R._hadError||(R.emit("error",g),R._hadError=!0)},b=()=>{L=null,P=!0;let g=new Error(`A "socket" was not created for HTTP request before ${S}ms`);g.code="ETIMEOUT",v(g)},C=g=>{P||(L!==null&&(clearTimeout(L),L=null),v(g))},m=g=>{if(P)return;if(L!=null&&(clearTimeout(L),L=null),A=g,!!A&&typeof A.addRequest=="function")return f("Callback returned another Agent instance %o",g.constructor.name),void g.addRequest(R,_);var A;if(g)return g.once("free",(()=>{this.freeSocket(g,_)})),void R.onSocket(g);let T=new Error(`no Duplex stream was returned to agent-base for \`${R.method} ${R.path}\``);v(T)};if(typeof this.callback=="function"){this.promisifiedCallback||(this.callback.length>=3?(f("Converting legacy callback function to promise"),this.promisifiedCallback=p.default(this.callback)):this.promisifiedCallback=this.callback),typeof S=="number"&&S>0&&(L=setTimeout(b,S)),"port"in _&&typeof _.port!="number"&&(_.port=Number(_.port));try{f("Resolving socket for %o request: %o",_.protocol,`${R.method} ${R.path}`),Promise.resolve(this.promisifiedCallback(R,_)).then(m,C)}catch(g){Promise.reject(g).catch(C)}}else v(new Error("`callback` is not defined"))}freeSocket(R,k){f("Freeing socket %o %o",R.constructor.name,k),R.destroy()}destroy(){f("Destroying agent %o",this.constructor.name)}}y.Agent=E,y.prototype=y.Agent.prototype})(h||(h={})),o.exports=h},304:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(a){return function(u,l){return new Promise(((c,p)=>{a.call(this,u,l,((f,d)=>{f?p(f):c(d)}))}))}}},370:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(R,k,_,P){return new(_||(_=Promise))((function(L,S){function v(m){try{C(P.next(m))}catch(g){S(g)}}function b(m){try{C(P.throw(m))}catch(g){S(g)}}function C(m){var g;m.done?L(m.value):(g=m.value,g instanceof _?g:new _((function(A){A(g)}))).then(v,b)}C((P=P.apply(R,k||[])).next())}))},l=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),p=l(a(404)),f=l(a(310)),d=l(a(374)),h=l(a(46)),y=a(54),E=(0,d.default)("http-proxy-agent");class O extends y.Agent{constructor(k){let _;if(_=typeof k=="string"?f.default.parse(k):k,!_)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");E("Creating new HttpProxyAgent instance: %o",_),super(_);let P=Object.assign({},_);var L;this.secureProxy=_.secureProxy||typeof(L=P.protocol)=="string"&&/^https:?$/i.test(L),P.host=P.hostname||P.host,typeof P.port=="string"&&(P.port=parseInt(P.port,10)),!P.port&&P.host&&(P.port=this.secureProxy?443:80),P.host&&P.path&&(delete P.path,delete P.pathname),this.proxy=P}callback(k,_){return u(this,void 0,void 0,(function*(){let{proxy:P,secureProxy:L}=this,S=f.default.parse(k.path),v;if(S.protocol||(S.protocol="http:"),S.hostname||(S.hostname=_.hostname||_.host||null),S.port==null&&(_.port,1)&&(S.port=String(_.port)),S.port==="80"&&(S.port=""),k.path=f.default.format(S),P.auth&&k.setHeader("Proxy-Authorization",`Basic ${Buffer.from(P.auth).toString("base64")}`),L?(E("Creating `tls.Socket`: %o",P),v=p.default.connect(P)):(E("Creating `net.Socket`: %o",P),v=c.default.connect(P)),k._header){let b,C;E("Regenerating stored HTTP header string for request"),k._header=null,k._implicitHeader(),k.output&&k.output.length>0?(E("Patching connection write() output buffer with updated header"),b=k.output[0],C=b.indexOf(`\r
\r
`)+4,k.output[0]=k._header+b.substring(C),E("Output buffer: %o",k.output)):k.outputData&&k.outputData.length>0&&(E("Patching connection write() output buffer with updated header"),b=k.outputData[0].data,C=b.indexOf(`\r
\r
`)+4,k.outputData[0].data=k._header+b.substring(C),E("Output buffer: %o",k.outputData[0].data))}return yield(0,h.default)(v,"connect"),v}))}}s.default=O},201:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(370));function l(c){return new u.default(c)}(function(c){c.HttpProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},146:function(o,s,a){"use strict";var u=this&&this.__awaiter||function(_,P,L,S){return new(L||(L=Promise))((function(v,b){function C(A){try{g(S.next(A))}catch(T){b(T)}}function m(A){try{g(S.throw(A))}catch(T){b(T)}}function g(A){var T;A.done?v(A.value):(T=A.value,T instanceof L?T:new L((function(x){x(T)}))).then(C,m)}g((S=S.apply(_,P||[])).next())}))},l=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(s,"__esModule",{value:!0});let c=l(a(808)),p=l(a(404)),f=l(a(310)),d=l(a(491)),h=l(a(374)),y=a(54),E=l(a(829)),O=h.default("https-proxy-agent:agent");class R extends y.Agent{constructor(P){let L;if(L=typeof P=="string"?f.default.parse(P):P,!L)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");O("creating new HttpsProxyAgent instance: %o",L),super(L);let S=Object.assign({},L);var v;this.secureProxy=L.secureProxy||typeof(v=S.protocol)=="string"&&/^https:?$/i.test(v),S.host=S.hostname||S.host,typeof S.port=="string"&&(S.port=parseInt(S.port,10)),!S.port&&S.host&&(S.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in S)&&(S.ALPNProtocols=["http 1.1"]),S.host&&S.path&&(delete S.path,delete S.pathname),this.proxy=S}callback(P,L){return u(this,void 0,void 0,(function*(){let{proxy:S,secureProxy:v}=this,b;v?(O("Creating `tls.Socket`: %o",S),b=p.default.connect(S)):(O("Creating `net.Socket`: %o",S),b=c.default.connect(S));let C=Object.assign({},S.headers),m=`CONNECT ${L.host}:${L.port} HTTP/1.1\r
`;S.auth&&(C["Proxy-Authorization"]=`Basic ${Buffer.from(S.auth).toString("base64")}`);let{host:g,port:A,secureEndpoint:T}=L;(function(H,j){return!!(!j&&H===80||j&&H===443)})(A,T)||(g+=`:${A}`),C.Host=g,C.Connection="close";for(let H of Object.keys(C))m+=`${H}: ${C[H]}\r
`;let x=E.default(b);b.write(`${m}\r
`);let{statusCode:w,buffered:N}=yield x;if(w===200){if(P.once("socket",k),L.secureEndpoint){O("Upgrading socket connection to TLS");let H=L.servername||L.host;return p.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:b,servername:H}))}return b}b.destroy();let D=new c.default.Socket({writable:!1});return D.readable=!0,P.once("socket",(H=>{O("replaying proxy buffer for failed request"),d.default(H.listenerCount("data")>0),H.push(N),H.push(null)})),D}))}}function k(_){_.resume()}s.default=R},18:function(o,s,a){"use strict";let u=(this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}})(a(146));function l(c){return new u.default(c)}(function(c){c.HttpsProxyAgent=u.default,c.prototype=u.default.prototype})(l||(l={})),o.exports=l},829:function(o,s,a){"use strict";var u=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(s,"__esModule",{value:!0});let l=u(a(374)).default("https-proxy-agent:parse-proxy-response");s.default=function(c){return new Promise(((p,f)=>{let d=0,h=[];function y(){let R=c.read();R?(function(k){h.push(k),d+=k.length;let _=Buffer.concat(h,d);if(_.indexOf(`\r
\r
`)===-1)return l("have not received end of HTTP headers yet..."),void y();let P=_.toString("ascii",0,_.indexOf(`\r
`)),L=+P.split(" ")[1];l("got proxy server response: %o",P),p({statusCode:L,buffered:_})})(R):c.once("readable",y)}function E(R){l("onclose had error %o",R)}function O(){l("onend")}c.on("error",(function R(k){c.removeListener("end",O),c.removeListener("error",R),c.removeListener("close",E),c.removeListener("readable",y),l("onerror %o",k),f(k)})),c.on("close",E),c.on("end",O),y()}))}},539:function(o,s,a){"use strict";var u,l=this&&this.__extends||(u=function(v,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,m){C.__proto__=m}||function(C,m){for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(C[g]=m[g])},u(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function C(){this.constructor=v}u(v,b),v.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}),c=this&&this.__assign||function(){return c=Object.assign||function(v){for(var b,C=1,m=arguments.length;C<m;C++)for(var g in b=arguments[C])Object.prototype.hasOwnProperty.call(b,g)&&(v[g]=b[g]);return v},c.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0}),s.getErrorStatusDescription=s.xhr=s.configure=void 0;var p=a(685),f=a(687),d=a(310),h=a(472),y=a(796),E=a(201),O=a(18);if(process.env.VSCODE_NLS_CONFIG){var R=process.env.VSCODE_NLS_CONFIG;h.config(JSON.parse(R))}var k=h.loadMessageBundle(),_=void 0,P=!0;function L(v){var b;return new Promise((function(C,m){var g=(0,d.parse)(v.url),A={hostname:g.hostname,agent:!!v.agent&&v.agent,port:g.port?parseInt(g.port):g.protocol==="https:"?443:80,path:g.path,method:v.type||"GET",headers:v.headers,rejectUnauthorized:typeof v.strictSSL!="boolean"||v.strictSSL};v.user&&v.password&&(A.auth=v.user+":"+v.password);var T=function(x){if(x.statusCode>=300&&x.statusCode<400&&v.followRedirects&&v.followRedirects>0&&x.headers.location){var w=x.headers.location;w.startsWith("/")&&(w=(0,d.format)({protocol:g.protocol,hostname:g.hostname,port:g.port,pathname:w})),C(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})({},v,{url:w,followRedirects:v.followRedirects-1})))}else C({req:b,res:x})};(b=g.protocol==="https:"?f.request(A,T):p.request(A,T)).on("error",m),v.timeout&&b.setTimeout(v.timeout),v.data&&b.write(v.data),b.end(),v.token&&(v.token.isCancellationRequested&&b.destroy(new S),v.token.onCancellationRequested((function(){b.destroy(new S)})))}))}s.configure=function(v,b){_=v,P=b},s.xhr=function(v){return typeof(v=c({},v)).strictSSL!="boolean"&&(v.strictSSL=P),v.agent||(v.agent=(function(b,C){C===void 0&&(C={});var m=(0,d.parse)(b),g=C.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(!g)return null;var A=(0,d.parse)(g);if(!/^https?:$/.test(A.protocol))return null;var T={host:A.hostname,port:Number(A.port),auth:A.auth,rejectUnauthorized:typeof C.strictSSL!="boolean"||C.strictSSL,protocol:A.protocol};return m.protocol==="http:"?E(T):O(T)})(v.url,{proxyUrl:_,strictSSL:P})),typeof v.followRedirects!="number"&&(v.followRedirects=5),L(v).then((function(b){return new Promise((function(C,m){var g,A,T=b.res,x=T,w=!1,N=T.headers&&T.headers["content-encoding"];if(N&&(g=v.type,A=b.res.statusCode,!(g==="HEAD"||A>=100&&A<200||A===204||A===304))){var D={flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH};if(N==="gzip"){var H=y.createGunzip(D);T.pipe(H),x=H}else if(N==="deflate"){var j=y.createInflate(D);T.pipe(j),x=j}}var B=[];x.on("data",(function(K){return B.push(K)})),x.on("end",(function(){if(!w){if(w=!0,v.followRedirects>0&&(T.statusCode>=300&&T.statusCode<=303||T.statusCode===307)){var K=T.headers.location;if(K.startsWith("/")){var re=(0,d.parse)(v.url);K=(0,d.format)({protocol:re.protocol,hostname:re.hostname,port:re.port,pathname:K})}if(K){var Oe={type:v.type,url:K,user:v.user,password:v.password,headers:v.headers,timeout:v.timeout,followRedirects:v.followRedirects-1,data:v.data,token:v.token};return void(0,s.xhr)(Oe).then(C,m)}}var de=Buffer.concat(B),W={responseText:de.toString(),body:de,status:T.statusCode,headers:T.headers||{}};T.statusCode>=200&&T.statusCode<300||T.statusCode===1223?C(W):m(W)}})),x.on("error",(function(K){var re;re=S.is(K)?K:{responseText:k("error","Unable to access {0}. Error: {1}",v.url,K.message),body:Buffer.concat(B),status:500,headers:{}},w=!0,m(re)})),v.token&&(v.token.isCancellationRequested&&x.destroy(new S),v.token.onCancellationRequested((function(){x.destroy(new S)})))}))}),(function(b){var C;return C=S.is(b)?b:{responseText:v.agent?k("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",v.url,b.message):k("error.cannot.connect","Unable to connect to {0}. Error: {1}",v.url,b.message),body:Buffer.concat([]),status:404,headers:{}},Promise.reject(C)}))},s.getErrorStatusDescription=function(v){if(!(v<400))switch(v){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}",v)}};var S=(function(v){function b(){var C=v.call(this,"The user aborted a request")||this;return C.name="AbortError",Object.setPrototypeOf(C,b.prototype),C}return l(b,v),b.is=function(C){return C instanceof b},b})(Error)},800:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.localize=s.format=s.setPseudo=s.isPseudo=s.isDefined=s.BundleFormat=s.MessageFormat=void 0;var u,l,c,p=a(926);function f(h){return h!==void 0}function d(h,y){return s.isPseudo&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),y.length===0?h:h.replace(/\{(\d+)\}/g,(function(E,O){var R=O[0],k=y[R],_=E;return typeof k=="string"?_=k:typeof k!="number"&&typeof k!="boolean"&&k!=null||(_=String(k)),_}))}(c=s.MessageFormat||(s.MessageFormat={})).file="file",c.bundle="bundle",c.both="both",(l=s.BundleFormat||(s.BundleFormat={})).standalone="standalone",l.languagePack="languagePack",(function(h){h.is=function(y){var E=y;return E&&f(E.key)&&f(E.comment)}})(u||(u={})),s.isDefined=f,s.isPseudo=!1,s.setPseudo=function(h){s.isPseudo=h},s.format=d,s.localize=function(h,y){for(var E=[],O=2;O<arguments.length;O++)E[O-2]=arguments[O];return d(y,E)},s.loadMessageBundle=function(h){return(0,p.default)().loadMessageBundle(h)},s.config=function(h){return(0,p.default)().config(h)}},926:(o,s)=>{"use strict";var a;function u(){if(a===void 0)throw new Error("No runtime abstraction layer installed");return a}Object.defineProperty(s,"__esModule",{value:!0}),(function(l){l.install=function(c){if(c===void 0)throw new Error("No runtime abstraction layer provided");a=c}})(u||(u={})),s.default=u},472:(o,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.config=s.loadMessageBundle=s.BundleFormat=s.MessageFormat=void 0;var u=a(17),l=a(147),c=a(926),p=a(800),f=a(800);Object.defineProperty(s,"MessageFormat",{enumerable:!0,get:function(){return f.MessageFormat}}),Object.defineProperty(s,"BundleFormat",{enumerable:!0,get:function(){return f.BundleFormat}});var d,h,y=Object.prototype.toString;function E(b){return y.call(b)==="[object Number]"}function O(b){return y.call(b)==="[object String]"}function R(b){return JSON.parse(l.readFileSync(b,"utf8"))}function k(b){return function(C,m){for(var g=[],A=2;A<arguments.length;A++)g[A-2]=arguments[A];return E(C)?C>=b.length?void console.error(`Broken localize call found. Index out of bounds. Stacktrace is
: `.concat(new Error("").stack)):(0,p.format)(b[C],g):O(m)?(console.warn("Message ".concat(m," didn't get externalized correctly.")),(0,p.format)(m,g)):void console.error(`Broken localize call found. Stacktrace is
: `.concat(new Error("").stack))}}function _(b,C){return d[b]=C,C}function P(b){try{return(function(C){var m=R(u.join(C,"nls.metadata.json")),g=Object.create(null);for(var A in m){var T=m[A];g[A]=T.messages}return g})(b)}catch(C){return void console.log("Generating default bundle from meta data failed.",C)}}function L(b,C){var 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,T){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(l.readFileSync(D,{encoding:"utf8",flag:"r"})),w=D,N=new Date,l.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,".")),l.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=R(re).contents,de=R(u.join(K,"nls.metadata.json")),W=Object.create(null);for(var Ee in de){var Ze=de[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[O(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,T),!x||H)return x;if(j)try{l.writeFileSync(D,JSON.stringify(x),{encoding:"utf8",flag:"wx"})}catch(B){if(B.code==="EEXIST")return x;throw B}return x})(b,C)}catch(A){console.log("Load or create bundle failed ",A)}if(!m){if(h.languagePackSupport)return P(C);var g=(function(A){for(var T=h.language;T;){var x=u.join(A,"nls.bundle.".concat(T,".json"));if(l.existsSync(x))return x;var w=T.lastIndexOf("-");T=w>0?T.substring(0,w):void 0}if(T===void 0&&(x=u.join(A,"nls.bundle.json"),l.existsSync(x)))return x})(C);if(g)try{return R(g)}catch(A){console.log("Loading in the box message bundle failed.",A)}m=P(C)}return m}function S(b){if(!b)return p.localize;var C=u.extname(b);if(C&&(b=b.substr(0,b.length-C.length)),h.messageFormat===p.MessageFormat.both||h.messageFormat===p.MessageFormat.bundle){var m=(function(H){for(var j,B=u.dirname(H);j=u.join(B,"nls.metadata.header.json"),!l.existsSync(j);){var K=u.dirname(B);if(K===B){j=void 0;break}B=K}return j})(b);if(m){var g=u.dirname(m),A=d[g];if(A===void 0)try{var T=JSON.parse(l.readFileSync(m,"utf8"));try{var x=L(T,g);A=_(g,x?{header:T,nlsBundle:x}:null)}catch(H){console.error("Failed to load nls bundle",H),A=_(g,null)}}catch(H){console.error("Failed to read header file",H),A=_(g,null)}if(A){var w=b.substr(g.length+1).replace(/\\/g,"/"),N=A.nlsBundle[w];return N===void 0?(console.error("Messages for file ".concat(b," not found. See console for details.")),function(){return"Messages not found."}):k(N)}}}if(h.messageFormat===p.MessageFormat.both||h.messageFormat===p.MessageFormat.file)try{var D=R((function(H){var j;if(!(h.cacheLanguageResolution&&j)){if(p.isPseudo||!h.language)j=".nls.json";else for(var B=h.language;B;){var K=".nls."+B+".json";if(l.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})(b));return Array.isArray(D)?k(D):(0,p.isDefined)(D.messages)&&(0,p.isDefined)(D.keys)?k(D.messages):(console.error("String bundle '".concat(b,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(H){H.code!=="ENOENT"&&console.error("Failed to load single file bundle",H)}return console.error("Failed to load message bundle for file ".concat(b)),function(){return"Failed to load message bundle. See console for details."}}function v(b){return b&&(O(b.locale)&&(h.locale=b.locale.toLowerCase(),h.language=h.locale,d=Object.create(null)),b.messageFormat!==void 0&&(h.messageFormat=b.messageFormat),b.bundleFormat===p.BundleFormat.standalone&&h.languagePackSupport===!0&&(h.languagePackSupport=!1)),(0,p.setPseudo)(h.locale==="pseudo"),S}(function(){if(h={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:p.MessageFormat.bundle},O(process.env.VSCODE_NLS_CONFIG))try{var b=JSON.parse(process.env.VSCODE_NLS_CONFIG),C=void 0;if(b.availableLanguages){var m=b.availableLanguages["*"];O(m)&&(C=m)}if(O(b.locale)&&(h.locale=b.locale.toLowerCase()),C===void 0?h.language=h.locale:C!=="en"&&(h.language=C),(function(A){return A===!0||A===!1})(b._languagePackSupport)&&(h.languagePackSupport=b._languagePackSupport),O(b._cacheRoot)&&(h.cacheRoot=b._cacheRoot),O(b._languagePackId)&&(h.languagePackId=b._languagePackId),O(b._translationsConfigFile)){h.translationsConfigFile=b._translationsConfigFile;try{h.translationsConfig=R(h.translationsConfigFile)}catch{if(b._corruptedFile){var g=u.dirname(b._corruptedFile);l.exists(g,(function(T){T&&l.writeFile(b._corruptedFile,"corrupted","utf8",(function(x){console.error(x)}))}))}}}}catch{}(0,p.setPseudo)(h.locale==="pseudo"),d=Object.create(null)})(),s.loadMessageBundle=S,s.config=v,c.default.install(Object.freeze({loadMessageBundle:S,config:v}))},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),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!a;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?a=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,s=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(a=[o,s])}return a}});var 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),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=u||l,p=r.body.indexOf(",")>=0;if(!c&&!p)return r.post.match(/,(?!,).*\}/)?(e=r.pre+"{"+r.body+jn+r.post,wt(e)):[e];var f;if(c)f=r.body.split(/\.\./);else if(f=ai(r.body),f.length===1&&(f=wt(f[0],!1).map(gc),f.length===1))return o.map(function(C){return r.pre+f[0]+C});var d;if(c){var h=Hn(f[0]),y=Hn(f[1]),E=Math.max(f[0].length,f[1].length),O=f.length==3?Math.abs(Hn(f[2])):1,R=yc,k=y<h;k&&(O*=-1,R=xc);var _=f.some(mc);d=[];for(var P=h;R(P,y);P+=O){var L;if(l)L=String.fromCharCode(P),L==="\\"&&(L="");else if(L=String(P),_){var S=E-L.length;if(S>0){var v=new Array(S+1).join("0");P<0?L="-"+v+L.slice(1):L=v+L}}d.push(L)}}else{d=[];for(var b=0;b<f.length;b++)d.push.apply(d,wt(f[b],!1))}for(var b=0;b<d.length;b++)for(var s=0;s<o.length;s++){var a=i+d[b]+o[s];(!t||c||a)&&n.push(a)}}return n}});var gi=F((kg,Gn)=>{var me=Gn.exports=(e,t,n={})=>(Bt(t),!n.nocomment&&t.charAt(0)==="#"?!1:new tt(t,n).match(e));Gn.exports=me;var Un=Qr();me.sep=Un.sep;var le=Symbol("globstar **");me.GLOBSTAR=le;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=/\/+/;me.filter=(e,t={})=>(n,r,i)=>me(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};me.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return me;let t=me,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};me.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");me.makeRe=(e,t)=>new tt(e,t||{}).makeRe();me.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.maxGlobstarRecursion=n.maxGlobstarRecursion!==void 0?n.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,r),r=this.globParts=r.map(i=>i.split(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){return n.indexOf(le)!==-1?this._matchGlobstar(t,n,r,0,0):this._matchOne(t,n,r,0,0)}_matchGlobstar(t,n,r,i,o){let s=-1;for(let R=o;R<n.length;R++)if(n[R]===le){s=R;break}let a=-1;for(let R=n.length-1;R>=0;R--)if(n[R]===le){a=R;break}let u=n.slice(o,s),l=n.slice(s+1,a),c=n.slice(a+1);if(u.length){let R=t.slice(i,i+u.length);if(!this._matchOne(R,u,r,0,0))return!1;i+=u.length}let p=0;if(c.length){if(c.length+i>t.length)return!1;let R=t.length-c.length;if(this._matchOne(t,c,r,R,0))p=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||!this._matchOne(t,c,r,R-1,0))return!1;p=c.length+1}}if(!l.length){let R=!!p;for(let k=i;k<t.length-p;k++){let _=String(t[k]);if(R=!0,_==="."||_===".."||!this.options.dot&&_.charAt(0)===".")return!1}return R}let f=[[[],0]],d=f[0],h=0,y=[0];for(let R of l)R===le?(y.push(h),d=[[],0],f.push(d)):(d[0].push(R),h++);let E=f.length-1,O=t.length-p;for(let R of f)R[1]=O-(y[E--]+R[0].length);return!!this._matchGlobStarBodySections(t,f,i,0,r,0,!!p)}_matchGlobStarBodySections(t,n,r,i,o,s,a){let u=n[i];if(!u){for(let p=r;p<t.length;p++){a=!0;let f=t[p];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1}return a}let[l,c]=u;for(;r<=c;){if(this._matchOne(t.slice(0,r+l.length),l,o,r,0)&&s<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(t,n,r+l.length,i+1,o,s+1,a);if(d!==!1)return d}let f=t[r];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)===".")return!1;r++}return null}_matchOne(t,n,r,i,o){let s,a,u,l;for(s=i,a=o,u=t.length,l=n.length;s<u&&a<l;s++,a++){this.debug("matchOne loop");let c=n[a],p=t[s];if(this.debug(n,c,p),c===!1||c===le)return!1;let f;if(typeof c=="string"?(f=p===c,this.debug("string match",c,p,f)):(f=p.match(c),this.debug("pattern match",c,p,f)),!f)return!1}if(s===u&&a===l)return!0;if(s===u)return r;if(a===l)return s===u-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return di(this.pattern,this.options)}parse(t,n){Bt(t);let r=this.options;if(t==="**")if(r.noglobstar)t="*";else return le;if(t==="")return"";let i="",o=!1,s=!1,a=[],u=[],l,c=!1,p=-1,f=-1,d,h,y,E=t.charAt(0)===".",O=r.dot||E,R=()=>E?"":O?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=S=>S.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=()=>{if(l){switch(l){case"*":i+=$n,o=!0;break;case"?":i+=Bn,o=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let S=0,v;S<t.length&&(v=t.charAt(S));S++){if(this.debug("%s	%s %s %j",t,S,i,v),s){if(v==="/")return!1;fi[v]&&(i+="\\"),i+=v,s=!1;continue}switch(v){case"/":return!1;case"\\":if(c&&t.charAt(S+1)==="-"){i+=v;continue}_(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s	%s %s %j <-- stateChar",t,S,i,v),c){this.debug("  in class"),v==="!"&&S===f+1&&(v="^"),i+=v;continue}if(v==="*"&&l==="*")continue;this.debug("call clearStateChar %j",l),_(),l=v,r.noext&&_();continue;case"(":{if(c){i+="(";continue}if(!l){i+="\\(";continue}let b={type:l,start:S-1,reStart:i.length,open:li[l].open,close:li[l].close};this.debug(this.pattern,"	",b),a.push(b),i+=b.open,b.start===0&&b.type!=="!"&&(E=!0,i+=k(t.slice(S+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let b=a[a.length-1];if(c||!b){i+="\\)";continue}a.pop(),_(),o=!0,h=b,i+=h.close,h.type==="!"&&u.push(Object.assign(h,{reEnd:i.length}));continue}case"|":{let b=a[a.length-1];if(c||!b){i+="\\|";continue}_(),i+="|",b.start===0&&b.type!=="!"&&(E=!0,i+=k(t.slice(S+1)));continue}case"[":if(_(),c){i+="\\"+v;continue}c=!0,f=S,p=i.length,i+=v;continue;case"]":if(S===f+1||!c){i+="\\"+v;continue}d=t.substring(f+1,S);try{RegExp("["+Tc(Ec(d))+"]"),i+=v}catch{i=i.substring(0,p)+"(?:$.)"}o=!0,c=!1;continue;default:_(),fi[v]&&!(v==="^"&&c)&&(i+="\\"),i+=v;break}}for(c&&(d=t.slice(f+1),y=this.parse(d,qn),i=i.substring(0,p)+"\\["+y[0],o=o||y[1]),h=a.pop();h;h=a.pop()){let S;S=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(b,C,m)=>(m||(m="\\"),C+C+m+"|")),this.debug(`tail=%j
   %s`,S,S,h,i);let v=h.type==="*"?$n:h.type==="?"?Bn:"\\"+h.type;o=!0,i=i.slice(0,h.reStart)+v+"\\("+S}_(),s&&(i+="\\\\");let P=Ac[i.charAt(0)];for(let S=u.length-1;S>-1;S--){let v=u[S],b=i.slice(0,v.reStart),C=i.slice(v.reStart,v.reEnd-8),m=i.slice(v.reEnd),g=i.slice(v.reEnd-8,v.reEnd)+m,A=b.split(")").length,T=b.split("(").length-A,x=m;for(let N=0;N<T;N++)x=x.replace(/\)[+*?]?/,"");m=x;let w=m===""&&n!==qn?"(?:$|\\/)":"";i=b+C+m+w+g}if(i!==""&&o&&(i="(?=.)"+i),P&&(i=R()+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===le?le:a._src).reduce((a,u)=>(a[a.length-1]===le&&u===le||a.push(u),a),[]),s.forEach((a,u)=>{a!==le||s[u-1]===le||(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]=le))}),s.filter(a=>a!==le).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 me.defaults(t).Minimatch}};me.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,...l)=>{n++;let c=(async()=>a(...l))();u(c);try{await c}catch{}r()},o=(a,u,...l)=>{t.enqueue(i.bind(null,a,u,...l)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},s=(a,...u)=>new Promise(l=>{o(a,l,...u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};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(c,p,f){f&&process.nextTick(f)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(c,p,f,d){d&&process.nextTick(d)},e.lchownSync=function(){}),jc==="win32"&&(e.rename=(function(c){return function(p,f,d){var h=Date.now(),y=0;c(p,f,function E(O){if(O&&(O.code==="EACCES"||O.code==="EPERM")&&Date.now()-h<6e4){setTimeout(function(){e.stat(f,function(R,k){R&&R.code==="ENOENT"?c(p,f,E):d(O)})},y),y<100&&(y+=10);return}d&&d(O)})}})(e.rename)),e.read=(function(c){function p(f,d,h,y,E,O){var R;if(O&&typeof O=="function"){var k=0;R=function(_,P,L){if(_&&_.code==="EAGAIN"&&k<10)return k++,c.call(e,f,d,h,y,E,R);O.apply(this,arguments)}}return c.call(e,f,d,h,y,E,R)}return p.__proto__=c,p})(e.read),e.readSync=(function(c){return function(p,f,d,h,y){for(var E=0;;)try{return c.call(e,p,f,d,h,y)}catch(O){if(O.code==="EAGAIN"&&E<10){E++;continue}throw O}}})(e.readSync);function t(c){c.lchmod=function(p,f,d){c.open(p,Ie.O_WRONLY|Ie.O_SYMLINK,f,function(h,y){if(h){d&&d(h);return}c.fchmod(y,f,function(E){c.close(y,function(O){d&&d(E||O)})})})},c.lchmodSync=function(p,f){var d=c.openSync(p,Ie.O_WRONLY|Ie.O_SYMLINK,f),h=!0,y;try{y=c.fchmodSync(d,f),h=!1}finally{if(h)try{c.closeSync(d)}catch{}else c.closeSync(d)}return y}}function n(c){Ie.hasOwnProperty("O_SYMLINK")?(c.lutimes=function(p,f,d,h){c.open(p,Ie.O_SYMLINK,function(y,E){if(y){h&&h(y);return}c.futimes(E,f,d,function(O){c.close(E,function(R){h&&h(O||R)})})})},c.lutimesSync=function(p,f,d){var h=c.openSync(p,Ie.O_SYMLINK),y,E=!0;try{y=c.futimesSync(h,f,d),E=!1}finally{if(E)try{c.closeSync(h)}catch{}else c.closeSync(h)}return y}):(c.lutimes=function(p,f,d,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function r(c){return c&&function(p,f,d){return c.call(e,p,f,function(h){l(h)&&(h=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(p,f){try{return c.call(e,p,f)}catch(d){if(!l(d))throw d}}}function o(c){return c&&function(p,f,d,h){return c.call(e,p,f,d,function(y){l(y)&&(y=null),h&&h.apply(this,arguments)})}}function s(c){return c&&function(p,f,d){try{return c.call(e,p,f,d)}catch(h){if(!l(h))throw h}}}function a(c){return c&&function(p,f,d){typeof f=="function"&&(d=f,f=null);function h(y,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),d&&d.apply(this,arguments)}return f?c.call(e,p,f,h):c.call(e,p,h)}}function u(c){return c&&function(p,f){var d=f?c.call(e,p,f):c.call(e,p);return d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296),d}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.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 l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,p){if(c){o.emit("error",c),o.readable=!1;return}o.fd=p,o.emit("open",p),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=_;var t=e.readFile;e.readFile=n;function n(S,v,b){return typeof v=="function"&&(b=v,v=null),C(S,v,b);function C(m,g,A){return t(m,g,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?At([C,[m,g,A]]):(typeof A=="function"&&A.apply(this,arguments),De())})}}var r=e.writeFile;e.writeFile=i;function i(S,v,b,C){return typeof b=="function"&&(C=b,b=null),m(S,v,b,C);function m(g,A,T,x){return r(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[g,A,T,x]]):(typeof x=="function"&&x.apply(this,arguments),De())})}}var o=e.appendFile;o&&(e.appendFile=s);function s(S,v,b,C){return typeof b=="function"&&(C=b,b=null),m(S,v,b,C);function m(g,A,T,x){return o(g,A,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[g,A,T,x]]):(typeof x=="function"&&x.apply(this,arguments),De())})}}var a=e.readdir;e.readdir=u;function u(S,v,b){var C=[S];return typeof v!="function"?C.push(v):b=v,C.push(m),l(C);function m(g,A){A&&A.sort&&A.sort(),g&&(g.code==="EMFILE"||g.code==="ENFILE")?At([l,[C]]):(typeof b=="function"&&b.apply(this,arguments),De())}}function l(S){return a.apply(e,S)}if(process.version.substr(0,4)==="v0.8"){var c=Wc(e);y=c.ReadStream,O=c.WriteStream}var p=e.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=E);var f=e.WriteStream;f&&(O.prototype=Object.create(f.prototype),O.prototype.open=R),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(S){y=S},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return O},set:function(S){O=S},enumerable:!0,configurable:!0});var d=y;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(S){d=S},enumerable:!0,configurable:!0});var h=O;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(S){h=S},enumerable:!0,configurable:!0});function y(S,v){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function E(){var S=this;L(S.path,S.flags,S.mode,function(v,b){v?(S.autoClose&&S.destroy(),S.emit("error",v)):(S.fd=b,S.emit("open",b),S.read())})}function O(S,v){return this instanceof O?(f.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function R(){var S=this;L(S.path,S.flags,S.mode,function(v,b){v?(S.destroy(),S.emit("error",v)):(S.fd=b,S.emit("open",b))})}function k(S,v){return new e.ReadStream(S,v)}function _(S,v){return new e.WriteStream(S,v)}var P=e.open;e.open=L;function L(S,v,b,C){return typeof b=="function"&&(C=b,b=null),m(S,v,b,C);function m(g,A,T,x){return P(g,A,T,function(w,N){w&&(w.code==="EMFILE"||w.code==="ENFILE")?At([m,[g,A,T,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,l=null,c,p,f;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]&&(c=+t[10],p=+(t[11]||0),l=(c*60+p)*6e4,t[9]==="-"&&(l=-l)),f=new Date(Date.UTC(n,r,i,o,s,a,u)),l&&f.setTime(f.getTime()-l),f}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 pe(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,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&U(e,"nested arrays are not supported inside keys"),typeof i=="object"&&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,l=o.length;u<l;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||pe(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,l,c,p=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),pe(d)||st(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),pe(i)||n&&st(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),pe(i)||n&&st(i))break}else if(d===35){if(r=e.input.charCodeAt(e.position-1),pe(r))break}else{if(e.position===e.lineStart&&nn(e)||n&&st(d))break;if(Ae(d))if(u=e.line,l=e.lineStart,c=e.lineIndent,te(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=l,e.lineIndent=c;break}}a&&(Ne(e,o,s,!1),ar(e,e.line-u),o=s=e.position,a=!1),Be(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return Ne(e,o,s,!1),e.result?!0:(e.kind=p,e.result=f,!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,l,c,p,f={},d,h,y,E;if(E=e.input.charCodeAt(e.position),E===91)u=93,p=!1,o=[];else if(E===123)u=125,p=!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=p?"mapping":"sequence",e.result=o,!0;n||U(e,"missed comma between flow collection entries"),h=d=y=null,l=c=!1,E===63&&(a=e.input.charCodeAt(e.position+1),pe(a)&&(l=c=!0,e.position++,te(e,!0,t))),r=e.line,ut(e,t,Zt,!1,!0),h=e.tag,d=e.result,te(e,!0,t),E=e.input.charCodeAt(e.position),(c||e.line===r)&&E===58&&(l=!0,E=e.input.charCodeAt(++e.position),te(e,!0,t),ut(e,t,Zt,!1,!0),y=e.result),p?at(e,o,f,h,d,y):l?o.push(at(e,null,f,h,d,y)):o.push(d),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,l=!1,c,p;if(p=e.input.charCodeAt(e.position),p===124)r=!1;else if(p===62)r=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)or===i?i=p===43?Vo:Sf:U(e,"repeat of a chomping mode identifier");else if((c=Cf(p))>=0)c===0?U(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?U(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(Be(p)){do p=e.input.charCodeAt(++e.position);while(Be(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Ae(p)&&p!==0)}for(;p!==0;){for(sr(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Ae(p)){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(p)?(l=!0,e.result+=_e.repeat(`
`,o?1+u:u)):l?(l=!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(p)&&p!==0;)p=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),!pe(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,l={},c={},p=null,f=null,d=null,h=!1,y=!1,E;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),E=e.input.charCodeAt(e.position);E!==0;){if(r=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(E===63||E===58)&&pe(r))E===63?(h&&(at(e,l,c,p,f,null),p=f=d=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),pe(E)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(at(e,l,c,p,f,null),p=f=d=null),y=!0,h=!1,i=!1,p=e.tag,f=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?f=e.result:d=e.result),h||(at(e,l,c,p,f,d,o,s),p=f=d=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,l,c,p,f,null),y&&(e.tag=a,e.anchor=u,e.kind="mapping",e.result=l),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&&!pe(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&&!pe(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&&!pe(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,l=!1,c=!1,p,f,d,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)&&(l=!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)?(l=!0,a=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=l||i),(u===1||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)?c=!0:(s&&Mf(e,h)||If(e,h)||Nf(e,h)?c=!0:$f(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&U(e,"alias node should not have any properties")):Lf(e,h,Zt===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(c=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+'"'),p=0,f=e.implicitTypes.length;p<f;p+=1)if(d=e.implicitTypes[p],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Fe.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&U(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):U(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):U(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function 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&&!pe(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&&!pe(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,l=!1,c=r!==-1,p=-1,f=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,f=f&&gs(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Tt)u=!0,c&&(l=l||o-p-1>r&&e[p+1]!==" ",p=o);else if(!ct(s))return rn;a=o>0?e.charCodeAt(o-1):null,f=f&&gs(s,a)}l=l||c&&o-p-1>r&&e[p+1]!==" "}return!u&&!l?f&&!i(e)?Os:Ps:n>9&&Cs(e)?rn:l?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 l=e.indexOf(`
`);return l=l!==-1?l:e.length,n.lastIndex=l,xs(e.slice(0,l),t)})(),i=e[0]===`
`||e[0]===" ",o,s;s=n.exec(e);){var a=s[1],u=s[2];o=u[0]===" ",r+=a+(!i&&!o&&u!==""?`
`:"")+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,l,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),u=o[s],l=n[u],Ge(e,t,u,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ge(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function wp(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),a,u,l,c,p,f;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)f="",(!r||a!==0)&&(f+=ur(e,t)),l=s[a],c=n[l],Ge(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Tt===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,p&&(f+=ur(e,t)),Ge(e,t+1,c,!0,p)&&(e.dump&&Tt===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));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,l;if(a&&(u=e.duplicates.indexOf(n),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(a&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(wp(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(bp(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;r&&e.dump.length!==0?(vp(e,c,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(xp(e,c,e.dump),l&&(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(be=>{"use strict";be.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;be.find=(e,t)=>e.nodes.find(n=>n.type===t);be.exceedsLimit=(e,t,n=1,r)=>r===!1||!be.isInteger(e)||!be.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=r;be.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};be.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;be.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;be.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;be.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);be.flatten=(...e)=>{let t=[],n=r=>{for(let i=0;i<r.length;i++){let o=r[i];if(Array.isArray(o)){n(o);continue}o!==void 0&&t.push(o)}return t};return n(e),t}});var 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 l=Math.min(e,t),c=Math.max(e,t);if(Math.abs(l-c)===1){let y=e+"|"+t;return r.capture?`(${y})`:r.wrap===!1?y:`(?:${y})`}let p=na(e)||na(t),f={min:e,max:t,a:l,b:c},d=[],h=[];if(p&&(f.isPadded=p,f.maxLen=String(f.max).length),l<0){let y=c<0?Math.abs(c):1;h=zs(y,Math.abs(l),f,r),l=f.a=0}return c>=0&&(d=zs(l,c,f,r)),f.negatives=h,f.positives=d,f.result=Op(h,d,r),r.capture===!0?f.result=`(${f.result})`:r.wrap!==!1&&d.length+h.length>1&&(f.result=`(?:${f.result})`),We.cache[u]=f,f.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,l]=r[a];u===l?o+=u:u!=="0"||l!=="9"?o+=Fp(u,l,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 l=i[u],c=Lp(String(s),String(l),r),p="";if(!n.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+ta(a.count),s=l+1;continue}n.isPadded&&(p=Mp(l,n,r)),c.string=p+c.pattern+ta(c.count),o.push(c),s=l+1,a=c}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),l=String(n);n=Math.max(Math.abs(n),1);let c=mr(a)||mr(u)||mr(l),p=c?Math.max(a.length,u.length,l.length):0,f=c===!1&&jp(e,t,r)===!1,d=r.transform||Hp(f);if(r.toRegex&&n===1)return aa(ln(e,p),ln(t,p),!0,r);let h={negatives:[],positives:[]},y=R=>h[R<0?"negatives":"positives"].push(Math.abs(R)),E=[],O=0;for(;s?i>=o:i<=o;)r.toRegex===!0&&n>1?y(i):E.push($p(d(i,O),p,f)),i=s?i-n:i+n,O++;return r.toRegex===!0?n>1?qp(h,r,p):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||(f=>String.fromCharCode(f)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=o>s,u=Math.min(o,s),l=Math.max(o,s);if(r.toRegex&&n===1)return aa(u,l,!1,r);let c=[],p=0;for(;a?o>=s:o<=s;)c.push(i(o,p)),o=a?o-n:o+n,p++;return r.toRegex===!0?ua(c,null,{wrap:!1,options:r}):c},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?"\\":"",l="";if(r.isOpen===!0)return u+r.value;if(r.isClose===!0)return console.log("node.isClose",u,r.value),u+r.value;if(r.type==="open")return a?u+r.value:"(";if(r.type==="close")return a?u+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let c=pa.reduce(r.nodes),p=Wp(...c,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return c.length>1&&p.length>1?`(${p})`:p}if(r.nodes)for(let c of r.nodes)l+=n(c,r);return l};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 p=lt.reduce(i.nodes);if(lt.exceedsLimit(...p,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Vp(...p,t);f.length===0&&(f=ga(i,t)),a.push(Ye(a.pop(),f)),i.nodes=[];return}let u=lt.encloseBrace(i),l=i.queue,c=i;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let p=0;p<i.nodes.length;p++){let f=i.nodes[p];if(f.type==="comma"&&i.type==="brace"){p===1&&l.push(""),l.push("");continue}if(f.type==="close"){a.push(Ye(a.pop(),l,u));continue}if(f.value&&f.type!=="open"){l.push(Ye(l.pop(),f.value));continue}f.nodes&&r(f,i)}return l};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,l=e.length,c=0,p=0,f,d=()=>e[c++],h=y=>{if(y.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&y.type==="text"){a.value+=y.value;return}return s.nodes.push(y),y.parent=s,y.prev=a,a=y,y};for(h({type:"bos"});c<l;)if(s=o[o.length-1],f=d(),!(f===sh||f===oh)){if(f===xr){h({type:"text",value:(t.keepEscaping?f:"")+d()});continue}if(f===Aa){h({type:"text",value:"\\"+f});continue}if(f===wa){u++;let y;for(;c<l&&(y=d());){if(f+=y,y===wa){u++;continue}if(y===xr){f+=d();continue}if(y===Aa&&(u--,u===0))break}h({type:"text",value:f});continue}if(f===Zp){s=h({type:"paren",nodes:[]}),o.push(s),h({type:"text",value:f});continue}if(f===eh){if(s.type!=="paren"){h({type:"text",value:f});continue}s=o.pop(),h({type:"text",value:f}),s=o[o.length-1];continue}if(f===rh||f===ih||f===Qp){let y=f,E;for(t.keepQuotes!==!0&&(f="");c<l&&(E=d());){if(E===xr){f+=E+d();continue}if(E===y){t.keepQuotes===!0&&(f+=E);break}f+=E}h({type:"text",value:f});continue}if(f===th){p++;let E={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};s=h(E),o.push(s),h({type:"open",value:f});continue}if(f===nh){if(s.type!=="brace"){h({type:"text",value:f});continue}let y="close";s=o.pop(),s.close=!0,h({type:y,value:f}),p--,s=o[o.length-1];continue}if(f===zp&&p>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:f}),s.commas++;continue}if(f===Xp&&p>0&&s.commas===0){let y=s.nodes;if(p===0||y.length===0){h({type:"text",value:f});continue}if(a.type==="dot"){if(s.range=[],a.value+=f,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+f,a=E,s.ranges--;continue}h({type:"dot",value:f});continue}h({type:"text",value:f})}do if(s=o.pop(),s.type!=="root"){s.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let y=o[o.length-1],E=y.nodes.indexOf(s);y.nodes.splice(E,1,...s.nodes)}while(o.length>0);return h({type:"eos"}),i};Sa.exports=ah});var Ta=F((_m,_a)=>{"use strict";var Ea=un(),uh=da(),ch=ya(),lh=ka(),ye=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=ye.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(ye.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};ye.parse=(e,t={})=>lh(e,t);ye.stringify=(e,t={})=>Ea(typeof e=="string"?ye.parse(e,t):e,t);ye.compile=(e,t={})=>(typeof e=="string"&&(e=ye.parse(e,t)),uh(e,t));ye.expand=(e,t={})=>{typeof e=="string"&&(e=ye.parse(e,t));let n=ch(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};ye.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ye.compile(e,t):ye.expand(e,t);_a.exports=ye});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(he=>{"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();he.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);he.hasRegexChars=e=>Th.test(e);he.isRegexChar=e=>e.length===1&&he.hasRegexChars(e);he.escapeRegex=e=>e.replace(Rh,"\\$1");he.toPosixSlashes=e=>e.replace(Eh,"/");he.removeBackslashes=e=>e.replace(_h,t=>t==="\\"?"":t);he.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};he.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:kh===!0||Sh.sep==="\\";he.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?he.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};he.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};he.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,l=-1,c=0,p=0,f=!1,d=!1,h=!1,y=!1,E=!1,O=!1,R=!1,k=!1,_=!1,P=!1,L=0,S,v,b={value:"",depth:0,isGlob:!1},C=()=>l>=r,m=()=>u.charCodeAt(l+1),g=()=>(S=v,u.charCodeAt(++l));for(;l<r;){v=g();let N;if(v===It){R=b.backslashes=!0,v=g(),v===kr&&(O=!0);continue}if(O===!0||v===kr){for(L++;C()!==!0&&(v=g());){if(v===It){R=b.backslashes=!0,g();continue}if(v===kr){L++;continue}if(O!==!0&&v===Ar&&(v=g())===Ar){if(f=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(O!==!0&&v===Oh){if(f=b.isBrace=!0,h=b.isGlob=!0,P=!0,i===!0)continue;break}if(v===Ih&&(L--,L===0)){O=!1,f=b.isBrace=!0,P=!0;break}}if(i===!0)continue;break}if(v===Ha){if(o.push(l),s.push(b),b={value:"",depth:0,isGlob:!1},P===!0)continue;if(S===Ar&&l===c+1){c+=2;continue}p=l+1;continue}if(n.noext!==!0&&(v===Lh||v===Ch||v===wr||v===Na||v===Sr)===!0&&m()===Er){if(h=b.isGlob=!0,y=b.isExtglob=!0,P=!0,v===Sr&&l===c&&(_=!0),i===!0){for(;C()!==!0&&(v=g());){if(v===It){R=b.backslashes=!0,v=g();continue}if(v===Fa){h=b.isGlob=!0,P=!0;break}}continue}break}if(v===wr){if(S===wr&&(E=b.isGlobstar=!0),h=b.isGlob=!0,P=!0,i===!0)continue;break}if(v===Na){if(h=b.isGlob=!0,P=!0,i===!0)continue;break}if(v===Ph){for(;C()!==!0&&(N=g());){if(N===It){R=b.backslashes=!0,g();continue}if(N===Nh){d=b.isBracket=!0,h=b.isGlob=!0,P=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&v===Sr&&l===c){k=b.negated=!0,c++;continue}if(n.noparen!==!0&&v===Er){if(h=b.isGlob=!0,i===!0){for(;C()!==!0&&(v=g());){if(v===Er){R=b.backslashes=!0,v=g();continue}if(v===Fa){P=!0;break}}continue}break}if(h===!0){if(P=!0,i===!0)continue;break}}n.noext===!0&&(y=!1,h=!1);let A=u,T="",x="";c>0&&(T=u.slice(0,c),u=u.slice(c),p-=c),A&&h===!0&&p>0?(A=u.slice(0,p),x=u.slice(p)):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&&R===!0&&(A=Ia.removeBackslashes(A)));let w={prefix:T,input:e,start:c,base:A,glob:x,isBrace:f,isBracket:d,isGlob:h,isExtglob:y,isGlobstar:E,negated:k,negatedExtglob:_};if(n.tokens===!0&&(w.maxDepth=0,Ma(v)||s.push(b),w.tokens=s),n.parts===!0||n.tokens===!0){let N;for(let D=0;D<o.length;D++){let H=N?N+1:c,j=o[D],B=e.slice(H,j);n.tokens&&(D===0&&c!==0?(s[D].isPrefix=!0,s[D].value=T):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(),xe=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=>xe.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=xe.isWindows(t),l=pn.globChars(u),c=pn.extglobChars(l),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:h,DOTS_SLASH:y,NO_DOT:E,NO_DOT_SLASH:O,NO_DOTS_SLASH:R,QMARK:k,QMARK_NO_DOT:_,STAR:P,START_ANCHOR:L}=l,S=M=>`(${a}(?:(?!${L}${M.dot?y:p}).)*?)`,v=n.dot?"":E,b=n.dot?k:_,C=n.bash===!0?S(n):P;n.capture&&(C=`(${C})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let 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=xe.removePrefix(e,m),i=e.length;let g=[],A=[],T=[],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]++,T.push(M)},de=M=>{m[M]--,T.pop()},W=M=>{if(x.type==="globstar"){let Q=m.braces>0&&(M.type==="comma"||M.type==="brace"),I=M.extglob===!0||g.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=C,m.output+=x.output)}if(g.length&&M.type!=="paren"&&(g[g.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={...c[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}),g.push(I)},Ze=M=>{let Q=M.close+(n.capture?")":""),I;if(M.type==="negate"){let Y=C;if(M.inner&&M.inner.length>1&&M.inner.includes("/")&&(Y=S(n)),(Y!==C||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}),de("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?b+(ie?k.repeat(ie.length):""):k.repeat(z.length):ce==="."?p.repeat(z.length):ce==="*"?Y?Y+ce+(ie?C:""):C: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=xe.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=xe.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=g[g.length-1];if(I&&m.parens===I.parens+1){Ze(g.pop());continue}W({type:"paren",value:w,output:m.parens?")":"\\)"}),de("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}de("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||xe.hasRegexChars(I))continue;let Y=xe.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}),de("braces"),A.pop();continue}if(w==="|"){g.length>0&&g[g.length-1].conditions++,W({type:"text",value:w});continue}if(w===","){let I=w,Y=A[A.length-1];Y&&T[T.length-1]==="braces"&&(Y.comma=!0,I="|"),W({type:"comma",value:w,output:I});continue}if(w==="/"){if(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:d});continue}if(w==="."){if(m.braces>0&&x.type==="dot"){x.value==="."&&(x.output=p);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:p});continue}W({type:"dot",value:w,output:p});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==="<"&&!xe.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:_});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:f});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:f});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=C,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=g.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)}${d}|${d}${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=`(?:^|${d}|${S(n)}${d})`,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:C};if(n.bash===!0){Q.output=".*?",(x.type==="bos"||x.type==="slash")&&(Q.output=v+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+=O,x.output+=O):n.dot===!0?(m.output+=R,x.output+=R):(m.output+=v,x.output+=v),D()!=="*"&&(m.output+=h,x.output+=h)),W(Q)}for(;m.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing","]"));m.output=xe.escapeLast(m.output,"["),de("brackets")}for(;m.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing",")"));m.output=xe.escapeLast(m.output,"("),de("parens")}for(;m.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(ft("closing","}"));m.output=xe.escapeLast(m.output,"{"),de("braces")}if(n.strictSlashes!==!0&&(x.type==="star"||x.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${d}?`}),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=xe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:h}=pn.globChars(o),y=n.dot?p:c,E=n.dot?f:c,O=n.capture?"":"?:",R={negated:!1,prefix:""},k=n.bash===!0?".*?":d;n.capture&&(k=`(${k})`);let _=v=>v.noglobstar===!0?k:`(${O}(?:(?!${h}${v.dot?l:s}).)*?)`,P=v=>{switch(v){case"*":return`${y}${u}${k}`;case".*":return`${s}${u}${k}`;case"*.*":return`${y}${k}${s}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${E}${k}`;case"**":return y+_(n);case"**/*":return`(?:${y}${_(n)}${a})?${E}${u}${k}`;case"**/*.*":return`(?:${y}${_(n)}${a})?${E}${k}${s}${u}${k}`;case"**/.*":return`(?:${y}${_(n)}${a})?${s}${u}${k}`;default:{let b=/^(.*?)\.(\w+)$/.exec(v);if(!b)return;let C=P(b[1]);return C?C+s+b[2]:void 0}}},L=xe.removePrefix(e,R),S=P(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 c=e.map(f=>ee(f,t,n));return f=>{for(let d of c){let h=d(f);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 c={...t,ignore:null,onMatch:null,onResult:null};u=ee(i.ignore,c,n)}let l=(c,p=!1)=>{let{isMatch:f,match:d,output:h}=ee.test(c,s,t,{glob:e,posix:o}),y={glob:e,state:a,regex:s,posix:o,input:c,output:h,match:d,isMatch:f};return typeof i.onResult=="function"&&i.onResult(y),f===!1?(y.isMatch=!1,p?y:!1):u(c)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,p?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),p?y:!0)};return n&&(l.state=a),l};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=c=>{o.add(c.output),n&&n.onResult&&n.onResult(c)};for(let c=0;c<t.length;c++){let p=ke(String(t[c]),{...n,onResult:a},!0),f=p.state.negated||p.state.negatedExtglob;f&&s++;for(let d of e){let h=p(d,!0);(f?!h.isMatch:h.isMatch)&&(f?r.add(h.output):(r.delete(h.output),i.add(h.output)))}}let l=(s===t.length?[...o]:[...i]).filter(c=>!r.has(c));if(n&&l.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(c=>c.replace(/\\/g,"")):t}return l};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,l=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),f=l|c;return!!(s&p||s&c&&o.has(u)||s&l&&a===n||s&f&&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 l=a+u;if(await Ed(l,{pathExt:i,ignoreErrors:!0})){if(!t.all)return l;o.push(l)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw 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 l=a+u;if(_d(l,{pathExt:i,ignoreErrors:!0})){if(!t.all)return l;o.push(l)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw qu(e)};Wu.exports=Gu;Gu.sync=Od});var Hd={};ec(Hd,{activate:()=>Pd,deactivate:()=>Dd});module.exports=tc(Hd);var _n=ge(Hr()),J=ge(require("vscode"));function vt(e,t=!1){let n=e.length,r=0,i="",o=0,s=16,a=0,u=0,l=0,c=0,p=0;function f(k,_){let P=0,L=0;for(;P<k||!_;){let S=e.charCodeAt(r);if(S>=48&&S<=57)L=L*16+S-48;else if(S>=65&&S<=70)L=L*16+S-65+10;else if(S>=97&&S<=102)L=L*16+S-97+10;else break;r++,P++}return P<k&&(L=-1),L}function d(k){r=k,i="",o=0,s=16,p=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 p=3,e.substring(k,r);let _=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&et(e.charCodeAt(r))){for(r++;r<e.length&&et(e.charCodeAt(r));)r++;_=r}else p=3;return e.substring(k,_)}function y(){let k="",_=r;for(;;){if(r>=n){k+=e.substring(_,r),p=2;break}let P=e.charCodeAt(r);if(P===34){k+=e.substring(_,r),r++;break}if(P===92){if(k+=e.substring(_,r),r++,r>=n){p=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=f(4,!0);S>=0?k+=String.fromCharCode(S):p=4;break;default:p=5}_=r;continue}if(P>=0&&P<=31)if(xt(P)){k+=e.substring(_,r),p=2;break}else p=6;r++}return k}function E(){if(i="",p=0,o=r,u=a,c=l,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++,l=r,s=14;switch(k){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=y(),s=10;case 47:let _=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!xt(e.charCodeAt(r));)r++;return i=e.substring(_,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let P=n-1,L=!1;for(;r<P;){let S=e.charCodeAt(r);if(S===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,xt(S)&&(S===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return L||(r++,p=1),i=e.substring(_,r),s=13}return i+=String.fromCharCode(k),r++,s=16;case 45:if(i+=String.fromCharCode(k),r++,r===n||!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&&O(k);)r++,k=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(k),r++,s=16}}function O(k){if(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 R(){let k;do k=E();while(k>=12&&k<=15);return k}return{setPosition:d,getPosition:()=>r,scan:t?R:E,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-c,getTokenError:()=>p}}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,l,c,p){o.value=u,o.offset=l,o.length=c,o.type=p,o.colonOffset=void 0,i=o}try{On(e,{onObjectBegin:(u,l)=>{if(t<=u)throw r;i=void 0,s=t>u,n.push("")},onObjectProperty:(u,l,c)=>{if(t<l||(a(u,l,c,"property"),n[n.length-1]=u,t<=l+c))throw r},onObjectEnd:(u,l)=>{if(t<=u)throw r;i=void 0,n.pop()},onArrayBegin:(u,l)=>{if(t<=u)throw r;i=void 0,n.push(0)},onArrayEnd:(u,l)=>{if(t<=u)throw r;i=void 0,n.pop()},onLiteralValue:(u,l,c)=>{if(t<l||(a(u,l,c,ic(u)),t<=l+c))throw r},onSeparator:(u,l,c)=>{if(t<=l)throw r;if(u===":"&&i&&i.type==="property")i.colonOffset=l,s=!1,i=void 0;else if(u===","){let p=n[n.length-1];typeof p=="number"?n[n.length-1]=p+1:(s=!0,n[n.length-1]=""),i=void 0}}})}catch(u){if(u!==r)throw u}return{path:n,previousNode:i,isAtPropertyKey:s,matches:u=>{let l=0;for(let c=0;l<u.length&&c<n.length;c++)if(u[l]===n[c]||u[l]==="*")l++;else if(u[l]!=="**")return!1;return l===u.length}}}function On(e,t,n=Cn.DEFAULT){let r=vt(e,!1),i=[];function o(g){return g?()=>g(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(g){return g?()=>g(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function a(g){return g?A=>g(A,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(g){return g?A=>g(A,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}let l=s(t.onObjectBegin),c=u(t.onObjectProperty),p=o(t.onObjectEnd),f=s(t.onArrayBegin),d=o(t.onArrayEnd),h=u(t.onLiteralValue),y=a(t.onSeparator),E=o(t.onComment),O=a(t.onError),R=n&&n.disallowComments,k=n&&n.allowTrailingComma;function _(){for(;;){let g=r.scan();switch(r.getTokenError()){case 4:P(14);break;case 5:P(15);break;case 3:P(13);break;case 1:R||P(11);break;case 2:P(12);break;case 6:P(16);break}switch(g){case 12:case 13:R?P(10):E();break;case 16:P(1);break;case 15:case 14:break;default:return g}}}function P(g,A=[],T=[]){if(O(g),A.length+T.length>0){let x=r.getToken();for(;x!==17;){if(A.indexOf(x)!==-1){_();break}else if(T.indexOf(x)!==-1)break;x=_()}}}function L(g){let A=r.getTokenValue();return g?h(A):(c(A),i.push(A)),_(),!0}function S(){switch(r.getToken()){case 11:let g=r.getTokenValue(),A=Number(g);isNaN(A)&&(P(2),A=0),h(A);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return _(),!0}function v(){return r.getToken()!==10?(P(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(y(":"),_(),m()||P(4,[],[2,5])):P(5,[],[2,5]),i.pop(),!0)}function b(){l(),_();let g=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(g||P(4,[],[]),y(","),_(),r.getToken()===2&&k)break}else g&&P(6,[],[]);v()||P(4,[],[2,5]),g=!0}return p(),r.getToken()!==2?P(7,[2],[]):_(),!0}function C(){f(),_();let g=!0,A=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(A||P(4,[],[]),y(","),_(),r.getToken()===4&&k)break}else A&&P(6,[],[]);g?(i.push(0),g=!1):i[i.length-1]++,m()||P(4,[],[4,5]),A=!0}return d(),g||i.pop(),r.getToken()!==4?P(8,[4],[]):_(),!0}function m(){switch(r.getToken()){case 3:return C();case 1:return b();case 10:return L(!0);default:return S()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(P(4,[],[]),!1):m()?(r.getToken()!==17&&P(9,[],[]),!0):(P(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","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 l=new V.CompletionItem(u);l.kind=V.CompletionItemKind.Property,l.insertText=new V.SnippetString().appendText(`"${u}/`).appendTabstop().appendText('"'),l.filterText=JSON.stringify(u),l.documentation="",l.command={title:"",command:"editor.action.triggerSuggest"},s.add(l)}s.setAsIncomplete()}return a=`https://registry.npmjs.org/-/v1/search?size=${lc}&text=${encodeURIComponent(r)}`,this.xhr({url:a,headers:{agent:Fn}}).then(u=>{if(u.status===200){try{let l=JSON.parse(u.responseText);if(l&&l.objects&&Array.isArray(l.objects)){let c=l.objects;for(let p of c)this.processPackage(p.package,i,o,s)}}catch{}s.setAsIncomplete()}else return s.error(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0},u=>(s.error(V.l10n.t("Request to the NPM repository failed: {0}",u.responseText)),0))}else return this.mostDependedOn.forEach(u=>{let l=new V.SnippetString().appendText(JSON.stringify(u));i&&(l.appendText(': "').appendTabstop().appendText('"'),o||l.appendText(","));let c=new V.CompletionItem(u);c.kind=V.CompletionItemKind.Property,c.insertText=l,c.filterText=JSON.stringify(u),c.documentation="",s.add(c)}),this.collectScopedPackages(r,i,o,s),s.setAsIncomplete(),Promise.resolve(null)}return null}collectScopedPackages(t,n,r,i){let o=t.split("/");if(o.length===2&&o[0].length>1){let s=o[0].substr(1),a=o[1];a.length<4&&(a="");let u=`https://registry.npmjs.com/-/v1/search?text=scope:${s}%20${a}&size=250`;return this.xhr({url:u,headers:{agent:Fn}}).then(l=>{if(l.status===200){try{let c=JSON.parse(l.responseText);if(c&&Array.isArray(c.objects)){let p=c.objects;for(let f of p)this.processPackage(f.package,n,r,i)}}catch{}i.setAsIncomplete()}else i.error(V.l10n.t("Request to the NPM repository failed: {0}",l.responseText));return null})}return Promise.resolve(null)}async collectValueSuggestions(t,n,r){if(!this.isEnabled())return null;if(n.matches(["dependencies","*"])||n.matches(["devDependencies","*"])||n.matches(["optionalDependencies","*"])||n.matches(["peerDependencies","*"])){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,l={...process.env,COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"},c={cwd:u,env:l},p=t;process.platform==="win32"&&(c={cwd:u,env:l,shell:!0},p=`"${t}"`),i.execFile(p,a,c,(f,d)=>{if(!f)try{let h=JSON.parse(d),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 ve=require("vscode");function Kr(e,t){let n=[new Ut(e,t)],r=[];return n.forEach(i=>{let o=i.getDocumentSelector();r.push(ve.languages.registerCompletionItemProvider(o,new Dn(i),'"',":")),r.push(ve.languages.registerHoverProvider(o,new Mn(i)))}),ve.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 l=new ve.Range(t.positionAt(s.offset),t.positionAt(s.offset+s.length));return{contents:u||[],range:l}})}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),l=Pn(t.getText(),u),c=l.previousNode;c&&c.offset<=u&&u<=c.offset+c.length&&(c.type==="property"||c.type==="string"||c.type==="number"||c.type==="boolean"||c.type==="null")?o=new ve.Range(t.positionAt(c.offset),t.positionAt(c.offset+c.length)):o=new ve.Range(t.positionAt(u-i.length),n);let p={},f={add:h=>{let y=typeof h.label=="string"?h.label:h.label.label;p[y]||(p[y]=!0,h.range={replacing:o,inserting:new ve.Range(o.start,o.start)},s.push(h))},setAsIncomplete:()=>a=!0,error:h=>console.error(h),log:h=>console.log(h)},d=null;if(l.isAtPropertyKey){let h=Ur(t.getText(),!0),y=!l.previousNode||!this.hasColonAfter(h,l.previousNode.offset+l.previousNode.length),E=this.isLast(h,t.offsetAt(n));d=this.jsonContribution.collectPropertySuggestions(t.uri,l,i,y,E,f)}else l.path.length===0?d=this.jsonContribution.collectDefaultSuggestions(t.uri,f):d=this.jsonContribution.collectValueSuggestions(t.uri,l,f);return d?d.then(()=>s.length>0||a?new ve.CompletionList(s,a):null):null}getCurrentWord(t,n){let r=n.character-1,i=t.lineAt(n.line).text;for(;r>=0&&` 	
\r\v":{[,`.indexOf(i.charAt(r))===-1;)r--;return i.substring(r+1,n.character)}isLast(t,n){t.setPosition(n);let r=t.scan();return r===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=ge(require("vscode"));var $=require("vscode"),dt=ge(require("path")),au=ge(require("fs")),uu=ge(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,l){for(var c,p="",f=0,d=-1,h=0,y=0;y<=u.length;++y){if(y<u.length)c=u.charCodeAt(y);else{if(c===47)break;c=47}if(c===47){if(!(d===y-1||h===1))if(d!==y-1&&h===2){if(p.length<2||f!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){var E=p.lastIndexOf("/");if(E!==p.length-1){E===-1?(p="",f=0):f=(p=p.slice(0,E)).length-1-p.lastIndexOf("/"),d=y,h=0;continue}}else if(p.length===2||p.length===1){p="",f=0,d=y,h=0;continue}}l&&(p.length>0?p+="/..":p="..",f=2)}else p.length>0?p+="/"+u.slice(d+1,y):p=u.slice(d+1,y),f=y-d-1;d=y,h=0}else c===46&&h!==-1?++h:h=-1}return p}var a={resolve:function(){for(var u,l="",c=!1,p=arguments.length-1;p>=-1&&!c;p--){var f;p>=0?f=arguments[p]:(u===void 0&&(u=process.cwd()),f=u),o(f),f.length!==0&&(l=f+"/"+l,c=f.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(u){if(o(u),u.length===0)return".";var l=u.charCodeAt(0)===47,c=u.charCodeAt(u.length-1)===47;return(u=s(u,!l)).length!==0||l||(u="."),u.length>0&&c&&(u+="/"),l?"/"+u:u},isAbsolute:function(u){return o(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,l=0;l<arguments.length;++l){var c=arguments[l];o(c),c.length>0&&(u===void 0?u=c:u+="/"+c)}return u===void 0?".":a.normalize(u)},relative:function(u,l){if(o(u),o(l),u===l||(u=a.resolve(u))===(l=a.resolve(l)))return"";for(var c=1;c<u.length&&u.charCodeAt(c)===47;++c);for(var p=u.length,f=p-c,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var h=l.length-d,y=f<h?f:h,E=-1,O=0;O<=y;++O){if(O===y){if(h>y){if(l.charCodeAt(d+O)===47)return l.slice(d+O+1);if(O===0)return l.slice(d+O)}else f>y&&(u.charCodeAt(c+O)===47?E=O:O===0&&(E=0));break}var R=u.charCodeAt(c+O);if(R!==l.charCodeAt(d+O))break;R===47&&(E=O)}var k="";for(O=c+E+1;O<=p;++O)O!==p&&u.charCodeAt(O)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+l.slice(d+E):(d+=E,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(u){return u},dirname:function(u){if(o(u),u.length===0)return".";for(var l=u.charCodeAt(0),c=l===47,p=-1,f=!0,d=u.length-1;d>=1;--d)if((l=u.charCodeAt(d))===47){if(!f){p=d;break}}else f=!1;return p===-1?c?"/":".":c&&p===1?"//":u.slice(0,p)},basename:function(u,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');o(u);var c,p=0,f=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=u.length){if(l.length===u.length&&l===u)return"";var h=l.length-1,y=-1;for(c=u.length-1;c>=0;--c){var E=u.charCodeAt(c);if(E===47){if(!d){p=c+1;break}}else y===-1&&(d=!1,y=c+1),h>=0&&(E===l.charCodeAt(h)?--h==-1&&(f=c):(h=-1,f=y))}return p===f?f=y:f===-1&&(f=u.length),u.slice(p,f)}for(c=u.length-1;c>=0;--c)if(u.charCodeAt(c)===47){if(!d){p=c+1;break}}else f===-1&&(d=!1,f=c+1);return f===-1?"":u.slice(p,f)},extname:function(u){o(u);for(var l=-1,c=0,p=-1,f=!0,d=0,h=u.length-1;h>=0;--h){var y=u.charCodeAt(h);if(y!==47)p===-1&&(f=!1,p=h+1),y===46?l===-1?l=h:d!==1&&(d=1):l!==-1&&(d=-1);else if(!f){c=h+1;break}}return l===-1||p===-1||d===0||d===1&&l===p-1&&l===c+1?"":u.slice(l,p)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return(function(l,c){var p=c.dir||c.root,f=c.base||(c.name||"")+(c.ext||"");return p?p===c.root?p+f:p+"/"+f:f})(0,u)},parse:function(u){o(u);var l={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return l;var c,p=u.charCodeAt(0),f=p===47;f?(l.root="/",c=1):c=0;for(var d=-1,h=0,y=-1,E=!0,O=u.length-1,R=0;O>=c;--O)if((p=u.charCodeAt(O))!==47)y===-1&&(E=!1,y=O+1),p===46?d===-1?d=O:R!==1&&(R=1):d!==-1&&(R=-1);else if(!E){h=O+1;break}return d===-1||y===-1||R===0||R===1&&d===y-1&&d===h+1?y!==-1&&(l.base=l.name=h===0&&f?u.slice(1,y):u.slice(h,y)):(h===0&&f?(l.name=u.slice(1,d),l.base=u.slice(1,y)):(l.name=u.slice(h,d),l.base=u.slice(h,y)),l.ext=u.slice(d,y)),h>0?l.dir=u.slice(0,h-1):f&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>f,Utils:()=>C}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function u(m,g){if(!m.scheme&&g)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 l="",c="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(g){return g instanceof f||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}scheme;authority;path;query;fragment;constructor(g,A,T,x,w,N=!1){typeof g=="object"?(this.scheme=g.scheme||l,this.authority=g.authority||l,this.path=g.path||l,this.query=g.query||l,this.fragment=g.fragment||l):(this.scheme=(function(D,H){return D||H?D:"file"})(g,N),this.authority=A||l,this.path=(function(D,H){switch(D){case"https":case"http":case"file":H?H[0]!==c&&(H=c+H):H=c}return H})(this.scheme,T||l),this.query=x||l,this.fragment=w||l,u(this,N))}get fsPath(){return R(this,!1)}with(g){if(!g)return this;let{scheme:A,authority:T,path:x,query:w,fragment:N}=g;return A===void 0?A=this.scheme:A===null&&(A=l),T===void 0?T=this.authority:T===null&&(T=l),x===void 0?x=this.path:x===null&&(x=l),w===void 0?w=this.query:w===null&&(w=l),N===void 0?N=this.fragment:N===null&&(N=l),A===this.scheme&&T===this.authority&&x===this.path&&w===this.query&&N===this.fragment?this:new h(A,T,x,w,N)}static parse(g,A=!1){let T=p.exec(g);return T?new h(T[2]||l,L(T[4]||l),L(T[5]||l),L(T[7]||l),L(T[9]||l),A):new h(l,l,l,l,l)}static file(g){let A=l;if(i&&(g=g.replace(/\\/g,c)),g[0]===c&&g[1]===c){let T=g.indexOf(c,2);T===-1?(A=g.substring(2),g=c):(A=g.substring(2,T),g=g.substring(T)||c)}return new h("file",A,g,l,l)}static from(g){let A=new h(g.scheme,g.authority,g.path,g.query,g.fragment);return u(A,!0),A}toString(g=!1){return k(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof f)return g;{let A=new h(g);return A._formatted=g.external,A._fsPath=g._sep===d?g.fsPath:null,A}}return g}}let d=i?1:void 0;class h extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=R(this,!1)),this._fsPath}toString(g=!1){return g?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)}toJSON(){let g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=d),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(m,g,A){let T,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||g&&N===47||A&&N===91||A&&N===93||A&&N===58)x!==-1&&(T+=encodeURIComponent(m.substring(x,w)),x=-1),T!==void 0&&(T+=m.charAt(w));else{T===void 0&&(T=m.substr(0,w));let D=y[N];D!==void 0?(x!==-1&&(T+=encodeURIComponent(m.substring(x,w)),x=-1),T+=D):x===-1&&(x=w)}}return x!==-1&&(T+=encodeURIComponent(m.substring(x))),T!==void 0?T:m}function O(m){let g;for(let A=0;A<m.length;A++){let T=m.charCodeAt(A);T===35||T===63?(g===void 0&&(g=m.substr(0,A)),g+=y[T]):g!==void 0&&(g+=m[A])}return g!==void 0?g:m}function R(m,g){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?g?m.path.substr(1):m.path[1].toLowerCase()+m.path.substr(2):m.path,i&&(A=A.replace(/\//g,"\\")),A}function k(m,g){let A=g?O:E,T="",{scheme:x,authority:w,path:N,query:D,fragment:H}=m;if(x&&(T+=x,T+=":"),(w||x==="file")&&(T+=c,T+=c),w){let j=w.indexOf("@");if(j!==-1){let B=w.substr(0,j);w=w.substr(j+1),j=B.lastIndexOf(":"),j===-1?T+=A(B,!1,!1):(T+=A(B.substr(0,j),!1,!1),T+=":",T+=A(B.substr(j+1),!1,!0)),T+="@"}w=w.toLowerCase(),j=w.lastIndexOf(":"),j===-1?T+=A(w,!1,!0):(T+=A(w.substr(0,j),!1,!0),T+=w.substr(j))}if(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)}`)}T+=A(N,!0,!1)}return D&&(T+="?",T+=A(D,!1,!1)),H&&(T+="#",T+=g?H:E(H,!1,!1)),T}function _(m){try{return decodeURIComponent(m)}catch{return m.length>3?m.substr(0,3)+_(m.substr(3)):m}}let P=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(m){return m.match(P)?m.replace(P,(g=>_(g))):m}var S=n(470);let v=S.posix||S,b="/";var C;(function(m){m.joinPath=function(g,...A){return g.with({path:v.join(g.path,...A)})},m.resolvePath=function(g,...A){let T=g.path,x=!1;T[0]!==b&&(T=b+T,x=!0);let w=v.resolve(T,...A);return x&&w[0]===b&&!g.authority&&(w=w.substring(1)),g.with({path:w})},m.dirname=function(g){if(g.path.length===0||g.path===b)return g;let A=v.dirname(g.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),g.with({path:A})},m.basename=function(g){return v.basename(g.path)},m.extname=function(g){return v.extname(g.path)}})(C||(C={}))})(),mi=r})();var{URI:Eg,Utils:Wn}=mi;var ru=ge(Li()),Ve=ge(require("path")),iu=ge(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(l=>u+=l.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(l){i&&(r=e.positionAt(l),i=!1),s--},onLiteralValue(l,c,p){o&&typeof l=="string"&&(a.push({...o,value:l,valueRange:new ht.Range(e.positionAt(c),e.positionAt(c+p))}),o=void 0)},onObjectProperty(l,c,p){s===1&&l==="scripts"?(i=!0,n=e.positionAt(c)):i&&(o={name:l,nameRange:new ht.Range(e.positionAt(c),e.positionAt(c+p))})}}),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(l=>{switch(l){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.findFiles(r,"**/{node_modules,.vscode-test}/**");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.findFiles(r,"**/node_modules/**"),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:l}of o.scripts){let c=await Ft(e,a,i,t,u,n);s.push({task:c,location:new $.Location(t,l)})}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),l=dt.dirname(r.fsPath),c=await vn(t,n.uri,e,o),p=c.shift(),f=new $.Task(s,n,u,"npm",new $.ShellExecution(p,hu(c),{cwd:l}));f.detail=i;let d=t.toLowerCase();return ed(d)?f.group=$.TaskGroup.Build:nd(d)?f.group=$.TaskGroup.Test:od(d)?f.group=$.TaskGroup.Clean:i&&ud(i)&&(f.group=$.TaskGroup.Rebuild),f}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),l=await cd(t.uri,e,i),c=l.shift(),p=new $.Task(o,t,a,"npm",new $.ShellExecution(c,hu(l),{cwd:u}));return p.detail=r,p.group=$.TaskGroup.Clean,p}async function gu(){if(await ld())return!0;let e=new $.CancellationTokenSource,t=setTimeout(()=>e.cancel(),1e3),n=await $.workspace.findFiles("**/package.json",void 0,1,e.token);return clearTimeout(t),n.length>0}async function 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(l=>l.dispose()),u(i.selectedItems[0])})),o.push(i.onDidHide(()=>{o.forEach(l=>l.dispose()),u(void 0)}))});i.show();let a=await s;i.dispose(),a&&Ce.tasks.executeTask(a.task)}else Ce.window.showInformationMessage(`No npm scripts found in ${n.fsPath}`,{modal:!0})}var ze=ge(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 c=G.workspace.getConfiguration("npm",u.uri).get("scriptExplorerExclude",[]);s.set(u.uri.toString(),c?.map(p=>RegExp(p)))}let l=u&&s.has(u.uri.toString())?s.get(u.uri.toString()):void 0;if(!(l&&l.some(c=>a.task.definition.script.match(c)))&&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 c=a.task.definition,p=c.path?c.path:"",f=ze.join(a.task.scope.name,p);o=r.get(f),o||(o=new Je(i,p),i.addPackage(o),r.set(f,o));let d=new Qe(this.extensionContext,o,a);o.addScript(d)}}),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=ge(require("path")),fe=require("vscode");var Su=()=>fe.workspace.getConfiguration().get("debug.javascript.codelens.npmScripts"),En=class{lensLocation=Su();changeEmitter=new fe.EventEmitter;subscriptions=[];onDidChangeCodeLenses=this.changeEmitter.event;constructor(){this.subscriptions.push(this.changeEmitter,fe.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("debug.javascript.codelens.npmScripts")&&(this.lensLocation=Su(),this.changeEmitter.fire())}),fe.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) "+fe.l10n.t("Debug"),i=ku.dirname(t.uri.fsPath);if(this.lensLocation==="top")return[new fe.CodeLens(n.location.range,{title:r,command:"extension.js-debug.npmScript",arguments:[i]})];if(this.lensLocation==="all"){let o=fe.Uri.joinPath(t.uri,"..");return Promise.all(n.scripts.map(async({name:s,nameRange:a})=>{let u=await vn(s,o);return new fe.CodeLens(a,{title:r,command:"extension.js-debug.createDebuggerTerminal",arguments:[u.join(" "),fe.workspace.getWorkspaceFolder(t.uri),{cwd:i}]})}))}return[]}dispose(){this.subscriptions.forEach(t=>t.dispose())}};var Ku=ge(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
