create-turbo 2.0.4-canary.4 → 2.0.5-canary.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -16,7 +16,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}
16
16
  `).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
17
17
  `).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
18
18
  `)}${u.reverse().join(`
19
- `)}`}}};Ce.RequestError=je;var el=class extends je{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Ce.MaxRedirectsError=el;var tl=class extends je{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Ce.HTTPError=tl;var rl=class extends je{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Ce.CacheError=rl;var il=class extends je{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Ce.UploadError=il;var nl=class extends je{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};Ce.TimeoutError=nl;var ea=class extends je{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}};Ce.ReadError=ea;var sl=class extends je{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Ce.UnsupportedProtocolError=sl;var dq=["socket","connect","continue","information","upgrade","timeout"],ol=class extends ZC.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[Ps]=0,this[Ls]=0,this.requestInitialized=!1,this[Jc]=new Set,this.redirects=[],this[Bs]=!1,this[Xc]=!1,this[Qo]=[],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 hy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Ce.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof W5.ReadStream&&await lq(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[Xe])===null||c===void 0||c.destroy();return}for(let h of this[Qo])h();this[Qo].length=0,this.requestInitialized=!0}catch(l){if(l instanceof je){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Ci.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([r1.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=X5({...i==null?void 0:i.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!==(i==null?void 0:i.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Ci.URLSearchParams)d=new Ci.URLSearchParams(r.searchParams);else{uq(r.searchParams),d=new Ci.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=t1.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=t1.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Ci.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Ci.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new sl(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:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=KC.promisify(d.bind(r.cookieJar)),m=KC.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(py.has(h)||py.set(h,new XC((d,m)=>{let y=d[Xe](d,m);return Y.default.promise(y)&&(y.once=(p,v)=>{if(p==="error")y.catch(v);else if(p==="abort")(async()=>{try{(await y).once("abort",v)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)fy||(fy=new K5.default),r.dnsCache=fy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of Ce.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of Ce.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Ri.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Ri.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Ri.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Ri.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Ri.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Ri.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Ri.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Ri.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 d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,Ce.setNonEnumerableProperties([i,c],r),sq.default(r,i)}_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,i=!Y.default.undefined(e.form),n=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=i||n||s,a=Ce.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof ZC.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!QC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(QC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Ti]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Ti]=new Ci.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Ti]=e.stringifyJson(e.json));let c=await Q5.default(this[Ti],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Is]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[o1]=e,r.decompress&&(e=Z5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:JC.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[n1]=s.isFromCache,this[Fs]=Number(e.headers["content-length"])||void 0,this[Qc]=e,e.once("end",()=>{this[Fs]=this[Ps],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new ea(a,this))}),e.once("aborted",()=>{this._beforeError(new ea({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&hq.has(n)){if(e.resume(),this[Xe]&&(this[dy](),delete this[Xe],this[i1]()),(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[Ti]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new el(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Ci.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new je("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.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 f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!nq.isResponseOk(s)){this._beforeError(new tl(s));return}e.on("readable",()=>{this[Xc]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Jc])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;Y5.default(e),this[dy]=e1.default(e,i,n);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof e1.TimeoutError?new nl(u,this.timings,this):new je(u.message,u,this),this._beforeError(u)}),this[i1]=eq.default(e,this,dq),this[Xe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Ti],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new il(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((i,n)=>{Object.assign(r,tq.default(e)),delete r.url;let s,o=py.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let v in a)if(Y.default.undefined(a[v]))delete a[v];else if(Y.default.null_(a[v]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${v}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=aq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let v=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(v)&&(o.headers.cookie=v)}for(let v of o.hooks.beforeRequest){let C=await v(o);if(!Y.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Ti]!==o.body&&(this[Ti]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let v=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(v!=null&&v.groups){let{socketPath:C,path:k}=v.groups;Object.assign(o,{socketPath:C,path:k,host:""})}}let f=h.protocol==="https:",d;o.http2?d=J5.auto:d=f?V5.request:JC.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[Xe]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=r1.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let v=await y(h,p);Y.default.undefined(v)&&(v=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),cq(v)?this._onRequest(v):this.writable?(this.once("finish",()=>{this._onResponse(v)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(v)}catch(v){throw v instanceof XC.CacheError?new rl(v,this):new je(v.message,v,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new je(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Bs])return;let{options:r}=this,i=this.retryCount+1;this[Bs]=!0,e instanceof je||(e=new je(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await iq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:oq.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new je(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new je(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[a1]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Xc]=!0;let e=this[Qc];if(e&&!this[Bs]){e.readableLength&&(this[Xc]=!1);let r;for(;(r=e.read())!==null;){this[Ps]+=r.length,this[s1]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[Qo].push(n)}_writeRequest(e,r,i){this[Xe].destroyed||(this._progressCallbacks.push(()=>{this[Ls]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Xe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Xe in this)){e();return}if(this[Xe].destroyed){e();return}this[Xe].end(i=>{i||(this[Is]=this[Ls],this.emit("uploadProgress",this.uploadProgress),this[Xe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Qo].push(r)}_destroy(e,r){var i;this[Bs]=!0,clearTimeout(this[a1]),Xe in this&&(this[dy](),!((i=this[Qc])===null||i===void 0)&&i.complete||this[Xe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof je)&&(e=new je(e.message,e,this)),r(e)}get _isAboutToError(){return this[Bs]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[Xe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[o1])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[Xe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Fs]?e=this[Ps]/this[Fs]:this[Fs]===this[Ps]?e=1:e=0,{percent:e,transferred:this[Ps],total:this[Fs]}}get uploadProgress(){let e;return this[Is]?e=this[Ls]/this[Is]:this[Is]===this[Ls]?e=1:e=0,{percent:e,transferred:this[Ls],total:this[Is]}}get timings(){var e;return(e=this[Xe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[n1]}pipe(e,r){if(this[s1])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof hy.ServerResponse&&this[Jc].add(e),super.pipe(e,r)}unpipe(e){return e instanceof hy.ServerResponse&&this[Jc].delete(e),super.unpipe(e),this}};Ce.default=ol});var ra=T(tr=>{"use strict";var pq=tr&&tr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),mq=tr&&tr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pq(e,t,r)};Object.defineProperty(tr,"__esModule",{value:!0});tr.CancelError=tr.ParseError=void 0;var u1=ta(),my=class extends u1.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};tr.ParseError=my;var yy=class extends u1.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};tr.CancelError=yy;mq(ta(),tr)});var l1=T(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var c1=ra(),yq=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new c1.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new c1.ParseError(s,t)}};gy.default=yq});var _y=T(ki=>{"use strict";var gq=ki&&ki.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),_q=ki&&ki.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gq(e,t,r)};Object.defineProperty(ki,"__esModule",{value:!0});var bq=require("events"),Eq=Yr(),vq=uA(),al=ra(),h1=l1(),f1=ta(),wq=ey(),Sq=ay(),d1=uy(),xq=["request","response","redirect","uploadProgress","downloadProgress"];function p1(t){let e,r,i=new bq.EventEmitter,n=new vq((o,a,u)=>{let c=l=>{let h=new f1.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new al.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Sq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let v=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(v),{options:k}=h;if(C&&!k.decompress)m.body=p;else try{m.body=h1.default(m,k.responseType,k.parseJson,k.encoding)}catch(P){if(m.body=p.toString(),d1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of k.hooks.afterResponse.entries())m=await F(m,async M=>{let S=f1.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},k);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let j of S.hooks.beforeRetry)await j(S);let D=p1(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new al.RequestError(P.message,P,h));return}if(r=m,!d1.isResponseOk(m)){h._beforeError(new al.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof al.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,v;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Eq.default.nodeStream((v=y.request)===null||v===void 0?void 0:v.options.body)){f(y);return}c(m)}),wq.default(h,i,xq)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return h1.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}ki.default=p1;_q(ra(),ki)});var m1=T(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Dq=ra();function Aq(t,...e){let r=(async()=>{if(t instanceof Dq.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}by.default=Aq});var _1=T(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var y1=Yr();function g1(t){for(let e of Object.values(t))(y1.default.plainObject(e)||y1.default.array(e))&&g1(e);return Object.freeze(t)}Ey.default=g1});var E1=T(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0})});var vy=T(Wt=>{"use strict";var Cq=Wt&&Wt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Rq=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Cq(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.defaultHandler=void 0;var v1=Yr(),Gt=_y(),Tq=m1(),cl=ta(),kq=_1(),Oq={RequestError:Gt.RequestError,CacheError:Gt.CacheError,ReadError:Gt.ReadError,HTTPError:Gt.HTTPError,MaxRedirectsError:Gt.MaxRedirectsError,TimeoutError:Gt.TimeoutError,ParseError:Gt.ParseError,CancelError:Gt.CancelError,UnsupportedProtocolError:Gt.UnsupportedProtocolError,UploadError:Gt.UploadError},Fq=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:ul}=cl.default,w1=(...t)=>{let e;for(let r of t)e=ul(void 0,r,e);return e},Pq=t=>t.isStream?new cl.default(void 0,t):Gt.default(t),Iq=t=>"defaults"in t&&"options"in t.defaults,Lq=["get","post","put","patch","head","delete"];Wt.defaultHandler=(t,e)=>e(t);var S1=(t,e)=>{if(t)for(let r of t)r(e)},x1=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?Pq:c);if(v1.default.plainObject(i)){let l={...i,...n};cl.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{S1(t.options.hooks.init,n),S1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=ul(i,n,s!=null?s:t.options);if(h[cl.kIsNormalizedAlready]=!0,l)throw new Gt.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return Tq.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)Iq(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Wt.defaultHandler),s.length===0&&s.push(Wt.defaultHandler),x1({options:w1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=ul(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!v1.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await Fq(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=ul(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of Lq)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,Oq),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:kq.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=w1,e};Wt.default=x1;Rq(E1(),Wt)});var Sy=T((Kr,ll)=>{"use strict";var Bq=Kr&&Kr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),D1=Kr&&Kr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Bq(e,t,r)};Object.defineProperty(Kr,"__esModule",{value:!0});var Nq=require("url"),A1=vy(),Mq={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 i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new Nq.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:[A1.defaultHandler],mutableDefaults:!1},wy=A1.default(Mq);Kr.default=wy;ll.exports=wy;ll.exports.default=wy;ll.exports.__esModule=!0;D1(vy(),Kr);D1(_y(),Kr)});var P1=T((DG,F1)=>{function Vt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}F1.exports=Vt;Vt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Vt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Vt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Vt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Vt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Vt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Vt.prototype.start=Vt.prototype.try;Vt.prototype.errors=function(){return this._errors};Vt.prototype.attempts=function(){return this._attempts};Vt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var I1=T(fn=>{var qq=P1();fn.operation=function(t){var e=fn.timeouts(t);return new qq(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};fn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};fn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};fn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=fn.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var B1=T((CG,L1)=>{L1.exports=I1()});var M1=T((RG,N1)=>{var Uq=B1();function Hq(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Uq.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}N1.exports=Hq});var iR=T(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});function $U(t){return t&&t.__esModule?t:{default:t}}var Q1=Object.defineProperty,J1=Object.getOwnPropertySymbols,zU=Object.prototype.hasOwnProperty,GU=Object.prototype.propertyIsEnumerable,X1=(t,e,r)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,WU=(t,e)=>{for(var r in e||(e={}))zU.call(e,r)&&X1(t,r,e[r]);if(J1)for(var r of J1(e))GU.call(e,r)&&X1(t,r,e[r]);return t},VU=(t,e)=>{for(var r in e)Q1(t,r,{get:e[r],enumerable:!0})},YU=(t,e,r)=>new Promise((i,n)=>{var s=u=>{try{a(r.next(u))}catch(c){n(c)}},o=u=>{try{a(r.throw(u))}catch(c){n(c)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),eR={};VU(eR,{configDir:()=>rR,darwinConfig:()=>Uy,getPathForPlatform:()=>$y,getPlatform:()=>qy,linuxConfig:()=>vl,winConfig:()=>Hy});var KU=require("fs/promises"),ZU=require("path"),tR=$U(ZU);function qy(){return process.platform}function vl(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,".config")}function Uy(){if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,"/Library/Application Support")}function Hy(){return process.env.APPDATA}function $y({platform:t}){switch(t){case"linux":return vl();case"darwin":return Uy();case"win32":return Hy();default:return vl()}}function rR(){return YU(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:qy(),i=$y({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield KU.stat.call(void 0,i),i}catch{return}}})}Sr.__spreadValues=WU;Sr.getPlatform=qy;Sr.linuxConfig=vl;Sr.darwinConfig=Uy;Sr.winConfig=Hy;Sr.getPathForPlatform=$y;Sr.configDir=rR;Sr.config_dir_exports=eR});var nR=T(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var JU=iR();zy.configDir=JU.configDir});var lR=T((wW,uH)=>{uH.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 dR=T(Ft=>{"use strict";var fR=lR(),Ge=process.env;Object.defineProperty(Ft,"_vendors",{value:fR.map(function(t){return t.constant})});Ft.name=null;Ft.isPR=null;fR.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(i){return hR(i)});if(Ft[t.constant]=r,!!r)switch(Ft.name=t.name,typeof t.pr){case"string":Ft.isPR=!!Ge[t.pr];break;case"object":"env"in t.pr?Ft.isPR=t.pr.env in Ge&&Ge[t.pr.env]!==t.pr.ne:"any"in t.pr?Ft.isPR=t.pr.any.some(function(i){return!!Ge[i]}):Ft.isPR=hR(t.pr);break;default:Ft.isPR=null}});Ft.isCI=!!(Ge.CI!=="false"&&(Ge.BUILD_ID||Ge.BUILD_NUMBER||Ge.CI||Ge.CI_APP_ID||Ge.CI_BUILD_ID||Ge.CI_BUILD_NUMBER||Ge.CI_NAME||Ge.CONTINUOUS_INTEGRATION||Ge.RUN_ID||Ft.name));function hR(t){return typeof t=="string"?!!Ge[t]:"env"in t?Ge[t.env]&&Ge[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ge[e]}):Object.keys(t).every(function(e){return Ge[e]===t[e]})}});var wl=T((jW,mH)=>{mH.exports={name:"create-turbo",version:"2.0.4-canary.4",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@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.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]}});var OT=oe(require("http")),FT=oe(require("https")),g0=oe(require("chalk")),Ea=require("commander");var ZT=oe(D0());function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function so(t){return so=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},so(t)}function Ul(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(so(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(t)}function Ui(t){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(t)}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Tr(t,e)}function $l(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&&Tr(t,e)}function zl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Gl(){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 Tn(t,e,r){return Gl()?Tn=Reflect.construct.bind():Tn=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&Tr(c,o.prototype),c},Tn.apply(null,arguments)}function oo(t){var e=typeof Map=="function"?new Map:void 0;return oo=function(i){if(i===null||!zl(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Tn(i,arguments,Ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tr(n,i)},oo(t)}var $0=oe(H0());var JT=oe(require("fs-extra")),$4=function(t){$l(e,t);function e(r){var i;return ql(this,e),i=Hl(this,Ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(oo(Error));var XT=oe(require("fs")),QT=oe(require("path"));var oB=oe(require("fs")),aB=oe(require("path"));function sg(t){return typeof t=="undefined"||t===null}function rk(t){return typeof t=="object"&&t!==null}function ik(t){return Array.isArray(t)?t:sg(t)?[]:[t]}function nk(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function sk(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function ok(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ak=sg,uk=rk,ck=ik,lk=sk,hk=ok,fk=nk,$e={isNothing:ak,isObject:uk,toArray:ck,repeat:lk,isNegativeZero:hk,extend:fk};function og(t,e){var r="",i=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+=`
19
+ `)}`}}};Ce.RequestError=je;var el=class extends je{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Ce.MaxRedirectsError=el;var tl=class extends je{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Ce.HTTPError=tl;var rl=class extends je{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Ce.CacheError=rl;var il=class extends je{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Ce.UploadError=il;var nl=class extends je{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};Ce.TimeoutError=nl;var ea=class extends je{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}};Ce.ReadError=ea;var sl=class extends je{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Ce.UnsupportedProtocolError=sl;var dq=["socket","connect","continue","information","upgrade","timeout"],ol=class extends ZC.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[Ps]=0,this[Ls]=0,this.requestInitialized=!1,this[Jc]=new Set,this.redirects=[],this[Bs]=!1,this[Xc]=!1,this[Qo]=[],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 hy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Ce.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof W5.ReadStream&&await lq(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[Xe])===null||c===void 0||c.destroy();return}for(let h of this[Qo])h();this[Qo].length=0,this.requestInitialized=!0}catch(l){if(l instanceof je){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Ci.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([r1.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=X5({...i==null?void 0:i.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!==(i==null?void 0:i.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Ci.URLSearchParams)d=new Ci.URLSearchParams(r.searchParams);else{uq(r.searchParams),d=new Ci.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=t1.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=t1.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Ci.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Ci.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new sl(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:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=KC.promisify(d.bind(r.cookieJar)),m=KC.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(py.has(h)||py.set(h,new XC((d,m)=>{let y=d[Xe](d,m);return Y.default.promise(y)&&(y.once=(p,v)=>{if(p==="error")y.catch(v);else if(p==="abort")(async()=>{try{(await y).once("abort",v)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)fy||(fy=new K5.default),r.dnsCache=fy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of Ce.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of Ce.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Ri.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Ri.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Ri.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Ri.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Ri.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Ri.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Ri.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Ri.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 d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,Ce.setNonEnumerableProperties([i,c],r),sq.default(r,i)}_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,i=!Y.default.undefined(e.form),n=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=i||n||s,a=Ce.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof ZC.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!QC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(QC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Ti]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Ti]=new Ci.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Ti]=e.stringifyJson(e.json));let c=await Q5.default(this[Ti],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Is]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[o1]=e,r.decompress&&(e=Z5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:JC.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[n1]=s.isFromCache,this[Fs]=Number(e.headers["content-length"])||void 0,this[Qc]=e,e.once("end",()=>{this[Fs]=this[Ps],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new ea(a,this))}),e.once("aborted",()=>{this._beforeError(new ea({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&hq.has(n)){if(e.resume(),this[Xe]&&(this[dy](),delete this[Xe],this[i1]()),(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[Ti]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new el(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Ci.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new je("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.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 f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!nq.isResponseOk(s)){this._beforeError(new tl(s));return}e.on("readable",()=>{this[Xc]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Jc])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;Y5.default(e),this[dy]=e1.default(e,i,n);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof e1.TimeoutError?new nl(u,this.timings,this):new je(u.message,u,this),this._beforeError(u)}),this[i1]=eq.default(e,this,dq),this[Xe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Ti],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new il(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((i,n)=>{Object.assign(r,tq.default(e)),delete r.url;let s,o=py.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let v in a)if(Y.default.undefined(a[v]))delete a[v];else if(Y.default.null_(a[v]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${v}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=aq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let v=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(v)&&(o.headers.cookie=v)}for(let v of o.hooks.beforeRequest){let C=await v(o);if(!Y.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Ti]!==o.body&&(this[Ti]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let v=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(v!=null&&v.groups){let{socketPath:C,path:k}=v.groups;Object.assign(o,{socketPath:C,path:k,host:""})}}let f=h.protocol==="https:",d;o.http2?d=J5.auto:d=f?V5.request:JC.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[Xe]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=r1.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let v=await y(h,p);Y.default.undefined(v)&&(v=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),cq(v)?this._onRequest(v):this.writable?(this.once("finish",()=>{this._onResponse(v)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(v)}catch(v){throw v instanceof XC.CacheError?new rl(v,this):new je(v.message,v,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new je(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Bs])return;let{options:r}=this,i=this.retryCount+1;this[Bs]=!0,e instanceof je||(e=new je(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await iq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:oq.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new je(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new je(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[a1]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Xc]=!0;let e=this[Qc];if(e&&!this[Bs]){e.readableLength&&(this[Xc]=!1);let r;for(;(r=e.read())!==null;){this[Ps]+=r.length,this[s1]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[Qo].push(n)}_writeRequest(e,r,i){this[Xe].destroyed||(this._progressCallbacks.push(()=>{this[Ls]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Xe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Xe in this)){e();return}if(this[Xe].destroyed){e();return}this[Xe].end(i=>{i||(this[Is]=this[Ls],this.emit("uploadProgress",this.uploadProgress),this[Xe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Qo].push(r)}_destroy(e,r){var i;this[Bs]=!0,clearTimeout(this[a1]),Xe in this&&(this[dy](),!((i=this[Qc])===null||i===void 0)&&i.complete||this[Xe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof je)&&(e=new je(e.message,e,this)),r(e)}get _isAboutToError(){return this[Bs]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[Xe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[o1])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[Xe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Fs]?e=this[Ps]/this[Fs]:this[Fs]===this[Ps]?e=1:e=0,{percent:e,transferred:this[Ps],total:this[Fs]}}get uploadProgress(){let e;return this[Is]?e=this[Ls]/this[Is]:this[Is]===this[Ls]?e=1:e=0,{percent:e,transferred:this[Ls],total:this[Is]}}get timings(){var e;return(e=this[Xe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[n1]}pipe(e,r){if(this[s1])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof hy.ServerResponse&&this[Jc].add(e),super.pipe(e,r)}unpipe(e){return e instanceof hy.ServerResponse&&this[Jc].delete(e),super.unpipe(e),this}};Ce.default=ol});var ra=T(tr=>{"use strict";var pq=tr&&tr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),mq=tr&&tr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pq(e,t,r)};Object.defineProperty(tr,"__esModule",{value:!0});tr.CancelError=tr.ParseError=void 0;var u1=ta(),my=class extends u1.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};tr.ParseError=my;var yy=class extends u1.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};tr.CancelError=yy;mq(ta(),tr)});var l1=T(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var c1=ra(),yq=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new c1.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new c1.ParseError(s,t)}};gy.default=yq});var _y=T(ki=>{"use strict";var gq=ki&&ki.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),_q=ki&&ki.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gq(e,t,r)};Object.defineProperty(ki,"__esModule",{value:!0});var bq=require("events"),Eq=Yr(),vq=uA(),al=ra(),h1=l1(),f1=ta(),wq=ey(),Sq=ay(),d1=uy(),xq=["request","response","redirect","uploadProgress","downloadProgress"];function p1(t){let e,r,i=new bq.EventEmitter,n=new vq((o,a,u)=>{let c=l=>{let h=new f1.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new al.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Sq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let v=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(v),{options:k}=h;if(C&&!k.decompress)m.body=p;else try{m.body=h1.default(m,k.responseType,k.parseJson,k.encoding)}catch(P){if(m.body=p.toString(),d1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of k.hooks.afterResponse.entries())m=await F(m,async M=>{let S=f1.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},k);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let j of S.hooks.beforeRetry)await j(S);let D=p1(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new al.RequestError(P.message,P,h));return}if(r=m,!d1.isResponseOk(m)){h._beforeError(new al.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof al.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,v;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Eq.default.nodeStream((v=y.request)===null||v===void 0?void 0:v.options.body)){f(y);return}c(m)}),wq.default(h,i,xq)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return h1.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}ki.default=p1;_q(ra(),ki)});var m1=T(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Dq=ra();function Aq(t,...e){let r=(async()=>{if(t instanceof Dq.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}by.default=Aq});var _1=T(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var y1=Yr();function g1(t){for(let e of Object.values(t))(y1.default.plainObject(e)||y1.default.array(e))&&g1(e);return Object.freeze(t)}Ey.default=g1});var E1=T(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0})});var vy=T(Wt=>{"use strict";var Cq=Wt&&Wt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Rq=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Cq(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.defaultHandler=void 0;var v1=Yr(),Gt=_y(),Tq=m1(),cl=ta(),kq=_1(),Oq={RequestError:Gt.RequestError,CacheError:Gt.CacheError,ReadError:Gt.ReadError,HTTPError:Gt.HTTPError,MaxRedirectsError:Gt.MaxRedirectsError,TimeoutError:Gt.TimeoutError,ParseError:Gt.ParseError,CancelError:Gt.CancelError,UnsupportedProtocolError:Gt.UnsupportedProtocolError,UploadError:Gt.UploadError},Fq=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:ul}=cl.default,w1=(...t)=>{let e;for(let r of t)e=ul(void 0,r,e);return e},Pq=t=>t.isStream?new cl.default(void 0,t):Gt.default(t),Iq=t=>"defaults"in t&&"options"in t.defaults,Lq=["get","post","put","patch","head","delete"];Wt.defaultHandler=(t,e)=>e(t);var S1=(t,e)=>{if(t)for(let r of t)r(e)},x1=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?Pq:c);if(v1.default.plainObject(i)){let l={...i,...n};cl.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{S1(t.options.hooks.init,n),S1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=ul(i,n,s!=null?s:t.options);if(h[cl.kIsNormalizedAlready]=!0,l)throw new Gt.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return Tq.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)Iq(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Wt.defaultHandler),s.length===0&&s.push(Wt.defaultHandler),x1({options:w1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=ul(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!v1.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await Fq(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=ul(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of Lq)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,Oq),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:kq.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=w1,e};Wt.default=x1;Rq(E1(),Wt)});var Sy=T((Kr,ll)=>{"use strict";var Bq=Kr&&Kr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),D1=Kr&&Kr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Bq(e,t,r)};Object.defineProperty(Kr,"__esModule",{value:!0});var Nq=require("url"),A1=vy(),Mq={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 i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new Nq.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:[A1.defaultHandler],mutableDefaults:!1},wy=A1.default(Mq);Kr.default=wy;ll.exports=wy;ll.exports.default=wy;ll.exports.__esModule=!0;D1(vy(),Kr);D1(_y(),Kr)});var P1=T((DG,F1)=>{function Vt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}F1.exports=Vt;Vt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Vt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Vt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Vt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Vt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Vt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Vt.prototype.start=Vt.prototype.try;Vt.prototype.errors=function(){return this._errors};Vt.prototype.attempts=function(){return this._attempts};Vt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var I1=T(fn=>{var qq=P1();fn.operation=function(t){var e=fn.timeouts(t);return new qq(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};fn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};fn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};fn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=fn.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var B1=T((CG,L1)=>{L1.exports=I1()});var M1=T((RG,N1)=>{var Uq=B1();function Hq(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Uq.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}N1.exports=Hq});var iR=T(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});function $U(t){return t&&t.__esModule?t:{default:t}}var Q1=Object.defineProperty,J1=Object.getOwnPropertySymbols,zU=Object.prototype.hasOwnProperty,GU=Object.prototype.propertyIsEnumerable,X1=(t,e,r)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,WU=(t,e)=>{for(var r in e||(e={}))zU.call(e,r)&&X1(t,r,e[r]);if(J1)for(var r of J1(e))GU.call(e,r)&&X1(t,r,e[r]);return t},VU=(t,e)=>{for(var r in e)Q1(t,r,{get:e[r],enumerable:!0})},YU=(t,e,r)=>new Promise((i,n)=>{var s=u=>{try{a(r.next(u))}catch(c){n(c)}},o=u=>{try{a(r.throw(u))}catch(c){n(c)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),eR={};VU(eR,{configDir:()=>rR,darwinConfig:()=>Uy,getPathForPlatform:()=>$y,getPlatform:()=>qy,linuxConfig:()=>vl,winConfig:()=>Hy});var KU=require("fs/promises"),ZU=require("path"),tR=$U(ZU);function qy(){return process.platform}function vl(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,".config")}function Uy(){if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,"/Library/Application Support")}function Hy(){return process.env.APPDATA}function $y({platform:t}){switch(t){case"linux":return vl();case"darwin":return Uy();case"win32":return Hy();default:return vl()}}function rR(){return YU(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:qy(),i=$y({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield KU.stat.call(void 0,i),i}catch{return}}})}Sr.__spreadValues=WU;Sr.getPlatform=qy;Sr.linuxConfig=vl;Sr.darwinConfig=Uy;Sr.winConfig=Hy;Sr.getPathForPlatform=$y;Sr.configDir=rR;Sr.config_dir_exports=eR});var nR=T(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var JU=iR();zy.configDir=JU.configDir});var lR=T((wW,uH)=>{uH.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 dR=T(Ft=>{"use strict";var fR=lR(),Ge=process.env;Object.defineProperty(Ft,"_vendors",{value:fR.map(function(t){return t.constant})});Ft.name=null;Ft.isPR=null;fR.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(i){return hR(i)});if(Ft[t.constant]=r,!!r)switch(Ft.name=t.name,typeof t.pr){case"string":Ft.isPR=!!Ge[t.pr];break;case"object":"env"in t.pr?Ft.isPR=t.pr.env in Ge&&Ge[t.pr.env]!==t.pr.ne:"any"in t.pr?Ft.isPR=t.pr.any.some(function(i){return!!Ge[i]}):Ft.isPR=hR(t.pr);break;default:Ft.isPR=null}});Ft.isCI=!!(Ge.CI!=="false"&&(Ge.BUILD_ID||Ge.BUILD_NUMBER||Ge.CI||Ge.CI_APP_ID||Ge.CI_BUILD_ID||Ge.CI_BUILD_NUMBER||Ge.CI_NAME||Ge.CONTINUOUS_INTEGRATION||Ge.RUN_ID||Ft.name));function hR(t){return typeof t=="string"?!!Ge[t]:"env"in t?Ge[t.env]&&Ge[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ge[e]}):Object.keys(t).every(function(e){return Ge[e]===t[e]})}});var wl=T((jW,mH)=>{mH.exports={name:"create-turbo",version:"2.0.5-canary.0",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@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.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]}});var OT=oe(require("http")),FT=oe(require("https")),g0=oe(require("chalk")),Ea=require("commander");var ZT=oe(D0());function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function so(t){return so=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},so(t)}function Ul(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(so(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(t)}function Ui(t){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(t)}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Tr(t,e)}function $l(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&&Tr(t,e)}function zl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Gl(){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 Tn(t,e,r){return Gl()?Tn=Reflect.construct.bind():Tn=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&Tr(c,o.prototype),c},Tn.apply(null,arguments)}function oo(t){var e=typeof Map=="function"?new Map:void 0;return oo=function(i){if(i===null||!zl(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Tn(i,arguments,Ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tr(n,i)},oo(t)}var $0=oe(H0());var JT=oe(require("fs-extra")),$4=function(t){$l(e,t);function e(r){var i;return ql(this,e),i=Hl(this,Ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(oo(Error));var XT=oe(require("fs")),QT=oe(require("path"));var oB=oe(require("fs")),aB=oe(require("path"));function sg(t){return typeof t=="undefined"||t===null}function rk(t){return typeof t=="object"&&t!==null}function ik(t){return Array.isArray(t)?t:sg(t)?[]:[t]}function nk(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function sk(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function ok(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ak=sg,uk=rk,ck=ik,lk=sk,hk=ok,fk=nk,$e={isNothing:ak,isObject:uk,toArray:ck,repeat:lk,isNegativeZero:hk,extend:fk};function og(t,e){var r="",i=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+=`
20
20
 
21
21
  `+t.mark.snippet),i+" "+r):i}function uo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=og(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}uo.prototype=Object.create(Error.prototype);uo.prototype.constructor=uo;uo.prototype.toString=function(e){return this.name+": "+og(this,e)};var lt=uo;function Xl(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Ql(t,e){return $e.repeat(" ",e-t.length)+t}function dk(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,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Xl(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),h),a=$e.repeat(" ",e.indent)+Ql((t.line-u+1).toString(),l)+" | "+c.str+`
22
22
  `+a;for(c=Xl(t.buffer,i[o],n[o],t.position,h),a+=$e.repeat(" ",e.indent)+Ql((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.0.4-canary.4",
3
+ "version": "2.0.5-canary.0",
4
4
  "description": "Create a new Turborepo",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "@turbo/eslint-config": "0.0.0",
41
41
  "@turbo/test-utils": "0.0.0",
42
42
  "@turbo/tsconfig": "0.0.0",
43
- "@turbo/utils": "0.0.0",
44
- "@turbo/workspaces": "2.0.4-canary.4"
43
+ "@turbo/workspaces": "2.0.5-canary.0",
44
+ "@turbo/utils": "0.0.0"
45
45
  },
46
46
  "files": [
47
47
  "dist"