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