create-turbo 2.7.4-canary.2 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -71,7 +71,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);f(d)}return}
|
|
|
71
71
|
`).reverse(),a=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
72
72
|
`).reverse();for(;a.length!==0&&a[0]===o[0];)o.shift();this.stack=`${this.stack.slice(0,i)}${o.reverse().join(`
|
|
73
73
|
`)}${a.reverse().join(`
|
|
74
|
-
`)}`}}};_t.RequestError=pr;var II=class extends pr{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};_t.MaxRedirectsError=II;var pI=class extends pr{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};_t.HTTPError=pI;var mI=class extends pr{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};_t.CacheError=mI;var yI=class extends pr{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};_t.UploadError=yI;var wI=class extends pr{constructor(e,r,A){super(e.message,e,A),this.name="TimeoutError",this.event=e.event,this.timings=r}};_t.TimeoutError=wI;var Rf=class extends pr{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};_t.ReadError=Rf;var DI=class extends pr{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};_t.UnsupportedProtocolError=DI;var a0e=["socket","connect","continue","information","upgrade","timeout"],bI=class extends K9.Duplex{constructor(e,r={},A){super({autoDestroy:!1,highWaterMark:0}),this[$u]=0,this[th]=0,this.requestInitialized=!1,this[CI]=new Set,this.redirects=[],this[rh]=!1,this[BI]=!1,this[kf]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof HS.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:i,body:o,form:a}=r;if((i||o||a)&&this._lockWrite(),_t.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,A)}catch(c){Ie.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof Ome.ReadStream&&await s0e(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Zr])===null||c===void 0||c.destroy();return}for(let u of this[kf])u();this[kf].length=0,this.requestInitialized=!0}catch(l){if(l instanceof pr){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,A){var n,s,i,o,a;let c=r;if(Ie.default.object(e)&&!Ie.default.urlInstance(e))r={...A,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...A,...r},e!==void 0&&(r.url=e),Ie.default.urlInstance(r.url)&&(r.url=new Mo.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.method),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.headers),Ie.assert.any([Ie.default.string,Ie.default.urlInstance,Ie.default.undefined],r.prefixUrl),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.cookieJar),Ie.assert.any([Ie.default.object,Ie.default.string,Ie.default.undefined],r.searchParams),Ie.assert.any([Ie.default.object,Ie.default.string,Ie.default.undefined],r.cache),Ie.assert.any([Ie.default.object,Ie.default.number,Ie.default.undefined],r.timeout),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.context),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.hooks),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.decompress),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.ignoreInvalidCookies),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.followRedirect),Ie.assert.any([Ie.default.number,Ie.default.undefined],r.maxRedirects),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.throwHttpErrors),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.http2),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.allowGetBody),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.localAddress),Ie.assert.any([A3.isDnsLookupIpVersion,Ie.default.undefined],r.dnsLookupIpVersion),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.https),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.rejectUnauthorized),r.https&&(Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.https.rejectUnauthorized),Ie.assert.any([Ie.default.function_,Ie.default.undefined],r.https.checkServerIdentity),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.certificateAuthority),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.key),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.certificate),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.https.passphrase),Ie.assert.any([Ie.default.string,Ie.default.buffer,Ie.default.array,Ie.default.undefined],r.https.pfx)),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.cacheOptions),Ie.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(A==null?void 0:A.headers)?r.headers={...r.headers}:r.headers=Wme({...A==null?void 0:A.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(A==null?void 0:A.searchParams)){let g;if(Ie.default.string(r.searchParams)||r.searchParams instanceof Mo.URLSearchParams)g=new Mo.URLSearchParams(r.searchParams);else{A0e(r.searchParams),g=new Mo.URLSearchParams;for(let f in r.searchParams){let d=r.searchParams[f];d===null?g.append(f,""):d!==void 0&&g.append(f,d)}}(n=A==null?void 0:A.searchParams)===null||n===void 0||n.forEach((f,d)=>{g.has(d)||g.append(d,f)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(i=r.password)!==null&&i!==void 0?i:"",Ie.default.undefined(r.prefixUrl)?r.prefixUrl=(o=A==null?void 0:A.prefixUrl)!==null&&o!==void 0?o:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Ie.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=r3.default(r.prefixUrl+r.url,r)}else(Ie.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=r3.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:d=>{let E=r.url;if(!E.href.startsWith(d))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${d}: ${E.href}`);r.url=new Mo.URL(d+E.href.slice(g.length)),g=d},get:()=>g});let{protocol:f}=r.url;if(f==="unix:"&&(f="http:",r.url=new Mo.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),f!=="http:"&&f!=="https:")throw new DI(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:g,getCookieString:f}=l;Ie.assert.function_(g),Ie.assert.function_(f),g.length===4&&f.length===0&&(g=Z9.promisify(g.bind(r.cookieJar)),f=Z9.promisify(f.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:f})}let{cache:u}=r;if(u&&(VS.has(u)||VS.set(u,new $9((g,f)=>{let d=g[Zr](g,f);return Ie.default.promise(d)&&(d.once=(E,C)=>{if(E==="error")d.catch(C);else if(E==="abort")(async()=>{try{(await d).once("abort",C)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${E}`);return d}),d},u))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)JS||(JS=new Pme.default),r.dnsCache=JS;else if(!Ie.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Ie.default(r.dnsCache)}`);Ie.default.number(r.timeout)?r.timeout={request:r.timeout}:A&&r.timeout!==A.timeout?r.timeout={...A.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let h=r.hooks===(A==null?void 0:A.hooks);r.hooks={...r.hooks};for(let g of _t.knownHookEvents)if(g in r.hooks)if(Ie.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${Ie.default(r.hooks[g])}`);else r.hooks[g]=[];if(A&&!h)for(let g of _t.knownHookEvents)A.hooks[g].length>0&&(r.hooks[g]=[...A.hooks[g],...r.hooks[g]]);if("family"in r&&To.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),A!=null&&A.https&&(r.https={...A.https,...r.https}),"rejectUnauthorized"in r&&To.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&To.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&To.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&To.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&To.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&To.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&To.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(a=r.maxRedirects)!==null&&a!==void 0?a:0,_t.setNonEnumerableProperties([A,c],r),e0e.default(r,A)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,A=!Ie.default.undefined(e.form),n=!Ie.default.undefined(e.json),s=!Ie.default.undefined(e.body),i=A||n||s,o=_t.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=o,i){if(o)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,A,n].filter(a=>a).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof K9.Readable)&&!Ie.default.string(e.body)&&!Ie.default.buffer(e.body)&&!e3.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(A&&!Ie.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let a=!Ie.default.string(r["content-type"]);s?(e3.default(e.body)&&a&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Lo]=e.body):A?(a&&(r["content-type"]="application/x-www-form-urlencoded"),this[Lo]=new Mo.URLSearchParams(e.form).toString()):(a&&(r["content-type"]="application/json"),this[Lo]=e.stringifyJson(e.json));let c=await jme.default(this[Lo],e.headers);Ie.default.undefined(r["content-length"])&&Ie.default.undefined(r["transfer-encoding"])&&!o&&!Ie.default.undefined(c)&&(r["content-length"]=String(c))}}else o?this._lockWrite():this._unlockWrite();this[eh]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:A}=r;this[o3]=e,r.decompress&&(e=Vme(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:X9.STATUS_CODES[n],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[s3]=s.isFromCache,this[Xu]=Number(e.headers["content-length"])||void 0,this[QI]=e,e.once("end",()=>{this[Xu]=this[$u],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",o=>{e.destroy(),this._beforeError(new Rf(o,this))}),e.once("aborted",()=>{this._beforeError(new Rf({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let i=e.headers["set-cookie"];if(Ie.default.object(r.cookieJar)&&i){let o=i.map(async a=>r.cookieJar.setCookie(a,A.toString()));r.ignoreInvalidCookies&&(o=o.map(async a=>a.catch(()=>{})));try{await Promise.all(o)}catch(a){this._beforeError(a);return}}if(r.followRedirect&&e.headers.location&&i0e.has(n)){if(e.resume(),this[Zr]&&(this[PS](),delete this[Zr],this[n3]()),(n===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Lo]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new II(this));return}try{let u=function(h){return h.protocol==="unix:"||h.hostname==="unix"},a=Buffer.from(e.headers.location,"binary").toString(),c=new Mo.URL(a,A),l=c.toString();if(decodeURI(l),!u(A)&&u(c)){this._beforeError(new pr("Cannot redirect to UNIX socket",{},this));return}c.hostname!==A.hostname||c.port!==A.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let h of r.hooks.beforeRedirect)await h(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(a){this._beforeError(a);return}return}if(r.isStream&&r.throwHttpErrors&&!$me.isResponseOk(s)){this._beforeError(new pI(s));return}e.on("readable",()=>{this[BI]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let o of this[CI])if(!o.headersSent){for(let a in e.headers){let c=r.decompress?a!=="content-encoding":!0,l=e.headers[a];c&&o.setHeader(a,l)}o.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:A,url:n}=r;Jme.default(e),this[PS]=t3.default(e,A,n);let s=r.cache?"cacheableResponse":"response";e.once(s,a=>{this._onResponse(a)}),e.once("error",a=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),a=a instanceof t3.TimeoutError?new wI(a,this.timings,this):new pr(a.message,a,this),this._beforeError(a)}),this[n3]=zme.default(e,this,a0e),this[Zr]=e,this.emit("uploadProgress",this.uploadProgress);let i=this[Lo],o=this.redirects.length===0?this:e;Ie.default.nodeStream(i)?(i.pipe(o),i.once("error",a=>{this._beforeError(new yI(a,this))})):(this._unlockWrite(),Ie.default.undefined(i)?(this._cannotHaveBody||this._noPipe)&&(o.end(),this._lockWrite()):(this._writeRequest(i,void 0,()=>{}),o.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((A,n)=>{Object.assign(r,Zme.default(e)),delete r.url;let s,i=VS.get(r.cache)(r,async o=>{o._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",o),A(o)});r.url=e,i.once("error",n),i.once("request",async o=>{s=o,A(s)})})}async _makeRequest(){var e,r,A,n,s;let{options:i}=this,{headers:o}=i;for(let C in o)if(Ie.default.undefined(o[C]))delete o[C];else if(Ie.default.null_(o[C]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${C}\` header`);if(i.decompress&&Ie.default.undefined(o["accept-encoding"])&&(o["accept-encoding"]=r0e?"gzip, deflate, br":"gzip, deflate"),i.cookieJar){let C=await i.cookieJar.getCookieString(i.url.toString());Ie.default.nonEmptyString(C)&&(i.headers.cookie=C)}for(let C of i.hooks.beforeRequest){let Q=await C(i);if(!Ie.default.undefined(Q)){i.request=()=>Q;break}}i.body&&this[Lo]!==i.body&&(this[Lo]=i.body);let{agent:a,request:c,timeout:l,url:u}=i;if(i.dnsCache&&!("lookup"in i)&&(i.lookup=i.dnsCache.lookup),u.hostname==="unix"){let C=/(?<socketPath>.+?):(?<path>.+)/.exec(`${u.pathname}${u.search}`);if(C!=null&&C.groups){let{socketPath:Q,path:m}=C.groups;Object.assign(i,{socketPath:Q,path:m,host:""})}}let h=u.protocol==="https:",g;i.http2?g=qme.auto:g=h?Hme.request:X9.request;let f=(e=i.request)!==null&&e!==void 0?e:g,d=i.cache?this._createCacheableRequest:f;a&&!i.http2&&(i.agent=a[h?"https":"http"]),i[Zr]=f,delete i.request,delete i.timeout;let E=i;if(E.shared=(r=i.cacheOptions)===null||r===void 0?void 0:r.shared,E.cacheHeuristic=(A=i.cacheOptions)===null||A===void 0?void 0:A.cacheHeuristic,E.immutableMinTimeToLive=(n=i.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,E.ignoreCargoCult=(s=i.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,i.dnsLookupIpVersion!==void 0)try{E.family=A3.dnsLookupIpVersionToFamily(i.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}i.https&&("rejectUnauthorized"in i.https&&(E.rejectUnauthorized=i.https.rejectUnauthorized),i.https.checkServerIdentity&&(E.checkServerIdentity=i.https.checkServerIdentity),i.https.certificateAuthority&&(E.ca=i.https.certificateAuthority),i.https.certificate&&(E.cert=i.https.certificate),i.https.key&&(E.key=i.https.key),i.https.passphrase&&(E.passphrase=i.https.passphrase),i.https.pfx&&(E.pfx=i.https.pfx));try{let C=await d(u,E);Ie.default.undefined(C)&&(C=g(u,E)),i.request=c,i.timeout=l,i.agent=a,i.https&&("rejectUnauthorized"in i.https&&delete E.rejectUnauthorized,i.https.checkServerIdentity&&delete E.checkServerIdentity,i.https.certificateAuthority&&delete E.ca,i.https.certificate&&delete E.cert,i.https.key&&delete E.key,i.https.passphrase&&delete E.passphrase,i.https.pfx&&delete E.pfx),n0e(C)?this._onRequest(C):this.writable?(this.once("finish",()=>{this._onResponse(C)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(C)}catch(C){throw C instanceof $9.CacheError?new mI(C,this):new pr(C.message,C,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new pr(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[rh])return;let{options:r}=this,A=this.retryCount+1;this[rh]=!0,e instanceof pr||(e=new pr(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Xme.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let i;try{let o;s&&"retry-after"in s.headers&&(o=Number(s.headers["retry-after"]),Number.isNaN(o)?(o=Date.parse(s.headers["retry-after"])-Date.now(),o<=0&&(o=1)):o*=1e3),i=await r.retry.calculateDelay({attemptCount:A,retryOptions:r.retry,error:n,retryAfter:o,computedValue:t0e.default({attemptCount:A,retryOptions:r.retry,error:n,retryAfter:o,computedValue:0})})}catch(o){this._error(new pr(o.message,o,this));return}if(i){let o=async()=>{try{for(let a of this.options.hooks.beforeRetry)await a(this.options,n,A)}catch(a){this._error(new pr(a.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",A,e))};this[a3]=setTimeout(o,i);return}}this._error(n)})()}_read(){this[BI]=!0;let e=this[QI];if(e&&!this[rh]){e.readableLength&&(this[BI]=!1);let r;for(;(r=e.read())!==null;){this[$u]+=r.length,this[i3]=!0;let A=this.downloadProgress;A.percent<1&&this.emit("downloadProgress",A),this.push(r)}}}_write(e,r,A){let n=()=>{this._writeRequest(e,r,A)};this.requestInitialized?n():this[kf].push(n)}_writeRequest(e,r,A){this[Zr].destroyed||(this._progressCallbacks.push(()=>{this[th]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Zr].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),A(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Zr in this)){e();return}if(this[Zr].destroyed){e();return}this[Zr].end(A=>{A||(this[eh]=this[th],this.emit("uploadProgress",this.uploadProgress),this[Zr].emit("upload-complete")),e(A)})};this.requestInitialized?r():this[kf].push(r)}_destroy(e,r){var A;this[rh]=!0,clearTimeout(this[a3]),Zr in this&&(this[PS](),!((A=this[QI])===null||A===void 0)&&A.complete||this[Zr].destroy()),e!==null&&!Ie.default.undefined(e)&&!(e instanceof pr)&&(e=new pr(e.message,e,this)),r(e)}get _isAboutToError(){return this[rh]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,A;return((r=(e=this[Zr])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((A=this[o3])===null||A===void 0)&&A.complete)}get socket(){var e,r;return(r=(e=this[Zr])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Xu]?e=this[$u]/this[Xu]:this[Xu]===this[$u]?e=1:e=0,{percent:e,transferred:this[$u],total:this[Xu]}}get uploadProgress(){let e;return this[eh]?e=this[th]/this[eh]:this[eh]===this[th]?e=1:e=0,{percent:e,transferred:this[th],total:this[eh]}}get timings(){var e;return(e=this[Zr])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[s3]}pipe(e,r){if(this[i3])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof HS.ServerResponse&&this[CI].add(e),super.pipe(e,r)}unpipe(e){return e instanceof HS.ServerResponse&&this[CI].delete(e),super.unpipe(e),this}};_t.default=bI});var Ff=J(ts=>{"use strict";var c0e=ts&&ts.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),l0e=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&c0e(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});ts.CancelError=ts.ParseError=void 0;var c3=Sf(),qS=class extends c3.RequestError{constructor(e,r){let{options:A}=r.request;super(`${e.message} in "${A.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};ts.ParseError=qS;var WS=class extends c3.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};ts.CancelError=WS;l0e(Sf(),ts)});var u3=J(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});var l3=Ff(),u0e=(t,e,r,A)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(A);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new l3.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new l3.ParseError(s,t)}};jS.default=u0e});var zS=J(xo=>{"use strict";var h0e=xo&&xo.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),g0e=xo&&xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h0e(e,t,r)};Object.defineProperty(xo,"__esModule",{value:!0});var f0e=require("events"),E0e=ki(),d0e=c8(),kI=Ff(),h3=u3(),g3=Sf(),C0e=vS(),B0e=_S(),f3=GS(),Q0e=["request","response","redirect","uploadProgress","downloadProgress"];function E3(t){let e,r,A=new f0e.EventEmitter,n=new d0e((i,o,a)=>{let c=l=>{let u=new g3.default(void 0,t);u.retryCount=l,u._noPipe=!0,a(()=>u.destroy()),a.shouldReject=!1,a(()=>o(new kI.CancelError(u))),e=u,u.once("response",async f=>{var d;if(f.retryCount=l,f.request.aborted)return;let E;try{E=await B0e.default(u),f.rawBody=E}catch{return}if(u._isAboutToError)return;let C=((d=f.headers["content-encoding"])!==null&&d!==void 0?d:"").toLowerCase(),Q=["gzip","deflate","br"].includes(C),{options:m}=u;if(Q&&!m.decompress)f.body=E;else try{f.body=h3.default(f,m.responseType,m.parseJson,m.encoding)}catch(k){if(f.body=E.toString(),f3.isResponseOk(f)){u._beforeError(k);return}}try{for(let[k,R]of m.hooks.afterResponse.entries())f=await R(f,async T=>{let I=g3.default.normalizeArguments(void 0,{...T,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},m);I.hooks.afterResponse=I.hooks.afterResponse.slice(0,k);for(let b of I.hooks.beforeRetry)await b(I);let S=E3(I);return a(()=>{S.catch(()=>{}),S.cancel()}),S})}catch(k){u._beforeError(new kI.RequestError(k.message,k,u));return}if(r=f,!f3.isResponseOk(f)){u._beforeError(new kI.HTTPError(f));return}u.destroy(),i(u.options.resolveBodyOnly?f.body:f)});let h=f=>{if(n.isCanceled)return;let{options:d}=u;if(f instanceof kI.HTTPError&&!d.throwHttpErrors){let{response:E}=f;i(u.options.resolveBodyOnly?E.body:E);return}o(f)};u.once("error",h);let g=u.options.body;u.once("retry",(f,d)=>{var E,C;if(g===((E=d.request)===null||E===void 0?void 0:E.options.body)&&E0e.default.nodeStream((C=d.request)===null||C===void 0?void 0:C.options.body)){h(d);return}c(f)}),C0e.default(u,A,Q0e)};c(0)});n.on=(i,o)=>(A.on(i,o),n);let s=i=>{let o=(async()=>{await n;let{options:a}=r.request;return h3.default(r,i,a.parseJson,a.encoding)})();return Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),o};return n.json=()=>{let{headers:i}=e.options;return!e.writableFinished&&i.accept===void 0&&(i.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}xo.default=E3;g0e(Ff(),xo)});var d3=J(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var I0e=Ff();function p0e(t,...e){let r=(async()=>{if(t instanceof I0e.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),A=()=>r;return r.json=A,r.text=A,r.buffer=A,r.on=A,r}ZS.default=p0e});var Q3=J(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});var C3=ki();function B3(t){for(let e of Object.values(t))(C3.default.plainObject(e)||C3.default.array(e))&&B3(e);return Object.freeze(t)}KS.default=B3});var p3=J(I3=>{"use strict";Object.defineProperty(I3,"__esModule",{value:!0})});var XS=J(Tn=>{"use strict";var m0e=Tn&&Tn.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),y0e=Tn&&Tn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&m0e(e,t,r)};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.defaultHandler=void 0;var m3=ki(),Mn=zS(),w0e=d3(),SI=Sf(),D0e=Q3(),b0e={RequestError:Mn.RequestError,CacheError:Mn.CacheError,ReadError:Mn.ReadError,HTTPError:Mn.HTTPError,MaxRedirectsError:Mn.MaxRedirectsError,TimeoutError:Mn.TimeoutError,ParseError:Mn.ParseError,CancelError:Mn.CancelError,UnsupportedProtocolError:Mn.UnsupportedProtocolError,UploadError:Mn.UploadError},k0e=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:RI}=SI.default,y3=(...t)=>{let e;for(let r of t)e=RI(void 0,r,e);return e},R0e=t=>t.isStream?new SI.default(void 0,t):Mn.default(t),S0e=t=>"defaults"in t&&"options"in t.defaults,F0e=["get","post","put","patch","head","delete"];Tn.defaultHandler=(t,e)=>e(t);var w3=(t,e)=>{if(t)for(let r of t)r(e)},D3=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(A=>(n,s)=>{let i,o=A(n,a=>(i=s(a),i));if(o!==i&&!n.isStream&&i){let a=o,{then:c,catch:l,finally:u}=a;Object.setPrototypeOf(a,Object.getPrototypeOf(i)),Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a.then=c,a.catch=l,a.finally=u}return o});let e=(A,n={},s)=>{var i,o;let a=0,c=l=>t.handlers[a++](l,a===t.handlers.length?R0e:c);if(m3.default.plainObject(A)){let l={...A,...n};SI.setNonEnumerableProperties([A,n],l),n=l,A=void 0}try{let l;try{w3(t.options.hooks.init,n),w3((i=n.hooks)===null||i===void 0?void 0:i.init,n)}catch(h){l=h}let u=RI(A,n,s!=null?s:t.options);if(u[SI.kIsNormalizedAlready]=!0,l)throw new Mn.RequestError(l.message,l,u);return c(u)}catch(l){if(n.isStream)throw l;return w0e.default(l,t.options.hooks.beforeError,(o=n.hooks)===null||o===void 0?void 0:o.beforeError)}};e.extend=(...A)=>{let n=[t.options],s=[...t._rawHandlers],i;for(let o of A)S0e(o)?(n.push(o.defaults.options),s.push(...o.defaults._rawHandlers),i=o.defaults.mutableDefaults):(n.push(o),"handlers"in o&&s.push(...o.handlers),i=o.mutableDefaults);return s=s.filter(o=>o!==Tn.defaultHandler),s.length===0&&s.push(Tn.defaultHandler),D3({options:y3(...n),handlers:s,mutableDefaults:!!i})};let r=async function*(A,n){let s=RI(A,n,t.options);s.resolveBodyOnly=!1;let i=s.pagination;if(!m3.default.object(i))throw new TypeError("`options.pagination` must be implemented");let o=[],{countLimit:a}=i,c=0;for(;c<i.requestLimit;){c!==0&&await k0e(i.backoff);let l=await e(void 0,void 0,s),u=await i.transform(l),h=[];for(let f of u)if(i.filter(f,o,h)&&(!i.shouldContinue(f,o,h)||(yield f,i.stackAllItems&&o.push(f),h.push(f),--a<=0)))return;let g=i.paginate(l,o,h);if(g===!1)return;g===l.request.options?s=l.request.options:g!==void 0&&(s=RI(void 0,g,s)),c++}};e.paginate=r,e.paginate.all=async(A,n)=>{let s=[];for await(let i of r(A,n))s.push(i);return s},e.paginate.each=r,e.stream=(A,n)=>e(A,{...n,isStream:!0});for(let A of F0e)e[A]=(n,s)=>e(n,{...s,method:A}),e.stream[A]=(n,s)=>e(n,{...s,method:A,isStream:!0});return Object.assign(e,b0e),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:D0e.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=y3,e};Tn.default=D3;y0e(p3(),Tn)});var R3=J((Ri,FI)=>{"use strict";var v0e=Ri&&Ri.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),b3=Ri&&Ri.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v0e(e,t,r)};Object.defineProperty(Ri,"__esModule",{value:!0});var N0e=require("url"),k3=XS(),M0e={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let A of e){let n=A.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new N0e.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[k3.defaultHandler],mutableDefaults:!1},$S=k3.default(M0e);Ri.default=$S;FI.exports=$S;FI.exports.default=$S;FI.exports.__esModule=!0;b3(XS(),Ri);b3(zS(),Ri)});var F3=J((m1e,x0e)=>{x0e.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var M3=J(tn=>{"use strict";var N3=F3(),Tr=process.env;Object.defineProperty(tn,"_vendors",{value:N3.map(function(t){return t.constant})});tn.name=null;tn.isPR=null;N3.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(A){return v3(A)});if(tn[t.constant]=r,!!r)switch(tn.name=t.name,typeof t.pr){case"string":tn.isPR=!!Tr[t.pr];break;case"object":"env"in t.pr?tn.isPR=t.pr.env in Tr&&Tr[t.pr.env]!==t.pr.ne:"any"in t.pr?tn.isPR=t.pr.any.some(function(A){return!!Tr[A]}):tn.isPR=v3(t.pr);break;default:tn.isPR=null}});tn.isCI=!!(Tr.CI!=="false"&&(Tr.BUILD_ID||Tr.BUILD_NUMBER||Tr.CI||Tr.CI_APP_ID||Tr.CI_BUILD_ID||Tr.CI_BUILD_NUMBER||Tr.CI_NAME||Tr.CONTINUOUS_INTEGRATION||Tr.RUN_ID||tn.name));function v3(t){return typeof t=="string"?!!Tr[t]:"env"in t?Tr[t.env]&&Tr[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Tr[e]}):Object.keys(t).every(function(e){return Tr[e]===t[e]})}});var AF=J((G1e,J0e)=>{J0e.exports={name:"create-turbo",version:"2.7.4-canary.2",description:"Create a new Turborepo",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"11.0.0","fs-extra":"11.1.1",inquirer:"8.2.4",picocolors:"1.0.1","proxy-agent":"6.5.0",semver:"7.5.0","update-check":"1.5.4"},devDependencies:{"@jest/globals":"29.7.0","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"9.0.13","@types/inquirer":"7.3.3","@types/node":"18.17.4","@types/semver":"7.3.12",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"]}});var lj=Ve(require("http")),uj=Ve(require("https")),LF=Ve(require("picocolors")),tE=require("commander");var vj=Ve(VF());function ip(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hh(t){return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hh(t)}function op(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ap(t,e){if(e&&(hh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(t)}function Oo(t){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oo(t)}function Os(t,e){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,n){return A.__proto__=n,A},Os(t,e)}function cp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Os(t,e)}function lp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function up(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ec(t,e,r){return up()?Ec=Reflect.construct.bind():Ec=function(n,s,i){var o=[null];o.push.apply(o,s);var a=Function.bind.apply(n,o),c=new a;return i&&Os(c,i.prototype),c},Ec.apply(null,arguments)}function gh(t){var e=typeof Map=="function"?new Map:void 0;return gh=function(A){if(A===null||!lp(A))return A;if(typeof A!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(A))return e.get(A);e.set(A,n)}function n(){return Ec(A,arguments,Oo(this).constructor)}return n.prototype=Object.create(A.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Os(n,A)},gh(t)}var cv=Ve(av());var Nj=Ve(require("fs-extra")),ube=function(t){cp(e,t);function e(r){var A;return ip(this,e),A=ap(this,Oo(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),A.directory=r,A}return e}(gh(Error));var Mj=Ve(require("fs")),Tj=Ve(require("path"));var Kee=Ve(require("fs")),Xee=Ve(require("path"));function Dv(t){return typeof t=="undefined"||t===null}function Uj(t){return typeof t=="object"&&t!==null}function _j(t){return Array.isArray(t)?t:Dv(t)?[]:[t]}function Gj(t,e){var r,A,n,s;if(e)for(s=Object.keys(e),r=0,A=s.length;r<A;r+=1)n=s[r],t[n]=e[n];return t}function Yj(t,e){var r="",A;for(A=0;A<e;A+=1)r+=t;return r}function Oj(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Hj=Dv,Jj=Uj,Pj=_j,Vj=Yj,qj=Oj,Wj=Gj,Sr={isNothing:Hj,isObject:Jj,toArray:Pj,repeat:Vj,isNegativeZero:qj,extend:Wj};function bv(t,e){var r="",A=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
74
|
+
`)}`}}};_t.RequestError=pr;var II=class extends pr{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};_t.MaxRedirectsError=II;var pI=class extends pr{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};_t.HTTPError=pI;var mI=class extends pr{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};_t.CacheError=mI;var yI=class extends pr{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};_t.UploadError=yI;var wI=class extends pr{constructor(e,r,A){super(e.message,e,A),this.name="TimeoutError",this.event=e.event,this.timings=r}};_t.TimeoutError=wI;var Rf=class extends pr{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};_t.ReadError=Rf;var DI=class extends pr{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};_t.UnsupportedProtocolError=DI;var a0e=["socket","connect","continue","information","upgrade","timeout"],bI=class extends K9.Duplex{constructor(e,r={},A){super({autoDestroy:!1,highWaterMark:0}),this[$u]=0,this[th]=0,this.requestInitialized=!1,this[CI]=new Set,this.redirects=[],this[rh]=!1,this[BI]=!1,this[kf]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof HS.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:i,body:o,form:a}=r;if((i||o||a)&&this._lockWrite(),_t.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,A)}catch(c){Ie.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof Ome.ReadStream&&await s0e(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Zr])===null||c===void 0||c.destroy();return}for(let u of this[kf])u();this[kf].length=0,this.requestInitialized=!0}catch(l){if(l instanceof pr){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,A){var n,s,i,o,a;let c=r;if(Ie.default.object(e)&&!Ie.default.urlInstance(e))r={...A,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...A,...r},e!==void 0&&(r.url=e),Ie.default.urlInstance(r.url)&&(r.url=new Mo.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.method),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.headers),Ie.assert.any([Ie.default.string,Ie.default.urlInstance,Ie.default.undefined],r.prefixUrl),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.cookieJar),Ie.assert.any([Ie.default.object,Ie.default.string,Ie.default.undefined],r.searchParams),Ie.assert.any([Ie.default.object,Ie.default.string,Ie.default.undefined],r.cache),Ie.assert.any([Ie.default.object,Ie.default.number,Ie.default.undefined],r.timeout),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.context),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.hooks),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.decompress),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.ignoreInvalidCookies),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.followRedirect),Ie.assert.any([Ie.default.number,Ie.default.undefined],r.maxRedirects),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.throwHttpErrors),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.http2),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.allowGetBody),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.localAddress),Ie.assert.any([A3.isDnsLookupIpVersion,Ie.default.undefined],r.dnsLookupIpVersion),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.https),Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.rejectUnauthorized),r.https&&(Ie.assert.any([Ie.default.boolean,Ie.default.undefined],r.https.rejectUnauthorized),Ie.assert.any([Ie.default.function_,Ie.default.undefined],r.https.checkServerIdentity),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.certificateAuthority),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.key),Ie.assert.any([Ie.default.string,Ie.default.object,Ie.default.array,Ie.default.undefined],r.https.certificate),Ie.assert.any([Ie.default.string,Ie.default.undefined],r.https.passphrase),Ie.assert.any([Ie.default.string,Ie.default.buffer,Ie.default.array,Ie.default.undefined],r.https.pfx)),Ie.assert.any([Ie.default.object,Ie.default.undefined],r.cacheOptions),Ie.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(A==null?void 0:A.headers)?r.headers={...r.headers}:r.headers=Wme({...A==null?void 0:A.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(A==null?void 0:A.searchParams)){let g;if(Ie.default.string(r.searchParams)||r.searchParams instanceof Mo.URLSearchParams)g=new Mo.URLSearchParams(r.searchParams);else{A0e(r.searchParams),g=new Mo.URLSearchParams;for(let f in r.searchParams){let d=r.searchParams[f];d===null?g.append(f,""):d!==void 0&&g.append(f,d)}}(n=A==null?void 0:A.searchParams)===null||n===void 0||n.forEach((f,d)=>{g.has(d)||g.append(d,f)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(i=r.password)!==null&&i!==void 0?i:"",Ie.default.undefined(r.prefixUrl)?r.prefixUrl=(o=A==null?void 0:A.prefixUrl)!==null&&o!==void 0?o:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Ie.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=r3.default(r.prefixUrl+r.url,r)}else(Ie.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=r3.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:d=>{let E=r.url;if(!E.href.startsWith(d))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${d}: ${E.href}`);r.url=new Mo.URL(d+E.href.slice(g.length)),g=d},get:()=>g});let{protocol:f}=r.url;if(f==="unix:"&&(f="http:",r.url=new Mo.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),f!=="http:"&&f!=="https:")throw new DI(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:g,getCookieString:f}=l;Ie.assert.function_(g),Ie.assert.function_(f),g.length===4&&f.length===0&&(g=Z9.promisify(g.bind(r.cookieJar)),f=Z9.promisify(f.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:f})}let{cache:u}=r;if(u&&(VS.has(u)||VS.set(u,new $9((g,f)=>{let d=g[Zr](g,f);return Ie.default.promise(d)&&(d.once=(E,C)=>{if(E==="error")d.catch(C);else if(E==="abort")(async()=>{try{(await d).once("abort",C)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${E}`);return d}),d},u))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)JS||(JS=new Pme.default),r.dnsCache=JS;else if(!Ie.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Ie.default(r.dnsCache)}`);Ie.default.number(r.timeout)?r.timeout={request:r.timeout}:A&&r.timeout!==A.timeout?r.timeout={...A.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let h=r.hooks===(A==null?void 0:A.hooks);r.hooks={...r.hooks};for(let g of _t.knownHookEvents)if(g in r.hooks)if(Ie.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${Ie.default(r.hooks[g])}`);else r.hooks[g]=[];if(A&&!h)for(let g of _t.knownHookEvents)A.hooks[g].length>0&&(r.hooks[g]=[...A.hooks[g],...r.hooks[g]]);if("family"in r&&To.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),A!=null&&A.https&&(r.https={...A.https,...r.https}),"rejectUnauthorized"in r&&To.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&To.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&To.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&To.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&To.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&To.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&To.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(a=r.maxRedirects)!==null&&a!==void 0?a:0,_t.setNonEnumerableProperties([A,c],r),e0e.default(r,A)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,A=!Ie.default.undefined(e.form),n=!Ie.default.undefined(e.json),s=!Ie.default.undefined(e.body),i=A||n||s,o=_t.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=o,i){if(o)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,A,n].filter(a=>a).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof K9.Readable)&&!Ie.default.string(e.body)&&!Ie.default.buffer(e.body)&&!e3.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(A&&!Ie.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let a=!Ie.default.string(r["content-type"]);s?(e3.default(e.body)&&a&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Lo]=e.body):A?(a&&(r["content-type"]="application/x-www-form-urlencoded"),this[Lo]=new Mo.URLSearchParams(e.form).toString()):(a&&(r["content-type"]="application/json"),this[Lo]=e.stringifyJson(e.json));let c=await jme.default(this[Lo],e.headers);Ie.default.undefined(r["content-length"])&&Ie.default.undefined(r["transfer-encoding"])&&!o&&!Ie.default.undefined(c)&&(r["content-length"]=String(c))}}else o?this._lockWrite():this._unlockWrite();this[eh]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:A}=r;this[o3]=e,r.decompress&&(e=Vme(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:X9.STATUS_CODES[n],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[s3]=s.isFromCache,this[Xu]=Number(e.headers["content-length"])||void 0,this[QI]=e,e.once("end",()=>{this[Xu]=this[$u],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",o=>{e.destroy(),this._beforeError(new Rf(o,this))}),e.once("aborted",()=>{this._beforeError(new Rf({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let i=e.headers["set-cookie"];if(Ie.default.object(r.cookieJar)&&i){let o=i.map(async a=>r.cookieJar.setCookie(a,A.toString()));r.ignoreInvalidCookies&&(o=o.map(async a=>a.catch(()=>{})));try{await Promise.all(o)}catch(a){this._beforeError(a);return}}if(r.followRedirect&&e.headers.location&&i0e.has(n)){if(e.resume(),this[Zr]&&(this[PS](),delete this[Zr],this[n3]()),(n===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Lo]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new II(this));return}try{let u=function(h){return h.protocol==="unix:"||h.hostname==="unix"},a=Buffer.from(e.headers.location,"binary").toString(),c=new Mo.URL(a,A),l=c.toString();if(decodeURI(l),!u(A)&&u(c)){this._beforeError(new pr("Cannot redirect to UNIX socket",{},this));return}c.hostname!==A.hostname||c.port!==A.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let h of r.hooks.beforeRedirect)await h(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(a){this._beforeError(a);return}return}if(r.isStream&&r.throwHttpErrors&&!$me.isResponseOk(s)){this._beforeError(new pI(s));return}e.on("readable",()=>{this[BI]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let o of this[CI])if(!o.headersSent){for(let a in e.headers){let c=r.decompress?a!=="content-encoding":!0,l=e.headers[a];c&&o.setHeader(a,l)}o.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:A,url:n}=r;Jme.default(e),this[PS]=t3.default(e,A,n);let s=r.cache?"cacheableResponse":"response";e.once(s,a=>{this._onResponse(a)}),e.once("error",a=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),a=a instanceof t3.TimeoutError?new wI(a,this.timings,this):new pr(a.message,a,this),this._beforeError(a)}),this[n3]=zme.default(e,this,a0e),this[Zr]=e,this.emit("uploadProgress",this.uploadProgress);let i=this[Lo],o=this.redirects.length===0?this:e;Ie.default.nodeStream(i)?(i.pipe(o),i.once("error",a=>{this._beforeError(new yI(a,this))})):(this._unlockWrite(),Ie.default.undefined(i)?(this._cannotHaveBody||this._noPipe)&&(o.end(),this._lockWrite()):(this._writeRequest(i,void 0,()=>{}),o.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((A,n)=>{Object.assign(r,Zme.default(e)),delete r.url;let s,i=VS.get(r.cache)(r,async o=>{o._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",o),A(o)});r.url=e,i.once("error",n),i.once("request",async o=>{s=o,A(s)})})}async _makeRequest(){var e,r,A,n,s;let{options:i}=this,{headers:o}=i;for(let C in o)if(Ie.default.undefined(o[C]))delete o[C];else if(Ie.default.null_(o[C]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${C}\` header`);if(i.decompress&&Ie.default.undefined(o["accept-encoding"])&&(o["accept-encoding"]=r0e?"gzip, deflate, br":"gzip, deflate"),i.cookieJar){let C=await i.cookieJar.getCookieString(i.url.toString());Ie.default.nonEmptyString(C)&&(i.headers.cookie=C)}for(let C of i.hooks.beforeRequest){let Q=await C(i);if(!Ie.default.undefined(Q)){i.request=()=>Q;break}}i.body&&this[Lo]!==i.body&&(this[Lo]=i.body);let{agent:a,request:c,timeout:l,url:u}=i;if(i.dnsCache&&!("lookup"in i)&&(i.lookup=i.dnsCache.lookup),u.hostname==="unix"){let C=/(?<socketPath>.+?):(?<path>.+)/.exec(`${u.pathname}${u.search}`);if(C!=null&&C.groups){let{socketPath:Q,path:m}=C.groups;Object.assign(i,{socketPath:Q,path:m,host:""})}}let h=u.protocol==="https:",g;i.http2?g=qme.auto:g=h?Hme.request:X9.request;let f=(e=i.request)!==null&&e!==void 0?e:g,d=i.cache?this._createCacheableRequest:f;a&&!i.http2&&(i.agent=a[h?"https":"http"]),i[Zr]=f,delete i.request,delete i.timeout;let E=i;if(E.shared=(r=i.cacheOptions)===null||r===void 0?void 0:r.shared,E.cacheHeuristic=(A=i.cacheOptions)===null||A===void 0?void 0:A.cacheHeuristic,E.immutableMinTimeToLive=(n=i.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,E.ignoreCargoCult=(s=i.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,i.dnsLookupIpVersion!==void 0)try{E.family=A3.dnsLookupIpVersionToFamily(i.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}i.https&&("rejectUnauthorized"in i.https&&(E.rejectUnauthorized=i.https.rejectUnauthorized),i.https.checkServerIdentity&&(E.checkServerIdentity=i.https.checkServerIdentity),i.https.certificateAuthority&&(E.ca=i.https.certificateAuthority),i.https.certificate&&(E.cert=i.https.certificate),i.https.key&&(E.key=i.https.key),i.https.passphrase&&(E.passphrase=i.https.passphrase),i.https.pfx&&(E.pfx=i.https.pfx));try{let C=await d(u,E);Ie.default.undefined(C)&&(C=g(u,E)),i.request=c,i.timeout=l,i.agent=a,i.https&&("rejectUnauthorized"in i.https&&delete E.rejectUnauthorized,i.https.checkServerIdentity&&delete E.checkServerIdentity,i.https.certificateAuthority&&delete E.ca,i.https.certificate&&delete E.cert,i.https.key&&delete E.key,i.https.passphrase&&delete E.passphrase,i.https.pfx&&delete E.pfx),n0e(C)?this._onRequest(C):this.writable?(this.once("finish",()=>{this._onResponse(C)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(C)}catch(C){throw C instanceof $9.CacheError?new mI(C,this):new pr(C.message,C,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new pr(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[rh])return;let{options:r}=this,A=this.retryCount+1;this[rh]=!0,e instanceof pr||(e=new pr(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await Xme.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let i;try{let o;s&&"retry-after"in s.headers&&(o=Number(s.headers["retry-after"]),Number.isNaN(o)?(o=Date.parse(s.headers["retry-after"])-Date.now(),o<=0&&(o=1)):o*=1e3),i=await r.retry.calculateDelay({attemptCount:A,retryOptions:r.retry,error:n,retryAfter:o,computedValue:t0e.default({attemptCount:A,retryOptions:r.retry,error:n,retryAfter:o,computedValue:0})})}catch(o){this._error(new pr(o.message,o,this));return}if(i){let o=async()=>{try{for(let a of this.options.hooks.beforeRetry)await a(this.options,n,A)}catch(a){this._error(new pr(a.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",A,e))};this[a3]=setTimeout(o,i);return}}this._error(n)})()}_read(){this[BI]=!0;let e=this[QI];if(e&&!this[rh]){e.readableLength&&(this[BI]=!1);let r;for(;(r=e.read())!==null;){this[$u]+=r.length,this[i3]=!0;let A=this.downloadProgress;A.percent<1&&this.emit("downloadProgress",A),this.push(r)}}}_write(e,r,A){let n=()=>{this._writeRequest(e,r,A)};this.requestInitialized?n():this[kf].push(n)}_writeRequest(e,r,A){this[Zr].destroyed||(this._progressCallbacks.push(()=>{this[th]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Zr].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),A(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Zr in this)){e();return}if(this[Zr].destroyed){e();return}this[Zr].end(A=>{A||(this[eh]=this[th],this.emit("uploadProgress",this.uploadProgress),this[Zr].emit("upload-complete")),e(A)})};this.requestInitialized?r():this[kf].push(r)}_destroy(e,r){var A;this[rh]=!0,clearTimeout(this[a3]),Zr in this&&(this[PS](),!((A=this[QI])===null||A===void 0)&&A.complete||this[Zr].destroy()),e!==null&&!Ie.default.undefined(e)&&!(e instanceof pr)&&(e=new pr(e.message,e,this)),r(e)}get _isAboutToError(){return this[rh]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,A;return((r=(e=this[Zr])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((A=this[o3])===null||A===void 0)&&A.complete)}get socket(){var e,r;return(r=(e=this[Zr])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Xu]?e=this[$u]/this[Xu]:this[Xu]===this[$u]?e=1:e=0,{percent:e,transferred:this[$u],total:this[Xu]}}get uploadProgress(){let e;return this[eh]?e=this[th]/this[eh]:this[eh]===this[th]?e=1:e=0,{percent:e,transferred:this[th],total:this[eh]}}get timings(){var e;return(e=this[Zr])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[s3]}pipe(e,r){if(this[i3])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof HS.ServerResponse&&this[CI].add(e),super.pipe(e,r)}unpipe(e){return e instanceof HS.ServerResponse&&this[CI].delete(e),super.unpipe(e),this}};_t.default=bI});var Ff=J(ts=>{"use strict";var c0e=ts&&ts.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),l0e=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&c0e(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});ts.CancelError=ts.ParseError=void 0;var c3=Sf(),qS=class extends c3.RequestError{constructor(e,r){let{options:A}=r.request;super(`${e.message} in "${A.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};ts.ParseError=qS;var WS=class extends c3.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};ts.CancelError=WS;l0e(Sf(),ts)});var u3=J(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});var l3=Ff(),u0e=(t,e,r,A)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(A);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new l3.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new l3.ParseError(s,t)}};jS.default=u0e});var zS=J(xo=>{"use strict";var h0e=xo&&xo.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),g0e=xo&&xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h0e(e,t,r)};Object.defineProperty(xo,"__esModule",{value:!0});var f0e=require("events"),E0e=ki(),d0e=c8(),kI=Ff(),h3=u3(),g3=Sf(),C0e=vS(),B0e=_S(),f3=GS(),Q0e=["request","response","redirect","uploadProgress","downloadProgress"];function E3(t){let e,r,A=new f0e.EventEmitter,n=new d0e((i,o,a)=>{let c=l=>{let u=new g3.default(void 0,t);u.retryCount=l,u._noPipe=!0,a(()=>u.destroy()),a.shouldReject=!1,a(()=>o(new kI.CancelError(u))),e=u,u.once("response",async f=>{var d;if(f.retryCount=l,f.request.aborted)return;let E;try{E=await B0e.default(u),f.rawBody=E}catch{return}if(u._isAboutToError)return;let C=((d=f.headers["content-encoding"])!==null&&d!==void 0?d:"").toLowerCase(),Q=["gzip","deflate","br"].includes(C),{options:m}=u;if(Q&&!m.decompress)f.body=E;else try{f.body=h3.default(f,m.responseType,m.parseJson,m.encoding)}catch(k){if(f.body=E.toString(),f3.isResponseOk(f)){u._beforeError(k);return}}try{for(let[k,R]of m.hooks.afterResponse.entries())f=await R(f,async T=>{let I=g3.default.normalizeArguments(void 0,{...T,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},m);I.hooks.afterResponse=I.hooks.afterResponse.slice(0,k);for(let b of I.hooks.beforeRetry)await b(I);let S=E3(I);return a(()=>{S.catch(()=>{}),S.cancel()}),S})}catch(k){u._beforeError(new kI.RequestError(k.message,k,u));return}if(r=f,!f3.isResponseOk(f)){u._beforeError(new kI.HTTPError(f));return}u.destroy(),i(u.options.resolveBodyOnly?f.body:f)});let h=f=>{if(n.isCanceled)return;let{options:d}=u;if(f instanceof kI.HTTPError&&!d.throwHttpErrors){let{response:E}=f;i(u.options.resolveBodyOnly?E.body:E);return}o(f)};u.once("error",h);let g=u.options.body;u.once("retry",(f,d)=>{var E,C;if(g===((E=d.request)===null||E===void 0?void 0:E.options.body)&&E0e.default.nodeStream((C=d.request)===null||C===void 0?void 0:C.options.body)){h(d);return}c(f)}),C0e.default(u,A,Q0e)};c(0)});n.on=(i,o)=>(A.on(i,o),n);let s=i=>{let o=(async()=>{await n;let{options:a}=r.request;return h3.default(r,i,a.parseJson,a.encoding)})();return Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),o};return n.json=()=>{let{headers:i}=e.options;return!e.writableFinished&&i.accept===void 0&&(i.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}xo.default=E3;g0e(Ff(),xo)});var d3=J(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var I0e=Ff();function p0e(t,...e){let r=(async()=>{if(t instanceof I0e.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),A=()=>r;return r.json=A,r.text=A,r.buffer=A,r.on=A,r}ZS.default=p0e});var Q3=J(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});var C3=ki();function B3(t){for(let e of Object.values(t))(C3.default.plainObject(e)||C3.default.array(e))&&B3(e);return Object.freeze(t)}KS.default=B3});var p3=J(I3=>{"use strict";Object.defineProperty(I3,"__esModule",{value:!0})});var XS=J(Tn=>{"use strict";var m0e=Tn&&Tn.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),y0e=Tn&&Tn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&m0e(e,t,r)};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.defaultHandler=void 0;var m3=ki(),Mn=zS(),w0e=d3(),SI=Sf(),D0e=Q3(),b0e={RequestError:Mn.RequestError,CacheError:Mn.CacheError,ReadError:Mn.ReadError,HTTPError:Mn.HTTPError,MaxRedirectsError:Mn.MaxRedirectsError,TimeoutError:Mn.TimeoutError,ParseError:Mn.ParseError,CancelError:Mn.CancelError,UnsupportedProtocolError:Mn.UnsupportedProtocolError,UploadError:Mn.UploadError},k0e=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:RI}=SI.default,y3=(...t)=>{let e;for(let r of t)e=RI(void 0,r,e);return e},R0e=t=>t.isStream?new SI.default(void 0,t):Mn.default(t),S0e=t=>"defaults"in t&&"options"in t.defaults,F0e=["get","post","put","patch","head","delete"];Tn.defaultHandler=(t,e)=>e(t);var w3=(t,e)=>{if(t)for(let r of t)r(e)},D3=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(A=>(n,s)=>{let i,o=A(n,a=>(i=s(a),i));if(o!==i&&!n.isStream&&i){let a=o,{then:c,catch:l,finally:u}=a;Object.setPrototypeOf(a,Object.getPrototypeOf(i)),Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a.then=c,a.catch=l,a.finally=u}return o});let e=(A,n={},s)=>{var i,o;let a=0,c=l=>t.handlers[a++](l,a===t.handlers.length?R0e:c);if(m3.default.plainObject(A)){let l={...A,...n};SI.setNonEnumerableProperties([A,n],l),n=l,A=void 0}try{let l;try{w3(t.options.hooks.init,n),w3((i=n.hooks)===null||i===void 0?void 0:i.init,n)}catch(h){l=h}let u=RI(A,n,s!=null?s:t.options);if(u[SI.kIsNormalizedAlready]=!0,l)throw new Mn.RequestError(l.message,l,u);return c(u)}catch(l){if(n.isStream)throw l;return w0e.default(l,t.options.hooks.beforeError,(o=n.hooks)===null||o===void 0?void 0:o.beforeError)}};e.extend=(...A)=>{let n=[t.options],s=[...t._rawHandlers],i;for(let o of A)S0e(o)?(n.push(o.defaults.options),s.push(...o.defaults._rawHandlers),i=o.defaults.mutableDefaults):(n.push(o),"handlers"in o&&s.push(...o.handlers),i=o.mutableDefaults);return s=s.filter(o=>o!==Tn.defaultHandler),s.length===0&&s.push(Tn.defaultHandler),D3({options:y3(...n),handlers:s,mutableDefaults:!!i})};let r=async function*(A,n){let s=RI(A,n,t.options);s.resolveBodyOnly=!1;let i=s.pagination;if(!m3.default.object(i))throw new TypeError("`options.pagination` must be implemented");let o=[],{countLimit:a}=i,c=0;for(;c<i.requestLimit;){c!==0&&await k0e(i.backoff);let l=await e(void 0,void 0,s),u=await i.transform(l),h=[];for(let f of u)if(i.filter(f,o,h)&&(!i.shouldContinue(f,o,h)||(yield f,i.stackAllItems&&o.push(f),h.push(f),--a<=0)))return;let g=i.paginate(l,o,h);if(g===!1)return;g===l.request.options?s=l.request.options:g!==void 0&&(s=RI(void 0,g,s)),c++}};e.paginate=r,e.paginate.all=async(A,n)=>{let s=[];for await(let i of r(A,n))s.push(i);return s},e.paginate.each=r,e.stream=(A,n)=>e(A,{...n,isStream:!0});for(let A of F0e)e[A]=(n,s)=>e(n,{...s,method:A}),e.stream[A]=(n,s)=>e(n,{...s,method:A,isStream:!0});return Object.assign(e,b0e),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:D0e.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=y3,e};Tn.default=D3;y0e(p3(),Tn)});var R3=J((Ri,FI)=>{"use strict";var v0e=Ri&&Ri.__createBinding||(Object.create?function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]}),b3=Ri&&Ri.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v0e(e,t,r)};Object.defineProperty(Ri,"__esModule",{value:!0});var N0e=require("url"),k3=XS(),M0e={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let A of e){let n=A.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new N0e.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[k3.defaultHandler],mutableDefaults:!1},$S=k3.default(M0e);Ri.default=$S;FI.exports=$S;FI.exports.default=$S;FI.exports.__esModule=!0;b3(XS(),Ri);b3(zS(),Ri)});var F3=J((m1e,x0e)=>{x0e.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var M3=J(tn=>{"use strict";var N3=F3(),Tr=process.env;Object.defineProperty(tn,"_vendors",{value:N3.map(function(t){return t.constant})});tn.name=null;tn.isPR=null;N3.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(A){return v3(A)});if(tn[t.constant]=r,!!r)switch(tn.name=t.name,typeof t.pr){case"string":tn.isPR=!!Tr[t.pr];break;case"object":"env"in t.pr?tn.isPR=t.pr.env in Tr&&Tr[t.pr.env]!==t.pr.ne:"any"in t.pr?tn.isPR=t.pr.any.some(function(A){return!!Tr[A]}):tn.isPR=v3(t.pr);break;default:tn.isPR=null}});tn.isCI=!!(Tr.CI!=="false"&&(Tr.BUILD_ID||Tr.BUILD_NUMBER||Tr.CI||Tr.CI_APP_ID||Tr.CI_BUILD_ID||Tr.CI_BUILD_NUMBER||Tr.CI_NAME||Tr.CONTINUOUS_INTEGRATION||Tr.RUN_ID||tn.name));function v3(t){return typeof t=="string"?!!Tr[t]:"env"in t?Tr[t.env]&&Tr[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Tr[e]}):Object.keys(t).every(function(e){return Tr[e]===t[e]})}});var AF=J((G1e,J0e)=>{J0e.exports={name:"create-turbo",version:"2.7.4",description:"Create a new Turborepo",homepage:"https://turborepo.com",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turborepo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{commander:"11.0.0","fs-extra":"11.1.1",inquirer:"8.2.4",picocolors:"1.0.1","proxy-agent":"6.5.0",semver:"7.5.0","update-check":"1.5.4"},devDependencies:{"@jest/globals":"29.7.0","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"9.0.13","@types/inquirer":"7.3.3","@types/node":"18.17.4","@types/semver":"7.3.12",jest:"29.7.0","ts-jest":"29.2.5",tsup:"6.7.0",typescript:"5.5.4"},files:["dist"]}});var lj=Ve(require("http")),uj=Ve(require("https")),LF=Ve(require("picocolors")),tE=require("commander");var vj=Ve(VF());function ip(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hh(t){return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hh(t)}function op(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ap(t,e){if(e&&(hh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(t)}function Oo(t){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oo(t)}function Os(t,e){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,n){return A.__proto__=n,A},Os(t,e)}function cp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Os(t,e)}function lp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function up(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ec(t,e,r){return up()?Ec=Reflect.construct.bind():Ec=function(n,s,i){var o=[null];o.push.apply(o,s);var a=Function.bind.apply(n,o),c=new a;return i&&Os(c,i.prototype),c},Ec.apply(null,arguments)}function gh(t){var e=typeof Map=="function"?new Map:void 0;return gh=function(A){if(A===null||!lp(A))return A;if(typeof A!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(A))return e.get(A);e.set(A,n)}function n(){return Ec(A,arguments,Oo(this).constructor)}return n.prototype=Object.create(A.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Os(n,A)},gh(t)}var cv=Ve(av());var Nj=Ve(require("fs-extra")),ube=function(t){cp(e,t);function e(r){var A;return ip(this,e),A=ap(this,Oo(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),A.directory=r,A}return e}(gh(Error));var Mj=Ve(require("fs")),Tj=Ve(require("path"));var Kee=Ve(require("fs")),Xee=Ve(require("path"));function Dv(t){return typeof t=="undefined"||t===null}function Uj(t){return typeof t=="object"&&t!==null}function _j(t){return Array.isArray(t)?t:Dv(t)?[]:[t]}function Gj(t,e){var r,A,n,s;if(e)for(s=Object.keys(e),r=0,A=s.length;r<A;r+=1)n=s[r],t[n]=e[n];return t}function Yj(t,e){var r="",A;for(A=0;A<e;A+=1)r+=t;return r}function Oj(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Hj=Dv,Jj=Uj,Pj=_j,Vj=Yj,qj=Oj,Wj=Gj,Sr={isNothing:Hj,isObject:Jj,toArray:Pj,repeat:Vj,isNegativeZero:qj,extend:Wj};function bv(t,e){var r="",A=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
75
75
|
|
|
76
76
|
`+t.mark.snippet),A+" "+r):A}function Eh(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=bv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Eh.prototype=Object.create(Error.prototype);Eh.prototype.constructor=Eh;Eh.prototype.toString=function(e){return this.name+": "+bv(this,e)};var gA=Eh;function Bp(t,e,r,A,n){var s="",i="",o=Math.floor(n/2)-1;return A-e>o&&(s=" ... ",e=A-o+s.length),r-A>o&&(i=" ...",r=A+o-i.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+i,pos:A-e+s.length}}function Qp(t,e){return Sr.repeat(" ",e-t.length)+t}function jj(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,A=[0],n=[],s,i=-1;s=r.exec(t.buffer);)n.push(s.index),A.push(s.index+s[0].length),t.position<=s.index&&i<0&&(i=A.length-2);i<0&&(i=A.length-1);var o="",a,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+l+3);for(a=1;a<=e.linesBefore&&!(i-a<0);a++)c=Bp(t.buffer,A[i-a],n[i-a],t.position-(A[i]-A[i-a]),u),o=Sr.repeat(" ",e.indent)+Qp((t.line-a+1).toString(),l)+" | "+c.str+`
|
|
77
77
|
`+o;for(c=Bp(t.buffer,A[i],n[i],t.position,u),o+=Sr.repeat(" ",e.indent)+Qp((t.line+1).toString(),l)+" | "+c.str+`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-turbo",
|
|
3
|
-
"version": "2.7.4
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Create a new Turborepo",
|
|
5
5
|
"homepage": "https://turborepo.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"typescript": "5.5.4",
|
|
37
37
|
"@turbo/telemetry": "0.0.0",
|
|
38
38
|
"@turbo/test-utils": "0.0.0",
|
|
39
|
-
"@turbo/tsconfig": "0.0.0",
|
|
40
39
|
"@turbo/utils": "0.0.0",
|
|
41
|
-
"@turbo/workspaces": "2.7.4
|
|
40
|
+
"@turbo/workspaces": "2.7.4",
|
|
41
|
+
"@turbo/tsconfig": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|