create-turbo 1.13.1 → 1.13.2

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 +12 -12
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var hR=Object.create;var Oc=Object.defineProperty;var fR=Object.getOwnPropertyDescriptor;var dR=Object.getOwnPropertyNames;var pR=Object.getPrototypeOf,mR=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yR=(t,e)=>{for(var r in e)Oc(t,r,{get:e[r],enumerable:!0})},gR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dR(e))!mR.call(t,n)&&n!==r&&Oc(t,n,{get:()=>e[n],enumerable:!(i=fR(e,n))||i.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?hR(pR(t)):{},gR(e||!t||!t.__esModule?Oc(r,"default",{value:t,enumerable:!0}):r,t));var a0=k((F6,tr)=>{function Fc(t){return tr.exports=Fc=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},tr.exports.__esModule=!0,tr.exports.default=tr.exports,Fc(t)}tr.exports=Fc,tr.exports.__esModule=!0,tr.exports.default=tr.exports});var l0=k((P6,rr)=>{var u0=a0().default;function c0(){"use strict";rr.exports=c0=function(){return e},rr.exports.__esModule=!0,rr.exports.default=rr.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(L,B,G){L[B]=G.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(L,B,G){return Object.defineProperty(L,B,{value:G,enumerable:!0,configurable:!0,writable:!0}),L[B]}try{c({},"")}catch{c=function(G,Z,j){return G[Z]=j}}function l(L,B,G,Z){var j=B&&B.prototype instanceof w?B:w,g=Object.create(j.prototype),_=new ne(Z||[]);return n(g,"_invoke",{value:z(L,G,_)}),g}function h(L,B,G){try{return{type:"normal",arg:L.call(B,G)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function w(){}function C(){}function F(){}var P={};c(P,o,function(){return this});var T=Object.getPrototypeOf,M=T&&T(T(q([])));M&&M!==r&&i.call(M,o)&&(P=M);var S=F.prototype=w.prototype=Object.create(P);function D(L){["next","throw","return"].forEach(function(B){c(L,B,function(G){return this._invoke(B,G)})})}function H(L,B){function G(j,g,_,E){var R=h(L[j],L,g);if(R.type!=="throw"){var x=R.arg,U=x.value;return U&&u0(U)=="object"&&i.call(U,"__await")?B.resolve(U.__await).then(function($){G("next",$,_,E)},function($){G("throw",$,_,E)}):B.resolve(U).then(function($){x.value=$,_(x)},function($){return G("throw",$,_,E)})}E(R.arg)}var Z;n(this,"_invoke",{value:function(g,_){function E(){return new B(function(R,x){G(g,_,R,x)})}return Z=Z?Z.then(E,E):E()}})}function z(L,B,G){var Z=f;return function(j,g){if(Z===m)throw new Error("Generator is already running");if(Z===y){if(j==="throw")throw g;return{value:t,done:!0}}for(G.method=j,G.arg=g;;){var _=G.delegate;if(_){var E=N(_,G);if(E){if(E===p)continue;return E}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(Z===f)throw Z=y,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);Z=m;var R=h(L,B,G);if(R.type==="normal"){if(Z=G.done?y:d,R.arg===p)continue;return{value:R.arg,done:G.done}}R.type==="throw"&&(Z=y,G.method="throw",G.arg=R.arg)}}}function N(L,B){var G=B.method,Z=L.iterator[G];if(Z===t)return B.delegate=null,G==="throw"&&L.iterator.return&&(B.method="return",B.arg=t,N(L,B),B.method==="throw")||G!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+G+"' method")),p;var j=h(Z,L.iterator,B.arg);if(j.type==="throw")return B.method="throw",B.arg=j.arg,B.delegate=null,p;var g=j.arg;return g?g.done?(B[L.resultName]=g.value,B.next=L.nextLoc,B.method!=="return"&&(B.method="next",B.arg=t),B.delegate=null,p):g:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,p)}function K(L){var B={tryLoc:L[0]};1 in L&&(B.catchLoc=L[1]),2 in L&&(B.finallyLoc=L[2],B.afterLoc=L[3]),this.tryEntries.push(B)}function te(L){var B=L.completion||{};B.type="normal",delete B.arg,L.completion=B}function ne(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(K,this),this.reset(!0)}function q(L){if(L||L===""){var B=L[o];if(B)return B.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var G=-1,Z=function j(){for(;++G<L.length;)if(i.call(L,G))return j.value=L[G],j.done=!1,j;return j.value=t,j.done=!0,j};return Z.next=Z}}throw new TypeError(u0(L)+" is not iterable")}return C.prototype=F,n(S,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:C,configurable:!0}),C.displayName=c(F,u,"GeneratorFunction"),e.isGeneratorFunction=function(L){var B=typeof L=="function"&&L.constructor;return!!B&&(B===C||(B.displayName||B.name)==="GeneratorFunction")},e.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,F):(L.__proto__=F,c(L,u,"GeneratorFunction")),L.prototype=Object.create(S),L},e.awrap=function(L){return{__await:L}},D(H.prototype),c(H.prototype,a,function(){return this}),e.AsyncIterator=H,e.async=function(L,B,G,Z,j){j===void 0&&(j=Promise);var g=new H(l(L,B,G,Z),j);return e.isGeneratorFunction(B)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(S),c(S,u,"Generator"),c(S,o,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(L){var B=Object(L),G=[];for(var Z in B)G.push(Z);return G.reverse(),function j(){for(;G.length;){var g=G.pop();if(g in B)return j.value=g,j.done=!1,j}return j.done=!0,j}},e.values=q,ne.prototype={constructor:ne,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(te),!B)for(var G in this)G.charAt(0)==="t"&&i.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=t)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var G=this;function Z(x,U){return _.type="throw",_.arg=B,G.next=x,U&&(G.method="next",G.arg=t),!!U}for(var j=this.tryEntries.length-1;j>=0;--j){var g=this.tryEntries[j],_=g.completion;if(g.tryLoc==="root")return Z("end");if(g.tryLoc<=this.prev){var E=i.call(g,"catchLoc"),R=i.call(g,"finallyLoc");if(E&&R){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(E){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(B,G){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var j=this.tryEntries[Z];if(j.tryLoc<=this.prev&&i.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var g=j;break}}g&&(B==="break"||B==="continue")&&g.tryLoc<=G&&G<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=B,_.arg=G,g?(this.method="next",this.next=g.finallyLoc,p):this.complete(_)},complete:function(B,G){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&G&&(this.next=G),p},finish:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.finallyLoc===B)return this.complete(Z.completion,Z.afterLoc),te(Z),p}},catch:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.tryLoc===B){var j=Z.completion;if(j.type==="throw"){var g=j.arg;te(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(B,G,Z){return this.delegate={iterator:q(B),resultName:G,nextLoc:Z},this.method==="next"&&(this.arg=t),p}},e}rr.exports=c0,rr.exports.__esModule=!0,rr.exports.default=rr.exports});var f0=k((L6,h0)=>{var go=l0()();h0.exports=go;try{regeneratorRuntime=go}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=go:Function("r","regeneratorRuntime = r")(go)}});var p0=k((rH,jc)=>{"use strict";var d0=(t,...e)=>new Promise(r=>{r(t(...e))});jc.exports=d0;jc.exports.default=d0});var y0=k((iH,qc)=>{"use strict";var _R=p0(),m0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=_R(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};qc.exports=m0;qc.exports.default=m0});var b0=k((nH,Hc)=>{"use strict";var g0=y0(),_o=class extends Error{constructor(e){super(),this.value=e}},bR=async(t,e)=>e(await t),ER=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new _o(e[0]);return!1},_0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=g0(r.concurrency),n=[...t].map(o=>[o,i(bR,o,e)]),s=g0(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s(ER,o)))}catch(o){if(o instanceof _o)return o.value;throw o}};Hc.exports=_0;Hc.exports.default=_0});var x0=k((sH,Uc)=>{"use strict";var E0=require("path"),bo=require("fs"),{promisify:w0}=require("util"),wR=b0(),vR=w0(bo.stat),SR=w0(bo.lstat),v0={directory:"isDirectory",file:"isFile"};function S0({type:t}){if(!(t in v0))throw new Error(`Invalid type specified: ${t}`)}var D0=(t,e)=>t===void 0||e[v0[t]]();Uc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},S0(e);let r=e.allowSymlinks?vR:SR;return wR(t,async i=>{try{let n=await r(E0.resolve(e.cwd,i));return D0(e.type,n)}catch{return!1}},e)};Uc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},S0(e);let r=e.allowSymlinks?bo.statSync:bo.lstatSync;for(let i of t)try{let n=r(E0.resolve(e.cwd,i));if(D0(e.type,n))return i}catch{}}});var C0=k((oH,$c)=>{"use strict";var A0=require("fs"),{promisify:DR}=require("util"),xR=DR(A0.access);$c.exports=async t=>{try{return await xR(t),!0}catch{return!1}};$c.exports.sync=t=>{try{return A0.accessSync(t),!0}catch{return!1}}});var T0=k((aH,ji)=>{"use strict";var Rr=require("path"),Eo=x0(),R0=C0(),Gc=Symbol("findUp.stop");ji.exports=async(t,e={})=>{let r=Rr.resolve(e.cwd||""),{root:i}=Rr.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return Eo(n,o);let a=await t(o.cwd);return typeof a=="string"?Eo([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Gc)return;if(o)return Rr.resolve(r,o);if(r===i)return;r=Rr.dirname(r)}};ji.exports.sync=(t,e={})=>{let r=Rr.resolve(e.cwd||""),{root:i}=Rr.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return Eo.sync(n,o);let a=t(o.cwd);return typeof a=="string"?Eo.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Gc)return;if(o)return Rr.resolve(r,o);if(r===i)return;r=Rr.dirname(r)}};ji.exports.exists=R0;ji.exports.sync.exists=R0.sync;ji.exports.stop=Gc});var Py=k(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function Xk(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=Xk;function Qk(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Gi.splitWhen=Qk});var Ly=k(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.isEnoentCodeError=void 0;function eO(t){return t.code==="ENOENT"}Co.isEnoentCodeError=eO});var By=k(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createDirentFromStats=void 0;var ol=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function tO(t,e){return new ol(t,e)}Ro.createDirentFromStats=tO});var Iy=k(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.removeLeadingDotSegment=Nt.escape=Nt.makeAbsolute=Nt.unixify=void 0;var rO=require("path"),iO=2,nO=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function sO(t){return t.replace(/\\/g,"/")}Nt.unixify=sO;function oO(t,e){return rO.resolve(t,e)}Nt.makeAbsolute=oO;function aO(t){return t.replace(nO,"\\$2")}Nt.escape=aO;function uO(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(iO)}return t}Nt.removeLeadingDotSegment=uO});var My=k((TH,Ny)=>{Ny.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Hy=k((kH,qy)=>{var cO=My(),jy={"{":"}","(":")","[":"]"},lO=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=jy[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},hO=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=jy[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};qy.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(cO(e))return!0;var i=lO;return r&&r.strict===!1&&(i=hO),i(e)}});var $y=k((OH,Uy)=>{"use strict";var fO=Hy(),dO=require("path").posix.dirname,pO=require("os").platform()==="win32",al="/",mO=/\\/g,yO=/[\{\[].*[\}\]]$/,gO=/(^|[^\\])([\{\[]|\([^\)]+$)/,_O=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Uy.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&pO&&e.indexOf(al)<0&&(e=e.replace(mO,al)),yO.test(e)&&(e+=al),e+="a";do e=dO(e);while(fO(e)||gO.test(e));return e.replace(_O,"$1")}});var To=k(yt=>{"use strict";yt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;yt.find=(t,e)=>t.nodes.find(r=>r.type===e);yt.exceedsLimit=(t,e,r=1,i)=>i===!1||!yt.isInteger(t)||!yt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;yt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};yt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);yt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;yt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;yt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);yt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ko=k((PH,zy)=>{"use strict";var Gy=To();zy.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Gy.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Gy.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var Vy=k((LH,Wy)=>{"use strict";Wy.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var rg=k((BH,tg)=>{"use strict";var Yy=Vy(),hi=(t,e,r)=>{if(Yy(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Yy(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(hi.cache.hasOwnProperty(u))return hi.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=eg(t)||eg(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=Ky(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=Ky(c,l,f,i)),f.negatives=m,f.positives=d,f.result=bO(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),hi.cache[u]=f,f.result};function bO(t,e,r){let i=ul(t,e,"-",!1,r)||[],n=ul(e,t,"",!1,r)||[],s=ul(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function EO(t,e){let r=1,i=1,n=Jy(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Jy(t,r);for(n=Xy(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Xy(e+1,i)-1;return s=[...s],s.sort(SO),s}function wO(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=vO(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=DO(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ky(t,e,r,i){let n=EO(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=wO(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+Qy(a.count),o=c+1;continue}r.isPadded&&(h=xO(c,r,i)),l.string=h+l.pattern+Qy(l.count),s.push(l),o=c+1,a=l}return s}function ul(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Zy(e,"string",a)&&s.push(r+a),i&&Zy(e,"string",a)&&s.push(r+a)}return s}function vO(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function SO(t,e){return t>e?1:e>t?-1:0}function Zy(t,e,r){return t.some(i=>i[e]===r)}function Jy(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Xy(t,e){return t-t%Math.pow(10,e)}function Qy(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function DO(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function eg(t){return/^-?(0+)\d/.test(t)}function xO(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}hi.cache={};hi.clearCache=()=>hi.cache={};tg.exports=hi});var hl=k((IH,lg)=>{"use strict";var AO=require("util"),sg=rg(),ig=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),CO=t=>e=>t===!0?Number(e):String(e),cl=t=>typeof t=="number"||typeof t=="string"&&t!=="",hs=t=>Number.isInteger(+t),ll=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},RO=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,TO=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},ng=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},kO=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},og=(t,e,r,i)=>{if(r)return sg(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},ag=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return sg(t,e,r)},ug=(...t)=>new RangeError("Invalid range arguments: "+AO.inspect(...t)),cg=(t,e,r)=>{if(r.strictRanges===!0)throw ug([t,e]);return[]},OO=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},FO=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw ug([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=ll(a)||ll(u)||ll(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&RO(t,e,i)===!1,d=i.transform||CO(f);if(i.toRegex&&r===1)return og(ng(t,h),ng(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(TO(d(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?kO(m,i):ag(p,null,{wrap:!1,...i}):p},PO=(t,e,r=1,i={})=>{if(!hs(t)&&t.length>1||!hs(e)&&e.length>1)return cg(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return og(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?ag(l,null,{wrap:!1,options:i}):l},Oo=(t,e,r,i={})=>{if(e==null&&cl(t))return[t];if(!cl(t)||!cl(e))return cg(t,e,i);if(typeof r=="function")return Oo(t,e,1,{transform:r});if(ig(r))return Oo(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,hs(r)?hs(t)&&hs(e)?FO(t,e,r,n):PO(t,e,Math.max(Math.abs(r),1),n):r!=null&&!ig(r)?OO(r,n):Oo(t,e,1,r)};lg.exports=Oo});var dg=k((NH,fg)=>{"use strict";var LO=hl(),hg=To(),BO=(t,e={})=>{let r=(i,n={})=>{let s=hg.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=hg.reduce(i.nodes),h=LO(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};fg.exports=BO});var yg=k((MH,mg)=>{"use strict";var IO=hl(),pg=ko(),zi=To(),fi=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zi.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(fi(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?fi(n,s,r):n+s);return zi.flatten(i)},NO=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(fi(a.pop(),pg(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(fi(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=zi.reduce(n.nodes);if(zi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=IO(...h,e);f.length===0&&(f=pg(n,e)),a.push(fi(a.pop(),f)),n.nodes=[];return}let u=zi.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(fi(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(fi(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return zi.flatten(i(t))};mg.exports=NO});var _g=k((jH,gg)=>{"use strict";gg.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Sg=k((qH,vg)=>{"use strict";var MO=ko(),{MAX_LENGTH:bg,CHAR_BACKSLASH:fl,CHAR_BACKTICK:jO,CHAR_COMMA:qO,CHAR_DOT:HO,CHAR_LEFT_PARENTHESES:UO,CHAR_RIGHT_PARENTHESES:$O,CHAR_LEFT_CURLY_BRACE:GO,CHAR_RIGHT_CURLY_BRACE:zO,CHAR_LEFT_SQUARE_BRACKET:Eg,CHAR_RIGHT_SQUARE_BRACKET:wg,CHAR_DOUBLE_QUOTE:WO,CHAR_SINGLE_QUOTE:VO,CHAR_NO_BREAK_SPACE:YO,CHAR_ZERO_WIDTH_NOBREAK_SPACE:KO}=_g(),ZO=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(bg,r.maxLength):bg;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},m=()=>t[l++],y=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(y({type:"bos"});l<c;)if(o=s[s.length-1],f=m(),!(f===KO||f===YO)){if(f===fl){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===wg){y({type:"text",value:"\\"+f});continue}if(f===Eg){u++;let p=!0,w;for(;l<c&&(w=m());){if(f+=w,w===Eg){u++;continue}if(w===fl){f+=m();continue}if(w===wg&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===UO){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===$O){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===WO||f===VO||f===jO){let p=f,w;for(e.keepQuotes!==!0&&(f="");l<c&&(w=m());){if(w===fl){f+=w+m();continue}if(w===p){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===GO){h++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(w),s.push(o),y({type:"open",value:f});continue}if(f===zO){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===qO&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:MO(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===HO&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){p.pop();let w=p[p.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let p=s[s.length-1],w=p.nodes.indexOf(o);p.nodes.splice(w,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};vg.exports=ZO});var Ag=k((HH,xg)=>{"use strict";var Dg=ko(),JO=dg(),XO=yg(),QO=Sg(),ut=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=ut.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ut.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ut.parse=(t,e={})=>QO(t,e);ut.stringify=(t,e={})=>Dg(typeof t=="string"?ut.parse(t,e):t,e);ut.compile=(t,e={})=>(typeof t=="string"&&(t=ut.parse(t,e)),JO(t,e));ut.expand=(t,e={})=>{typeof t=="string"&&(t=ut.parse(t,e));let r=XO(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ut.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ut.compile(t,e):ut.expand(t,e);xg.exports=ut});var fs=k((UH,Og)=>{"use strict";var eF=require("path"),Mt="\\\\/",Cg=`[^${Mt}]`,sr="\\.",tF="\\+",rF="\\?",Fo="\\/",iF="(?=.)",Rg="[^/]",dl=`(?:${Fo}|$)`,Tg=`(?:^|${Fo})`,pl=`${sr}{1,2}${dl}`,nF=`(?!${sr})`,sF=`(?!${Tg}${pl})`,oF=`(?!${sr}{0,1}${dl})`,aF=`(?!${pl})`,uF=`[^.${Fo}]`,cF=`${Rg}*?`,kg={DOT_LITERAL:sr,PLUS_LITERAL:tF,QMARK_LITERAL:rF,SLASH_LITERAL:Fo,ONE_CHAR:iF,QMARK:Rg,END_ANCHOR:dl,DOTS_SLASH:pl,NO_DOT:nF,NO_DOTS:sF,NO_DOT_SLASH:oF,NO_DOTS_SLASH:aF,QMARK_NO_DOT:uF,STAR:cF,START_ANCHOR:Tg},lF={...kg,SLASH_LITERAL:`[${Mt}]`,QMARK:Cg,STAR:`${Cg}*?`,DOTS_SLASH:`${sr}{1,2}(?:[${Mt}]|$)`,NO_DOT:`(?!${sr})`,NO_DOTS:`(?!(?:^|[${Mt}])${sr}{1,2}(?:[${Mt}]|$))`,NO_DOT_SLASH:`(?!${sr}{0,1}(?:[${Mt}]|$))`,NO_DOTS_SLASH:`(?!${sr}{1,2}(?:[${Mt}]|$))`,QMARK_NO_DOT:`[^.${Mt}]`,START_ANCHOR:`(?:^|[${Mt}])`,END_ANCHOR:`(?:[${Mt}]|$)`},hF={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Og.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:hF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:eF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?lF:kg}}});var ds=k(rt=>{"use strict";var fF=require("path"),dF=process.platform==="win32",{REGEX_BACKSLASH:pF,REGEX_REMOVE_BACKSLASH:mF,REGEX_SPECIAL_CHARS:yF,REGEX_SPECIAL_CHARS_GLOBAL:gF}=fs();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>yF.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(gF,"\\$1");rt.toPosixSlashes=t=>t.replace(pF,"/");rt.removeBackslashes=t=>t.replace(mF,e=>e==="\\"?"":e);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:dF===!0||fF.sep==="\\";rt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?rt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};rt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};rt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var jg=k((GH,Mg)=>{"use strict";var Fg=ds(),{CHAR_ASTERISK:ml,CHAR_AT:_F,CHAR_BACKWARD_SLASH:ps,CHAR_COMMA:bF,CHAR_DOT:yl,CHAR_EXCLAMATION_MARK:gl,CHAR_FORWARD_SLASH:Ng,CHAR_LEFT_CURLY_BRACE:_l,CHAR_LEFT_PARENTHESES:bl,CHAR_LEFT_SQUARE_BRACKET:EF,CHAR_PLUS:wF,CHAR_QUESTION_MARK:Pg,CHAR_RIGHT_CURLY_BRACE:vF,CHAR_RIGHT_PARENTHESES:Lg,CHAR_RIGHT_SQUARE_BRACKET:SF}=fs(),Bg=t=>t===Ng||t===ps,Ig=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},DF=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,w=!1,C=!1,F=!1,P=!1,T=!1,M=0,S,D,H={value:"",depth:0,isGlob:!1},z=()=>c>=i,N=()=>u.charCodeAt(c+1),K=()=>(S=D,u.charCodeAt(++c));for(;c<i;){D=K();let B;if(D===ps){C=H.backslashes=!0,D=K(),D===_l&&(w=!0);continue}if(w===!0||D===_l){for(M++;z()!==!0&&(D=K());){if(D===ps){C=H.backslashes=!0,K();continue}if(D===_l){M++;continue}if(w!==!0&&D===yl&&(D=K())===yl){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(w!==!0&&D===bF){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===vF&&(M--,M===0)){w=!1,f=H.isBrace=!0,T=!0;break}}if(n===!0)continue;break}if(D===Ng){if(s.push(c),o.push(H),H={value:"",depth:0,isGlob:!1},T===!0)continue;if(S===yl&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===wF||D===_F||D===ml||D===Pg||D===gl)===!0&&N()===bl){if(m=H.isGlob=!0,y=H.isExtglob=!0,T=!0,D===gl&&c===l&&(P=!0),n===!0){for(;z()!==!0&&(D=K());){if(D===ps){C=H.backslashes=!0,D=K();continue}if(D===Lg){m=H.isGlob=!0,T=!0;break}}continue}break}if(D===ml){if(S===ml&&(p=H.isGlobstar=!0),m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===Pg){if(m=H.isGlob=!0,T=!0,n===!0)continue;break}if(D===EF){for(;z()!==!0&&(B=K());){if(B===ps){C=H.backslashes=!0,K();continue}if(B===SF){d=H.isBracket=!0,m=H.isGlob=!0,T=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&D===gl&&c===l){F=H.negated=!0,l++;continue}if(r.noparen!==!0&&D===bl){if(m=H.isGlob=!0,n===!0){for(;z()!==!0&&(D=K());){if(D===bl){C=H.backslashes=!0,D=K();continue}if(D===Lg){T=!0;break}}continue}break}if(m===!0){if(T=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let te=u,ne="",q="";l>0&&(ne=u.slice(0,l),u=u.slice(l),h-=l),te&&m===!0&&h>0?(te=u.slice(0,h),q=u.slice(h)):m===!0?(te="",q=u):te=u,te&&te!==""&&te!=="/"&&te!==u&&Bg(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(q&&(q=Fg.removeBackslashes(q)),te&&C===!0&&(te=Fg.removeBackslashes(te)));let L={prefix:ne,input:t,start:l,base:te,glob:q,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:F,negatedExtglob:P};if(r.tokens===!0&&(L.maxDepth=0,Bg(D)||o.push(H),L.tokens=o),r.parts===!0||r.tokens===!0){let B;for(let G=0;G<s.length;G++){let Z=B?B+1:l,j=s[G],g=t.slice(Z,j);r.tokens&&(G===0&&l!==0?(o[G].isPrefix=!0,o[G].value=ne):o[G].value=g,Ig(o[G]),L.maxDepth+=o[G].depth),(G!==0||g!=="")&&a.push(g),B=j}if(B&&B+1<t.length){let G=t.slice(B+1);a.push(G),r.tokens&&(o[o.length-1].value=G,Ig(o[o.length-1]),L.maxDepth+=o[o.length-1].depth)}L.slashes=s,L.parts=a}return L};Mg.exports=DF});var Ug=k((zH,Hg)=>{"use strict";var Po=fs(),ct=ds(),{MAX_LENGTH:Lo,POSIX_REGEX_SOURCE:xF,REGEX_NON_SPECIAL_CHARS:AF,REGEX_SPECIAL_CHARS_BACKREF:CF,REPLACEMENTS:qg}=Po,RF=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>ct.escapeRegex(n)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,El=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qg[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Lo,r.maxLength):Lo,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ct.isWindows(e),c=Po.globChars(u),l=Po.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:w,NO_DOTS_SLASH:C,QMARK:F,QMARK_NO_DOT:P,STAR:T,START_ANCHOR:M}=c,S=V=>`(${a}(?:(?!${M}${V.dot?y:h}).)*?)`,D=r.dot?"":p,H=r.dot?F:P,z=r.bash===!0?S(r):T;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let N={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ct.removePrefix(t,N),n=t.length;let K=[],te=[],ne=[],q=s,L,B=()=>N.index===n-1,G=N.peek=(V=1)=>t[N.index+V],Z=N.advance=()=>t[++N.index]||"",j=()=>t.slice(N.index+1),g=(V="",ue=0)=>{N.consumed+=V,N.index+=ue},_=V=>{N.output+=V.output!=null?V.output:V.value,g(V.value)},E=()=>{let V=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Z(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},R=V=>{N[V]++,ne.push(V)},x=V=>{N[V]--,ne.pop()},U=V=>{if(q.type==="globstar"){let ue=N.braces>0&&(V.type==="comma"||V.type==="brace"),J=V.extglob===!0||K.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!ue&&!J&&(N.output=N.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=z,N.output+=q.output)}if(K.length&&V.type!=="paren"&&(K[K.length-1].inner+=V.value),(V.value||V.output)&&_(V),q&&q.type==="text"&&V.type==="text"){q.value+=V.value,q.output=(q.output||"")+V.value;return}V.prev=q,o.push(V),q=V},$=(V,ue)=>{let J={...l[ue],conditions:1,inner:""};J.prev=q,J.parens=N.parens,J.output=N.output;let v=(r.capture?"(":"")+J.open;R("parens"),U({type:V,value:ue,output:N.output?"":m}),U({type:"paren",extglob:!0,value:Z(),output:v}),K.push(J)},re=V=>{let ue=V.close+(r.capture?")":""),J;if(V.type==="negate"){let v=z;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(v=S(r)),(v!==z||B()||/^\)+$/.test(j()))&&(ue=V.close=`)$))${v}`),V.inner.includes("*")&&(J=j())&&/^\.[^\\/.]+$/.test(J)){let I=El(J,{...e,fastpaths:!1}).output;ue=V.close=`)${I})${v})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:L,output:ue}),x("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let V=!1,ue=t.replace(CF,(J,v,I,A,X,b)=>A==="\\"?(V=!0,J):A==="?"?v?v+A+(X?F.repeat(X.length):""):b===0?H+(X?F.repeat(X.length):""):F.repeat(I.length):A==="."?h.repeat(I.length):A==="*"?v?v+A+(X?z:""):z:v?J:`\\${J}`);return V===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),ue===t&&r.contains===!0?(N.output=t,N):(N.output=ct.wrapOutput(ue,N,e),N)}for(;!B();){if(L=Z(),L==="\0")continue;if(L==="\\"){let J=G();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){L+="\\",U({type:"text",value:L});continue}let v=/^\\+/.exec(j()),I=0;if(v&&v[0].length>2&&(I=v[0].length,N.index+=I,I%2!==0&&(L+="\\")),r.unescape===!0?L=Z():L+=Z(),N.brackets===0){U({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||q.value==="["||q.value==="[^")){if(r.posix!==!1&&L===":"){let J=q.value.slice(1);if(J.includes("[")&&(q.posix=!0,J.includes(":"))){let v=q.value.lastIndexOf("["),I=q.value.slice(0,v),A=q.value.slice(v+2),X=xF[A];if(X){q.value=I+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(q)===1&&(s.output=m);continue}}}(L==="["&&G()!==":"||L==="-"&&G()==="]")&&(L=`\\${L}`),L==="]"&&(q.value==="["||q.value==="[^")&&(L=`\\${L}`),r.posix===!0&&L==="!"&&q.value==="["&&(L="^"),q.value+=L,_({value:L});continue}if(N.quotes===1&&L!=='"'){L=ct.escapeRegex(L),q.value+=L,_({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&U({type:"text",value:L});continue}if(L==="("){R("parens"),U({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wi("opening","("));let J=K[K.length-1];if(J&&N.parens===J.parens+1){re(K.pop());continue}U({type:"paren",value:L,output:N.parens?")":"\\)"}),x("parens");continue}if(L==="["){if(r.nobracket===!0||!j().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));L=`\\${L}`}else R("brackets");U({type:"bracket",value:L});continue}if(L==="]"){if(r.nobracket===!0||q&&q.type==="bracket"&&q.value.length===1){U({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));U({type:"text",value:L,output:`\\${L}`});continue}x("brackets");let J=q.value.slice(1);if(q.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(L=`/${L}`),q.value+=L,_({value:L}),r.literalBrackets===!1||ct.hasRegexChars(J))continue;let v=ct.escapeRegex(q.value);if(N.output=N.output.slice(0,-q.value.length),r.literalBrackets===!0){N.output+=v,q.value=v;continue}q.value=`(${a}${v}|${q.value})`,N.output+=q.value;continue}if(L==="{"&&r.nobrace!==!0){R("braces");let J={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};te.push(J),U(J);continue}if(L==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){U({type:"text",value:L,output:L});continue}let v=")";if(J.dots===!0){let I=o.slice(),A=[];for(let X=I.length-1;X>=0&&(o.pop(),I[X].type!=="brace");X--)I[X].type!=="dots"&&A.unshift(I[X].value);v=RF(A,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let I=N.output.slice(0,J.outputIndex),A=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",L=v="\\}",N.output=I;for(let X of A)N.output+=X.output||X.value}U({type:"brace",value:L,output:v}),x("braces"),te.pop();continue}if(L==="|"){K.length>0&&K[K.length-1].conditions++,U({type:"text",value:L});continue}if(L===","){let J=L,v=te[te.length-1];v&&ne[ne.length-1]==="braces"&&(v.comma=!0,J="|"),U({type:"comma",value:L,output:J});continue}if(L==="/"){if(q.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),q=s;continue}U({type:"slash",value:L,output:d});continue}if(L==="."){if(N.braces>0&&q.type==="dot"){q.value==="."&&(q.output=h);let J=te[te.length-1];q.type="dots",q.output+=L,q.value+=L,J.dots=!0;continue}if(N.braces+N.parens===0&&q.type!=="bos"&&q.type!=="slash"){U({type:"text",value:L,output:h});continue}U({type:"dot",value:L,output:h});continue}if(L==="?"){if(!(q&&q.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("qmark",L);continue}if(q&&q.type==="paren"){let v=G(),I=L;if(v==="<"&&!ct.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(q.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(j()))&&(I=`\\${L}`),U({type:"text",value:L,output:I});continue}if(r.dot!==!0&&(q.type==="slash"||q.type==="bos")){U({type:"qmark",value:L,output:P});continue}U({type:"qmark",value:L,output:F});continue}if(L==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){$("negate",L);continue}if(r.nonegate!==!0&&N.index===0){E();continue}}if(L==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("plus",L);continue}if(q&&q.value==="("||r.regex===!1){U({type:"plus",value:L,output:f});continue}if(q&&(q.type==="bracket"||q.type==="paren"||q.type==="brace")||N.parens>0){U({type:"plus",value:L});continue}U({type:"plus",value:f});continue}if(L==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){U({type:"at",extglob:!0,value:L,output:""});continue}U({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let J=AF.exec(j());J&&(L+=J[0],N.index+=J[0].length),U({type:"text",value:L});continue}if(q&&(q.type==="globstar"||q.star===!0)){q.type="star",q.star=!0,q.value+=L,q.output=z,N.backtrack=!0,N.globstar=!0,g(L);continue}let V=j();if(r.noextglob!==!0&&/^\([^?]/.test(V)){$("star",L);continue}if(q.type==="star"){if(r.noglobstar===!0){g(L);continue}let J=q.prev,v=J.prev,I=J.type==="slash"||J.type==="bos",A=v&&(v.type==="star"||v.type==="globstar");if(r.bash===!0&&(!I||V[0]&&V[0]!=="/")){U({type:"star",value:L,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=K.length&&(J.type==="pipe"||J.type==="paren");if(!I&&J.type!=="paren"&&!X&&!b){U({type:"star",value:L,output:""});continue}for(;V.slice(0,3)==="/**";){let W=t[N.index+4];if(W&&W!=="/")break;V=V.slice(3),g("/**",3)}if(J.type==="bos"&&B()){q.type="globstar",q.value+=L,q.output=S(r),N.output=q.output,N.globstar=!0,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!A&&B()){N.output=N.output.slice(0,-(J.output+q.output).length),J.output=`(?:${J.output}`,q.type="globstar",q.output=S(r)+(r.strictSlashes?")":"|$)"),q.value+=L,N.globstar=!0,N.output+=J.output+q.output,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&V[0]==="/"){let W=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(J.output+q.output).length),J.output=`(?:${J.output}`,q.type="globstar",q.output=`${S(r)}${d}|${d}${W})`,q.value+=L,N.output+=J.output+q.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&V[0]==="/"){q.type="globstar",q.value+=L,q.output=`(?:^|${d}|${S(r)}${d})`,N.output=q.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-q.output.length),q.type="globstar",q.output=S(r),q.value+=L,N.output+=q.output,N.globstar=!0,g(L);continue}let ue={type:"star",value:L,output:z};if(r.bash===!0){ue.output=".*?",(q.type==="bos"||q.type==="slash")&&(ue.output=D+ue.output),U(ue);continue}if(q&&(q.type==="bracket"||q.type==="paren")&&r.regex===!0){ue.output=L,U(ue);continue}(N.index===N.start||q.type==="slash"||q.type==="dot")&&(q.type==="dot"?(N.output+=w,q.output+=w):r.dot===!0?(N.output+=C,q.output+=C):(N.output+=D,q.output+=D),G()!=="*"&&(N.output+=m,q.output+=m)),U(ue)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));N.output=ct.escapeLast(N.output,"["),x("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));N.output=ct.escapeLast(N.output,"("),x("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));N.output=ct.escapeLast(N.output,"{"),x("braces")}if(r.strictSlashes!==!0&&(q.type==="star"||q.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${d}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};El.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Lo,r.maxLength):Lo,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=qg[t]||t;let s=ct.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Po.globChars(s),y=r.dot?h:l,p=r.dot?f:l,w=r.capture?"":"?:",C={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let P=D=>D.noglobstar===!0?F:`(${w}(?:(?!${m}${D.dot?c:o}).)*?)`,T=D=>{switch(D){case"*":return`${y}${u}${F}`;case".*":return`${o}${u}${F}`;case"*.*":return`${y}${F}${o}${u}${F}`;case"*/*":return`${y}${F}${a}${u}${p}${F}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${p}${u}${F}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${p}${F}${o}${u}${F}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${F}`;default:{let H=/^(.*?)\.(\w+)$/.exec(D);if(!H)return;let z=T(H[1]);return z?z+o+H[2]:void 0}}},M=ct.removePrefix(t,C),S=T(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};Hg.exports=El});var Gg=k((WH,$g)=>{"use strict";var TF=require("path"),kF=jg(),wl=Ug(),vl=ds(),OF=fs(),FF=t=>t&&typeof t=="object"&&!Array.isArray(t),Ce=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ce(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=FF(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=vl.isWindows(e),o=i?Ce.compileRe(t,e):Ce.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ce(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ce.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ce.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?vl.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(t,e,r,i=vl.isWindows(r))=>(e instanceof RegExp?e:Ce.makeRe(e,r)).test(TF.basename(t));Ce.isMatch=(t,e,r)=>Ce(e,r)(t);Ce.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ce.parse(r,e)):wl(t,{...e,fastpaths:!1});Ce.scan=(t,e)=>kF(t,e);Ce.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,e);return i===!0&&(u.state=t),u};Ce.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=wl.fastpaths(t,e)),n.output||(n=wl(t,e)),Ce.compileRe(n,e,r,i)};Ce.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Ce.constants=OF;$g.exports=Ce});var Wg=k((VH,zg)=>{"use strict";zg.exports=Gg()});var Jg=k((YH,Zg)=>{"use strict";var Yg=require("util"),Kg=Ag(),jt=Wg(),Sl=ds(),Vg=t=>t===""||t==="./",xe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let h=jt(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};xe.match=xe;xe.matcher=(t,e)=>jt(t,e);xe.isMatch=(t,e,r)=>jt(e,r)(t);xe.any=xe.isMatch;xe.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(xe(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};xe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yg.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>xe.contains(t,i,r));if(typeof e=="string"){if(Vg(t)||Vg(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return xe.isMatch(t,e,{...r,contains:!0})};xe.matchKeys=(t,e,r)=>{if(!Sl.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=xe(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};xe.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=jt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};xe.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=jt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};xe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yg.inspect(t)}"`);return[].concat(e).every(i=>jt(i,r)(t))};xe.capture=(t,e,r)=>{let i=Sl.isWindows(r),s=jt.makeRe(String(t),{...r,capture:!0}).exec(i?Sl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};xe.makeRe=(...t)=>jt.makeRe(...t);xe.scan=(...t)=>jt.scan(...t);xe.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Kg(String(i),e))r.push(jt.parse(n,e));return r};xe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Kg(t,e)};xe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return xe.braces(t,{...e,expand:!0})};Zg.exports=xe});var s_=k(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.matchAny=de.convertPatternsToRe=de.makeRe=de.getPatternParts=de.expandBraceExpansion=de.expandPatternsWithBraceExpansion=de.isAffectDepthOfReadingPattern=de.endsWithSlashGlobStar=de.hasGlobStar=de.getBaseDirectory=de.isPatternRelatedToParentDirectory=de.getPatternsOutsideCurrentDirectory=de.getPatternsInsideCurrentDirectory=de.getPositivePatterns=de.getNegativePatterns=de.isPositivePattern=de.isNegativePattern=de.convertToNegativePattern=de.convertToPositivePattern=de.isDynamicPattern=de.isStaticPattern=void 0;var PF=require("path"),LF=$y(),Dl=Jg(),Xg="**",BF="\\",IF=/[*?]|^!/,NF=/\[[^[]*]/,MF=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,jF=/[!*+?@]\([^(]*\)/,qF=/,|\.\./;function Qg(t,e={}){return!e_(t,e)}de.isStaticPattern=Qg;function e_(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(BF)||IF.test(t)||NF.test(t)||MF.test(t)||e.extglob!==!1&&jF.test(t)||e.braceExpansion!==!1&&HF(t))}de.isDynamicPattern=e_;function HF(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return qF.test(i)}function UF(t){return Bo(t)?t.slice(1):t}de.convertToPositivePattern=UF;function $F(t){return"!"+t}de.convertToNegativePattern=$F;function Bo(t){return t.startsWith("!")&&t[1]!=="("}de.isNegativePattern=Bo;function t_(t){return!Bo(t)}de.isPositivePattern=t_;function GF(t){return t.filter(Bo)}de.getNegativePatterns=GF;function zF(t){return t.filter(t_)}de.getPositivePatterns=zF;function WF(t){return t.filter(e=>!xl(e))}de.getPatternsInsideCurrentDirectory=WF;function VF(t){return t.filter(xl)}de.getPatternsOutsideCurrentDirectory=VF;function xl(t){return t.startsWith("..")||t.startsWith("./..")}de.isPatternRelatedToParentDirectory=xl;function YF(t){return LF(t,{flipBackslashes:!1})}de.getBaseDirectory=YF;function KF(t){return t.includes(Xg)}de.hasGlobStar=KF;function r_(t){return t.endsWith("/"+Xg)}de.endsWithSlashGlobStar=r_;function ZF(t){let e=PF.basename(t);return r_(t)||Qg(e)}de.isAffectDepthOfReadingPattern=ZF;function JF(t){return t.reduce((e,r)=>e.concat(i_(r)),[])}de.expandPatternsWithBraceExpansion=JF;function i_(t){return Dl.braces(t,{expand:!0,nodupes:!0})}de.expandBraceExpansion=i_;function XF(t,e){let{parts:r}=Dl.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}de.getPatternParts=XF;function n_(t,e){return Dl.makeRe(t,e)}de.makeRe=n_;function QF(t,e){return t.map(r=>n_(r,e))}de.convertPatternsToRe=QF;function eP(t,e){return e.some(r=>r.test(t))}de.matchAny=eP});var c_=k((ZH,u_)=>{"use strict";var tP=require("stream"),o_=tP.PassThrough,rP=Array.prototype.slice;u_.exports=iP;function iP(){let t=[],e=rP.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=o_(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(a_(arguments[l],i));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function a_(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=a_(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(o_(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var h_=k(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.merge=void 0;var nP=c_();function sP(t){let e=nP(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>l_(t)),e.once("end",()=>l_(t)),e}Io.merge=sP;function l_(t){t.forEach(e=>e.emit("close"))}});var f_=k(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isEmpty=Vi.isString=void 0;function oP(t){return typeof t=="string"}Vi.isString=oP;function aP(t){return t===""}Vi.isEmpty=aP});var or=k(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.string=Ge.stream=Ge.pattern=Ge.path=Ge.fs=Ge.errno=Ge.array=void 0;var uP=Py();Ge.array=uP;var cP=Ly();Ge.errno=cP;var lP=By();Ge.fs=lP;var hP=Iy();Ge.path=hP;var fP=s_();Ge.pattern=fP;var dP=h_();Ge.stream=dP;var pP=f_();Ge.string=pP});var m_=k(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var ar=or();function mP(t,e){let r=d_(t),i=p_(t,e.ignore),n=r.filter(u=>ar.pattern.isStaticPattern(u,e)),s=r.filter(u=>ar.pattern.isDynamicPattern(u,e)),o=Al(n,i,!1),a=Al(s,i,!0);return o.concat(a)}ze.generate=mP;function Al(t,e,r){let i=[],n=ar.pattern.getPatternsOutsideCurrentDirectory(t),s=ar.pattern.getPatternsInsideCurrentDirectory(t),o=Cl(n),a=Cl(s);return i.push(...Rl(o,e,r)),"."in a?i.push(Tl(".",s,e,r)):i.push(...Rl(a,e,r)),i}ze.convertPatternsToTasks=Al;function d_(t){return ar.pattern.getPositivePatterns(t)}ze.getPositivePatterns=d_;function p_(t,e){return ar.pattern.getNegativePatterns(t).concat(e).map(ar.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=p_;function Cl(t){let e={};return t.reduce((r,i)=>{let n=ar.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ze.groupPatternsByBaseDirectory=Cl;function Rl(t,e,r){return Object.keys(t).map(i=>Tl(i,t[i],e,r))}ze.convertPatternGroupsToTasks=Rl;function Tl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ar.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Tl});var g_=k(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var yP=/(?!^)\/{2,}/g;function gP(t){return t.map(e=>y_(e))}Yi.transform=gP;function y_(t){return t.replace(yP,"/")}Yi.removeDuplicateSlashes=y_});var b_=k(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.read=void 0;function _P(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){__(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){kl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){__(r,s);return}kl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),kl(r,o)})})}No.read=_P;function __(t,e){t(e)}function kl(t,e){t(null,e)}});var E_=k(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.read=void 0;function bP(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Mo.read=bP});var w_=k(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var jo=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:jo.lstat,stat:jo.stat,lstatSync:jo.lstatSync,statSync:jo.statSync};function EP(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=EP});var v_=k(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var wP=w_(),Ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=wP.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Fl.default=Ol});var di=k(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.statSync=Fr.stat=Fr.Settings=void 0;var S_=b_(),vP=E_(),Pl=v_();Fr.Settings=Pl.default;function SP(t,e,r){if(typeof e=="function"){S_.read(t,Ll(),e);return}S_.read(t,Ll(e),r)}Fr.stat=SP;function DP(t,e){let r=Ll(e);return vP.read(t,r)}Fr.statSync=DP;function Ll(t={}){return t instanceof Pl.default?t:new Pl.default(t)}});var A_=k((a4,x_)=>{var D_;x_.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(D_||(D_=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var R_=k((u4,C_)=>{C_.exports=AP;var xP=A_();function AP(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?xP(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var Bl=k(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var qo=process.versions.node.split(".");if(qo[0]===void 0||qo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var T_=Number.parseInt(qo[0],10),CP=Number.parseInt(qo[1],10),k_=10,RP=10,TP=T_>k_,kP=T_===k_&&CP>=RP;Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=TP||kP});var O_=k(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.createDirentFromStats=void 0;var Il=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function OP(t,e){return new Il(t,e)}Uo.createDirentFromStats=OP});var Nl=k($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.fs=void 0;var FP=O_();$o.fs=FP});var Ml=k(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.joinPathSegments=void 0;function PP(t,e,r){return t.endsWith(r)?t+e:t+r+e}Go.joinPathSegments=PP});var N_=k(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.readdir=Pr.readdirWithFileTypes=Pr.read=void 0;var LP=di(),F_=R_(),BP=Bl(),P_=Nl(),L_=Ml();function IP(t,e,r){if(!e.stats&&BP.IS_SUPPORT_READDIR_WITH_FILE_TYPES){B_(t,e,r);return}I_(t,e,r)}Pr.read=IP;function B_(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){zo(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:L_.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){jl(r,s);return}let o=s.map(a=>NP(a,e));F_(o,(a,u)=>{if(a!==null){zo(r,a);return}jl(r,u)})})}Pr.readdirWithFileTypes=B_;function NP(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=P_.fs.createDirentFromStats(t.name,n),r(null,t)})}}function I_(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){zo(r,i);return}let s=n.map(o=>{let a=L_.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{LP.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:P_.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});F_(s,(o,a)=>{if(o!==null){zo(r,o);return}jl(r,a)})})}Pr.readdir=I_;function zo(t,e){t(e)}function jl(t,e){t(null,e)}});var U_=k(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.readdir=Lr.readdirWithFileTypes=Lr.read=void 0;var MP=di(),jP=Bl(),M_=Nl(),j_=Ml();function qP(t,e){return!e.stats&&jP.IS_SUPPORT_READDIR_WITH_FILE_TYPES?q_(t,e):H_(t,e)}Lr.read=qP;function q_(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:j_.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=M_.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Lr.readdirWithFileTypes=q_;function H_(t,e){return e.fs.readdirSync(t).map(i=>{let n=j_.joinPathSegments(t,i,e.pathSegmentSeparator),s=MP.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:M_.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Lr.readdir=H_});var $_=k(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.createFileSystemAdapter=Br.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");Br.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function HP(t){return t===void 0?Br.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Br.FILE_SYSTEM_ADAPTER),t)}Br.createFileSystemAdapter=HP});var G_=k(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var UP=require("path"),$P=di(),GP=$_(),ql=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=GP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,UP.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $P.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Hl.default=ql});var Wo=k(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.Settings=Ir.scandirSync=Ir.scandir=void 0;var z_=N_(),zP=U_(),Ul=G_();Ir.Settings=Ul.default;function WP(t,e,r){if(typeof e=="function"){z_.read(t,$l(),e);return}z_.read(t,$l(e),r)}Ir.scandir=WP;function VP(t,e){let r=$l(e);return zP.read(t,r)}Ir.scandirSync=VP;function $l(t={}){return t instanceof Ul.default?t:new Ul.default(t)}});var V_=k((_4,W_)=>{"use strict";function YP(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}W_.exports=YP});var K_=k((b4,Gl)=>{"use strict";var KP=V_();function Y_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=KP(ZP),n=null,s=null,o=0,a=null,u={push:y,drain:gt,saturated:gt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:gt,kill:C,killAndDrain:F,error:P};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var T=n,M=0;T;)T=T.next,M++;return M}function f(){for(var T=n,M=[];T;)M.push(T.value),T=T.next;return M}function d(){if(u.paused){u.paused=!1;for(var T=0;T<u.concurrency;T++)o++,w()}}function m(){return o===0&&u.length()===0}function y(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||gt,S.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=S,s=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function p(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||gt,o===u.concurrency||u.paused?n?(S.next=n,n=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function w(T){T&&i.release(T);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=gt}function F(){n=null,s=null,u.drain(),u.drain=gt}function P(T){a=T}}function gt(){}function ZP(){this.value=null,this.callback=gt,this.next=null,this.release=gt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=gt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function JP(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=Y_(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(gt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(gt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Gl.exports=Y_;Gl.exports.promise=JP});var Vo=k(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.joinPathSegments=qt.replacePathSegmentSeparator=qt.isAppliedFilter=qt.isFatalError=void 0;function XP(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}qt.isFatalError=XP;function QP(t,e){return t===null||t(e)}qt.isAppliedFilter=QP;function e2(t,e){return t.split(/[/\\]/).join(e)}qt.replacePathSegmentSeparator=e2;function t2(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}qt.joinPathSegments=t2});var Vl=k(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var r2=Vo(),zl=class{constructor(e,r){this._root=e,this._settings=r,this._root=r2.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Wl.default=zl});var Zl=k(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var i2=require("events"),n2=Wo(),s2=K_(),Yo=Vo(),o2=Vl(),Yl=class extends o2.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=n2.scandir,this._emitter=new i2.EventEmitter,this._queue=s2(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Yo.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Yo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Yo.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Yo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Kl.default=Yl});var Z_=k(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var a2=Zl(),Jl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new a2.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{u2(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{c2(e,this._storage)}),this._reader.read()}};Xl.default=Jl;function u2(t,e){t(e)}function c2(t,e){t(null,e)}});var J_=k(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var l2=require("stream"),h2=Zl(),Ql=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new h2.default(this._root,this._settings),this._stream=new l2.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};eh.default=Ql});var X_=k(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var f2=Wo(),Ko=Vo(),d2=Vl(),th=class extends d2.default{constructor(){super(...arguments),this._scandir=f2.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Ko.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ko.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};rh.default=th});var Q_=k(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var p2=X_(),ih=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new p2.default(this._root,this._settings)}read(){return this._reader.read()}};nh.default=ih});var eb=k(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var m2=require("path"),y2=Wo(),sh=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,m2.sep),this.fsScandirSettings=new y2.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};oh.default=sh});var Jo=k(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Settings=Ht.walkStream=Ht.walkSync=Ht.walk=void 0;var tb=Z_(),g2=J_(),_2=Q_(),ah=eb();Ht.Settings=ah.default;function b2(t,e,r){if(typeof e=="function"){new tb.default(t,Zo()).read(e);return}new tb.default(t,Zo(e)).read(r)}Ht.walk=b2;function E2(t,e){let r=Zo(e);return new _2.default(t,r).read()}Ht.walkSync=E2;function w2(t,e){let r=Zo(e);return new g2.default(t,r).read()}Ht.walkStream=w2;function Zo(t={}){return t instanceof ah.default?t:new ah.default(t)}});var Xo=k(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var v2=require("path"),S2=di(),rb=or(),uh=class{constructor(e){this._settings=e,this._fsStatSettings=new S2.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return v2.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:rb.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!rb.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ch.default=uh});var fh=k(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var D2=require("stream"),x2=di(),A2=Jo(),C2=Xo(),lh=class extends C2.default{constructor(){super(...arguments),this._walkStream=A2.walkStream,this._stat=x2.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new D2.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};hh.default=lh});var ib=k(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var R2=Jo(),T2=Xo(),k2=fh(),dh=class extends T2.default{constructor(){super(...arguments),this._walkAsync=R2.walk,this._readerStream=new k2.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};ph.default=dh});var nb=k(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var Zi=or(),mh=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Zi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Zi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};yh.default=mh});var sb=k(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var O2=nb(),gh=class extends O2.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};_h.default=gh});var ob=k(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var Qo=or(),F2=sb(),bh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new F2.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Qo.pattern.isAffectDepthOfReadingPattern);return Qo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Qo.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Qo.pattern.matchAny(e,r)}};Eh.default=bh});var ab=k(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var pi=or(),wh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=pi.pattern.convertPatternsToRe(e,this._micromatchOptions),n=pi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=pi.path.makeAbsolute(this._settings.cwd,e);return pi.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=pi.path.removeLeadingDotSegment(e),s=pi.pattern.matchAny(n,r);return!s&&i?pi.pattern.matchAny(n+"/",r):s}};vh.default=wh});var ub=k(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var P2=or(),Sh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return P2.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Dh.default=Sh});var lb=k(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var cb=or(),xh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=cb.path.makeAbsolute(this._settings.cwd,r),r=cb.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Ah.default=xh});var ea=k(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var L2=require("path"),B2=ob(),I2=ab(),N2=ub(),M2=lb(),Ch=class{constructor(e){this._settings=e,this.errorFilter=new N2.default(this._settings),this.entryFilter=new I2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new B2.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new M2.default(this._settings)}_getRootDirectory(e){return L2.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Rh.default=Ch});var hb=k(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var j2=ib(),q2=ea(),Th=class extends q2.default{constructor(){super(...arguments),this._reader=new j2.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};kh.default=Th});var fb=k(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var H2=require("stream"),U2=fh(),$2=ea(),Oh=class extends $2.default{constructor(){super(...arguments),this._reader=new U2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new H2.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Fh.default=Oh});var db=k(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var G2=di(),z2=Jo(),W2=Xo(),Ph=class extends W2.default{constructor(){super(...arguments),this._walkSync=z2.walkSync,this._statSync=G2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Lh.default=Ph});var pb=k(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var V2=db(),Y2=ea(),Bh=class extends Y2.default{constructor(){super(...arguments),this._reader=new V2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ih.default=Bh});var mb=k(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),K2=require("os"),Z2=Math.max(K2.cpus().length,1);Xi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ji.lstat,lstatSync:Ji.lstatSync,stat:Ji.stat,statSync:Ji.statSync,readdir:Ji.readdir,readdirSync:Ji.readdirSync};var Nh=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Z2),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Xi.default=Nh});var ta=k((G4,_b)=>{"use strict";var yb=m_(),gb=g_(),J2=hb(),X2=fb(),Q2=pb(),Mh=mb(),mi=or();async function jh(t,e){Qi(t);let r=qh(t,J2.default,e),i=await Promise.all(r);return mi.array.flatten(i)}(function(t){function e(o,a){Qi(o);let u=qh(o,Q2.default,a);return mi.array.flatten(u)}t.sync=e;function r(o,a){Qi(o);let u=qh(o,X2.default,a);return mi.stream.merge(u)}t.stream=r;function i(o,a){Qi(o);let u=gb.transform([].concat(o)),c=new Mh.default(a);return yb.generate(u,c)}t.generateTasks=i;function n(o,a){Qi(o);let u=new Mh.default(a);return mi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return Qi(o),mi.path.escape(o)}t.escapePath=s})(jh||(jh={}));function qh(t,e,r){let i=gb.transform([].concat(t)),n=new Mh.default(r),s=yb.generate(i,n),o=new e(n);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(i=>mi.string.isString(i)&&!mi.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}_b.exports=jh});var Eb=k((z4,Hh)=>{"use strict";var bb=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Hh.exports=bb;Hh.exports.default=bb});var Uh=k((W4,ia)=>{"use strict";var eL=Eb(),ra=new WeakMap,wb=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(ra.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return eL(s,t),ra.set(s,i),s};ia.exports=wb;ia.exports.default=wb;ia.exports.callCount=t=>{if(!ra.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ra.get(t)}});var vb=k((V4,na)=>{na.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&na.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&na.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var zh=k((Y4,rn)=>{var Ae=global.process,yi=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};yi(Ae)?(Sb=require("assert"),en=vb(),Db=/^win/i.test(Ae.platform),ms=require("events"),typeof ms!="function"&&(ms=ms.EventEmitter),Ae.__signal_exit_emitter__?Be=Ae.__signal_exit_emitter__:(Be=Ae.__signal_exit_emitter__=new ms,Be.count=0,Be.emitted={}),Be.infinite||(Be.setMaxListeners(1/0),Be.infinite=!0),rn.exports=function(t,e){if(!yi(global.process))return function(){};Sb.equal(typeof t,"function","a callback must be provided for exit handler"),tn===!1&&$h();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Be.removeListener(r,t),Be.listeners("exit").length===0&&Be.listeners("afterexit").length===0&&sa()};return Be.on(r,t),i},sa=function(){!tn||!yi(global.process)||(tn=!1,en.forEach(function(e){try{Ae.removeListener(e,oa[e])}catch{}}),Ae.emit=aa,Ae.reallyExit=Gh,Be.count-=1)},rn.exports.unload=sa,gi=function(e,r,i){Be.emitted[e]||(Be.emitted[e]=!0,Be.emit(e,r,i))},oa={},en.forEach(function(t){oa[t]=function(){if(yi(global.process)){var r=Ae.listeners(t);r.length===Be.count&&(sa(),gi("exit",null,t),gi("afterexit",null,t),Db&&t==="SIGHUP"&&(t="SIGINT"),Ae.kill(Ae.pid,t))}}}),rn.exports.signals=function(){return en},tn=!1,$h=function(){tn||!yi(global.process)||(tn=!0,Be.count+=1,en=en.filter(function(e){try{return Ae.on(e,oa[e]),!0}catch{return!1}}),Ae.emit=Ab,Ae.reallyExit=xb)},rn.exports.load=$h,Gh=Ae.reallyExit,xb=function(e){yi(global.process)&&(Ae.exitCode=e||0,gi("exit",Ae.exitCode,null),gi("afterexit",Ae.exitCode,null),Gh.call(Ae,Ae.exitCode))},aa=Ae.emit,Ab=function(e,r){if(e==="exit"&&yi(global.process)){r!==void 0&&(Ae.exitCode=r);var i=aa.apply(this,arguments);return gi("exit",Ae.exitCode,null),gi("afterexit",Ae.exitCode,null),i}else return aa.apply(this,arguments)}):rn.exports=function(){return function(){}};var Sb,en,Db,ms,Be,sa,gi,oa,tn,$h,Gh,xb,aa,Ab});var Rb=k((K4,Cb)=>{"use strict";var tL=Uh(),rL=zh();Cb.exports=tL(()=>{rL(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Tb=k(nn=>{"use strict";var iL=Rb(),ua=!1;nn.show=(t=process.stderr)=>{t.isTTY&&(ua=!1,t.write("\x1B[?25h"))};nn.hide=(t=process.stderr)=>{t.isTTY&&(iL(),ua=!0,t.write("\x1B[?25l"))};nn.toggle=(t,e)=>{t!==void 0&&(ua=t),ua?nn.show(e):nn.hide(e)}});var kb=k((J4,nL)=>{nL.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var Pb=k((X4,Fb)=>{"use strict";var ca=Object.assign({},kb()),Ob=Object.keys(ca);Object.defineProperty(ca,"random",{get(){let t=Math.floor(Math.random()*Ob.length),e=Ob[t];return ca[e]}});Fb.exports=ca});var Bb=k((Q4,Lb)=>{"use strict";var Nr=require("chalk"),sL=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",oL={info:Nr.blue("\u2139"),success:Nr.green("\u2714"),warning:Nr.yellow("\u26A0"),error:Nr.red("\u2716")},aL={info:Nr.blue("i"),success:Nr.green("\u221A"),warning:Nr.yellow("\u203C"),error:Nr.red("\xD7")};Lb.exports=sL?oL:aL});var Nb=k((e9,Ib)=>{"use strict";Ib.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var jb=k((t9,Mb)=>{"use strict";var uL=Nb();Mb.exports=t=>typeof t=="string"?t.replace(uL(),""):t});var qb=k((r9,la)=>{var cL=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var w,C;if(typeof y!="object")return y;if(t.__isArray(y))w=[];else if(t.__isRegExp(y))w=new RegExp(y.source,s(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(t.__isDate(y))w=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof c=="undefined"?(C=Object.getPrototypeOf(y),w=Object.create(C)):(w=Object.create(c),C=c)}if(a){var F=h.indexOf(y);if(F!=-1)return f[F];h.push(y),f.push(w)}for(var P in y){var T;C&&(T=Object.getOwnPropertyDescriptor(C,P)),!(T&&T.set==null)&&(w[P]=m(y[P],p-1))}return w}return m(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof la=="object"&&la.exports&&(la.exports=cL)});var Ub=k((i9,Hb)=>{var lL=qb();Hb.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=lL(e[r]))}),t}});var Gb=k((n9,$b)=>{$b.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Yb=k((s9,Wh)=>{"use strict";var hL=Ub(),ys=Gb(),Wb={nul:0,control:0};Wh.exports=function(e){return Vb(e,Wb)};Wh.exports.config=function(t){return t=hL(t||{},Wb),function(r){return Vb(r,t)}};function Vb(t,e){if(typeof t!="string")return zb(t,e);for(var r=0,i=0;i<t.length;i++){var n=zb(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function zb(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:fL(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function fL(t){var e=0,r=ys.length-1,i;if(t<ys[0][0]||t>ys[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>ys[i][1])e=i+1;else if(t<ys[i][0])r=i-1;else return!0;return!1}});var Zb=k((o9,Kb)=>{"use strict";Kb.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Xb=k((a9,Jb)=>{var Vh=require("stream");Jb.exports=Ie;function Ie(t){Vh.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ie.prototype=Object.create(Vh.prototype);Object.defineProperty(Ie.prototype,"constructor",{value:Ie,enumerable:!1});Ie.prototype.mute=function(){this.muted=!0};Ie.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ie.prototype,"_onpipe",{value:dL,enumerable:!1,writable:!0,configurable:!0});function dL(t){this._src=t}Object.defineProperty(Ie.prototype,"isTTY",{get:pL,set:mL,enumerable:!0,configurable:!0});function pL(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function mL(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ie.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ie.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ie.prototype.pipe=function(t,e){return this._dest=t,Vh.prototype.pipe.call(this,t,e)};Ie.prototype.pause=function(){if(this._src)return this._src.pause()};Ie.prototype.resume=function(){if(this._src)return this._src.resume()};Ie.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ie.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Yh(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ie.prototype.destroy=Yh("destroy");Ie.prototype.destroySoon=Yh("destroySoon");Ie.prototype.close=Yh("close")});var ya=k((u9,Jh)=>{"use strict";var yL=require("readline"),gL=require("chalk"),Qb=Tb(),ha=Pb(),fa=Bb(),_L=jb(),bL=Yb(),EL=Zb(),wL=Xb(),Kh=Symbol("text"),da=Symbol("prefixText"),vL=3,Zh=class{constructor(){this.requests=0,this.mutedStream=new wL,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(vL)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=yL.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},pa,ma=class{constructor(e){pa||(pa=new Zh),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:EL({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=ha.line;else if(e===void 0)this._spinner=ha.dots;else if(ha[e])this._spinner=ha[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Kh]}get prefixText(){return this[da]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[da]=="string"?this[da]+"-":"";this.lineCount=_L(r+"--"+this[Kh]).split(`
2
+ "use strict";var hR=Object.create;var Oc=Object.defineProperty;var fR=Object.getOwnPropertyDescriptor;var dR=Object.getOwnPropertyNames;var pR=Object.getPrototypeOf,mR=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),yR=(t,e)=>{for(var r in e)Oc(t,r,{get:e[r],enumerable:!0})},gR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dR(e))!mR.call(t,n)&&n!==r&&Oc(t,n,{get:()=>e[n],enumerable:!(i=fR(e,n))||i.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?hR(pR(t)):{},gR(e||!t||!t.__esModule?Oc(r,"default",{value:t,enumerable:!0}):r,t));var a0=k((F6,tr)=>{function Fc(t){return tr.exports=Fc=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},tr.exports.__esModule=!0,tr.exports.default=tr.exports,Fc(t)}tr.exports=Fc,tr.exports.__esModule=!0,tr.exports.default=tr.exports});var l0=k((P6,rr)=>{var u0=a0().default;function c0(){"use strict";rr.exports=c0=function(){return e},rr.exports.__esModule=!0,rr.exports.default=rr.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(L,B,G){L[B]=G.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(L,B,G){return Object.defineProperty(L,B,{value:G,enumerable:!0,configurable:!0,writable:!0}),L[B]}try{c({},"")}catch{c=function(G,Z,q){return G[Z]=q}}function l(L,B,G,Z){var q=B&&B.prototype instanceof w?B:w,g=Object.create(q.prototype),_=new te(Z||[]);return n(g,"_invoke",{value:W(L,G,_)}),g}function h(L,B,G){try{return{type:"normal",arg:L.call(B,G)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function w(){}function C(){}function F(){}var P={};c(P,o,function(){return this});var T=Object.getPrototypeOf,M=T&&T(T(j([])));M&&M!==r&&i.call(M,o)&&(P=M);var S=F.prototype=w.prototype=Object.create(P);function x(L){["next","throw","return"].forEach(function(B){c(L,B,function(G){return this._invoke(B,G)})})}function H(L,B){function G(q,g,_,E){var R=h(L[q],L,g);if(R.type!=="throw"){var D=R.arg,U=D.value;return U&&u0(U)=="object"&&i.call(U,"__await")?B.resolve(U.__await).then(function($){G("next",$,_,E)},function($){G("throw",$,_,E)}):B.resolve(U).then(function($){D.value=$,_(D)},function($){return G("throw",$,_,E)})}E(R.arg)}var Z;n(this,"_invoke",{value:function(g,_){function E(){return new B(function(R,D){G(g,_,R,D)})}return Z=Z?Z.then(E,E):E()}})}function W(L,B,G){var Z=f;return function(q,g){if(Z===m)throw new Error("Generator is already running");if(Z===y){if(q==="throw")throw g;return{value:t,done:!0}}for(G.method=q,G.arg=g;;){var _=G.delegate;if(_){var E=N(_,G);if(E){if(E===p)continue;return E}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(Z===f)throw Z=y,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);Z=m;var R=h(L,B,G);if(R.type==="normal"){if(Z=G.done?y:d,R.arg===p)continue;return{value:R.arg,done:G.done}}R.type==="throw"&&(Z=y,G.method="throw",G.arg=R.arg)}}}function N(L,B){var G=B.method,Z=L.iterator[G];if(Z===t)return B.delegate=null,G==="throw"&&L.iterator.return&&(B.method="return",B.arg=t,N(L,B),B.method==="throw")||G!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+G+"' method")),p;var q=h(Z,L.iterator,B.arg);if(q.type==="throw")return B.method="throw",B.arg=q.arg,B.delegate=null,p;var g=q.arg;return g?g.done?(B[L.resultName]=g.value,B.next=L.nextLoc,B.method!=="return"&&(B.method="next",B.arg=t),B.delegate=null,p):g:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,p)}function V(L){var B={tryLoc:L[0]};1 in L&&(B.catchLoc=L[1]),2 in L&&(B.finallyLoc=L[2],B.afterLoc=L[3]),this.tryEntries.push(B)}function Q(L){var B=L.completion||{};B.type="normal",delete B.arg,L.completion=B}function te(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(V,this),this.reset(!0)}function j(L){if(L||L===""){var B=L[o];if(B)return B.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var G=-1,Z=function q(){for(;++G<L.length;)if(i.call(L,G))return q.value=L[G],q.done=!1,q;return q.value=t,q.done=!0,q};return Z.next=Z}}throw new TypeError(u0(L)+" is not iterable")}return C.prototype=F,n(S,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:C,configurable:!0}),C.displayName=c(F,u,"GeneratorFunction"),e.isGeneratorFunction=function(L){var B=typeof L=="function"&&L.constructor;return!!B&&(B===C||(B.displayName||B.name)==="GeneratorFunction")},e.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,F):(L.__proto__=F,c(L,u,"GeneratorFunction")),L.prototype=Object.create(S),L},e.awrap=function(L){return{__await:L}},x(H.prototype),c(H.prototype,a,function(){return this}),e.AsyncIterator=H,e.async=function(L,B,G,Z,q){q===void 0&&(q=Promise);var g=new H(l(L,B,G,Z),q);return e.isGeneratorFunction(B)?g:g.next().then(function(_){return _.done?_.value:g.next()})},x(S),c(S,u,"Generator"),c(S,o,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(L){var B=Object(L),G=[];for(var Z in B)G.push(Z);return G.reverse(),function q(){for(;G.length;){var g=G.pop();if(g in B)return q.value=g,q.done=!1,q}return q.done=!0,q}},e.values=j,te.prototype={constructor:te,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Q),!B)for(var G in this)G.charAt(0)==="t"&&i.call(this,G)&&!isNaN(+G.slice(1))&&(this[G]=t)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var G=this;function Z(D,U){return _.type="throw",_.arg=B,G.next=D,U&&(G.method="next",G.arg=t),!!U}for(var q=this.tryEntries.length-1;q>=0;--q){var g=this.tryEntries[q],_=g.completion;if(g.tryLoc==="root")return Z("end");if(g.tryLoc<=this.prev){var E=i.call(g,"catchLoc"),R=i.call(g,"finallyLoc");if(E&&R){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(E){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(B,G){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var q=this.tryEntries[Z];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var g=q;break}}g&&(B==="break"||B==="continue")&&g.tryLoc<=G&&G<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=B,_.arg=G,g?(this.method="next",this.next=g.finallyLoc,p):this.complete(_)},complete:function(B,G){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&G&&(this.next=G),p},finish:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.finallyLoc===B)return this.complete(Z.completion,Z.afterLoc),Q(Z),p}},catch:function(B){for(var G=this.tryEntries.length-1;G>=0;--G){var Z=this.tryEntries[G];if(Z.tryLoc===B){var q=Z.completion;if(q.type==="throw"){var g=q.arg;Q(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(B,G,Z){return this.delegate={iterator:j(B),resultName:G,nextLoc:Z},this.method==="next"&&(this.arg=t),p}},e}rr.exports=c0,rr.exports.__esModule=!0,rr.exports.default=rr.exports});var f0=k((L6,h0)=>{var go=l0()();h0.exports=go;try{regeneratorRuntime=go}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=go:Function("r","regeneratorRuntime = r")(go)}});var p0=k((rH,jc)=>{"use strict";var d0=(t,...e)=>new Promise(r=>{r(t(...e))});jc.exports=d0;jc.exports.default=d0});var y0=k((iH,qc)=>{"use strict";var _R=p0(),m0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=_R(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};qc.exports=m0;qc.exports.default=m0});var b0=k((nH,Hc)=>{"use strict";var g0=y0(),_o=class extends Error{constructor(e){super(),this.value=e}},bR=async(t,e)=>e(await t),ER=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new _o(e[0]);return!1},_0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=g0(r.concurrency),n=[...t].map(o=>[o,i(bR,o,e)]),s=g0(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s(ER,o)))}catch(o){if(o instanceof _o)return o.value;throw o}};Hc.exports=_0;Hc.exports.default=_0});var x0=k((sH,Uc)=>{"use strict";var E0=require("path"),bo=require("fs"),{promisify:w0}=require("util"),wR=b0(),vR=w0(bo.stat),SR=w0(bo.lstat),v0={directory:"isDirectory",file:"isFile"};function S0({type:t}){if(!(t in v0))throw new Error(`Invalid type specified: ${t}`)}var D0=(t,e)=>t===void 0||e[v0[t]]();Uc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},S0(e);let r=e.allowSymlinks?vR:SR;return wR(t,async i=>{try{let n=await r(E0.resolve(e.cwd,i));return D0(e.type,n)}catch{return!1}},e)};Uc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},S0(e);let r=e.allowSymlinks?bo.statSync:bo.lstatSync;for(let i of t)try{let n=r(E0.resolve(e.cwd,i));if(D0(e.type,n))return i}catch{}}});var C0=k((oH,$c)=>{"use strict";var A0=require("fs"),{promisify:DR}=require("util"),xR=DR(A0.access);$c.exports=async t=>{try{return await xR(t),!0}catch{return!1}};$c.exports.sync=t=>{try{return A0.accessSync(t),!0}catch{return!1}}});var T0=k((aH,ji)=>{"use strict";var Rr=require("path"),Eo=x0(),R0=C0(),Gc=Symbol("findUp.stop");ji.exports=async(t,e={})=>{let r=Rr.resolve(e.cwd||""),{root:i}=Rr.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return Eo(n,o);let a=await t(o.cwd);return typeof a=="string"?Eo([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Gc)return;if(o)return Rr.resolve(r,o);if(r===i)return;r=Rr.dirname(r)}};ji.exports.sync=(t,e={})=>{let r=Rr.resolve(e.cwd||""),{root:i}=Rr.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return Eo.sync(n,o);let a=t(o.cwd);return typeof a=="string"?Eo.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Gc)return;if(o)return Rr.resolve(r,o);if(r===i)return;r=Rr.dirname(r)}};ji.exports.exists=R0;ji.exports.sync.exists=R0.sync;ji.exports.stop=Gc});var Py=k(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function Xk(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=Xk;function Qk(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Gi.splitWhen=Qk});var Ly=k(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.isEnoentCodeError=void 0;function eO(t){return t.code==="ENOENT"}Co.isEnoentCodeError=eO});var By=k(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createDirentFromStats=void 0;var ol=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function tO(t,e){return new ol(t,e)}Ro.createDirentFromStats=tO});var Iy=k(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.removeLeadingDotSegment=Nt.escape=Nt.makeAbsolute=Nt.unixify=void 0;var rO=require("path"),iO=2,nO=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function sO(t){return t.replace(/\\/g,"/")}Nt.unixify=sO;function oO(t,e){return rO.resolve(t,e)}Nt.makeAbsolute=oO;function aO(t){return t.replace(nO,"\\$2")}Nt.escape=aO;function uO(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(iO)}return t}Nt.removeLeadingDotSegment=uO});var My=k((TH,Ny)=>{Ny.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Hy=k((kH,qy)=>{var cO=My(),jy={"{":"}","(":")","[":"]"},lO=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=jy[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},hO=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var i=jy[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};qy.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(cO(e))return!0;var i=lO;return r&&r.strict===!1&&(i=hO),i(e)}});var $y=k((OH,Uy)=>{"use strict";var fO=Hy(),dO=require("path").posix.dirname,pO=require("os").platform()==="win32",al="/",mO=/\\/g,yO=/[\{\[].*[\}\]]$/,gO=/(^|[^\\])([\{\[]|\([^\)]+$)/,_O=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Uy.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&pO&&e.indexOf(al)<0&&(e=e.replace(mO,al)),yO.test(e)&&(e+=al),e+="a";do e=dO(e);while(fO(e)||gO.test(e));return e.replace(_O,"$1")}});var To=k(yt=>{"use strict";yt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;yt.find=(t,e)=>t.nodes.find(r=>r.type===e);yt.exceedsLimit=(t,e,r=1,i)=>i===!1||!yt.isInteger(t)||!yt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;yt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};yt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);yt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;yt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;yt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);yt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var ko=k((PH,zy)=>{"use strict";var Gy=To();zy.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&Gy.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&Gy.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var Vy=k((LH,Wy)=>{"use strict";Wy.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var rg=k((BH,tg)=>{"use strict";var Yy=Vy(),hi=(t,e,r)=>{if(Yy(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Yy(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(hi.cache.hasOwnProperty(u))return hi.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=eg(t)||eg(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=Ky(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=Ky(c,l,f,i)),f.negatives=m,f.positives=d,f.result=bO(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),hi.cache[u]=f,f.result};function bO(t,e,r){let i=ul(t,e,"-",!1,r)||[],n=ul(e,t,"",!1,r)||[],s=ul(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function EO(t,e){let r=1,i=1,n=Jy(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Jy(t,r);for(n=Xy(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Xy(e+1,i)-1;return s=[...s],s.sort(SO),s}function wO(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=vO(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=DO(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ky(t,e,r,i){let n=EO(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=wO(String(o),String(c),i),h="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+Qy(a.count),o=c+1;continue}r.isPadded&&(h=xO(c,r,i)),l.string=h+l.pattern+Qy(l.count),s.push(l),o=c+1,a=l}return s}function ul(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!Zy(e,"string",a)&&s.push(r+a),i&&Zy(e,"string",a)&&s.push(r+a)}return s}function vO(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function SO(t,e){return t>e?1:e>t?-1:0}function Zy(t,e,r){return t.some(i=>i[e]===r)}function Jy(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Xy(t,e){return t-t%Math.pow(10,e)}function Qy(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function DO(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function eg(t){return/^-?(0+)\d/.test(t)}function xO(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}hi.cache={};hi.clearCache=()=>hi.cache={};tg.exports=hi});var hl=k((IH,lg)=>{"use strict";var AO=require("util"),sg=rg(),ig=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),CO=t=>e=>t===!0?Number(e):String(e),cl=t=>typeof t=="number"||typeof t=="string"&&t!=="",hs=t=>Number.isInteger(+t),ll=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},RO=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,TO=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},ng=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},kO=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},og=(t,e,r,i)=>{if(r)return sg(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},ag=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return sg(t,e,r)},ug=(...t)=>new RangeError("Invalid range arguments: "+AO.inspect(...t)),cg=(t,e,r)=>{if(r.strictRanges===!0)throw ug([t,e]);return[]},OO=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},FO=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw ug([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=ll(a)||ll(u)||ll(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&RO(t,e,i)===!1,d=i.transform||CO(f);if(i.toRegex&&r===1)return og(ng(t,h),ng(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],w=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(TO(d(n,w),h,f)),n=o?n-r:n+r,w++;return i.toRegex===!0?r>1?kO(m,i):ag(p,null,{wrap:!1,...i}):p},PO=(t,e,r=1,i={})=>{if(!hs(t)&&t.length>1||!hs(e)&&e.length>1)return cg(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return og(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?ag(l,null,{wrap:!1,options:i}):l},Oo=(t,e,r,i={})=>{if(e==null&&cl(t))return[t];if(!cl(t)||!cl(e))return cg(t,e,i);if(typeof r=="function")return Oo(t,e,1,{transform:r});if(ig(r))return Oo(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,hs(r)?hs(t)&&hs(e)?FO(t,e,r,n):PO(t,e,Math.max(Math.abs(r),1),n):r!=null&&!ig(r)?OO(r,n):Oo(t,e,1,r)};lg.exports=Oo});var dg=k((NH,fg)=>{"use strict";var LO=hl(),hg=To(),BO=(t,e={})=>{let r=(i,n={})=>{let s=hg.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=hg.reduce(i.nodes),h=LO(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};fg.exports=BO});var yg=k((MH,mg)=>{"use strict";var IO=hl(),pg=ko(),zi=To(),fi=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?zi.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(fi(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?fi(n,s,r):n+s);return zi.flatten(i)},NO=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(fi(a.pop(),pg(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(fi(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=zi.reduce(n.nodes);if(zi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=IO(...h,e);f.length===0&&(f=pg(n,e)),a.push(fi(a.pop(),f)),n.nodes=[];return}let u=zi.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(fi(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(fi(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return zi.flatten(i(t))};mg.exports=NO});var _g=k((jH,gg)=>{"use strict";gg.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Sg=k((qH,vg)=>{"use strict";var MO=ko(),{MAX_LENGTH:bg,CHAR_BACKSLASH:fl,CHAR_BACKTICK:jO,CHAR_COMMA:qO,CHAR_DOT:HO,CHAR_LEFT_PARENTHESES:UO,CHAR_RIGHT_PARENTHESES:$O,CHAR_LEFT_CURLY_BRACE:GO,CHAR_RIGHT_CURLY_BRACE:zO,CHAR_LEFT_SQUARE_BRACKET:Eg,CHAR_RIGHT_SQUARE_BRACKET:wg,CHAR_DOUBLE_QUOTE:WO,CHAR_SINGLE_QUOTE:VO,CHAR_NO_BREAK_SPACE:YO,CHAR_ZERO_WIDTH_NOBREAK_SPACE:KO}=_g(),ZO=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(bg,r.maxLength):bg;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},m=()=>t[l++],y=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(y({type:"bos"});l<c;)if(o=s[s.length-1],f=m(),!(f===KO||f===YO)){if(f===fl){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===wg){y({type:"text",value:"\\"+f});continue}if(f===Eg){u++;let p=!0,w;for(;l<c&&(w=m());){if(f+=w,w===Eg){u++;continue}if(w===fl){f+=m();continue}if(w===wg&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===UO){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===$O){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===WO||f===VO||f===jO){let p=f,w;for(e.keepQuotes!==!0&&(f="");l<c&&(w=m());){if(w===fl){f+=w+m();continue}if(w===p){e.keepQuotes===!0&&(f+=w);break}f+=w}y({type:"text",value:f});continue}if(f===GO){h++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(w),s.push(o),y({type:"open",value:f});continue}if(f===zO){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===qO&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:MO(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===HO&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){p.pop();let w=p[p.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let p=s[s.length-1],w=p.nodes.indexOf(o);p.nodes.splice(w,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};vg.exports=ZO});var Ag=k((HH,xg)=>{"use strict";var Dg=ko(),JO=dg(),XO=yg(),QO=Sg(),ut=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=ut.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ut.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};ut.parse=(t,e={})=>QO(t,e);ut.stringify=(t,e={})=>Dg(typeof t=="string"?ut.parse(t,e):t,e);ut.compile=(t,e={})=>(typeof t=="string"&&(t=ut.parse(t,e)),JO(t,e));ut.expand=(t,e={})=>{typeof t=="string"&&(t=ut.parse(t,e));let r=XO(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};ut.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?ut.compile(t,e):ut.expand(t,e);xg.exports=ut});var fs=k((UH,Og)=>{"use strict";var eF=require("path"),Mt="\\\\/",Cg=`[^${Mt}]`,sr="\\.",tF="\\+",rF="\\?",Fo="\\/",iF="(?=.)",Rg="[^/]",dl=`(?:${Fo}|$)`,Tg=`(?:^|${Fo})`,pl=`${sr}{1,2}${dl}`,nF=`(?!${sr})`,sF=`(?!${Tg}${pl})`,oF=`(?!${sr}{0,1}${dl})`,aF=`(?!${pl})`,uF=`[^.${Fo}]`,cF=`${Rg}*?`,kg={DOT_LITERAL:sr,PLUS_LITERAL:tF,QMARK_LITERAL:rF,SLASH_LITERAL:Fo,ONE_CHAR:iF,QMARK:Rg,END_ANCHOR:dl,DOTS_SLASH:pl,NO_DOT:nF,NO_DOTS:sF,NO_DOT_SLASH:oF,NO_DOTS_SLASH:aF,QMARK_NO_DOT:uF,STAR:cF,START_ANCHOR:Tg},lF={...kg,SLASH_LITERAL:`[${Mt}]`,QMARK:Cg,STAR:`${Cg}*?`,DOTS_SLASH:`${sr}{1,2}(?:[${Mt}]|$)`,NO_DOT:`(?!${sr})`,NO_DOTS:`(?!(?:^|[${Mt}])${sr}{1,2}(?:[${Mt}]|$))`,NO_DOT_SLASH:`(?!${sr}{0,1}(?:[${Mt}]|$))`,NO_DOTS_SLASH:`(?!${sr}{1,2}(?:[${Mt}]|$))`,QMARK_NO_DOT:`[^.${Mt}]`,START_ANCHOR:`(?:^|[${Mt}])`,END_ANCHOR:`(?:[${Mt}]|$)`},hF={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Og.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:hF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:eF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?lF:kg}}});var ds=k(rt=>{"use strict";var fF=require("path"),dF=process.platform==="win32",{REGEX_BACKSLASH:pF,REGEX_REMOVE_BACKSLASH:mF,REGEX_SPECIAL_CHARS:yF,REGEX_SPECIAL_CHARS_GLOBAL:gF}=fs();rt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);rt.hasRegexChars=t=>yF.test(t);rt.isRegexChar=t=>t.length===1&&rt.hasRegexChars(t);rt.escapeRegex=t=>t.replace(gF,"\\$1");rt.toPosixSlashes=t=>t.replace(pF,"/");rt.removeBackslashes=t=>t.replace(mF,e=>e==="\\"?"":e);rt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};rt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:dF===!0||fF.sep==="\\";rt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?rt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};rt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};rt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var jg=k((GH,Mg)=>{"use strict";var Fg=ds(),{CHAR_ASTERISK:ml,CHAR_AT:_F,CHAR_BACKWARD_SLASH:ps,CHAR_COMMA:bF,CHAR_DOT:yl,CHAR_EXCLAMATION_MARK:gl,CHAR_FORWARD_SLASH:Ng,CHAR_LEFT_CURLY_BRACE:_l,CHAR_LEFT_PARENTHESES:bl,CHAR_LEFT_SQUARE_BRACKET:EF,CHAR_PLUS:wF,CHAR_QUESTION_MARK:Pg,CHAR_RIGHT_CURLY_BRACE:vF,CHAR_RIGHT_PARENTHESES:Lg,CHAR_RIGHT_SQUARE_BRACKET:SF}=fs(),Bg=t=>t===Ng||t===ps,Ig=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},DF=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,w=!1,C=!1,F=!1,P=!1,T=!1,M=0,S,x,H={value:"",depth:0,isGlob:!1},W=()=>c>=i,N=()=>u.charCodeAt(c+1),V=()=>(S=x,u.charCodeAt(++c));for(;c<i;){x=V();let B;if(x===ps){C=H.backslashes=!0,x=V(),x===_l&&(w=!0);continue}if(w===!0||x===_l){for(M++;W()!==!0&&(x=V());){if(x===ps){C=H.backslashes=!0,V();continue}if(x===_l){M++;continue}if(w!==!0&&x===yl&&(x=V())===yl){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(w!==!0&&x===bF){if(f=H.isBrace=!0,m=H.isGlob=!0,T=!0,n===!0)continue;break}if(x===vF&&(M--,M===0)){w=!1,f=H.isBrace=!0,T=!0;break}}if(n===!0)continue;break}if(x===Ng){if(s.push(c),o.push(H),H={value:"",depth:0,isGlob:!1},T===!0)continue;if(S===yl&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(x===wF||x===_F||x===ml||x===Pg||x===gl)===!0&&N()===bl){if(m=H.isGlob=!0,y=H.isExtglob=!0,T=!0,x===gl&&c===l&&(P=!0),n===!0){for(;W()!==!0&&(x=V());){if(x===ps){C=H.backslashes=!0,x=V();continue}if(x===Lg){m=H.isGlob=!0,T=!0;break}}continue}break}if(x===ml){if(S===ml&&(p=H.isGlobstar=!0),m=H.isGlob=!0,T=!0,n===!0)continue;break}if(x===Pg){if(m=H.isGlob=!0,T=!0,n===!0)continue;break}if(x===EF){for(;W()!==!0&&(B=V());){if(B===ps){C=H.backslashes=!0,V();continue}if(B===SF){d=H.isBracket=!0,m=H.isGlob=!0,T=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&x===gl&&c===l){F=H.negated=!0,l++;continue}if(r.noparen!==!0&&x===bl){if(m=H.isGlob=!0,n===!0){for(;W()!==!0&&(x=V());){if(x===bl){C=H.backslashes=!0,x=V();continue}if(x===Lg){T=!0;break}}continue}break}if(m===!0){if(T=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let Q=u,te="",j="";l>0&&(te=u.slice(0,l),u=u.slice(l),h-=l),Q&&m===!0&&h>0?(Q=u.slice(0,h),j=u.slice(h)):m===!0?(Q="",j=u):Q=u,Q&&Q!==""&&Q!=="/"&&Q!==u&&Bg(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),r.unescape===!0&&(j&&(j=Fg.removeBackslashes(j)),Q&&C===!0&&(Q=Fg.removeBackslashes(Q)));let L={prefix:te,input:t,start:l,base:Q,glob:j,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:F,negatedExtglob:P};if(r.tokens===!0&&(L.maxDepth=0,Bg(x)||o.push(H),L.tokens=o),r.parts===!0||r.tokens===!0){let B;for(let G=0;G<s.length;G++){let Z=B?B+1:l,q=s[G],g=t.slice(Z,q);r.tokens&&(G===0&&l!==0?(o[G].isPrefix=!0,o[G].value=te):o[G].value=g,Ig(o[G]),L.maxDepth+=o[G].depth),(G!==0||g!=="")&&a.push(g),B=q}if(B&&B+1<t.length){let G=t.slice(B+1);a.push(G),r.tokens&&(o[o.length-1].value=G,Ig(o[o.length-1]),L.maxDepth+=o[o.length-1].depth)}L.slashes=s,L.parts=a}return L};Mg.exports=DF});var Ug=k((zH,Hg)=>{"use strict";var Po=fs(),ct=ds(),{MAX_LENGTH:Lo,POSIX_REGEX_SOURCE:xF,REGEX_NON_SPECIAL_CHARS:AF,REGEX_SPECIAL_CHARS_BACKREF:CF,REPLACEMENTS:qg}=Po,RF=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>ct.escapeRegex(n)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,El=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=qg[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Lo,r.maxLength):Lo,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ct.isWindows(e),c=Po.globChars(u),l=Po.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:w,NO_DOTS_SLASH:C,QMARK:F,QMARK_NO_DOT:P,STAR:T,START_ANCHOR:M}=c,S=Y=>`(${a}(?:(?!${M}${Y.dot?y:h}).)*?)`,x=r.dot?"":p,H=r.dot?F:P,W=r.bash===!0?S(r):T;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let N={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ct.removePrefix(t,N),n=t.length;let V=[],Q=[],te=[],j=s,L,B=()=>N.index===n-1,G=N.peek=(Y=1)=>t[N.index+Y],Z=N.advance=()=>t[++N.index]||"",q=()=>t.slice(N.index+1),g=(Y="",ue=0)=>{N.consumed+=Y,N.index+=ue},_=Y=>{N.output+=Y.output!=null?Y.output:Y.value,g(Y.value)},E=()=>{let Y=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)Z(),N.start++,Y++;return Y%2===0?!1:(N.negated=!0,N.start++,!0)},R=Y=>{N[Y]++,te.push(Y)},D=Y=>{N[Y]--,te.pop()},U=Y=>{if(j.type==="globstar"){let ue=N.braces>0&&(Y.type==="comma"||Y.type==="brace"),J=Y.extglob===!0||V.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!ue&&!J&&(N.output=N.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=W,N.output+=j.output)}if(V.length&&Y.type!=="paren"&&(V[V.length-1].inner+=Y.value),(Y.value||Y.output)&&_(Y),j&&j.type==="text"&&Y.type==="text"){j.value+=Y.value,j.output=(j.output||"")+Y.value;return}Y.prev=j,o.push(Y),j=Y},$=(Y,ue)=>{let J={...l[ue],conditions:1,inner:""};J.prev=j,J.parens=N.parens,J.output=N.output;let v=(r.capture?"(":"")+J.open;R("parens"),U({type:Y,value:ue,output:N.output?"":m}),U({type:"paren",extglob:!0,value:Z(),output:v}),V.push(J)},ie=Y=>{let ue=Y.close+(r.capture?")":""),J;if(Y.type==="negate"){let v=W;if(Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(v=S(r)),(v!==W||B()||/^\)+$/.test(q()))&&(ue=Y.close=`)$))${v}`),Y.inner.includes("*")&&(J=q())&&/^\.[^\\/.]+$/.test(J)){let I=El(J,{...e,fastpaths:!1}).output;ue=Y.close=`)${I})${v})`}Y.prev.type==="bos"&&(N.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:L,output:ue}),D("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let Y=!1,ue=t.replace(CF,(J,v,I,A,X,b)=>A==="\\"?(Y=!0,J):A==="?"?v?v+A+(X?F.repeat(X.length):""):b===0?H+(X?F.repeat(X.length):""):F.repeat(I.length):A==="."?h.repeat(I.length):A==="*"?v?v+A+(X?W:""):W:v?J:`\\${J}`);return Y===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),ue===t&&r.contains===!0?(N.output=t,N):(N.output=ct.wrapOutput(ue,N,e),N)}for(;!B();){if(L=Z(),L==="\0")continue;if(L==="\\"){let J=G();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){L+="\\",U({type:"text",value:L});continue}let v=/^\\+/.exec(q()),I=0;if(v&&v[0].length>2&&(I=v[0].length,N.index+=I,I%2!==0&&(L+="\\")),r.unescape===!0?L=Z():L+=Z(),N.brackets===0){U({type:"text",value:L});continue}}if(N.brackets>0&&(L!=="]"||j.value==="["||j.value==="[^")){if(r.posix!==!1&&L===":"){let J=j.value.slice(1);if(J.includes("[")&&(j.posix=!0,J.includes(":"))){let v=j.value.lastIndexOf("["),I=j.value.slice(0,v),A=j.value.slice(v+2),X=xF[A];if(X){j.value=I+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(j)===1&&(s.output=m);continue}}}(L==="["&&G()!==":"||L==="-"&&G()==="]")&&(L=`\\${L}`),L==="]"&&(j.value==="["||j.value==="[^")&&(L=`\\${L}`),r.posix===!0&&L==="!"&&j.value==="["&&(L="^"),j.value+=L,_({value:L});continue}if(N.quotes===1&&L!=='"'){L=ct.escapeRegex(L),j.value+=L,_({value:L});continue}if(L==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&U({type:"text",value:L});continue}if(L==="("){R("parens"),U({type:"paren",value:L});continue}if(L===")"){if(N.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wi("opening","("));let J=V[V.length-1];if(J&&N.parens===J.parens+1){ie(V.pop());continue}U({type:"paren",value:L,output:N.parens?")":"\\)"}),D("parens");continue}if(L==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));L=`\\${L}`}else R("brackets");U({type:"bracket",value:L});continue}if(L==="]"){if(r.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){U({type:"text",value:L,output:`\\${L}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));U({type:"text",value:L,output:`\\${L}`});continue}D("brackets");let J=j.value.slice(1);if(j.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(L=`/${L}`),j.value+=L,_({value:L}),r.literalBrackets===!1||ct.hasRegexChars(J))continue;let v=ct.escapeRegex(j.value);if(N.output=N.output.slice(0,-j.value.length),r.literalBrackets===!0){N.output+=v,j.value=v;continue}j.value=`(${a}${v}|${j.value})`,N.output+=j.value;continue}if(L==="{"&&r.nobrace!==!0){R("braces");let J={type:"brace",value:L,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};Q.push(J),U(J);continue}if(L==="}"){let J=Q[Q.length-1];if(r.nobrace===!0||!J){U({type:"text",value:L,output:L});continue}let v=")";if(J.dots===!0){let I=o.slice(),A=[];for(let X=I.length-1;X>=0&&(o.pop(),I[X].type!=="brace");X--)I[X].type!=="dots"&&A.unshift(I[X].value);v=RF(A,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let I=N.output.slice(0,J.outputIndex),A=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",L=v="\\}",N.output=I;for(let X of A)N.output+=X.output||X.value}U({type:"brace",value:L,output:v}),D("braces"),Q.pop();continue}if(L==="|"){V.length>0&&V[V.length-1].conditions++,U({type:"text",value:L});continue}if(L===","){let J=L,v=Q[Q.length-1];v&&te[te.length-1]==="braces"&&(v.comma=!0,J="|"),U({type:"comma",value:L,output:J});continue}if(L==="/"){if(j.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),j=s;continue}U({type:"slash",value:L,output:d});continue}if(L==="."){if(N.braces>0&&j.type==="dot"){j.value==="."&&(j.output=h);let J=Q[Q.length-1];j.type="dots",j.output+=L,j.value+=L,J.dots=!0;continue}if(N.braces+N.parens===0&&j.type!=="bos"&&j.type!=="slash"){U({type:"text",value:L,output:h});continue}U({type:"dot",value:L,output:h});continue}if(L==="?"){if(!(j&&j.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("qmark",L);continue}if(j&&j.type==="paren"){let v=G(),I=L;if(v==="<"&&!ct.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(q()))&&(I=`\\${L}`),U({type:"text",value:L,output:I});continue}if(r.dot!==!0&&(j.type==="slash"||j.type==="bos")){U({type:"qmark",value:L,output:P});continue}U({type:"qmark",value:L,output:F});continue}if(L==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){$("negate",L);continue}if(r.nonegate!==!0&&N.index===0){E();continue}}if(L==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){$("plus",L);continue}if(j&&j.value==="("||r.regex===!1){U({type:"plus",value:L,output:f});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||N.parens>0){U({type:"plus",value:L});continue}U({type:"plus",value:f});continue}if(L==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){U({type:"at",extglob:!0,value:L,output:""});continue}U({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let J=AF.exec(q());J&&(L+=J[0],N.index+=J[0].length),U({type:"text",value:L});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=L,j.output=W,N.backtrack=!0,N.globstar=!0,g(L);continue}let Y=q();if(r.noextglob!==!0&&/^\([^?]/.test(Y)){$("star",L);continue}if(j.type==="star"){if(r.noglobstar===!0){g(L);continue}let J=j.prev,v=J.prev,I=J.type==="slash"||J.type==="bos",A=v&&(v.type==="star"||v.type==="globstar");if(r.bash===!0&&(!I||Y[0]&&Y[0]!=="/")){U({type:"star",value:L,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=V.length&&(J.type==="pipe"||J.type==="paren");if(!I&&J.type!=="paren"&&!X&&!b){U({type:"star",value:L,output:""});continue}for(;Y.slice(0,3)==="/**";){let z=t[N.index+4];if(z&&z!=="/")break;Y=Y.slice(3),g("/**",3)}if(J.type==="bos"&&B()){j.type="globstar",j.value+=L,j.output=S(r),N.output=j.output,N.globstar=!0,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!A&&B()){N.output=N.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=S(r)+(r.strictSlashes?")":"|$)"),j.value+=L,N.globstar=!0,N.output+=J.output+j.output,g(L);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&Y[0]==="/"){let z=Y[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(J.output+j.output).length),J.output=`(?:${J.output}`,j.type="globstar",j.output=`${S(r)}${d}|${d}${z})`,j.value+=L,N.output+=J.output+j.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&Y[0]==="/"){j.type="globstar",j.value+=L,j.output=`(?:^|${d}|${S(r)}${d})`,N.output=j.output,N.globstar=!0,g(L+Z()),U({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-j.output.length),j.type="globstar",j.output=S(r),j.value+=L,N.output+=j.output,N.globstar=!0,g(L);continue}let ue={type:"star",value:L,output:W};if(r.bash===!0){ue.output=".*?",(j.type==="bos"||j.type==="slash")&&(ue.output=x+ue.output),U(ue);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&r.regex===!0){ue.output=L,U(ue);continue}(N.index===N.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(N.output+=w,j.output+=w):r.dot===!0?(N.output+=C,j.output+=C):(N.output+=x,j.output+=x),G()!=="*"&&(N.output+=m,j.output+=m)),U(ue)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));N.output=ct.escapeLast(N.output,"["),D("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));N.output=ct.escapeLast(N.output,"("),D("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));N.output=ct.escapeLast(N.output,"{"),D("braces")}if(r.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&U({type:"maybe_slash",value:"",output:`${d}?`}),N.backtrack===!0){N.output="";for(let Y of N.tokens)N.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(N.output+=Y.suffix)}return N};El.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Lo,r.maxLength):Lo,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=qg[t]||t;let s=ct.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Po.globChars(s),y=r.dot?h:l,p=r.dot?f:l,w=r.capture?"":"?:",C={negated:!1,prefix:""},F=r.bash===!0?".*?":d;r.capture&&(F=`(${F})`);let P=x=>x.noglobstar===!0?F:`(${w}(?:(?!${m}${x.dot?c:o}).)*?)`,T=x=>{switch(x){case"*":return`${y}${u}${F}`;case".*":return`${o}${u}${F}`;case"*.*":return`${y}${F}${o}${u}${F}`;case"*/*":return`${y}${F}${a}${u}${p}${F}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${p}${u}${F}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${p}${F}${o}${u}${F}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${F}`;default:{let H=/^(.*?)\.(\w+)$/.exec(x);if(!H)return;let W=T(H[1]);return W?W+o+H[2]:void 0}}},M=ct.removePrefix(t,C),S=T(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};Hg.exports=El});var Gg=k((WH,$g)=>{"use strict";var TF=require("path"),kF=jg(),wl=Ug(),vl=ds(),OF=fs(),FF=t=>t&&typeof t=="object"&&!Array.isArray(t),Ce=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ce(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=FF(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=vl.isWindows(e),o=i?Ce.compileRe(t,e):Ce.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ce(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ce.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ce.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(n?vl.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ce.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ce.matchBase=(t,e,r,i=vl.isWindows(r))=>(e instanceof RegExp?e:Ce.makeRe(e,r)).test(TF.basename(t));Ce.isMatch=(t,e,r)=>Ce(e,r)(t);Ce.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ce.parse(r,e)):wl(t,{...e,fastpaths:!1});Ce.scan=(t,e)=>kF(t,e);Ce.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ce.toRegex(a,e);return i===!0&&(u.state=t),u};Ce.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=wl.fastpaths(t,e)),n.output||(n=wl(t,e)),Ce.compileRe(n,e,r,i)};Ce.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Ce.constants=OF;$g.exports=Ce});var Wg=k((VH,zg)=>{"use strict";zg.exports=Gg()});var Jg=k((YH,Zg)=>{"use strict";var Yg=require("util"),Kg=Ag(),jt=Wg(),Sl=ds(),Vg=t=>t===""||t==="./",xe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let h=jt(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};xe.match=xe;xe.matcher=(t,e)=>jt(t,e);xe.isMatch=(t,e,r)=>jt(e,r)(t);xe.any=xe.isMatch;xe.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(xe(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};xe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yg.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>xe.contains(t,i,r));if(typeof e=="string"){if(Vg(t)||Vg(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return xe.isMatch(t,e,{...r,contains:!0})};xe.matchKeys=(t,e,r)=>{if(!Sl.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=xe(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};xe.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=jt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};xe.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=jt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};xe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yg.inspect(t)}"`);return[].concat(e).every(i=>jt(i,r)(t))};xe.capture=(t,e,r)=>{let i=Sl.isWindows(r),s=jt.makeRe(String(t),{...r,capture:!0}).exec(i?Sl.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};xe.makeRe=(...t)=>jt.makeRe(...t);xe.scan=(...t)=>jt.scan(...t);xe.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Kg(String(i),e))r.push(jt.parse(n,e));return r};xe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Kg(t,e)};xe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return xe.braces(t,{...e,expand:!0})};Zg.exports=xe});var s_=k(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.matchAny=de.convertPatternsToRe=de.makeRe=de.getPatternParts=de.expandBraceExpansion=de.expandPatternsWithBraceExpansion=de.isAffectDepthOfReadingPattern=de.endsWithSlashGlobStar=de.hasGlobStar=de.getBaseDirectory=de.isPatternRelatedToParentDirectory=de.getPatternsOutsideCurrentDirectory=de.getPatternsInsideCurrentDirectory=de.getPositivePatterns=de.getNegativePatterns=de.isPositivePattern=de.isNegativePattern=de.convertToNegativePattern=de.convertToPositivePattern=de.isDynamicPattern=de.isStaticPattern=void 0;var PF=require("path"),LF=$y(),Dl=Jg(),Xg="**",BF="\\",IF=/[*?]|^!/,NF=/\[[^[]*]/,MF=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,jF=/[!*+?@]\([^(]*\)/,qF=/,|\.\./;function Qg(t,e={}){return!e_(t,e)}de.isStaticPattern=Qg;function e_(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(BF)||IF.test(t)||NF.test(t)||MF.test(t)||e.extglob!==!1&&jF.test(t)||e.braceExpansion!==!1&&HF(t))}de.isDynamicPattern=e_;function HF(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return qF.test(i)}function UF(t){return Bo(t)?t.slice(1):t}de.convertToPositivePattern=UF;function $F(t){return"!"+t}de.convertToNegativePattern=$F;function Bo(t){return t.startsWith("!")&&t[1]!=="("}de.isNegativePattern=Bo;function t_(t){return!Bo(t)}de.isPositivePattern=t_;function GF(t){return t.filter(Bo)}de.getNegativePatterns=GF;function zF(t){return t.filter(t_)}de.getPositivePatterns=zF;function WF(t){return t.filter(e=>!xl(e))}de.getPatternsInsideCurrentDirectory=WF;function VF(t){return t.filter(xl)}de.getPatternsOutsideCurrentDirectory=VF;function xl(t){return t.startsWith("..")||t.startsWith("./..")}de.isPatternRelatedToParentDirectory=xl;function YF(t){return LF(t,{flipBackslashes:!1})}de.getBaseDirectory=YF;function KF(t){return t.includes(Xg)}de.hasGlobStar=KF;function r_(t){return t.endsWith("/"+Xg)}de.endsWithSlashGlobStar=r_;function ZF(t){let e=PF.basename(t);return r_(t)||Qg(e)}de.isAffectDepthOfReadingPattern=ZF;function JF(t){return t.reduce((e,r)=>e.concat(i_(r)),[])}de.expandPatternsWithBraceExpansion=JF;function i_(t){return Dl.braces(t,{expand:!0,nodupes:!0})}de.expandBraceExpansion=i_;function XF(t,e){let{parts:r}=Dl.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}de.getPatternParts=XF;function n_(t,e){return Dl.makeRe(t,e)}de.makeRe=n_;function QF(t,e){return t.map(r=>n_(r,e))}de.convertPatternsToRe=QF;function eP(t,e){return e.some(r=>r.test(t))}de.matchAny=eP});var c_=k((ZH,u_)=>{"use strict";var tP=require("stream"),o_=tP.PassThrough,rP=Array.prototype.slice;u_.exports=iP;function iP(){let t=[],e=rP.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=o_(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(a_(arguments[l],i));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(w){o.emit("error",w)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function a_(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=a_(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(o_(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var h_=k(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.merge=void 0;var nP=c_();function sP(t){let e=nP(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>l_(t)),e.once("end",()=>l_(t)),e}Io.merge=sP;function l_(t){t.forEach(e=>e.emit("close"))}});var f_=k(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isEmpty=Vi.isString=void 0;function oP(t){return typeof t=="string"}Vi.isString=oP;function aP(t){return t===""}Vi.isEmpty=aP});var or=k(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.string=Ge.stream=Ge.pattern=Ge.path=Ge.fs=Ge.errno=Ge.array=void 0;var uP=Py();Ge.array=uP;var cP=Ly();Ge.errno=cP;var lP=By();Ge.fs=lP;var hP=Iy();Ge.path=hP;var fP=s_();Ge.pattern=fP;var dP=h_();Ge.stream=dP;var pP=f_();Ge.string=pP});var m_=k(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.convertPatternGroupToTask=ze.convertPatternGroupsToTasks=ze.groupPatternsByBaseDirectory=ze.getNegativePatternsAsPositive=ze.getPositivePatterns=ze.convertPatternsToTasks=ze.generate=void 0;var ar=or();function mP(t,e){let r=d_(t),i=p_(t,e.ignore),n=r.filter(u=>ar.pattern.isStaticPattern(u,e)),s=r.filter(u=>ar.pattern.isDynamicPattern(u,e)),o=Al(n,i,!1),a=Al(s,i,!0);return o.concat(a)}ze.generate=mP;function Al(t,e,r){let i=[],n=ar.pattern.getPatternsOutsideCurrentDirectory(t),s=ar.pattern.getPatternsInsideCurrentDirectory(t),o=Cl(n),a=Cl(s);return i.push(...Rl(o,e,r)),"."in a?i.push(Tl(".",s,e,r)):i.push(...Rl(a,e,r)),i}ze.convertPatternsToTasks=Al;function d_(t){return ar.pattern.getPositivePatterns(t)}ze.getPositivePatterns=d_;function p_(t,e){return ar.pattern.getNegativePatterns(t).concat(e).map(ar.pattern.convertToPositivePattern)}ze.getNegativePatternsAsPositive=p_;function Cl(t){let e={};return t.reduce((r,i)=>{let n=ar.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ze.groupPatternsByBaseDirectory=Cl;function Rl(t,e,r){return Object.keys(t).map(i=>Tl(i,t[i],e,r))}ze.convertPatternGroupsToTasks=Rl;function Tl(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ar.pattern.convertToNegativePattern))}}ze.convertPatternGroupToTask=Tl});var g_=k(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var yP=/(?!^)\/{2,}/g;function gP(t){return t.map(e=>y_(e))}Yi.transform=gP;function y_(t){return t.replace(yP,"/")}Yi.removeDuplicateSlashes=y_});var b_=k(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.read=void 0;function _P(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){__(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){kl(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){__(r,s);return}kl(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),kl(r,o)})})}No.read=_P;function __(t,e){t(e)}function kl(t,e){t(null,e)}});var E_=k(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.read=void 0;function bP(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Mo.read=bP});var w_=k(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var jo=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:jo.lstat,stat:jo.stat,lstatSync:jo.lstatSync,statSync:jo.statSync};function EP(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=EP});var v_=k(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var wP=w_(),Ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=wP.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Fl.default=Ol});var di=k(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.statSync=Fr.stat=Fr.Settings=void 0;var S_=b_(),vP=E_(),Pl=v_();Fr.Settings=Pl.default;function SP(t,e,r){if(typeof e=="function"){S_.read(t,Ll(),e);return}S_.read(t,Ll(e),r)}Fr.stat=SP;function DP(t,e){let r=Ll(e);return vP.read(t,r)}Fr.statSync=DP;function Ll(t={}){return t instanceof Pl.default?t:new Pl.default(t)}});var A_=k((a4,x_)=>{var D_;x_.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(D_||(D_=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var R_=k((u4,C_)=>{C_.exports=AP;var xP=A_();function AP(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?xP(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var Bl=k(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var qo=process.versions.node.split(".");if(qo[0]===void 0||qo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var T_=Number.parseInt(qo[0],10),CP=Number.parseInt(qo[1],10),k_=10,RP=10,TP=T_>k_,kP=T_===k_&&CP>=RP;Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=TP||kP});var O_=k(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.createDirentFromStats=void 0;var Il=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function OP(t,e){return new Il(t,e)}Uo.createDirentFromStats=OP});var Nl=k($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.fs=void 0;var FP=O_();$o.fs=FP});var Ml=k(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.joinPathSegments=void 0;function PP(t,e,r){return t.endsWith(r)?t+e:t+r+e}Go.joinPathSegments=PP});var N_=k(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.readdir=Pr.readdirWithFileTypes=Pr.read=void 0;var LP=di(),F_=R_(),BP=Bl(),P_=Nl(),L_=Ml();function IP(t,e,r){if(!e.stats&&BP.IS_SUPPORT_READDIR_WITH_FILE_TYPES){B_(t,e,r);return}I_(t,e,r)}Pr.read=IP;function B_(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){zo(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:L_.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){jl(r,s);return}let o=s.map(a=>NP(a,e));F_(o,(a,u)=>{if(a!==null){zo(r,a);return}jl(r,u)})})}Pr.readdirWithFileTypes=B_;function NP(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=P_.fs.createDirentFromStats(t.name,n),r(null,t)})}}function I_(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){zo(r,i);return}let s=n.map(o=>{let a=L_.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{LP.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:P_.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});F_(s,(o,a)=>{if(o!==null){zo(r,o);return}jl(r,a)})})}Pr.readdir=I_;function zo(t,e){t(e)}function jl(t,e){t(null,e)}});var U_=k(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.readdir=Lr.readdirWithFileTypes=Lr.read=void 0;var MP=di(),jP=Bl(),M_=Nl(),j_=Ml();function qP(t,e){return!e.stats&&jP.IS_SUPPORT_READDIR_WITH_FILE_TYPES?q_(t,e):H_(t,e)}Lr.read=qP;function q_(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:j_.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=M_.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}Lr.readdirWithFileTypes=q_;function H_(t,e){return e.fs.readdirSync(t).map(i=>{let n=j_.joinPathSegments(t,i,e.pathSegmentSeparator),s=MP.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:M_.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}Lr.readdir=H_});var $_=k(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.createFileSystemAdapter=Br.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");Br.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function HP(t){return t===void 0?Br.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Br.FILE_SYSTEM_ADAPTER),t)}Br.createFileSystemAdapter=HP});var G_=k(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var UP=require("path"),$P=di(),GP=$_(),ql=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=GP.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,UP.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $P.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Hl.default=ql});var Wo=k(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.Settings=Ir.scandirSync=Ir.scandir=void 0;var z_=N_(),zP=U_(),Ul=G_();Ir.Settings=Ul.default;function WP(t,e,r){if(typeof e=="function"){z_.read(t,$l(),e);return}z_.read(t,$l(e),r)}Ir.scandir=WP;function VP(t,e){let r=$l(e);return zP.read(t,r)}Ir.scandirSync=VP;function $l(t={}){return t instanceof Ul.default?t:new Ul.default(t)}});var V_=k((_4,W_)=>{"use strict";function YP(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}W_.exports=YP});var K_=k((b4,Gl)=>{"use strict";var KP=V_();function Y_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=KP(ZP),n=null,s=null,o=0,a=null,u={push:y,drain:gt,saturated:gt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:gt,kill:C,killAndDrain:F,error:P};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var T=n,M=0;T;)T=T.next,M++;return M}function f(){for(var T=n,M=[];T;)M.push(T.value),T=T.next;return M}function d(){if(u.paused){u.paused=!1;for(var T=0;T<u.concurrency;T++)o++,w()}}function m(){return o===0&&u.length()===0}function y(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||gt,S.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=S,s=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function p(T,M){var S=i.get();S.context=t,S.release=w,S.value=T,S.callback=M||gt,o===u.concurrency||u.paused?n?(S.next=n,n=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function w(T){T&&i.release(T);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=gt}function F(){n=null,s=null,u.drain(),u.drain=gt}function P(T){a=T}}function gt(){}function ZP(){this.value=null,this.callback=gt,this.next=null,this.release=gt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=gt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function JP(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=Y_(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(gt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(gt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Gl.exports=Y_;Gl.exports.promise=JP});var Vo=k(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.joinPathSegments=qt.replacePathSegmentSeparator=qt.isAppliedFilter=qt.isFatalError=void 0;function XP(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}qt.isFatalError=XP;function QP(t,e){return t===null||t(e)}qt.isAppliedFilter=QP;function e2(t,e){return t.split(/[/\\]/).join(e)}qt.replacePathSegmentSeparator=e2;function t2(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}qt.joinPathSegments=t2});var Vl=k(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var r2=Vo(),zl=class{constructor(e,r){this._root=e,this._settings=r,this._root=r2.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Wl.default=zl});var Zl=k(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var i2=require("events"),n2=Wo(),s2=K_(),Yo=Vo(),o2=Vl(),Yl=class extends o2.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=n2.scandir,this._emitter=new i2.EventEmitter,this._queue=s2(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Yo.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let i=e.path;r!==void 0&&(e.path=Yo.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Yo.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Yo.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Kl.default=Yl});var Z_=k(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var a2=Zl(),Jl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new a2.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{u2(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{c2(e,this._storage)}),this._reader.read()}};Xl.default=Jl;function u2(t,e){t(e)}function c2(t,e){t(null,e)}});var J_=k(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var l2=require("stream"),h2=Zl(),Ql=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new h2.default(this._root,this._settings),this._stream=new l2.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};eh.default=Ql});var X_=k(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var f2=Wo(),Ko=Vo(),d2=Vl(),th=class extends d2.default{constructor(){super(...arguments),this._scandir=f2.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Ko.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ko.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};rh.default=th});var Q_=k(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var p2=X_(),ih=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new p2.default(this._root,this._settings)}read(){return this._reader.read()}};nh.default=ih});var eb=k(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var m2=require("path"),y2=Wo(),sh=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,m2.sep),this.fsScandirSettings=new y2.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};oh.default=sh});var Jo=k(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Settings=Ht.walkStream=Ht.walkSync=Ht.walk=void 0;var tb=Z_(),g2=J_(),_2=Q_(),ah=eb();Ht.Settings=ah.default;function b2(t,e,r){if(typeof e=="function"){new tb.default(t,Zo()).read(e);return}new tb.default(t,Zo(e)).read(r)}Ht.walk=b2;function E2(t,e){let r=Zo(e);return new _2.default(t,r).read()}Ht.walkSync=E2;function w2(t,e){let r=Zo(e);return new g2.default(t,r).read()}Ht.walkStream=w2;function Zo(t={}){return t instanceof ah.default?t:new ah.default(t)}});var Xo=k(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var v2=require("path"),S2=di(),rb=or(),uh=class{constructor(e){this._settings=e,this._fsStatSettings=new S2.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return v2.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:rb.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!rb.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ch.default=uh});var fh=k(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var D2=require("stream"),x2=di(),A2=Jo(),C2=Xo(),lh=class extends C2.default{constructor(){super(...arguments),this._walkStream=A2.walkStream,this._stat=x2.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new D2.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};hh.default=lh});var ib=k(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var R2=Jo(),T2=Xo(),k2=fh(),dh=class extends T2.default{constructor(){super(...arguments),this._walkAsync=R2.walk,this._readerStream=new k2.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};ph.default=dh});var nb=k(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var Zi=or(),mh=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Zi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Zi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};yh.default=mh});var sb=k(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var O2=nb(),gh=class extends O2.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};_h.default=gh});var ob=k(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var Qo=or(),F2=sb(),bh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new F2.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Qo.pattern.isAffectDepthOfReadingPattern);return Qo.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Qo.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Qo.pattern.matchAny(e,r)}};Eh.default=bh});var ab=k(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var pi=or(),wh=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=pi.pattern.convertPatternsToRe(e,this._micromatchOptions),n=pi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let i=pi.path.makeAbsolute(this._settings.cwd,e);return pi.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=pi.path.removeLeadingDotSegment(e),s=pi.pattern.matchAny(n,r);return!s&&i?pi.pattern.matchAny(n+"/",r):s}};vh.default=wh});var ub=k(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var P2=or(),Sh=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return P2.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Dh.default=Sh});var lb=k(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var cb=or(),xh=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=cb.path.makeAbsolute(this._settings.cwd,r),r=cb.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Ah.default=xh});var ea=k(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var L2=require("path"),B2=ob(),I2=ab(),N2=ub(),M2=lb(),Ch=class{constructor(e){this._settings=e,this.errorFilter=new N2.default(this._settings),this.entryFilter=new I2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new B2.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new M2.default(this._settings)}_getRootDirectory(e){return L2.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Rh.default=Ch});var hb=k(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var j2=ib(),q2=ea(),Th=class extends q2.default{constructor(){super(...arguments),this._reader=new j2.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};kh.default=Th});var fb=k(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var H2=require("stream"),U2=fh(),$2=ea(),Oh=class extends $2.default{constructor(){super(...arguments),this._reader=new U2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new H2.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Fh.default=Oh});var db=k(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var G2=di(),z2=Jo(),W2=Xo(),Ph=class extends W2.default{constructor(){super(...arguments),this._walkSync=z2.walkSync,this._statSync=G2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Lh.default=Ph});var pb=k(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var V2=db(),Y2=ea(),Bh=class extends Y2.default{constructor(){super(...arguments),this._reader=new V2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Ih.default=Bh});var mb=k(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),K2=require("os"),Z2=Math.max(K2.cpus().length,1);Xi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ji.lstat,lstatSync:Ji.lstatSync,stat:Ji.stat,statSync:Ji.statSync,readdir:Ji.readdir,readdirSync:Ji.readdirSync};var Nh=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Z2),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Xi.default=Nh});var ta=k((G4,_b)=>{"use strict";var yb=m_(),gb=g_(),J2=hb(),X2=fb(),Q2=pb(),Mh=mb(),mi=or();async function jh(t,e){Qi(t);let r=qh(t,J2.default,e),i=await Promise.all(r);return mi.array.flatten(i)}(function(t){function e(o,a){Qi(o);let u=qh(o,Q2.default,a);return mi.array.flatten(u)}t.sync=e;function r(o,a){Qi(o);let u=qh(o,X2.default,a);return mi.stream.merge(u)}t.stream=r;function i(o,a){Qi(o);let u=gb.transform([].concat(o)),c=new Mh.default(a);return yb.generate(u,c)}t.generateTasks=i;function n(o,a){Qi(o);let u=new Mh.default(a);return mi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return Qi(o),mi.path.escape(o)}t.escapePath=s})(jh||(jh={}));function qh(t,e,r){let i=gb.transform([].concat(t)),n=new Mh.default(r),s=yb.generate(i,n),o=new e(n);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(i=>mi.string.isString(i)&&!mi.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}_b.exports=jh});var Eb=k((z4,Hh)=>{"use strict";var bb=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Hh.exports=bb;Hh.exports.default=bb});var Uh=k((W4,ia)=>{"use strict";var eL=Eb(),ra=new WeakMap,wb=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(ra.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return eL(s,t),ra.set(s,i),s};ia.exports=wb;ia.exports.default=wb;ia.exports.callCount=t=>{if(!ra.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ra.get(t)}});var vb=k((V4,na)=>{na.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&na.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&na.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var zh=k((Y4,rn)=>{var Ae=global.process,yi=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};yi(Ae)?(Sb=require("assert"),en=vb(),Db=/^win/i.test(Ae.platform),ms=require("events"),typeof ms!="function"&&(ms=ms.EventEmitter),Ae.__signal_exit_emitter__?Be=Ae.__signal_exit_emitter__:(Be=Ae.__signal_exit_emitter__=new ms,Be.count=0,Be.emitted={}),Be.infinite||(Be.setMaxListeners(1/0),Be.infinite=!0),rn.exports=function(t,e){if(!yi(global.process))return function(){};Sb.equal(typeof t,"function","a callback must be provided for exit handler"),tn===!1&&$h();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Be.removeListener(r,t),Be.listeners("exit").length===0&&Be.listeners("afterexit").length===0&&sa()};return Be.on(r,t),i},sa=function(){!tn||!yi(global.process)||(tn=!1,en.forEach(function(e){try{Ae.removeListener(e,oa[e])}catch{}}),Ae.emit=aa,Ae.reallyExit=Gh,Be.count-=1)},rn.exports.unload=sa,gi=function(e,r,i){Be.emitted[e]||(Be.emitted[e]=!0,Be.emit(e,r,i))},oa={},en.forEach(function(t){oa[t]=function(){if(yi(global.process)){var r=Ae.listeners(t);r.length===Be.count&&(sa(),gi("exit",null,t),gi("afterexit",null,t),Db&&t==="SIGHUP"&&(t="SIGINT"),Ae.kill(Ae.pid,t))}}}),rn.exports.signals=function(){return en},tn=!1,$h=function(){tn||!yi(global.process)||(tn=!0,Be.count+=1,en=en.filter(function(e){try{return Ae.on(e,oa[e]),!0}catch{return!1}}),Ae.emit=Ab,Ae.reallyExit=xb)},rn.exports.load=$h,Gh=Ae.reallyExit,xb=function(e){yi(global.process)&&(Ae.exitCode=e||0,gi("exit",Ae.exitCode,null),gi("afterexit",Ae.exitCode,null),Gh.call(Ae,Ae.exitCode))},aa=Ae.emit,Ab=function(e,r){if(e==="exit"&&yi(global.process)){r!==void 0&&(Ae.exitCode=r);var i=aa.apply(this,arguments);return gi("exit",Ae.exitCode,null),gi("afterexit",Ae.exitCode,null),i}else return aa.apply(this,arguments)}):rn.exports=function(){return function(){}};var Sb,en,Db,ms,Be,sa,gi,oa,tn,$h,Gh,xb,aa,Ab});var Rb=k((K4,Cb)=>{"use strict";var tL=Uh(),rL=zh();Cb.exports=tL(()=>{rL(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Tb=k(nn=>{"use strict";var iL=Rb(),ua=!1;nn.show=(t=process.stderr)=>{t.isTTY&&(ua=!1,t.write("\x1B[?25h"))};nn.hide=(t=process.stderr)=>{t.isTTY&&(iL(),ua=!0,t.write("\x1B[?25l"))};nn.toggle=(t,e)=>{t!==void 0&&(ua=t),ua?nn.show(e):nn.hide(e)}});var kb=k((J4,nL)=>{nL.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var Pb=k((X4,Fb)=>{"use strict";var ca=Object.assign({},kb()),Ob=Object.keys(ca);Object.defineProperty(ca,"random",{get(){let t=Math.floor(Math.random()*Ob.length),e=Ob[t];return ca[e]}});Fb.exports=ca});var Bb=k((Q4,Lb)=>{"use strict";var Nr=require("chalk"),sL=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",oL={info:Nr.blue("\u2139"),success:Nr.green("\u2714"),warning:Nr.yellow("\u26A0"),error:Nr.red("\u2716")},aL={info:Nr.blue("i"),success:Nr.green("\u221A"),warning:Nr.yellow("\u203C"),error:Nr.red("\xD7")};Lb.exports=sL?oL:aL});var Nb=k((e9,Ib)=>{"use strict";Ib.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var jb=k((t9,Mb)=>{"use strict";var uL=Nb();Mb.exports=t=>typeof t=="string"?t.replace(uL(),""):t});var qb=k((r9,la)=>{var cL=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var w,C;if(typeof y!="object")return y;if(t.__isArray(y))w=[];else if(t.__isRegExp(y))w=new RegExp(y.source,s(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(t.__isDate(y))w=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof c=="undefined"?(C=Object.getPrototypeOf(y),w=Object.create(C)):(w=Object.create(c),C=c)}if(a){var F=h.indexOf(y);if(F!=-1)return f[F];h.push(y),f.push(w)}for(var P in y){var T;C&&(T=Object.getOwnPropertyDescriptor(C,P)),!(T&&T.set==null)&&(w[P]=m(y[P],p-1))}return w}return m(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof la=="object"&&la.exports&&(la.exports=cL)});var Ub=k((i9,Hb)=>{var lL=qb();Hb.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=lL(e[r]))}),t}});var Gb=k((n9,$b)=>{$b.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Yb=k((s9,Wh)=>{"use strict";var hL=Ub(),ys=Gb(),Wb={nul:0,control:0};Wh.exports=function(e){return Vb(e,Wb)};Wh.exports.config=function(t){return t=hL(t||{},Wb),function(r){return Vb(r,t)}};function Vb(t,e){if(typeof t!="string")return zb(t,e);for(var r=0,i=0;i<t.length;i++){var n=zb(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function zb(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:fL(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function fL(t){var e=0,r=ys.length-1,i;if(t<ys[0][0]||t>ys[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>ys[i][1])e=i+1;else if(t<ys[i][0])r=i-1;else return!0;return!1}});var Zb=k((o9,Kb)=>{"use strict";Kb.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Xb=k((a9,Jb)=>{var Vh=require("stream");Jb.exports=Ie;function Ie(t){Vh.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ie.prototype=Object.create(Vh.prototype);Object.defineProperty(Ie.prototype,"constructor",{value:Ie,enumerable:!1});Ie.prototype.mute=function(){this.muted=!0};Ie.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ie.prototype,"_onpipe",{value:dL,enumerable:!1,writable:!0,configurable:!0});function dL(t){this._src=t}Object.defineProperty(Ie.prototype,"isTTY",{get:pL,set:mL,enumerable:!0,configurable:!0});function pL(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function mL(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ie.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ie.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ie.prototype.pipe=function(t,e){return this._dest=t,Vh.prototype.pipe.call(this,t,e)};Ie.prototype.pause=function(){if(this._src)return this._src.pause()};Ie.prototype.resume=function(){if(this._src)return this._src.resume()};Ie.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ie.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Yh(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ie.prototype.destroy=Yh("destroy");Ie.prototype.destroySoon=Yh("destroySoon");Ie.prototype.close=Yh("close")});var ya=k((u9,Jh)=>{"use strict";var yL=require("readline"),gL=require("chalk"),Qb=Tb(),ha=Pb(),fa=Bb(),_L=jb(),bL=Yb(),EL=Zb(),wL=Xb(),Kh=Symbol("text"),da=Symbol("prefixText"),vL=3,Zh=class{constructor(){this.requests=0,this.mutedStream=new wL,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(vL)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=yL.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},pa,ma=class{constructor(e){pa||(pa=new Zh),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:EL({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=ha.line;else if(e===void 0)this._spinner=ha.dots;else if(ha[e])this._spinner=ha[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Kh]}get prefixText(){return this[da]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[da]=="string"?this[da]+"-":"";this.lineCount=_L(r+"--"+this[Kh]).split(`
4
4
  `).reduce((i,n)=>i+Math.max(1,Math.ceil(bL(n)/e)),0)}set text(e){this[Kh]=e,this.updateLineCount()}set prefixText(e){this[da]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=gL[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&Qb.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,pa.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
5
5
  `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Qb.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(pa.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:fa.success,text:e})}fail(e){return this.stopAndPersist({symbol:fa.error,text:e})}warn(e){return this.stopAndPersist({symbol:fa.warning,text:e})}info(e){return this.stopAndPersist({symbol:fa.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,i=typeof r=="string"&&r!==""?r+" ":"",n=e.text||this.text,s=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${i}${e.symbol||" "}${s}
6
- `),this}},SL=function(t){return new ma(t)};Jh.exports=SL;Jh.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ma(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var eE=k((c9,ga)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(v,I){if(v=v||"",I=I||{},v instanceof u)return v;if(!(this instanceof u))return new u(v,I);var A=c(v);this._originalInput=v,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=n(100*this._a)/100,this._format=I.format||A.format,this._gradientType=I.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=A.ok,this._tc_id=i++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(v.r*299+v.g*587+v.b*114)/1e3},getLuminance:function(){var v=this.toRgb(),I,A,X,b,W,ee;return I=v.r/255,A=v.g/255,X=v.b/255,I<=.03928?b=I/12.92:b=t.pow((I+.055)/1.055,2.4),A<=.03928?W=A/12.92:W=t.pow((A+.055)/1.055,2.4),X<=.03928?ee=X/12.92:ee=t.pow((X+.055)/1.055,2.4),.2126*b+.7152*W+.0722*ee},setAlpha:function(v){return this._a=G(v),this._roundA=n(100*this._a)/100,this},toHsv:function(){var v=d(this._r,this._g,this._b);return{h:v.h*360,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=d(this._r,this._g,this._b),I=n(v.h*360),A=n(v.s*100),X=n(v.v*100);return this._a==1?"hsv("+I+", "+A+"%, "+X+"%)":"hsva("+I+", "+A+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var v=h(this._r,this._g,this._b);return{h:v.h*360,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=h(this._r,this._g,this._b),I=n(v.h*360),A=n(v.s*100),X=n(v.l*100);return this._a==1?"hsl("+I+", "+A+"%, "+X+"%)":"hsla("+I+", "+A+"%, "+X+"%, "+this._roundA+")"},toHex:function(v){return y(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return p(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Z(this._r,255)*100)+"%",g:n(Z(this._g,255)*100)+"%",b:n(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%)":"rgba("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:L[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(v){var I="#"+w(this._r,this._g,this._b,this._a),A=I,X=this._gradientType?"GradientType = 1, ":"";if(v){var b=u(v);A="#"+w(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+I+",endColorstr="+A+")"},toString:function(v){var I=!!v;v=v||this._format;var A=!1,X=this._a<1&&this._a>=0,b=!I&&X&&(v==="hex"||v==="hex6"||v==="hex3"||v==="hex4"||v==="hex8"||v==="name");return b?v==="name"&&this._a===0?this.toName():this.toRgbString():(v==="rgb"&&(A=this.toRgbString()),v==="prgb"&&(A=this.toPercentageRgbString()),(v==="hex"||v==="hex6")&&(A=this.toHexString()),v==="hex3"&&(A=this.toHexString(!0)),v==="hex4"&&(A=this.toHex8String(!0)),v==="hex8"&&(A=this.toHex8String()),v==="name"&&(A=this.toName()),v==="hsl"&&(A=this.toHslString()),v==="hsv"&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(v,I){var A=v.apply(null,[this].concat([].slice.call(I)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(v,I){return v.apply(null,[this].concat([].slice.call(I)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(H,arguments)},monochromatic:function(){return this._applyCombination(ne,arguments)},splitcomplement:function(){return this._applyCombination(K,arguments)},triad:function(){return this._applyCombination(z,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},u.fromRatio=function(v,I){if(typeof v=="object"){var A={};for(var X in v)v.hasOwnProperty(X)&&(X==="a"?A[X]=v[X]:A[X]=x(v[X]));v=A}return u(v,I)};function c(v){var I={r:0,g:0,b:0},A=1,X=null,b=null,W=null,ee=!1,ae=!1;return typeof v=="string"&&(v=ue(v)),typeof v=="object"&&(V(v.r)&&V(v.g)&&V(v.b)?(I=l(v.r,v.g,v.b),ee=!0,ae=String(v.r).substr(-1)==="%"?"prgb":"rgb"):V(v.h)&&V(v.s)&&V(v.v)?(X=x(v.s),b=x(v.v),I=m(v.h,X,b),ee=!0,ae="hsv"):V(v.h)&&V(v.s)&&V(v.l)&&(X=x(v.s),W=x(v.l),I=f(v.h,X,W),ee=!0,ae="hsl"),v.hasOwnProperty("a")&&(A=v.a)),A=G(A),{ok:ee,format:v.format||ae,r:s(255,o(I.r,0)),g:s(255,o(I.g,0)),b:s(255,o(I.b,0)),a:A}}function l(v,I,A){return{r:Z(v,255)*255,g:Z(I,255)*255,b:Z(A,255)*255}}function h(v,I,A){v=Z(v,255),I=Z(I,255),A=Z(A,255);var X=o(v,I,A),b=s(v,I,A),W,ee,ae=(X+b)/2;if(X==b)W=ee=0;else{var he=X-b;switch(ee=ae>.5?he/(2-X-b):he/(X+b),X){case v:W=(I-A)/he+(I<A?6:0);break;case I:W=(A-v)/he+2;break;case A:W=(v-I)/he+4;break}W/=6}return{h:W,s:ee,l:ae}}function f(v,I,A){var X,b,W;v=Z(v,360),I=Z(I,100),A=Z(A,100);function ee(me,ye,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?me+(ye-me)*6*pe:pe<1/2?ye:pe<2/3?me+(ye-me)*(2/3-pe)*6:me}if(I===0)X=b=W=A;else{var ae=A<.5?A*(1+I):A+I-A*I,he=2*A-ae;X=ee(he,ae,v+1/3),b=ee(he,ae,v),W=ee(he,ae,v-1/3)}return{r:X*255,g:b*255,b:W*255}}function d(v,I,A){v=Z(v,255),I=Z(I,255),A=Z(A,255);var X=o(v,I,A),b=s(v,I,A),W,ee,ae=X,he=X-b;if(ee=X===0?0:he/X,X==b)W=0;else{switch(X){case v:W=(I-A)/he+(I<A?6:0);break;case I:W=(A-v)/he+2;break;case A:W=(v-I)/he+4;break}W/=6}return{h:W,s:ee,v:ae}}function m(v,I,A){v=Z(v,360)*6,I=Z(I,100),A=Z(A,100);var X=t.floor(v),b=v-X,W=A*(1-I),ee=A*(1-b*I),ae=A*(1-(1-b)*I),he=X%6,me=[A,ee,W,W,ae,A][he],ye=[ae,A,A,ee,W,W][he],pe=[W,W,ae,A,A,ee][he];return{r:me*255,g:ye*255,b:pe*255}}function y(v,I,A,X){var b=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16))];return X&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0):b.join("")}function p(v,I,A,X,b){var W=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16)),R(U(X))];return b&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)&&W[3].charAt(0)==W[3].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0)+W[3].charAt(0):W.join("")}function w(v,I,A,X){var b=[R(U(X)),R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16))];return b.join("")}u.equals=function(v,I){return!v||!I?!1:u(v).toRgbString()==u(I).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.s-=I/100,A.s=j(A.s),u(A)}function F(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.s+=I/100,A.s=j(A.s),u(A)}function P(v){return u(v).desaturate(100)}function T(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.l+=I/100,A.l=j(A.l),u(A)}function M(v,I){I=I===0?0:I||10;var A=u(v).toRgb();return A.r=o(0,s(255,A.r-n(255*-(I/100)))),A.g=o(0,s(255,A.g-n(255*-(I/100)))),A.b=o(0,s(255,A.b-n(255*-(I/100)))),u(A)}function S(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.l-=I/100,A.l=j(A.l),u(A)}function D(v,I){var A=u(v).toHsl(),X=(A.h+I)%360;return A.h=X<0?360+X:X,u(A)}function H(v){var I=u(v).toHsl();return I.h=(I.h+180)%360,u(I)}function z(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+120)%360,s:I.s,l:I.l}),u({h:(A+240)%360,s:I.s,l:I.l})]}function N(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+90)%360,s:I.s,l:I.l}),u({h:(A+180)%360,s:I.s,l:I.l}),u({h:(A+270)%360,s:I.s,l:I.l})]}function K(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+72)%360,s:I.s,l:I.l}),u({h:(A+216)%360,s:I.s,l:I.l})]}function te(v,I,A){I=I||6,A=A||30;var X=u(v).toHsl(),b=360/A,W=[u(v)];for(X.h=(X.h-(b*I>>1)+720)%360;--I;)X.h=(X.h+b)%360,W.push(u(X));return W}function ne(v,I){I=I||6;for(var A=u(v).toHsv(),X=A.h,b=A.s,W=A.v,ee=[],ae=1/I;I--;)ee.push(u({h:X,s:b,v:W})),W=(W+ae)%1;return ee}u.mix=function(v,I,A){A=A===0?0:A||50;var X=u(v).toRgb(),b=u(I).toRgb(),W=A/100,ee={r:(b.r-X.r)*W+X.r,g:(b.g-X.g)*W+X.g,b:(b.b-X.b)*W+X.b,a:(b.a-X.a)*W+X.a};return u(ee)},u.readability=function(v,I){var A=u(v),X=u(I);return(t.max(A.getLuminance(),X.getLuminance())+.05)/(t.min(A.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(v,I,A){var X=u.readability(v,I),b,W;switch(W=!1,b=J(A),b.level+b.size){case"AAsmall":case"AAAlarge":W=X>=4.5;break;case"AAlarge":W=X>=3;break;case"AAAsmall":W=X>=7;break}return W},u.mostReadable=function(v,I,A){var X=null,b=0,W,ee,ae,he;A=A||{},ee=A.includeFallbackColors,ae=A.level,he=A.size;for(var me=0;me<I.length;me++)W=u.readability(v,I[me]),W>b&&(b=W,X=u(I[me]));return u.isReadable(v,X,{level:ae,size:he})||!ee?X:(A.includeFallbackColors=!1,u.mostReadable(v,["#fff","#000"],A))};var q=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},L=u.hexNames=B(q);function B(v){var I={};for(var A in v)v.hasOwnProperty(A)&&(I[v[A]]=A);return I}function G(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function Z(v,I){_(v)&&(v="100%");var A=E(v);return v=s(I,o(0,parseFloat(v))),A&&(v=parseInt(v*I,10)/100),t.abs(v-I)<1e-6?1:v%I/parseFloat(I)}function j(v){return s(1,o(0,v))}function g(v){return parseInt(v,16)}function _(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function E(v){return typeof v=="string"&&v.indexOf("%")!=-1}function R(v){return v.length==1?"0"+v:""+v}function x(v){return v<=1&&(v=v*100+"%"),v}function U(v){return t.round(parseFloat(v)*255).toString(16)}function $(v){return g(v)/255}var re=function(){var v="[-\\+]?\\d+%?",I="[-\\+]?\\d*\\.\\d+%?",A="(?:"+I+")|(?:"+v+")",X="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",b="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+b),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+b),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+b),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function V(v){return!!re.CSS_UNIT.exec(v)}function ue(v){v=v.replace(e,"").replace(r,"").toLowerCase();var I=!1;if(q[v])v=q[v],I=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var A;return(A=re.rgb.exec(v))?{r:A[1],g:A[2],b:A[3]}:(A=re.rgba.exec(v))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=re.hsl.exec(v))?{h:A[1],s:A[2],l:A[3]}:(A=re.hsla.exec(v))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=re.hsv.exec(v))?{h:A[1],s:A[2],v:A[3]}:(A=re.hsva.exec(v))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=re.hex8.exec(v))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),a:$(A[4]),format:I?"name":"hex8"}:(A=re.hex6.exec(v))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),format:I?"name":"hex"}:(A=re.hex4.exec(v))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),a:$(A[4]+""+A[4]),format:I?"name":"hex8"}:(A=re.hex3.exec(v))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),format:I?"name":"hex"}:!1}function J(v){var I,A;return v=v||{level:"AA",size:"small"},I=(v.level||"AA").toUpperCase(),A=(v.size||"small").toLowerCase(),I!=="AA"&&I!=="AAA"&&(I="AA"),A!=="small"&&A!=="large"&&(A="small"),{level:I,size:A}}typeof ga!="undefined"&&ga.exports?ga.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var aE=k((l9,oE)=>{var gs=eE(),nE={r:256,g:256,b:256,a:1},sE={h:360,s:1,v:1,a:1};function Qh(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function ef(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function Xh(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=Qh(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=ef(s,i,a,nE);o.push(gs(u))}return o}function tE(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return Xh(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=Qh(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=ef(a,n,l,sE);u.push(gs(h))}return u}function rE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function iE(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=Qh(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=ef(o,n.color[r](),(e-n.pos)*100,i);return gs(a)}var sn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?gs(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:gs(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new sn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new sn(e.concat(r.reverse()))}rgb(e){let r=rE(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=Xh(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=Xh(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=rE(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=tE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=tE(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return iE(this.stops,e,"toRgb",nE)}hsvAt(e){return iE(this.stops,e,"toHsv",sE)}};oE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new sn(t)}});var ba=k((h9,_a)=>{"use strict";var cE=require("chalk"),DL=aE(),uE=/\s/g;function tf(...t){let e=DL.apply(this,t),r=(i,n)=>xL(i?i.toString():"",e,n);return r.multiline=(i,n)=>AL(i?i.toString():"",e,n),r}var lE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function xL(t,e,r){let i=hE(r),n=Math.max(t.replace(uE,"").length,e.stops.length),s=lE(e,i,n),o="";for(let a of t)o+=a.match(uE)?a:cE.hex(s.shift().toHex())(a);return o}function AL(t,e,r){let i=hE(r),n=t.split(`
6
+ `),this}},SL=function(t){return new ma(t)};Jh.exports=SL;Jh.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ma(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var eE=k((c9,ga)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(v,I){if(v=v||"",I=I||{},v instanceof u)return v;if(!(this instanceof u))return new u(v,I);var A=c(v);this._originalInput=v,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=n(100*this._a)/100,this._format=I.format||A.format,this._gradientType=I.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=A.ok,this._tc_id=i++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(v.r*299+v.g*587+v.b*114)/1e3},getLuminance:function(){var v=this.toRgb(),I,A,X,b,z,re;return I=v.r/255,A=v.g/255,X=v.b/255,I<=.03928?b=I/12.92:b=t.pow((I+.055)/1.055,2.4),A<=.03928?z=A/12.92:z=t.pow((A+.055)/1.055,2.4),X<=.03928?re=X/12.92:re=t.pow((X+.055)/1.055,2.4),.2126*b+.7152*z+.0722*re},setAlpha:function(v){return this._a=G(v),this._roundA=n(100*this._a)/100,this},toHsv:function(){var v=d(this._r,this._g,this._b);return{h:v.h*360,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=d(this._r,this._g,this._b),I=n(v.h*360),A=n(v.s*100),X=n(v.v*100);return this._a==1?"hsv("+I+", "+A+"%, "+X+"%)":"hsva("+I+", "+A+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var v=h(this._r,this._g,this._b);return{h:v.h*360,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=h(this._r,this._g,this._b),I=n(v.h*360),A=n(v.s*100),X=n(v.l*100);return this._a==1?"hsl("+I+", "+A+"%, "+X+"%)":"hsla("+I+", "+A+"%, "+X+"%, "+this._roundA+")"},toHex:function(v){return y(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return p(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Z(this._r,255)*100)+"%",g:n(Z(this._g,255)*100)+"%",b:n(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%)":"rgba("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:L[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(v){var I="#"+w(this._r,this._g,this._b,this._a),A=I,X=this._gradientType?"GradientType = 1, ":"";if(v){var b=u(v);A="#"+w(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+I+",endColorstr="+A+")"},toString:function(v){var I=!!v;v=v||this._format;var A=!1,X=this._a<1&&this._a>=0,b=!I&&X&&(v==="hex"||v==="hex6"||v==="hex3"||v==="hex4"||v==="hex8"||v==="name");return b?v==="name"&&this._a===0?this.toName():this.toRgbString():(v==="rgb"&&(A=this.toRgbString()),v==="prgb"&&(A=this.toPercentageRgbString()),(v==="hex"||v==="hex6")&&(A=this.toHexString()),v==="hex3"&&(A=this.toHexString(!0)),v==="hex4"&&(A=this.toHex8String(!0)),v==="hex8"&&(A=this.toHex8String()),v==="name"&&(A=this.toName()),v==="hsl"&&(A=this.toHslString()),v==="hsv"&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(v,I){var A=v.apply(null,[this].concat([].slice.call(I)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(v,I){return v.apply(null,[this].concat([].slice.call(I)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(H,arguments)},monochromatic:function(){return this._applyCombination(te,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(W,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},u.fromRatio=function(v,I){if(typeof v=="object"){var A={};for(var X in v)v.hasOwnProperty(X)&&(X==="a"?A[X]=v[X]:A[X]=D(v[X]));v=A}return u(v,I)};function c(v){var I={r:0,g:0,b:0},A=1,X=null,b=null,z=null,re=!1,ae=!1;return typeof v=="string"&&(v=ue(v)),typeof v=="object"&&(Y(v.r)&&Y(v.g)&&Y(v.b)?(I=l(v.r,v.g,v.b),re=!0,ae=String(v.r).substr(-1)==="%"?"prgb":"rgb"):Y(v.h)&&Y(v.s)&&Y(v.v)?(X=D(v.s),b=D(v.v),I=m(v.h,X,b),re=!0,ae="hsv"):Y(v.h)&&Y(v.s)&&Y(v.l)&&(X=D(v.s),z=D(v.l),I=f(v.h,X,z),re=!0,ae="hsl"),v.hasOwnProperty("a")&&(A=v.a)),A=G(A),{ok:re,format:v.format||ae,r:s(255,o(I.r,0)),g:s(255,o(I.g,0)),b:s(255,o(I.b,0)),a:A}}function l(v,I,A){return{r:Z(v,255)*255,g:Z(I,255)*255,b:Z(A,255)*255}}function h(v,I,A){v=Z(v,255),I=Z(I,255),A=Z(A,255);var X=o(v,I,A),b=s(v,I,A),z,re,ae=(X+b)/2;if(X==b)z=re=0;else{var he=X-b;switch(re=ae>.5?he/(2-X-b):he/(X+b),X){case v:z=(I-A)/he+(I<A?6:0);break;case I:z=(A-v)/he+2;break;case A:z=(v-I)/he+4;break}z/=6}return{h:z,s:re,l:ae}}function f(v,I,A){var X,b,z;v=Z(v,360),I=Z(I,100),A=Z(A,100);function re(me,ye,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?me+(ye-me)*6*pe:pe<1/2?ye:pe<2/3?me+(ye-me)*(2/3-pe)*6:me}if(I===0)X=b=z=A;else{var ae=A<.5?A*(1+I):A+I-A*I,he=2*A-ae;X=re(he,ae,v+1/3),b=re(he,ae,v),z=re(he,ae,v-1/3)}return{r:X*255,g:b*255,b:z*255}}function d(v,I,A){v=Z(v,255),I=Z(I,255),A=Z(A,255);var X=o(v,I,A),b=s(v,I,A),z,re,ae=X,he=X-b;if(re=X===0?0:he/X,X==b)z=0;else{switch(X){case v:z=(I-A)/he+(I<A?6:0);break;case I:z=(A-v)/he+2;break;case A:z=(v-I)/he+4;break}z/=6}return{h:z,s:re,v:ae}}function m(v,I,A){v=Z(v,360)*6,I=Z(I,100),A=Z(A,100);var X=t.floor(v),b=v-X,z=A*(1-I),re=A*(1-b*I),ae=A*(1-(1-b)*I),he=X%6,me=[A,re,z,z,ae,A][he],ye=[ae,A,A,re,z,z][he],pe=[z,z,ae,A,A,re][he];return{r:me*255,g:ye*255,b:pe*255}}function y(v,I,A,X){var b=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16))];return X&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0):b.join("")}function p(v,I,A,X,b){var z=[R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16)),R(U(X))];return b&&z[0].charAt(0)==z[0].charAt(1)&&z[1].charAt(0)==z[1].charAt(1)&&z[2].charAt(0)==z[2].charAt(1)&&z[3].charAt(0)==z[3].charAt(1)?z[0].charAt(0)+z[1].charAt(0)+z[2].charAt(0)+z[3].charAt(0):z.join("")}function w(v,I,A,X){var b=[R(U(X)),R(n(v).toString(16)),R(n(I).toString(16)),R(n(A).toString(16))];return b.join("")}u.equals=function(v,I){return!v||!I?!1:u(v).toRgbString()==u(I).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.s-=I/100,A.s=q(A.s),u(A)}function F(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.s+=I/100,A.s=q(A.s),u(A)}function P(v){return u(v).desaturate(100)}function T(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.l+=I/100,A.l=q(A.l),u(A)}function M(v,I){I=I===0?0:I||10;var A=u(v).toRgb();return A.r=o(0,s(255,A.r-n(255*-(I/100)))),A.g=o(0,s(255,A.g-n(255*-(I/100)))),A.b=o(0,s(255,A.b-n(255*-(I/100)))),u(A)}function S(v,I){I=I===0?0:I||10;var A=u(v).toHsl();return A.l-=I/100,A.l=q(A.l),u(A)}function x(v,I){var A=u(v).toHsl(),X=(A.h+I)%360;return A.h=X<0?360+X:X,u(A)}function H(v){var I=u(v).toHsl();return I.h=(I.h+180)%360,u(I)}function W(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+120)%360,s:I.s,l:I.l}),u({h:(A+240)%360,s:I.s,l:I.l})]}function N(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+90)%360,s:I.s,l:I.l}),u({h:(A+180)%360,s:I.s,l:I.l}),u({h:(A+270)%360,s:I.s,l:I.l})]}function V(v){var I=u(v).toHsl(),A=I.h;return[u(v),u({h:(A+72)%360,s:I.s,l:I.l}),u({h:(A+216)%360,s:I.s,l:I.l})]}function Q(v,I,A){I=I||6,A=A||30;var X=u(v).toHsl(),b=360/A,z=[u(v)];for(X.h=(X.h-(b*I>>1)+720)%360;--I;)X.h=(X.h+b)%360,z.push(u(X));return z}function te(v,I){I=I||6;for(var A=u(v).toHsv(),X=A.h,b=A.s,z=A.v,re=[],ae=1/I;I--;)re.push(u({h:X,s:b,v:z})),z=(z+ae)%1;return re}u.mix=function(v,I,A){A=A===0?0:A||50;var X=u(v).toRgb(),b=u(I).toRgb(),z=A/100,re={r:(b.r-X.r)*z+X.r,g:(b.g-X.g)*z+X.g,b:(b.b-X.b)*z+X.b,a:(b.a-X.a)*z+X.a};return u(re)},u.readability=function(v,I){var A=u(v),X=u(I);return(t.max(A.getLuminance(),X.getLuminance())+.05)/(t.min(A.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(v,I,A){var X=u.readability(v,I),b,z;switch(z=!1,b=J(A),b.level+b.size){case"AAsmall":case"AAAlarge":z=X>=4.5;break;case"AAlarge":z=X>=3;break;case"AAAsmall":z=X>=7;break}return z},u.mostReadable=function(v,I,A){var X=null,b=0,z,re,ae,he;A=A||{},re=A.includeFallbackColors,ae=A.level,he=A.size;for(var me=0;me<I.length;me++)z=u.readability(v,I[me]),z>b&&(b=z,X=u(I[me]));return u.isReadable(v,X,{level:ae,size:he})||!re?X:(A.includeFallbackColors=!1,u.mostReadable(v,["#fff","#000"],A))};var j=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},L=u.hexNames=B(j);function B(v){var I={};for(var A in v)v.hasOwnProperty(A)&&(I[v[A]]=A);return I}function G(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function Z(v,I){_(v)&&(v="100%");var A=E(v);return v=s(I,o(0,parseFloat(v))),A&&(v=parseInt(v*I,10)/100),t.abs(v-I)<1e-6?1:v%I/parseFloat(I)}function q(v){return s(1,o(0,v))}function g(v){return parseInt(v,16)}function _(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function E(v){return typeof v=="string"&&v.indexOf("%")!=-1}function R(v){return v.length==1?"0"+v:""+v}function D(v){return v<=1&&(v=v*100+"%"),v}function U(v){return t.round(parseFloat(v)*255).toString(16)}function $(v){return g(v)/255}var ie=function(){var v="[-\\+]?\\d+%?",I="[-\\+]?\\d*\\.\\d+%?",A="(?:"+I+")|(?:"+v+")",X="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",b="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+b),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+b),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+b),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(v){return!!ie.CSS_UNIT.exec(v)}function ue(v){v=v.replace(e,"").replace(r,"").toLowerCase();var I=!1;if(j[v])v=j[v],I=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var A;return(A=ie.rgb.exec(v))?{r:A[1],g:A[2],b:A[3]}:(A=ie.rgba.exec(v))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=ie.hsl.exec(v))?{h:A[1],s:A[2],l:A[3]}:(A=ie.hsla.exec(v))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=ie.hsv.exec(v))?{h:A[1],s:A[2],v:A[3]}:(A=ie.hsva.exec(v))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=ie.hex8.exec(v))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),a:$(A[4]),format:I?"name":"hex8"}:(A=ie.hex6.exec(v))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),format:I?"name":"hex"}:(A=ie.hex4.exec(v))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),a:$(A[4]+""+A[4]),format:I?"name":"hex8"}:(A=ie.hex3.exec(v))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),format:I?"name":"hex"}:!1}function J(v){var I,A;return v=v||{level:"AA",size:"small"},I=(v.level||"AA").toUpperCase(),A=(v.size||"small").toLowerCase(),I!=="AA"&&I!=="AAA"&&(I="AA"),A!=="small"&&A!=="large"&&(A="small"),{level:I,size:A}}typeof ga!="undefined"&&ga.exports?ga.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var aE=k((l9,oE)=>{var gs=eE(),nE={r:256,g:256,b:256,a:1},sE={h:360,s:1,v:1,a:1};function Qh(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function ef(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function Xh(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=Qh(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=ef(s,i,a,nE);o.push(gs(u))}return o}function tE(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return Xh(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=Qh(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=ef(a,n,l,sE);u.push(gs(h))}return u}function rE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function iE(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=Qh(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=ef(o,n.color[r](),(e-n.pos)*100,i);return gs(a)}var sn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?gs(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:gs(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new sn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new sn(e.concat(r.reverse()))}rgb(e){let r=rE(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=Xh(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=Xh(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=rE(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=tE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=tE(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return iE(this.stops,e,"toRgb",nE)}hsvAt(e){return iE(this.stops,e,"toHsv",sE)}};oE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new sn(t)}});var ba=k((h9,_a)=>{"use strict";var cE=require("chalk"),DL=aE(),uE=/\s/g;function tf(...t){let e=DL.apply(this,t),r=(i,n)=>xL(i?i.toString():"",e,n);return r.multiline=(i,n)=>AL(i?i.toString():"",e,n),r}var lE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function xL(t,e,r){let i=hE(r),n=Math.max(t.replace(uE,"").length,e.stops.length),s=lE(e,i,n),o="";for(let a of t)o+=a.match(uE)?a:cE.hex(s.shift().toHex())(a);return o}function AL(t,e,r){let i=hE(r),n=t.split(`
7
7
  `),s=Math.max.apply(null,n.map(u=>u.length).concat([e.stops.length])),o=lE(e,i,s),a=[];for(let u of n){let c=o.slice(0),l="";for(let h of u)l+=cE.hex(c.shift().toHex())(h);a.push(l)}return a.join(`
8
8
  `)}function hE(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var _s={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};_a.exports=tf;for(let t in _s)_a.exports[t]=e=>new tf(_s[t].colors)(e,_s[t].options),_a.exports[t].multiline=e=>new tf(_s[t].colors).multiline(e,_s[t].options)});var SE=k((y9,vE)=>{vE.exports=wE;wE.sync=qL;var bE=require("fs");function jL(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function EE(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:jL(e,r)}function wE(t,e,r){bE.stat(t,function(i,n){r(i,i?!1:EE(n,t,e))})}function qL(t,e){return EE(bE.statSync(t),t,e)}});var RE=k((g9,CE)=>{CE.exports=xE;xE.sync=HL;var DE=require("fs");function xE(t,e,r){DE.stat(t,function(i,n){r(i,i?!1:AE(n,e))})}function HL(t,e){return AE(DE.statSync(t),e)}function AE(t,e){return t.isFile()&&UL(t,e)}function UL(t,e){var r=t.mode,i=t.uid,n=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,h=r&c||r&u&&n===o||r&a&&i===s||r&l&&s===0;return h}});var kE=k((b9,TE)=>{var _9=require("fs"),Ea;process.platform==="win32"||global.TESTING_WINDOWS?Ea=SE():Ea=RE();TE.exports=nf;nf.sync=$L;function nf(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){nf(t,e||{},function(s,o){s?n(s):i(o)})})}Ea(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function $L(t,e){try{return Ea.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var NE=k((E9,IE)=>{var an=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",OE=require("path"),GL=an?";":":",FE=kE(),PE=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),LE=(t,e)=>{let r=e.colon||GL,i=t.match(/\//)||an&&t.match(/\\/)?[""]:[...an?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=an?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=an?n.split(r):[""];return an&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},BE=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=LE(t,e),o=[],a=c=>new Promise((l,h)=>{if(c===i.length)return e.all&&o.length?l(o):h(PE(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,m=OE.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(u(y,c,0))}),u=(c,l,h)=>new Promise((f,d)=>{if(h===n.length)return f(a(l+1));let m=n[h];FE(c+m,{pathExt:s},(y,p)=>{if(!y&&p)if(e.all)o.push(c+m);else return f(c+m);return f(u(c,l,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},zL=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=LE(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=OE.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=l+i[h];try{if(FE.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw PE(t)};IE.exports=BE;BE.sync=zL});var of=k((w9,sf)=>{"use strict";var ME=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};sf.exports=ME;sf.exports.default=ME});var UE=k((v9,HE)=>{"use strict";var jE=require("path"),WL=NE(),VL=of();function qE(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=WL.sync(t.command,{path:r[VL({env:r})],pathExt:e?jE.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=jE.resolve(n?t.options.cwd:"",o)),o}function YL(t){return qE(t)||qE(t,!0)}HE.exports=YL});var $E=k((S9,uf)=>{"use strict";var af=/([()\][%!^"`<>&|;, *?])/g;function KL(t){return t=t.replace(af,"^$1"),t}function ZL(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(af,"^$1"),e&&(t=t.replace(af,"^$1")),t}uf.exports.command=KL;uf.exports.argument=ZL});var zE=k((D9,GE)=>{"use strict";GE.exports=/^#!(.*)/});var VE=k((x9,WE)=>{"use strict";var JL=zE();WE.exports=(t="")=>{let e=t.match(JL);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var KE=k((A9,YE)=>{"use strict";var cf=require("fs"),XL=VE();function QL(t){let r=Buffer.alloc(150),i;try{i=cf.openSync(t,"r"),cf.readSync(i,r,0,150,0),cf.closeSync(i)}catch{}return XL(r.toString())}YE.exports=QL});var QE=k((C9,XE)=>{"use strict";var eB=require("path"),ZE=UE(),JE=$E(),tB=KE(),rB=process.platform==="win32",iB=/\.(?:com|exe)$/i,nB=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function sB(t){t.file=ZE(t);let e=t.file&&tB(t.file);return e?(t.args.unshift(t.file),t.command=e,ZE(t)):t.file}function oB(t){if(!rB)return t;let e=sB(t),r=!iB.test(e);if(t.options.forceShell||r){let i=nB.test(e);t.command=eB.normalize(t.command),t.command=JE.command(t.command),t.args=t.args.map(s=>JE.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function aB(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:oB(i)}XE.exports=aB});var rw=k((R9,tw)=>{"use strict";var lf=process.platform==="win32";function hf(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function uB(t,e){if(!lf)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=ew(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function ew(t,e){return lf&&t===1&&!e.file?hf(e.original,"spawn"):null}function cB(t,e){return lf&&t===1&&!e.file?hf(e.original,"spawnSync"):null}tw.exports={hookChildProcess:uB,verifyENOENT:ew,verifyENOENTSync:cB,notFoundError:hf}});var sw=k((T9,un)=>{"use strict";var iw=require("child_process"),ff=QE(),df=rw();function nw(t,e,r){let i=ff(t,e,r),n=iw.spawn(i.command,i.args,i.options);return df.hookChildProcess(n,i),n}function lB(t,e,r){let i=ff(t,e,r),n=iw.spawnSync(i.command,i.args,i.options);return n.error=n.error||df.verifyENOENTSync(n.status,i),n}un.exports=nw;un.exports.spawn=nw;un.exports.sync=lB;un.exports._parse=ff;un.exports._enoent=df});var aw=k((k9,ow)=>{"use strict";ow.exports=t=>{let e=typeof t=="string"?`
9
9
  `:`
@@ -11,12 +11,12 @@
11
11
  ${i.message}`:y,C=[w,e,t].filter(Boolean).join(`
12
12
  `);return p?(i.originalMessage=i.message,i.message=C):i=new Error(C),i.shortMessage=w,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=c,i.killed=l&&!u,i};gw.exports=kB});var Ew=k((N9,mf)=>{"use strict";var Sa=["stdin","stdout","stderr"],OB=t=>Sa.some(e=>t[e]!==void 0),bw=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Sa.map(i=>t[i]);if(OB(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Sa.map(i=>`\`${i}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Sa.length);return Array.from({length:r},(i,n)=>e[n])};mf.exports=bw;mf.exports.node=t=>{let e=bw(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var vw=k((M9,ww)=>{"use strict";var FB=require("os"),PB=zh(),LB=1e3*5,BB=(t,e="SIGTERM",r={})=>{let i=t(e);return IB(t,e,r,i),i},IB=(t,e,r,i)=>{if(!NB(e,r,i))return;let n=jB(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},NB=(t,{forceKillAfterTimeout:e},r)=>MB(t)&&e!==!1&&r,MB=t=>t===FB.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",jB=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return LB;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},qB=(t,e)=>{t.kill()&&(e.isCanceled=!0)},HB=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},UB=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{HB(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},$B=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},GB=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=PB(()=>{t.kill()});return i.finally(()=>{n()})};ww.exports={spawnedKill:BB,spawnedCancel:qB,setupTimeout:UB,validateTimeout:$B,setExitHandler:GB}});var Dw=k((j9,Sw)=>{"use strict";var Ut=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ut.writable=t=>Ut(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ut.readable=t=>Ut(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ut.duplex=t=>Ut.writable(t)&&Ut.readable(t);Ut.transform=t=>Ut.duplex(t)&&typeof t._transform=="function";Sw.exports=Ut});var Aw=k((q9,xw)=>{"use strict";var{PassThrough:zB}=require("stream");xw.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new zB({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Cw=k((H9,ws)=>{"use strict";var{constants:WB}=require("buffer"),VB=require("stream"),{promisify:YB}=require("util"),KB=Aw(),ZB=YB(VB.pipeline),Da=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function yf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=KB(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=WB.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await ZB(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Da)})}),i.getBufferedValue()}ws.exports=yf;ws.exports.buffer=(t,e)=>yf(t,{...e,encoding:"buffer"});ws.exports.array=(t,e)=>yf(t,{...e,array:!0});ws.exports.MaxBufferError=Da});var Tw=k((U9,Rw)=>{"use strict";var{PassThrough:JB}=require("stream");Rw.exports=function(){var t=[],e=new JB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Pw=k(($9,Fw)=>{"use strict";var Ow=Dw(),kw=Cw(),XB=Tw(),QB=(t,e)=>{e===void 0||t.stdin===void 0||(Ow(e)?e.pipe(t.stdin):t.stdin.end(e))},eI=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=XB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},gf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},_f=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?kw(t,{encoding:e,maxBuffer:i}):kw.buffer(t,{maxBuffer:i})},tI=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=_f(t,{encoding:i,buffer:n,maxBuffer:s}),u=_f(e,{encoding:i,buffer:n,maxBuffer:s}),c=_f(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},gf(t,a),gf(e,u),gf(r,c)])}},rI=({input:t})=>{if(Ow(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Fw.exports={handleInput:QB,makeAllStream:eI,getSpawnedResult:tI,validateInputSync:rI}});var Bw=k((G9,Lw)=>{"use strict";var iI=(async()=>{})().constructor.prototype,nI=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(iI,t)]),sI=(t,e)=>{for(let[r,i]of nI){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},oI=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});Lw.exports={mergePromise:sI,getSpawnedPromise:oI}});var Mw=k((z9,Nw)=>{"use strict";var Iw=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],aI=/^[\w.-]+$/,uI=/"/g,cI=t=>typeof t!="string"||aI.test(t)?t:`"${t.replace(uI,'\\"')}"`,lI=(t,e)=>Iw(t,e).join(" "),hI=(t,e)=>Iw(t,e).map(r=>cI(r)).join(" "),fI=/ +/g,dI=t=>{let e=[];for(let r of t.trim().split(fI)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Nw.exports={joinCommand:lI,getEscapedCommand:hI,parseCommand:dI}});var fn=k((W9,hn)=>{"use strict";var pI=require("path"),bf=require("child_process"),mI=sw(),yI=aw(),gI=lw(),_I=Uh(),xa=_w(),qw=Ew(),{spawnedKill:bI,spawnedCancel:EI,setupTimeout:wI,validateTimeout:vI,setExitHandler:SI}=vw(),{handleInput:DI,getSpawnedResult:xI,makeAllStream:AI,validateInputSync:CI}=Pw(),{mergePromise:jw,getSpawnedPromise:RI}=Bw(),{joinCommand:Hw,parseCommand:Uw,getEscapedCommand:$w}=Mw(),TI=1e3*1e3*100,kI=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?gI.env({env:s,cwd:i,execPath:n}):s},Gw=(t,e,r={})=>{let i=mI._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:TI,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=kI(r),r.stdio=qw(r),process.platform==="win32"&&pI.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},vs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?yI(e):e,Aa=(t,e,r)=>{let i=Gw(t,e,r),n=Hw(t,e),s=$w(t,e);vI(i.options);let o;try{o=bf.spawn(i.file,i.args,i.options)}catch(d){let m=new bf.ChildProcess,y=Promise.reject(xa({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return jw(m,y)}let a=RI(o),u=wI(o,i.options,a),c=SI(o,i.options,u),l={isCanceled:!1};o.kill=bI.bind(null,o.kill.bind(o)),o.cancel=EI.bind(null,o,l);let f=_I(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:p},w,C,F]=await xI(o,i.options,c),P=vs(i.options,w),T=vs(i.options,C),M=vs(i.options,F);if(d||m!==0||y!==null){let S=xa({error:d,exitCode:m,signal:y,stdout:P,stderr:T,all:M,command:n,escapedCommand:s,parsed:i,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return S;throw S}return{command:n,escapedCommand:s,exitCode:0,stdout:P,stderr:T,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return DI(o,i.options.input),o.all=AI(o,i.options),jw(o,f)};hn.exports=Aa;hn.exports.sync=(t,e,r)=>{let i=Gw(t,e,r),n=Hw(t,e),s=$w(t,e);CI(i.options);let o;try{o=bf.spawnSync(i.file,i.args,i.options)}catch(c){throw xa({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=vs(i.options,o.stdout,o.error),u=vs(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=xa({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};hn.exports.command=(t,e)=>{let[r,...i]=Uw(t);return Aa(r,i,e)};hn.exports.commandSync=(t,e)=>{let[r,...i]=Uw(t);return Aa.sync(r,i,e)};hn.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=qw.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Aa(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var dn=k((J9,Kw)=>{"use strict";var Yw=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);Kw.exports=t=>t?Object.keys(t).map(e=>[Yw.has(e)?Yw.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var La=k((X9,nv)=>{"use strict";var Zw=typeof process=="object"&&process?process:{stdout:null,stderr:null},FI=require("events"),Jw=require("stream"),Xw=require("string_decoder").StringDecoder,ur=Symbol("EOF"),cr=Symbol("maybeEmitEnd"),jr=Symbol("emittedEnd"),Ta=Symbol("emittingEnd"),xs=Symbol("emittedError"),ka=Symbol("closed"),Qw=Symbol("read"),Oa=Symbol("flush"),ev=Symbol("flushChunk"),it=Symbol("encoding"),lr=Symbol("decoder"),Fa=Symbol("flowing"),As=Symbol("paused"),pn=Symbol("resume"),Re=Symbol("buffer"),$t=Symbol("pipes"),Ne=Symbol("bufferLength"),Sf=Symbol("bufferPush"),Df=Symbol("bufferShift"),We=Symbol("objectMode"),Ve=Symbol("destroyed"),xf=Symbol("emitData"),tv=Symbol("emitEnd"),Af=Symbol("emitEnd2"),hr=Symbol("async"),Cs=t=>Promise.resolve().then(t),rv=global._MP_NO_ITERATOR_SYMBOLS_!=="1",PI=rv&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),LI=rv&&Symbol.iterator||Symbol("iterator not implemented"),BI=t=>t==="end"||t==="finish"||t==="prefinish",II=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,NI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Pa=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[pn](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Cf=class extends Pa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};nv.exports=class iv extends Jw{constructor(e){super(),this[Fa]=!1,this[As]=!1,this[$t]=[],this[Re]=[],this[We]=e&&e.objectMode||!1,this[We]?this[it]=null:this[it]=e&&e.encoding||null,this[it]==="buffer"&&(this[it]=null),this[hr]=e&&!!e.async||!1,this[lr]=this[it]?new Xw(this[it]):null,this[ur]=!1,this[jr]=!1,this[Ta]=!1,this[ka]=!1,this[xs]=null,this.writable=!0,this.readable=!0,this[Ne]=0,this[Ve]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Re]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[$t]})}get bufferLength(){return this[Ne]}get encoding(){return this[it]}set encoding(e){if(this[We])throw new Error("cannot set encoding in objectMode");if(this[it]&&e!==this[it]&&(this[lr]&&this[lr].lastNeed||this[Ne]))throw new Error("cannot change encoding");this[it]!==e&&(this[lr]=e?new Xw(e):null,this[Re].length&&(this[Re]=this[Re].map(r=>this[lr].write(r)))),this[it]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[We]}set objectMode(e){this[We]=this[We]||!!e}get async(){return this[hr]}set async(e){this[hr]=this[hr]||!!e}write(e,r,i){if(this[ur])throw new Error("write after end");if(this[Ve])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[hr]?Cs:s=>s();return!this[We]&&!Buffer.isBuffer(e)&&(NI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):II(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[We]?(this.flowing&&this[Ne]!==0&&this[Oa](!0),this.flowing?this.emit("data",e):this[Sf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[it]&&!this[lr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[it]&&(e=this[lr].write(e)),this.flowing&&this[Ne]!==0&&this[Oa](!0),this.flowing?this.emit("data",e):this[Sf](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ve])return null;if(this[Ne]===0||e===0||e>this[Ne])return this[cr](),null;this[We]&&(e=null),this[Re].length>1&&!this[We]&&(this.encoding?this[Re]=[this[Re].join("")]:this[Re]=[Buffer.concat(this[Re],this[Ne])]);let r=this[Qw](e||null,this[Re][0]);return this[cr](),r}[Qw](e,r){return e===r.length||e===null?this[Df]():(this[Re][0]=r.slice(e),r=r.slice(0,e),this[Ne]-=e),this.emit("data",r),!this[Re].length&&!this[ur]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[ur]=!0,this.writable=!1,(this.flowing||!this[As])&&this[cr](),this}[pn](){this[Ve]||(this[As]=!1,this[Fa]=!0,this.emit("resume"),this[Re].length?this[Oa]():this[ur]?this[cr]():this.emit("drain"))}resume(){return this[pn]()}pause(){this[Fa]=!1,this[As]=!0}get destroyed(){return this[Ve]}get flowing(){return this[Fa]}get paused(){return this[As]}[Sf](e){this[We]?this[Ne]+=1:this[Ne]+=e.length,this[Re].push(e)}[Df](){return this[Re].length&&(this[We]?this[Ne]-=1:this[Ne]-=this[Re][0].length),this[Re].shift()}[Oa](e){do;while(this[ev](this[Df]()));!e&&!this[Re].length&&!this[ur]&&this.emit("drain")}[ev](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ve])return;let i=this[jr];return r=r||{},e===Zw.stdout||e===Zw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[$t].push(r.proxyErrors?new Cf(this,e,r):new Pa(this,e,r)),this[hr]?Cs(()=>this[pn]()):this[pn]()),e}unpipe(e){let r=this[$t].find(i=>i.dest===e);r&&(this[$t].splice(this[$t].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[$t].length&&!this.flowing?this[pn]():e==="readable"&&this[Ne]!==0?super.emit("readable"):BI(e)&&this[jr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[xs]&&(this[hr]?Cs(()=>r.call(this,this[xs])):r.call(this,this[xs])),i}get emittedEnd(){return this[jr]}[cr](){!this[Ta]&&!this[jr]&&!this[Ve]&&this[Re].length===0&&this[ur]&&(this[Ta]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ka]&&this.emit("close"),this[Ta]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ve&&this[Ve])return;if(e==="data")return r?this[hr]?Cs(()=>this[xf](r)):this[xf](r):!1;if(e==="end")return this[tv]();if(e==="close"){if(this[ka]=!0,!this[jr]&&!this[Ve])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[xs]=r;let s=super.emit("error",r);return this[cr](),s}else if(e==="resume"){let s=super.emit("resume");return this[cr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[cr](),n}[xf](e){for(let i of this[$t])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[cr](),r}[tv](){this[jr]||(this[jr]=!0,this.readable=!1,this[hr]?Cs(()=>this[Af]()):this[Af]())}[Af](){if(this[lr]){let r=this[lr].end();if(r){for(let i of this[$t])i.dest.write(r);super.emit("data",r)}}for(let r of this[$t])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[We]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[We]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[We]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[We]?Promise.reject(new Error("cannot concat in objectMode")):this[it]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ve,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[PI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ur])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[ur]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ve,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[LI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ve]?(e?this.emit("error",e):this.emit(Ve),this):(this[Ve]=!0,this[Re].length=0,this[Ne]=0,typeof this.close=="function"&&!this[ka]&&this.close(),e?this.emit("error",e):this.emit(Ve),this)}static isStream(e){return!!e&&(e instanceof iv||e instanceof Jw||e instanceof FI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var ov=k((Q9,sv)=>{var MI=require("zlib").constants||{ZLIB_VERNUM:4736};sv.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},MI))});var Pf=k((eU,mv)=>{"use strict";var av=typeof process=="object"&&process?process:{stdout:null,stderr:null},jI=require("events"),uv=require("stream"),cv=require("string_decoder").StringDecoder,fr=Symbol("EOF"),dr=Symbol("maybeEmitEnd"),qr=Symbol("emittedEnd"),Ba=Symbol("emittingEnd"),Rs=Symbol("emittedError"),Ia=Symbol("closed"),lv=Symbol("read"),Na=Symbol("flush"),hv=Symbol("flushChunk"),nt=Symbol("encoding"),pr=Symbol("decoder"),Ma=Symbol("flowing"),Ts=Symbol("paused"),mn=Symbol("resume"),Me=Symbol("bufferLength"),Rf=Symbol("bufferPush"),Tf=Symbol("bufferShift"),Ye=Symbol("objectMode"),Ke=Symbol("destroyed"),kf=Symbol("emitData"),fv=Symbol("emitEnd"),Of=Symbol("emitEnd2"),mr=Symbol("async"),ks=t=>Promise.resolve().then(t),dv=global._MP_NO_ITERATOR_SYMBOLS_!=="1",qI=dv&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HI=dv&&Symbol.iterator||Symbol("iterator not implemented"),UI=t=>t==="end"||t==="finish"||t==="prefinish",$I=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,GI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ja=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[mn](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ff=class extends ja{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};mv.exports=class pv extends uv{constructor(e){super(),this[Ma]=!1,this[Ts]=!1,this.pipes=[],this.buffer=[],this[Ye]=e&&e.objectMode||!1,this[Ye]?this[nt]=null:this[nt]=e&&e.encoding||null,this[nt]==="buffer"&&(this[nt]=null),this[mr]=e&&!!e.async||!1,this[pr]=this[nt]?new cv(this[nt]):null,this[fr]=!1,this[qr]=!1,this[Ba]=!1,this[Ia]=!1,this[Rs]=null,this.writable=!0,this.readable=!0,this[Me]=0,this[Ke]=!1}get bufferLength(){return this[Me]}get encoding(){return this[nt]}set encoding(e){if(this[Ye])throw new Error("cannot set encoding in objectMode");if(this[nt]&&e!==this[nt]&&(this[pr]&&this[pr].lastNeed||this[Me]))throw new Error("cannot change encoding");this[nt]!==e&&(this[pr]=e?new cv(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[pr].write(r)))),this[nt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ye]}set objectMode(e){this[Ye]=this[Ye]||!!e}get async(){return this[mr]}set async(e){this[mr]=this[mr]||!!e}write(e,r,i){if(this[fr])throw new Error("write after end");if(this[Ke])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[mr]?ks:s=>s();return!this[Ye]&&!Buffer.isBuffer(e)&&(GI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):$I(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ye]?(this.flowing&&this[Me]!==0&&this[Na](!0),this.flowing?this.emit("data",e):this[Rf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[nt]&&!this[pr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[nt]&&(e=this[pr].write(e)),this.flowing&&this[Me]!==0&&this[Na](!0),this.flowing?this.emit("data",e):this[Rf](e),this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Me]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ke])return null;if(this[Me]===0||e===0||e>this[Me])return this[dr](),null;this[Ye]&&(e=null),this.buffer.length>1&&!this[Ye]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Me])]);let r=this[lv](e||null,this.buffer[0]);return this[dr](),r}[lv](e,r){return e===r.length||e===null?this[Tf]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Me]-=e),this.emit("data",r),!this.buffer.length&&!this[fr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[fr]=!0,this.writable=!1,(this.flowing||!this[Ts])&&this[dr](),this}[mn](){this[Ke]||(this[Ts]=!1,this[Ma]=!0,this.emit("resume"),this.buffer.length?this[Na]():this[fr]?this[dr]():this.emit("drain"))}resume(){return this[mn]()}pause(){this[Ma]=!1,this[Ts]=!0}get destroyed(){return this[Ke]}get flowing(){return this[Ma]}get paused(){return this[Ts]}[Rf](e){this[Ye]?this[Me]+=1:this[Me]+=e.length,this.buffer.push(e)}[Tf](){return this.buffer.length&&(this[Ye]?this[Me]-=1:this[Me]-=this.buffer[0].length),this.buffer.shift()}[Na](e){do;while(this[hv](this[Tf]()));!e&&!this.buffer.length&&!this[fr]&&this.emit("drain")}[hv](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ke])return;let i=this[qr];return r=r||{},e===av.stdout||e===av.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Ff(this,e,r):new ja(this,e,r)),this[mr]?ks(()=>this[mn]()):this[mn]()),e}unpipe(e){let r=this.pipes.find(i=>i.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[mn]():e==="readable"&&this[Me]!==0?super.emit("readable"):UI(e)&&this[qr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rs]&&(this[mr]?ks(()=>r.call(this,this[Rs])):r.call(this,this[Rs])),i}get emittedEnd(){return this[qr]}[dr](){!this[Ba]&&!this[qr]&&!this[Ke]&&this.buffer.length===0&&this[fr]&&(this[Ba]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ia]&&this.emit("close"),this[Ba]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ke&&this[Ke])return;if(e==="data")return r?this[mr]?ks(()=>this[kf](r)):this[kf](r):!1;if(e==="end")return this[fv]();if(e==="close"){if(this[Ia]=!0,!this[qr]&&!this[Ke])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rs]=r;let s=super.emit("error",r);return this[dr](),s}else if(e==="resume"){let s=super.emit("resume");return this[dr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[dr](),n}[kf](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[dr](),r}[fv](){this[qr]||(this[qr]=!0,this.readable=!1,this[mr]?ks(()=>this[Of]()):this[Of]())}[Of](){if(this[pr]){let r=this[pr].end();if(r){for(let i of this.pipes)i.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ye]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ye]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this[nt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ke,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[qI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[fr])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[fr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(Ke,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[HI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ke]?(e?this.emit("error",e):this.emit(Ke),this):(this[Ke]=!0,this.buffer.length=0,this[Me]=0,typeof this.close=="function"&&!this[Ia]&&this.close(),e?this.emit("error",e):this.emit(Ke),this)}static isStream(e){return!!e&&(e instanceof pv||e instanceof uv||e instanceof jI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Kf=k(lt=>{"use strict";var Mf=require("assert"),Hr=require("buffer").Buffer,_v=require("zlib"),_i=lt.constants=ov(),zI=Pf(),yv=Hr.concat,bi=Symbol("_superWrite"),gn=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},WI=Symbol("opts"),Os=Symbol("flushFlag"),gv=Symbol("finishFlushFlag"),Yf=Symbol("fullFlushFlag"),ve=Symbol("handle"),qa=Symbol("onError"),yn=Symbol("sawError"),Lf=Symbol("level"),Bf=Symbol("strategy"),If=Symbol("ended"),tU=Symbol("_defaultFullFlush"),Ha=class extends zI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[yn]=!1,this[If]=!1,this[WI]=e,this[Os]=e.flush,this[gv]=e.finishFlush;try{this[ve]=new _v[r](e)}catch(i){throw new gn(i)}this[qa]=i=>{this[yn]||(this[yn]=!0,this.close(),this.emit("error",i))},this[ve].on("error",i=>this[qa](new gn(i))),this.once("end",()=>this.close)}close(){this[ve]&&(this[ve].close(),this[ve]=null,this.emit("close"))}reset(){if(!this[yn])return Mf(this[ve],"zlib binding closed"),this[ve].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Yf]),this.write(Object.assign(Hr.alloc(0),{[Os]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[gv]),this[If]=!0,super.end(null,null,i)}get ended(){return this[If]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=Hr.from(e,r)),this[yn])return;Mf(this[ve],"zlib binding closed");let n=this[ve]._handle,s=n.close;n.close=()=>{};let o=this[ve].close;this[ve].close=()=>{},Hr.concat=c=>c;let a;try{let c=typeof e[Os]=="number"?e[Os]:this[Os];a=this[ve]._processChunk(e,c),Hr.concat=yv}catch(c){Hr.concat=yv,this[qa](new gn(c))}finally{this[ve]&&(this[ve]._handle=n,n.close=s,this[ve].close=o,this[ve].removeAllListeners("error"))}this[ve]&&this[ve].on("error",c=>this[qa](new gn(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[bi](Hr.from(a[0]));for(let c=1;c<a.length;c++)u=this[bi](a[c])}else u=this[bi](Hr.from(a));return i&&i(),u}[bi](e){return super.write(e)}},yr=class extends Ha{constructor(e,r){e=e||{},e.flush=e.flush||_i.Z_NO_FLUSH,e.finishFlush=e.finishFlush||_i.Z_FINISH,super(e,r),this[Yf]=_i.Z_FULL_FLUSH,this[Lf]=e.level,this[Bf]=e.strategy}params(e,r){if(!this[yn]){if(!this[ve])throw new Error("cannot switch params when binding is closed");if(!this[ve].params)throw new Error("not supported in this implementation");if(this[Lf]!==e||this[Bf]!==r){this.flush(_i.Z_SYNC_FLUSH),Mf(this[ve],"zlib binding closed");let i=this[ve].flush;this[ve].flush=(n,s)=>{this.flush(n),s()};try{this[ve].params(e,r)}finally{this[ve].flush=i}this[ve]&&(this[Lf]=e,this[Bf]=r)}}}},jf=class extends yr{constructor(e){super(e,"Deflate")}},qf=class extends yr{constructor(e){super(e,"Inflate")}},Nf=Symbol("_portable"),Hf=class extends yr{constructor(e){super(e,"Gzip"),this[Nf]=e&&!!e.portable}[bi](e){return this[Nf]?(this[Nf]=!1,e[9]=255,super[bi](e)):super[bi](e)}},Uf=class extends yr{constructor(e){super(e,"Gunzip")}},$f=class extends yr{constructor(e){super(e,"DeflateRaw")}},Gf=class extends yr{constructor(e){super(e,"InflateRaw")}},zf=class extends yr{constructor(e){super(e,"Unzip")}},Ua=class extends Ha{constructor(e,r){e=e||{},e.flush=e.flush||_i.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||_i.BROTLI_OPERATION_FINISH,super(e,r),this[Yf]=_i.BROTLI_OPERATION_FLUSH}},Wf=class extends Ua{constructor(e){super(e,"BrotliCompress")}},Vf=class extends Ua{constructor(e){super(e,"BrotliDecompress")}};lt.Deflate=jf;lt.Inflate=qf;lt.Gzip=Hf;lt.Gunzip=Uf;lt.DeflateRaw=$f;lt.InflateRaw=Gf;lt.Unzip=zf;typeof _v.BrotliCompress=="function"?(lt.BrotliCompress=Wf,lt.BrotliDecompress=Vf):lt.BrotliCompress=lt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var _n=k((nU,bv)=>{var VI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;bv.exports=VI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var $a=k((oU,Ev)=>{"use strict";var YI=La(),Zf=_n(),Jf=Symbol("slurp");Ev.exports=class extends YI{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Zf(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Zf(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Jf](r),i&&this[Jf](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[Jf](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?Zf(e[i]):e[i])}}});var Xf=k(Ga=>{"use strict";Ga.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Ga.code=new Map(Array.from(Ga.name).map(t=>[t[1],t[0]]))});var Dv=k((uU,Sv)=>{"use strict";var KI=(t,e)=>{if(Number.isSafeInteger(t))t<0?JI(t,e):ZI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},ZI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},JI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=wv(n):n===0?e[i-1]=0:(r=!0,e[i-1]=vv(n))}},XI=t=>{let e=t[0],r=e===128?eN(t.slice(1,t.length)):e===255?QI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},QI=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=wv(s):s===0?o=s:(i=!0,o=vv(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},eN=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},wv=t=>(255^t)&255,vv=t=>(255^t)+1&255;Sv.exports={encode:KI,parse:XI}});var En=k((cU,Av)=>{"use strict";var Qf=Xf(),bn=require("path").posix,xv=Dv(),ed=Symbol("slurp"),ht=Symbol("type"),id=class{constructor(e,r,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[ht]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Ei(e,r,100),this.mode=Ur(e,r+100,8),this.uid=Ur(e,r+108,8),this.gid=Ur(e,r+116,8),this.size=Ur(e,r+124,12),this.mtime=td(e,r+136,12),this.cksum=Ur(e,r+148,12),this[ed](i),this[ed](n,!0),this[ht]=Ei(e,r+156,1),this[ht]===""&&(this[ht]="0"),this[ht]==="0"&&this.path.slice(-1)==="/"&&(this[ht]="5"),this[ht]==="5"&&(this.size=0),this.linkpath=Ei(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Ei(e,r+265,32),this.gname=Ei(e,r+297,32),this.devmaj=Ur(e,r+329,8),this.devmin=Ur(e,r+337,8),e[r+475]!==0){let o=Ei(e,r+345,155);this.path=o+"/"+this.path}else{let o=Ei(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=td(e,r+476,12),this.ctime=td(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[ed](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=tN(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=wi(e,r,100,s)||this.needPax,this.needPax=$r(e,r+100,8,this.mode)||this.needPax,this.needPax=$r(e,r+108,8,this.uid)||this.needPax,this.needPax=$r(e,r+116,8,this.gid)||this.needPax,this.needPax=$r(e,r+124,12,this.size)||this.needPax,this.needPax=rd(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ht].charCodeAt(0),this.needPax=wi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=wi(e,r+265,32,this.uname)||this.needPax,this.needPax=wi(e,r+297,32,this.gname)||this.needPax,this.needPax=$r(e,r+329,8,this.devmaj)||this.needPax,this.needPax=$r(e,r+337,8,this.devmin)||this.needPax,this.needPax=wi(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=wi(e,r+345,155,o)||this.needPax:(this.needPax=wi(e,r+345,130,o)||this.needPax,this.needPax=rd(e,r+476,12,this.atime)||this.needPax,this.needPax=rd(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,$r(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Qf.name.get(this[ht])||this[ht]}get typeKey(){return this[ht]}set type(e){Qf.code.has(e)?this[ht]=Qf.code.get(e):this[ht]=e}},tN=(t,e)=>{let i=t,n="",s,o=bn.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=bn.dirname(i),i=bn.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=bn.join(bn.basename(n),i),n=bn.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Ei=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),td=(t,e,r)=>rN(Ur(t,e,r)),rN=t=>t===null?null:new Date(t*1e3),Ur=(t,e,r)=>t[e]&128?xv.parse(t.slice(e,e+r)):nN(t,e,r),iN=t=>isNaN(t)?null:t,nN=(t,e,r)=>iN(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),sN={12:8589934591,8:2097151},$r=(t,e,r,i)=>i===null?!1:i>sN[r]||i<0?(xv.encode(i,t.slice(e,e+r)),!0):(oN(t,e,r,i),!1),oN=(t,e,r,i)=>t.write(aN(i,r),e,r,"ascii"),aN=(t,e)=>uN(Math.floor(t).toString(8),e),uN=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",rd=(t,e,r,i)=>i===null?!1:$r(t,e,r,i.getTime()/1e3),cN=new Array(156).join("\0"),wi=(t,e,r,i)=>i===null?!1:(t.write(i+cN,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Av.exports=id});var za=k((lU,Cv)=>{"use strict";var lN=En(),hN=require("path"),Fs=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new lN({path:("PaxHeader/"+hN.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
13
13
  `,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Fs.parse=(t,e,r)=>new Fs(fN(dN(t),e),r);var fN=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,dN=t=>t.replace(/\n$/,"").split(`
14
- `).reduce(pN,Object.create(null)),pN=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};Cv.exports=Fs});var wn=k((hU,Rv)=>{Rv.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Wa=k((fU,Tv)=>{"use strict";Tv.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var sd=k((pU,kv)=>{"use strict";var Va=["|","<",">","?",":"],nd=Va.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),mN=new Map(Va.map((t,e)=>[t,nd[e]])),yN=new Map(nd.map((t,e)=>[t,Va[e]]));kv.exports={encode:t=>Va.reduce((e,r)=>e.split(r).join(mN.get(r)),t),decode:t=>nd.reduce((e,r)=>e.split(r).join(yN.get(r)),t)}});var od=k((mU,Fv)=>{var{isAbsolute:gN,parse:Ov}=require("path").win32;Fv.exports=t=>{let e="",r=Ov(t);for(;gN(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ov(t)}return[e,t]}});var Lv=k((yU,Pv)=>{"use strict";Pv.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var yd=k((bU,Yv)=>{"use strict";var Hv=La(),Uv=za(),$v=En(),zt=require("fs"),Bv=require("path"),Gt=_n(),_N=wn(),Gv=(t,e)=>e?(t=Gt(t).replace(/^\.(\/|$)/,""),_N(e)+"/"+t):Gt(t),bN=16*1024*1024,Iv=Symbol("process"),Nv=Symbol("file"),Mv=Symbol("directory"),ud=Symbol("symlink"),jv=Symbol("hardlink"),Ps=Symbol("header"),Ya=Symbol("read"),cd=Symbol("lstat"),Ka=Symbol("onlstat"),ld=Symbol("onread"),hd=Symbol("onreadlink"),fd=Symbol("openfile"),dd=Symbol("onopenfile"),Gr=Symbol("close"),Za=Symbol("mode"),pd=Symbol("awaitDrain"),ad=Symbol("ondrain"),Wt=Symbol("prefix"),qv=Symbol("hadError"),zv=Wa(),EN=sd(),Wv=od(),Vv=Lv(),Ja=zv(class extends Hv{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Gt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||bN,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Gt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Gt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Wv(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=EN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Gt(r.absolute||Bv.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ka](this.statCache.get(this.absolute)):this[cd]()}emit(e,...r){return e==="error"&&(this[qv]=!0),super.emit(e,...r)}[cd](){zt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ka](r)})}[Ka](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=vN(e),this.emit("stat",e),this[Iv]()}[Iv](){switch(this.type){case"File":return this[Nv]();case"Directory":return this[Mv]();case"SymbolicLink":return this[ud]();default:return this.end()}}[Za](e){return Vv(e,this.type==="Directory",this.portable)}[Wt](e){return Gv(e,this.prefix)}[Ps](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $v({path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,mode:this[Za](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Uv({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[Mv](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ps](),this.end()}[ud](){zt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[hd](r)})}[hd](e){this.linkpath=Gt(e),this[Ps](),this.end()}[jv](e){this.type="Link",this.linkpath=Gt(Bv.relative(this.cwd,e)),this.stat.size=0,this[Ps](),this.end()}[Nv](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[jv](r)}this.linkCache.set(e,this.absolute)}if(this[Ps](),this.stat.size===0)return this.end();this[fd]()}[fd](){zt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[dd](r)})}[dd](e){if(this.fd=e,this[qv])return this[Gr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Ya]()}[Ya](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;zt.read(e,r,i,n,s,(o,a)=>{if(o)return this[Gr](()=>this.emit("error",o));this[ld](a)})}[Gr](e){zt.close(this.fd,e)}[ld](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Gr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Gr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[ad]():this[pd](()=>this[ad]())}[pd](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[ad](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Gr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Ya]()}}),md=class extends Ja{[cd](){this[Ka](zt.lstatSync(this.absolute))}[ud](){this[hd](zt.readlinkSync(this.absolute))}[fd](){this[dd](zt.openSync(this.absolute,"r"))}[Ya](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=zt.readSync(r,i,n,s,o);this[ld](a),e=!1}finally{if(e)try{this[Gr](()=>{})}catch{}}}[pd](e){e()}[Gr](e){zt.closeSync(this.fd),e()}},wN=zv(class extends Hv{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Gt(e.path),this.mode=this[Za](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Gt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Wv(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new $v({path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Uv({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Wt](e){return Gv(e,this.prefix)}[Za](e){return Vv(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Ja.Sync=md;Ja.Tar=wN;var vN=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Yv.exports=Ja});var Zv=k((EU,Kv)=>{"use strict";Kv.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var gd=k((wU,Jv)=>{"use strict";Jv.exports=ge;ge.Node=vi;ge.create=ge;function ge(t){var e=this;if(e instanceof ge||(e=new ge),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}ge.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ge.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ge.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ge.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)DN(this,arguments[t]);return this.length};ge.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)xN(this,arguments[t]);return this.length};ge.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ge.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ge.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};ge.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};ge.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ge.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ge.prototype.map=function(t,e){e=e||this;for(var r=new ge,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};ge.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ge,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};ge.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};ge.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};ge.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ge.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ge.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};ge.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};ge.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=SN(this,n,r[i]);return s};ge.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function SN(t,e,r){var i=e===t.head?new vi(r,null,e,t):new vi(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function DN(t,e){t.tail=new vi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function xN(t,e){t.head=new vi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function vi(t,e,r,i){if(!(this instanceof vi))return new vi(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Zv()(ge)}catch{}});var ou=k((SU,nS)=>{"use strict";var nu=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},AN=La(),CN=Kf(),RN=$a(),Ad=yd(),TN=Ad.Sync,kN=Ad.Tar,ON=gd(),Xv=Buffer.alloc(1024),eu=Symbol("onStat"),Xa=Symbol("ended"),Vt=Symbol("queue"),vn=Symbol("current"),Si=Symbol("process"),Qa=Symbol("processing"),Qv=Symbol("processJob"),Yt=Symbol("jobs"),_d=Symbol("jobDone"),tu=Symbol("addFSEntry"),eS=Symbol("addTarEntry"),vd=Symbol("stat"),Sd=Symbol("readdir"),ru=Symbol("onreaddir"),iu=Symbol("pipe"),tS=Symbol("entry"),bd=Symbol("entryOpt"),Dd=Symbol("writeEntryClass"),iS=Symbol("write"),Ed=Symbol("ondrain"),su=require("fs"),rS=require("path"),FN=Wa(),wd=_n(),Cd=FN(class extends AN{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=wd(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Dd]=Ad,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new CN.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Ed]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Ed]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Vt]=new ON,this[Yt]=0,this.jobs=+e.jobs||4,this[Qa]=!1,this[Xa]=!1}[iS](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Xa]=!0,this[Si](),this}write(e){if(this[Xa])throw new Error("write after end");return e instanceof RN?this[eS](e):this[tu](e),this.flowing}[eS](e){let r=wd(rS.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new nu(e.path,r,!1);i.entry=new kN(e,this[bd](i)),i.entry.on("end",n=>this[_d](i)),this[Yt]+=1,this[Vt].push(i)}this[Si]()}[tu](e){let r=wd(rS.resolve(this.cwd,e));this[Vt].push(new nu(e,r)),this[Si]()}[vd](e){e.pending=!0,this[Yt]+=1;let r=this.follow?"stat":"lstat";su[r](e.absolute,(i,n)=>{e.pending=!1,this[Yt]-=1,i?this.emit("error",i):this[eu](e,n)})}[eu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Si]()}[Sd](e){e.pending=!0,this[Yt]+=1,su.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Yt]-=1,r)return this.emit("error",r);this[ru](e,i)})}[ru](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Si]()}[Si](){if(!this[Qa]){this[Qa]=!0;for(let e=this[Vt].head;e!==null&&this[Yt]<this.jobs;e=e.next)if(this[Qv](e.value),e.value.ignore){let r=e.next;this[Vt].removeNode(e),e.next=r}this[Qa]=!1,this[Xa]&&!this[Vt].length&&this[Yt]===0&&(this.zip?this.zip.end(Xv):(super.write(Xv),super.end()))}}get[vn](){return this[Vt]&&this[Vt].head&&this[Vt].head.value}[_d](e){this[Vt].shift(),this[Yt]-=1,this[Si]()}[Qv](e){if(!e.pending){if(e.entry){e===this[vn]&&!e.piped&&this[iu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[eu](e,this.statCache.get(e.absolute)):this[vd](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ru](e,this.readdirCache.get(e.absolute)):this[Sd](e),!e.readdir))){if(e.entry=this[tS](e),!e.entry){e.ignore=!0;return}e===this[vn]&&!e.piped&&this[iu](e)}}}[bd](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[tS](e){this[Yt]+=1;try{return new this[Dd](e.path,this[bd](e)).on("end",()=>this[_d](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Ed](){this[vn]&&this[vn].entry&&this[vn].entry.resume()}[iu](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[tu](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),xd=class extends Cd{constructor(e){super(e),this[Dd]=TN}pause(){}resume(){}[vd](e){let r=this.follow?"statSync":"lstatSync";this[eu](e,su[r](e.absolute))}[Sd](e,r){this[ru](e,su.readdirSync(e.absolute))}[iu](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[tu](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[iS](n)})}};Cd.Sync=xd;nS.exports=Cd});var kn=k(Bs=>{"use strict";var PN=Pf(),LN=require("events").EventEmitter,st=require("fs"),kd=st.writev;if(!kd){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;kd=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Rn=Symbol("_autoClose"),Ot=Symbol("_close"),Ls=Symbol("_ended"),Ee=Symbol("_fd"),sS=Symbol("_finished"),Wr=Symbol("_flags"),Rd=Symbol("_flush"),Od=Symbol("_handleChunk"),Fd=Symbol("_makeBuf"),hu=Symbol("_mode"),au=Symbol("_needDrain"),An=Symbol("_onerror"),Tn=Symbol("_onopen"),Td=Symbol("_onread"),Dn=Symbol("_onwrite"),Vr=Symbol("_open"),gr=Symbol("_path"),Di=Symbol("_pos"),Kt=Symbol("_queue"),xn=Symbol("_read"),oS=Symbol("_readSize"),zr=Symbol("_reading"),uu=Symbol("_remain"),aS=Symbol("_size"),cu=Symbol("_write"),Sn=Symbol("_writing"),lu=Symbol("_defaultFlag"),Cn=Symbol("_errored"),fu=class extends PN{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Cn]=!1,this[Ee]=typeof r.fd=="number"?r.fd:null,this[gr]=e,this[oS]=r.readSize||16*1024*1024,this[zr]=!1,this[aS]=typeof r.size=="number"?r.size:1/0,this[uu]=this[aS],this[Rn]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Ee]=="number"?this[xn]():this[Vr]()}get fd(){return this[Ee]}get path(){return this[gr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Vr](){st.open(this[gr],"r",(e,r)=>this[Tn](e,r))}[Tn](e,r){e?this[An](e):(this[Ee]=r,this.emit("open",r),this[xn]())}[Fd](){return Buffer.allocUnsafe(Math.min(this[oS],this[uu]))}[xn](){if(!this[zr]){this[zr]=!0;let e=this[Fd]();if(e.length===0)return process.nextTick(()=>this[Td](null,0,e));st.read(this[Ee],e,0,e.length,null,(r,i,n)=>this[Td](r,i,n))}}[Td](e,r,i){this[zr]=!1,e?this[An](e):this[Od](r,i)&&this[xn]()}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[An](e){this[zr]=!0,this[Ot](),this.emit("error",e)}[Od](e,r){let i=!1;return this[uu]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[uu]<=0)&&(i=!1,this[Ot](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Ee]=="number"&&this[xn]();break;case"error":return this[Cn]?void 0:(this[Cn]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Pd=class extends fu{[Vr](){let e=!0;try{this[Tn](null,st.openSync(this[gr],"r")),e=!1}finally{e&&this[Ot]()}}[xn](){let e=!0;try{if(!this[zr]){this[zr]=!0;do{let r=this[Fd](),i=r.length===0?0:st.readSync(this[Ee],r,0,r.length,null);if(!this[Od](i,r))break}while(!0);this[zr]=!1}e=!1}finally{e&&this[Ot]()}}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.closeSync(e),this.emit("close")}}},du=class extends LN{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Cn]=!1,this[Sn]=!1,this[Ls]=!1,this[au]=!1,this[Kt]=[],this[gr]=e,this[Ee]=typeof r.fd=="number"?r.fd:null,this[hu]=r.mode===void 0?438:r.mode,this[Di]=typeof r.start=="number"?r.start:null,this[Rn]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Di]!==null?"r+":"w";this[lu]=r.flags===void 0,this[Wr]=this[lu]?i:r.flags,this[Ee]===null&&this[Vr]()}emit(e,r){if(e==="error"){if(this[Cn])return;this[Cn]=!0}return super.emit(e,r)}get fd(){return this[Ee]}get path(){return this[gr]}[An](e){this[Ot](),this[Sn]=!0,this.emit("error",e)}[Vr](){st.open(this[gr],this[Wr],this[hu],(e,r)=>this[Tn](e,r))}[Tn](e,r){this[lu]&&this[Wr]==="r+"&&e&&e.code==="ENOENT"?(this[Wr]="w",this[Vr]()):e?this[An](e):(this[Ee]=r,this.emit("open",r),this[Rd]())}end(e,r){return e&&this.write(e,r),this[Ls]=!0,!this[Sn]&&!this[Kt].length&&typeof this[Ee]=="number"&&this[Dn](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Ls]?(this.emit("error",new Error("write() after end()")),!1):this[Ee]===null||this[Sn]||this[Kt].length?(this[Kt].push(e),this[au]=!0,!1):(this[Sn]=!0,this[cu](e),!0)}[cu](e){st.write(this[Ee],e,0,e.length,this[Di],(r,i)=>this[Dn](r,i))}[Dn](e,r){e?this[An](e):(this[Di]!==null&&(this[Di]+=r),this[Kt].length?this[Rd]():(this[Sn]=!1,this[Ls]&&!this[sS]?(this[sS]=!0,this[Ot](),this.emit("finish")):this[au]&&(this[au]=!1,this.emit("drain"))))}[Rd](){if(this[Kt].length===0)this[Ls]&&this[Dn](null,0);else if(this[Kt].length===1)this[cu](this[Kt].pop());else{let e=this[Kt];this[Kt]=[],kd(this[Ee],e,this[Di],(r,i)=>this[Dn](r,i))}}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Ld=class extends du{[Vr](){let e;if(this[lu]&&this[Wr]==="r+")try{e=st.openSync(this[gr],this[Wr],this[hu])}catch(r){if(r.code==="ENOENT")return this[Wr]="w",this[Vr]();throw r}else e=st.openSync(this[gr],this[Wr],this[hu]);this[Tn](null,e)}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.closeSync(e),this.emit("close")}}[cu](e){let r=!0;try{this[Dn](null,st.writeSync(this[Ee],e,0,e.length,this[Di])),r=!1}finally{if(r)try{this[Ot]()}catch{}}}};Bs.ReadStream=fu;Bs.ReadStreamSync=Pd;Bs.WriteStream=du;Bs.WriteStreamSync=Ld});var Eu=k((AU,mS)=>{"use strict";var BN=Wa(),IN=En(),NN=require("events"),MN=gd(),jN=1024*1024,qN=$a(),uS=za(),HN=Kf(),{nextTick:UN}=require("process"),Bd=Buffer.from([31,139]),Et=Symbol("state"),xi=Symbol("writeEntry"),_r=Symbol("readEntry"),Id=Symbol("nextEntry"),cS=Symbol("processEntry"),wt=Symbol("extendedHeader"),Is=Symbol("globalExtendedHeader"),Yr=Symbol("meta"),lS=Symbol("emitMeta"),Se=Symbol("buffer"),br=Symbol("queue"),Ai=Symbol("ended"),hS=Symbol("emittedEnd"),Ci=Symbol("emit"),ot=Symbol("unzip"),pu=Symbol("consumeChunk"),mu=Symbol("consumeChunkSub"),Nd=Symbol("consumeBody"),fS=Symbol("consumeMeta"),dS=Symbol("consumeHeader"),yu=Symbol("consuming"),Md=Symbol("bufferConcat"),jd=Symbol("maybeEnd"),Ns=Symbol("writing"),Kr=Symbol("aborted"),gu=Symbol("onDone"),Ri=Symbol("sawValidEntry"),_u=Symbol("sawNullBlock"),bu=Symbol("sawEOF"),pS=Symbol("closeStream"),$N=t=>!0;mS.exports=BN(class extends NN{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Ri]=null,this.on(gu,r=>{(this[Et]==="begin"||this[Ri]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(gu,e.ondone):this.on(gu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||jN,this.filter=typeof e.filter=="function"?e.filter:$N,this.writable=!0,this.readable=!1,this[br]=new MN,this[Se]=null,this[_r]=null,this[xi]=null,this[Et]="begin",this[Yr]="",this[wt]=null,this[Is]=null,this[Ai]=!1,this[ot]=null,this[Kr]=!1,this[_u]=!1,this[bu]=!1,this.on("end",()=>this[pS]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[dS](e,r){this[Ri]===null&&(this[Ri]=!1);let i;try{i=new IN(e,r,this[wt],this[Is])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[_u]?(this[bu]=!0,this[Et]==="begin"&&(this[Et]="header"),this[Ci]("eof")):(this[_u]=!0,this[Ci]("nullBlock"));else if(this[_u]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[xi]=new qN(i,this[wt],this[Is]);if(!this[Ri])if(s.remain){let o=()=>{s.invalid||(this[Ri]=!0)};s.on("end",o)}else this[Ri]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Ci]("ignoredEntry",s),this[Et]="ignore",s.resume()):s.size>0&&(this[Yr]="",s.on("data",o=>this[Yr]+=o),this[Et]="meta"):(this[wt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Ci]("ignoredEntry",s),this[Et]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Et]="body":(this[Et]="header",s.end()),this[_r]?this[br].push(s):(this[br].push(s),this[Id]())))}}}[pS](){UN(()=>this.emit("close"))}[cS](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[_r]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Id]()),r=!1)):(this[_r]=null,r=!1),r}[Id](){do;while(this[cS](this[br].shift()));if(!this[br].length){let e=this[_r];!e||e.flowing||e.size===e.remain?this[Ns]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Nd](e,r){let i=this[xi],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Et]="header",this[xi]=null,i.end()),s.length}[fS](e,r){let i=this[xi],n=this[Nd](e,r);return this[xi]||this[lS](i),n}[Ci](e,r,i){!this[br].length&&!this[_r]?this.emit(e,r,i):this[br].push([e,r,i])}[lS](e){switch(this[Ci]("meta",this[Yr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[wt]=uS.parse(this[Yr],this[wt],!1);break;case"GlobalExtendedHeader":this[Is]=uS.parse(this[Yr],this[Is],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[wt]=this[wt]||Object.create(null),this[wt].path=this[Yr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[wt]=this[wt]||Object.create(null),this[wt].linkpath=this[Yr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Kr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Kr])return;if(this[ot]===null&&e){if(this[Se]&&(e=Buffer.concat([this[Se],e]),this[Se]=null),e.length<Bd.length)return this[Se]=e,!0;for(let i=0;this[ot]===null&&i<Bd.length;i++)e[i]!==Bd[i]&&(this[ot]=!1);if(this[ot]===null){let i=this[Ai];this[Ai]=!1,this[ot]=new HN.Unzip,this[ot].on("data",s=>this[pu](s)),this[ot].on("error",s=>this.abort(s)),this[ot].on("end",s=>{this[Ai]=!0,this[pu]()}),this[Ns]=!0;let n=this[ot][i?"end":"write"](e);return this[Ns]=!1,n}}this[Ns]=!0,this[ot]?this[ot].write(e):this[pu](e),this[Ns]=!1;let r=this[br].length?!1:this[_r]?this[_r].flowing:!0;return!r&&!this[br].length&&this[_r].once("drain",i=>this.emit("drain")),r}[Md](e){e&&!this[Kr]&&(this[Se]=this[Se]?Buffer.concat([this[Se],e]):e)}[jd](){if(this[Ai]&&!this[hS]&&!this[Kr]&&!this[yu]){this[hS]=!0;let e=this[xi];if(e&&e.blockRemain){let r=this[Se]?this[Se].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Se]&&e.write(this[Se]),e.end()}this[Ci](gu)}}[pu](e){if(this[yu])this[Md](e);else if(!e&&!this[Se])this[jd]();else{if(this[yu]=!0,this[Se]){this[Md](e);let r=this[Se];this[Se]=null,this[mu](r)}else this[mu](e);for(;this[Se]&&this[Se].length>=512&&!this[Kr]&&!this[bu];){let r=this[Se];this[Se]=null,this[mu](r)}this[yu]=!1}(!this[Se]||this[Ai])&&this[jd]()}[mu](e){let r=0,i=e.length;for(;r+512<=i&&!this[Kr]&&!this[bu];)switch(this[Et]){case"begin":case"header":this[dS](e,r),r+=512;break;case"ignore":case"body":r+=this[Nd](e,r);break;case"meta":r+=this[fS](e,r);break;default:throw new Error("invalid state: "+this[Et])}r<i&&(this[Se]?this[Se]=Buffer.concat([e.slice(r),this[Se]]):this[Se]=e.slice(r))}end(e){this[Kr]||(this[ot]?this[ot].end(e):(this[Ai]=!0,this.write(e)))}})});var wu=k((CU,bS)=>{"use strict";var GN=dn(),gS=Eu(),On=require("fs"),zN=kn(),yS=require("path"),qd=wn();bS.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=GN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&VN(i,e),i.noResume||WN(i),i.file&&i.sync?YN(i):i.file?KN(i,r):_S(i)};var WN=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},VN=(t,e)=>{let r=new Map(e.map(s=>[qd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||yS.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(yS.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(qd(s)):s=>n(qd(s))},YN=t=>{let e=_S(t),r=t.file,i=!0,n;try{let s=On.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(On.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=On.openSync(r,"r");a<s.size;){let c=On.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{On.closeSync(n)}catch{}}},KN=(t,e)=>{let r=new gS(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),On.stat(n,(u,c)=>{if(u)a(u);else{let l=new zN.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},_S=t=>new gS(t)});var xS=k((RU,DS)=>{"use strict";var ZN=dn(),vu=ou(),ES=kn(),wS=wu(),vS=require("path");DS.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=ZN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?JN(i,e):i.file?XN(i,e,r):i.sync?QN(i,e):eM(i,e)};var JN=(t,e)=>{let r=new vu.Sync(t),i=new ES.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),SS(r,e)},XN=(t,e,r)=>{let i=new vu(t),n=new ES.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Hd(i,e),r?s.then(r,r):s},SS=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?wS({file:vS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Hd=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return wS({file:vS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Hd(t,e));t.add(r)}t.end()},QN=(t,e)=>{let r=new vu.Sync(t);return SS(r,e),r},eM=(t,e)=>{let r=new vu(t);return Hd(r,e),r}});var Ud=k((TU,FS)=>{"use strict";var tM=dn(),AS=ou(),ft=require("fs"),CS=kn(),RS=wu(),TS=require("path"),kS=En();FS.exports=(t,e,r)=>{let i=tM(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?rM(i,e):nM(i,e,r)};var rM=(t,e)=>{let r=new AS.Sync(t),i=!0,n,s;try{try{n=ft.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=ft.openSync(t.file,"w+");else throw u}let o=ft.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=ft.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new kS(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}i=!1,iM(t,r,s,n,e)}finally{if(i)try{ft.closeSync(n)}catch{}}},iM=(t,e,r,i,n)=>{let s=new CS.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),sM(e,n)},nM=(t,e,r)=>{e=Array.from(e);let i=new AS(t),n=(o,a,u)=>{let c=(m,y)=>{m?ft.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return ft.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new kS(f);if(!p.cksumValid)return c(null,l);let w=512*Math.ceil(p.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,ft.read(o,f,0,512,l,d)};ft.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ft.open(t.file,u,c);if(l)return a(l);ft.fstat(h,(f,d)=>{if(f)return ft.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new CS.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),OS(i,e)})})};ft.open(t.file,u,c)});return r?s.then(r,r):s},sM=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?RS({file:TS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},OS=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return RS({file:TS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>OS(t,e));t.add(r)}t.end()}});var LS=k((kU,PS)=>{"use strict";var oM=dn(),aM=Ud();PS.exports=(t,e,r)=>{let i=oM(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),uM(i),aM(i,e,r)};var uM=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var NS=k((OU,IS)=>{var{promisify:BS}=require("util"),Zr=require("fs"),cM=t=>{if(!t)t={mode:511,fs:Zr};else if(typeof t=="object")t={mode:511,fs:Zr,...t};else if(typeof t=="number")t={mode:t,fs:Zr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zr.mkdir,t.mkdirAsync=BS(t.mkdir),t.stat=t.stat||t.fs.stat||Zr.stat,t.statAsync=BS(t.stat),t.statSync=t.statSync||t.fs.statSync||Zr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zr.mkdirSync,t};IS.exports=cM});var jS=k((FU,MS)=>{var lM=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:hM,parse:fM}=require("path"),dM=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=hM(t),lM==="win32"){let e=/[*|"<>?:]/,{root:r}=fM(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};MS.exports=dM});var GS=k((PU,$S)=>{var{dirname:qS}=require("path"),HS=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?HS(t,qS(e),e):void 0),US=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?US(t,qS(e),e):void 0}};$S.exports={findMade:HS,findMadeSync:US}});var zd=k((LU,WS)=>{var{dirname:zS}=require("path"),$d=(t,e,r)=>{e.recursive=!1;let i=zS(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return $d(i,e).then(s=>$d(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Gd=(t,e,r)=>{let i=zS(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Gd(t,e,Gd(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};WS.exports={mkdirpManual:$d,mkdirpManualSync:Gd}});var KS=k((BU,YS)=>{var{dirname:VS}=require("path"),{findMade:pM,findMadeSync:mM}=GS(),{mkdirpManual:yM,mkdirpManualSync:gM}=zd(),_M=(t,e)=>(e.recursive=!0,VS(t)===t?e.mkdirAsync(t,e):pM(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return yM(t,e);throw n}))),bM=(t,e)=>{if(e.recursive=!0,VS(t)===t)return e.mkdirSync(t,e);let i=mM(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return gM(t,e);throw n}};YS.exports={mkdirpNative:_M,mkdirpNativeSync:bM}});var QS=k((IU,XS)=>{var ZS=require("fs"),EM=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Wd=EM.replace(/^v/,"").split("."),JS=+Wd[0]>10||+Wd[0]==10&&+Wd[1]>=12,wM=JS?t=>t.mkdir===ZS.mkdir:()=>!1,vM=JS?t=>t.mkdirSync===ZS.mkdirSync:()=>!1;XS.exports={useNative:wM,useNativeSync:vM}});var sD=k((NU,nD)=>{var Fn=NS(),Pn=jS(),{mkdirpNative:eD,mkdirpNativeSync:tD}=KS(),{mkdirpManual:rD,mkdirpManualSync:iD}=zd(),{useNative:SM,useNativeSync:DM}=QS(),Ln=(t,e)=>(t=Pn(t),e=Fn(e),SM(e)?eD(t,e):rD(t,e)),xM=(t,e)=>(t=Pn(t),e=Fn(e),DM(e)?tD(t,e):iD(t,e));Ln.sync=xM;Ln.native=(t,e)=>eD(Pn(t),Fn(e));Ln.manual=(t,e)=>rD(Pn(t),Fn(e));Ln.nativeSync=(t,e)=>tD(Pn(t),Fn(e));Ln.manualSync=(t,e)=>iD(Pn(t),Fn(e));nD.exports=Ln});var fD=k((MU,hD)=>{"use strict";var vt=require("fs"),Ti=require("path"),AM=vt.lchown?"lchown":"chown",CM=vt.lchownSync?"lchownSync":"chownSync",aD=vt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),oD=(t,e,r)=>{try{return vt[CM](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},RM=(t,e,r)=>{try{return vt.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},TM=aD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):vt.chown(t,e,r,i)}:(t,e,r,i)=>i,Vd=aD?(t,e,r)=>{try{return oD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;RM(t,e,r)}}:(t,e,r)=>oD(t,e,r),kM=process.version,uD=(t,e,r)=>vt.readdir(t,e,r),OM=(t,e)=>vt.readdirSync(t,e);/^v4\./.test(kM)&&(uD=(t,e,r)=>vt.readdir(t,r));var Su=(t,e,r,i)=>{vt[AM](t,e,r,TM(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},cD=(t,e,r,i,n)=>{if(typeof e=="string")return vt.lstat(Ti.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,cD(t,o,r,i,n)});if(e.isDirectory())Yd(Ti.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Ti.resolve(t,e.name);Su(o,r,i,n)});else{let s=Ti.resolve(t,e.name);Su(s,r,i,n)}},Yd=(t,e,r,i)=>{uD(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Su(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Su(t,e,r,i)}};s.forEach(c=>cD(t,c,e,r,u))})},FM=(t,e,r,i)=>{if(typeof e=="string")try{let n=vt.lstatSync(Ti.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&lD(Ti.resolve(t,e.name),r,i),Vd(Ti.resolve(t,e.name),r,i)},lD=(t,e,r)=>{let i;try{i=OM(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Vd(t,e,r);throw n}return i&&i.length&&i.forEach(n=>FM(t,n,e,r)),Vd(t,e,r)};hD.exports=Yd;Yd.sync=lD});var yD=k((jU,Kd)=>{"use strict";var dD=sD(),St=require("fs"),Du=require("path"),pD=fD(),Ft=_n(),xu=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Au=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Cu=(t,e)=>t.get(Ft(e)),Ms=(t,e,r)=>t.set(Ft(e),r),PM=(t,e)=>{St.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Au(t,r&&r.code||"ENOTDIR")),e(r)})};Kd.exports=(t,e,r)=>{t=Ft(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,h=e.cache,f=Ft(e.cwd),d=(p,w)=>{p?r(p):(Ms(h,t,!0),w&&u?pD(w,o,a,C=>d(C)):s?St.chmod(t,n,r):r())};if(h&&Cu(h,t)===!0)return d();if(t===f)return PM(t,d);if(c)return dD(t,{mode:n}).then(p=>d(null,p),d);let y=Ft(Du.relative(f,t)).split("/");Ru(f,y,n,h,l,f,null,d)};var Ru=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Ft(Du.resolve(t+"/"+u));if(Cu(i,c))return Ru(c,e,r,i,n,s,o,a);St.mkdir(c,r,mD(c,e,r,i,n,s,o,a))},mD=(t,e,r,i,n,s,o,a)=>u=>{u?St.lstat(t,(c,l)=>{if(c)c.path=c.path&&Ft(c.path),a(c);else if(l.isDirectory())Ru(t,e,r,i,n,s,o,a);else if(n)St.unlink(t,h=>{if(h)return a(h);St.mkdir(t,r,mD(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new xu(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Ru(t,e,r,i,n,s,o,a))},LM=t=>{let e=!1,r="ENOTDIR";try{e=St.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Au(t,r)}};Kd.exports.sync=(t,e)=>{t=Ft(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,h=Ft(e.cwd),f=p=>{Ms(l,t,!0),p&&a&&pD.sync(p,s,o),n&&St.chmodSync(t,i)};if(l&&Cu(l,t)===!0)return f();if(t===h)return LM(h),f();if(u)return f(dD.sync(t,i));let m=Ft(Du.relative(h,t)).split("/"),y=null;for(let p=m.shift(),w=h;p&&(w+="/"+p);p=m.shift())if(w=Ft(Du.resolve(w)),!Cu(l,w))try{St.mkdirSync(w,i),y=y||w,Ms(l,w,!0)}catch{let F=St.lstatSync(w);if(F.isDirectory()){Ms(l,w,!0);continue}else if(c){St.unlinkSync(w),St.mkdirSync(w,i),y=y||w,Ms(l,w,!0);continue}else if(F.isSymbolicLink())return new xu(w,w+"/"+m.join("/"))}return f(y)}});var Jd=k((qU,gD)=>{var Zd=Object.create(null),{hasOwnProperty:BM}=Object.prototype;gD.exports=t=>(BM.call(Zd,t)||(Zd[t]=t.normalize("NFKD")),Zd[t])});var wD=k((HU,ED)=>{var _D=require("assert"),IM=Jd(),NM=wn(),{join:bD}=require("path"),MM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,jM=MM==="win32";ED.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=bD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);_D.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);_D(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=jM?["win32 parallelization disabled"]:c.map(f=>IM(NM(bD(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var DD=k((UU,SD)=>{var qM=process.env.__FAKE_PLATFORM__||process.platform,HM=qM==="win32",UM=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:$M,O_TRUNC:GM,O_WRONLY:zM,UV_FS_O_FILEMAP:vD=0}=UM.constants,WM=HM&&!!vD,VM=512*1024,YM=vD|GM|$M|zM;SD.exports=WM?t=>t<VM?YM:"w":()=>"w"});var op=k(($U,MD)=>{"use strict";var KM=require("assert"),ZM=Eu(),_e=require("fs"),JM=kn(),Er=require("path"),BD=yD(),xD=sd(),XM=wD(),QM=od(),dt=_n(),e3=wn(),t3=Jd(),AD=Symbol("onEntry"),ep=Symbol("checkFs"),CD=Symbol("checkFs2"),Ou=Symbol("pruneCache"),tp=Symbol("isReusable"),Dt=Symbol("makeFs"),rp=Symbol("file"),ip=Symbol("directory"),Fu=Symbol("link"),RD=Symbol("symlink"),TD=Symbol("hardlink"),kD=Symbol("unsupported"),OD=Symbol("checkPath"),Jr=Symbol("mkdir"),Ze=Symbol("onError"),Tu=Symbol("pending"),FD=Symbol("pend"),Bn=Symbol("unpend"),Xd=Symbol("ended"),Qd=Symbol("maybeClose"),np=Symbol("skip"),js=Symbol("doChown"),qs=Symbol("uid"),Hs=Symbol("gid"),Us=Symbol("checkedCwd"),ID=require("crypto"),ND=DD(),r3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$s=r3==="win32",i3=(t,e)=>{if(!$s)return _e.unlink(t,e);let r=t+".DELETE."+ID.randomBytes(16).toString("hex");_e.rename(t,r,i=>{if(i)return e(i);_e.unlink(r,e)})},n3=t=>{if(!$s)return _e.unlinkSync(t);let e=t+".DELETE."+ID.randomBytes(16).toString("hex");_e.renameSync(t,e),_e.unlinkSync(e)},PD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,LD=t=>t3(e3(dt(t))).toLowerCase(),s3=(t,e)=>{e=LD(e);for(let r of t.keys()){let i=LD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},o3=t=>{for(let e of t.keys())t.delete(e)},Gs=class extends ZM{constructor(e){if(e||(e={}),e.ondone=r=>{this[Xd]=!0,this[Qd]()},super(e),this[Us]=!1,this.reservations=XM(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Tu]=0,this[Xd]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||$s,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=dt(Er.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[AD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Qd](){this[Xd]&&this[Tu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OD](e){if(this.strip){let r=dt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=dt(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=dt(e.path),i=r.split("/");if(i.includes("..")||$s&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=QM(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Er.isAbsolute(e.path)?e.absolute=dt(Er.resolve(e.path)):e.absolute=dt(Er.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:dt(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Er.win32.parse(e.absolute);e.absolute=r+xD.encode(e.absolute.slice(r.length));let{root:i}=Er.win32.parse(e.path);e.path=i+xD.encode(e.path.slice(i.length))}return!0}[AD](e){if(!this[OD](e))return e.resume();switch(KM.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[ep](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[kD](e)}}[Ze](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Bn](),r.resume())}[Jr](e,r,i){BD(dt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[js](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qs](e){return PD(this.uid,e.uid,this.processUid)}[Hs](e){return PD(this.gid,e.gid,this.processGid)}[rp](e,r){let i=e.mode&4095||this.fmode,n=new JM.WriteStream(e.absolute,{flags:ND(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&_e.close(n.fd,()=>{}),n.write=()=>!0,this[Ze](u,e),r()});let s=1,o=u=>{if(u){n.fd&&_e.close(n.fd,()=>{}),this[Ze](u,e),r();return}--s===0&&_e.close(n.fd,c=>{c?this[Ze](c,e):this[Bn](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;_e.futimes(l,h,f,d=>d?_e.utimes(c,h,f,m=>o(m&&d)):o())}if(this[js](e)){s++;let h=this[qs](e),f=this[Hs](e);_e.fchown(l,h,f,d=>d?_e.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Ze](u,e),r()}),e.pipe(a)),a.pipe(n)}[ip](e,r){let i=e.mode&4095||this.dmode;this[Jr](e.absolute,i,n=>{if(n){this[Ze](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Bn](),e.resume())};e.mtime&&!this.noMtime&&(s++,_e.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[js](e)&&(s++,_e.chown(e.absolute,this[qs](e),this[Hs](e),o)),o()})}[kD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[RD](e,r){this[Fu](e,e.linkpath,"symlink",r)}[TD](e,r){let i=dt(Er.resolve(this.cwd,e.linkpath));this[Fu](e,i,"link",r)}[FD](){this[Tu]++}[Bn](){this[Tu]--,this[Qd]()}[np](e){this[Bn](),e.resume()}[tp](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!$s}[ep](e){this[FD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[CD](e,i))}[Ou](e){e.type==="SymbolicLink"?o3(this.dirCache):e.type!=="Directory"&&s3(this.dirCache,e.absolute)}[CD](e,r){this[Ou](e);let i=a=>{this[Ou](e),r(a)},n=()=>{this[Jr](this.cwd,this.dmode,a=>{if(a){this[Ze](a,e),i();return}this[Us]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=dt(Er.dirname(e.absolute));if(a!==this.cwd)return this[Jr](a,this.dmode,u=>{if(u){this[Ze](u,e),i();return}o()})}o()},o=()=>{_e.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[np](e),i();return}if(a||this[tp](e,u))return this[Dt](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[Dt](h,e,i);return c?_e.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return _e.rmdir(e.absolute,c=>this[Dt](c,e,i))}if(e.absolute===this.cwd)return this[Dt](null,e,i);i3(e.absolute,c=>this[Dt](c,e,i))})};this[Us]?s():n()}[Dt](e,r,i){if(e){this[Ze](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[rp](r,i);case"Link":return this[TD](r,i);case"SymbolicLink":return this[RD](r,i);case"Directory":case"GNUDumpDir":return this[ip](r,i)}}[Fu](e,r,i,n){_e[i](r,e.absolute,s=>{s?this[Ze](s,e):(this[Bn](),e.resume()),n()})}},ku=t=>{try{return[null,t()]}catch(e){return[e,null]}},sp=class extends Gs{[Dt](e,r){return super[Dt](e,r,()=>{})}[ep](e){if(this[Ou](e),!this[Us]){let s=this[Jr](this.cwd,this.dmode);if(s)return this[Ze](s,e);this[Us]=!0}if(e.absolute!==this.cwd){let s=dt(Er.dirname(e.absolute));if(s!==this.cwd){let o=this[Jr](s,this.dmode);if(o)return this[Ze](o,e)}}let[r,i]=ku(()=>_e.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[np](e);if(r||this[tp](e,i))return this[Dt](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ku(()=>{_e.chmodSync(e.absolute,e.mode)}):[];return this[Dt](a,e)}let[s]=ku(()=>_e.rmdirSync(e.absolute));this[Dt](s,e)}let[n]=e.absolute===this.cwd?[]:ku(()=>n3(e.absolute));this[Dt](n,e)}[rp](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{_e.closeSync(s)}catch(c){u=c}(a||u)&&this[Ze](a||u,e),r()},s;try{s=_e.openSync(e.absolute,ND(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ze](a,e)),e.pipe(o)),o.on("data",a=>{try{_e.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{_e.futimesSync(s,c,l)}catch(h){try{_e.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[js](e)){let c=this[qs](e),l=this[Hs](e);try{_e.fchownSync(s,c,l)}catch(h){try{_e.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[ip](e,r){let i=e.mode&4095||this.dmode,n=this[Jr](e.absolute,i);if(n){this[Ze](n,e),r();return}if(e.mtime&&!this.noMtime)try{_e.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[js](e))try{_e.chownSync(e.absolute,this[qs](e),this[Hs](e))}catch{}r(),e.resume()}[Jr](e,r){try{return BD.sync(dt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[Fu](e,r,i,n){try{_e[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ze](s,e)}}};Gs.Sync=sp;MD.exports=Gs});var $D=k((GU,UD)=>{"use strict";var a3=dn(),Pu=op(),qD=require("fs"),HD=kn(),jD=require("path"),ap=wn();UD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=a3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&u3(i,e),i.file&&i.sync?c3(i):i.file?l3(i,r):i.sync?h3(i):f3(i)};var u3=(t,e)=>{let r=new Map(e.map(s=>[ap(s),!0])),i=t.filter,n=(s,o)=>{let a=o||jD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(jD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(ap(s)):s=>n(ap(s))},c3=t=>{let e=new Pu.Sync(t),r=t.file,i=qD.statSync(r),n=t.maxReadSize||16*1024*1024;new HD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},l3=(t,e)=>{let r=new Pu(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),qD.stat(n,(u,c)=>{if(u)a(u);else{let l=new HD.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},h3=t=>new Pu.Sync(t),f3=t=>new Pu(t)});var GD=k(Le=>{"use strict";Le.c=Le.create=xS();Le.r=Le.replace=Ud();Le.t=Le.list=wu();Le.u=Le.update=LS();Le.x=Le.extract=$D();Le.Pack=ou();Le.Unpack=op();Le.Parse=Eu();Le.ReadEntry=$a();Le.WriteEntry=yd();Le.Header=En();Le.Pax=za();Le.types=Xf()});var vr=k((wr,Lu)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var zD=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function d3(t){return zD.includes(t)}var p3=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...zD];function m3(t){return p3.includes(t)}var y3=["null","undefined","string","number","bigint","boolean","symbol"];function g3(t){return y3.includes(t)}function In(t){return e=>typeof e===t}var{toString:WD}=Object.prototype,zs=t=>{let e=WD.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(m3(e))return e},we=t=>e=>zs(e)===t;function O(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(O.observable(t))return"Observable";if(O.array(t))return"Array";if(O.buffer(t))return"Buffer";let e=zs(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}O.undefined=In("undefined");O.string=In("string");var _3=In("number");O.number=t=>_3(t)&&!O.nan(t);O.bigint=In("bigint");O.function_=In("function");O.null_=t=>t===null;O.class_=t=>O.function_(t)&&t.toString().startsWith("class ");O.boolean=t=>t===!0||t===!1;O.symbol=In("symbol");O.numericString=t=>O.string(t)&&!O.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));O.array=(t,e)=>Array.isArray(t)?O.function_(e)?t.every(e):!0:!1;O.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};O.blob=t=>we("Blob")(t);O.nullOrUndefined=t=>O.null_(t)||O.undefined(t);O.object=t=>!O.null_(t)&&(typeof t=="object"||O.function_(t));O.iterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};O.asyncIterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};O.generator=t=>{var e,r;return O.iterable(t)&&O.function_((e=t)===null||e===void 0?void 0:e.next)&&O.function_((r=t)===null||r===void 0?void 0:r.throw)};O.asyncGenerator=t=>O.asyncIterable(t)&&O.function_(t.next)&&O.function_(t.throw);O.nativePromise=t=>we("Promise")(t);var b3=t=>{var e,r;return O.function_((e=t)===null||e===void 0?void 0:e.then)&&O.function_((r=t)===null||r===void 0?void 0:r.catch)};O.promise=t=>O.nativePromise(t)||b3(t);O.generatorFunction=we("GeneratorFunction");O.asyncGeneratorFunction=t=>zs(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>zs(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=we("RegExp");O.date=we("Date");O.error=we("Error");O.map=t=>we("Map")(t);O.set=t=>we("Set")(t);O.weakMap=t=>we("WeakMap")(t);O.weakSet=t=>we("WeakSet")(t);O.int8Array=we("Int8Array");O.uint8Array=we("Uint8Array");O.uint8ClampedArray=we("Uint8ClampedArray");O.int16Array=we("Int16Array");O.uint16Array=we("Uint16Array");O.int32Array=we("Int32Array");O.uint32Array=we("Uint32Array");O.float32Array=we("Float32Array");O.float64Array=we("Float64Array");O.bigInt64Array=we("BigInt64Array");O.bigUint64Array=we("BigUint64Array");O.arrayBuffer=we("ArrayBuffer");O.sharedArrayBuffer=we("SharedArrayBuffer");O.dataView=we("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>we("URL")(t);O.urlString=t=>{if(!O.string(t))return!1;try{return new URL(t),!0}catch{return!1}};O.truthy=t=>!!t;O.falsy=t=>!t;O.nan=t=>Number.isNaN(t);O.primitive=t=>O.null_(t)||g3(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(WD.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>d3(zs(t));var E3=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&E3(t.length);O.inRange=(t,e)=>{if(O.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(O.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var w3=1,v3=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===w3&&O.string(t.nodeName)&&!O.plainObject(t)&&v3.every(e=>e in t);O.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var VD=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=VD(0);O.oddInteger=VD(1);O.emptyArray=t=>O.array(t)&&t.length===0;O.nonEmptyArray=t=>O.array(t)&&t.length>0;O.emptyString=t=>O.string(t)&&t.length===0;var S3=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||S3(t);O.nonEmptyString=t=>O.string(t)&&t.length>0;O.nonEmptyStringAndNotWhitespace=t=>O.string(t)&&!O.emptyStringOrWhitespace(t);O.emptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length===0;O.nonEmptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length>0;O.emptySet=t=>O.set(t)&&t.size===0;O.nonEmptySet=t=>O.set(t)&&t.size>0;O.emptyMap=t=>O.map(t)&&t.size===0;O.nonEmptyMap=t=>O.map(t)&&t.size>0;O.propertyKey=t=>O.any([O.string,O.number,O.symbol],t);O.formData=t=>we("FormData")(t);O.urlSearchParams=t=>we("URLSearchParams")(t);var YD=(t,e,r)=>{if(!O.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};O.any=(t,...e)=>(O.array(t)?t:[t]).some(i=>YD(Array.prototype.some,i,e));O.all=(t,...e)=>YD(Array.prototype.every,t,e);var ie=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${O(o)}\``))].join(", ")}`:`received value of type \`${O(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};wr.assert={undefined:t=>ie(O.undefined(t),"undefined",t),string:t=>ie(O.string(t),"string",t),number:t=>ie(O.number(t),"number",t),bigint:t=>ie(O.bigint(t),"bigint",t),function_:t=>ie(O.function_(t),"Function",t),null_:t=>ie(O.null_(t),"null",t),class_:t=>ie(O.class_(t),"Class",t),boolean:t=>ie(O.boolean(t),"boolean",t),symbol:t=>ie(O.symbol(t),"symbol",t),numericString:t=>ie(O.numericString(t),"string with a number",t),array:(t,e)=>{ie(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>ie(O.buffer(t),"Buffer",t),blob:t=>ie(O.blob(t),"Blob",t),nullOrUndefined:t=>ie(O.nullOrUndefined(t),"null or undefined",t),object:t=>ie(O.object(t),"Object",t),iterable:t=>ie(O.iterable(t),"Iterable",t),asyncIterable:t=>ie(O.asyncIterable(t),"AsyncIterable",t),generator:t=>ie(O.generator(t),"Generator",t),asyncGenerator:t=>ie(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>ie(O.nativePromise(t),"native Promise",t),promise:t=>ie(O.promise(t),"Promise",t),generatorFunction:t=>ie(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>ie(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>ie(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>ie(O.boundFunction(t),"Function",t),regExp:t=>ie(O.regExp(t),"RegExp",t),date:t=>ie(O.date(t),"Date",t),error:t=>ie(O.error(t),"Error",t),map:t=>ie(O.map(t),"Map",t),set:t=>ie(O.set(t),"Set",t),weakMap:t=>ie(O.weakMap(t),"WeakMap",t),weakSet:t=>ie(O.weakSet(t),"WeakSet",t),int8Array:t=>ie(O.int8Array(t),"Int8Array",t),uint8Array:t=>ie(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>ie(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>ie(O.int16Array(t),"Int16Array",t),uint16Array:t=>ie(O.uint16Array(t),"Uint16Array",t),int32Array:t=>ie(O.int32Array(t),"Int32Array",t),uint32Array:t=>ie(O.uint32Array(t),"Uint32Array",t),float32Array:t=>ie(O.float32Array(t),"Float32Array",t),float64Array:t=>ie(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>ie(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>ie(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>ie(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>ie(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>ie(O.dataView(t),"DataView",t),enumCase:(t,e)=>ie(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>ie(O.urlInstance(t),"URL",t),urlString:t=>ie(O.urlString(t),"string with a URL",t),truthy:t=>ie(O.truthy(t),"truthy",t),falsy:t=>ie(O.falsy(t),"falsy",t),nan:t=>ie(O.nan(t),"NaN",t),primitive:t=>ie(O.primitive(t),"primitive",t),integer:t=>ie(O.integer(t),"integer",t),safeInteger:t=>ie(O.safeInteger(t),"integer",t),plainObject:t=>ie(O.plainObject(t),"plain object",t),typedArray:t=>ie(O.typedArray(t),"TypedArray",t),arrayLike:t=>ie(O.arrayLike(t),"array-like",t),domElement:t=>ie(O.domElement(t),"HTMLElement",t),observable:t=>ie(O.observable(t),"Observable",t),nodeStream:t=>ie(O.nodeStream(t),"Node.js Stream",t),infinite:t=>ie(O.infinite(t),"infinite number",t),emptyArray:t=>ie(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>ie(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>ie(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>ie(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>ie(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>ie(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>ie(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>ie(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>ie(O.emptySet(t),"empty set",t),nonEmptySet:t=>ie(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>ie(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>ie(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>ie(O.propertyKey(t),"PropertyKey",t),formData:t=>ie(O.formData(t),"FormData",t),urlSearchParams:t=>ie(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>ie(O.evenInteger(t),"even integer",t),oddInteger:t=>ie(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>ie(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>ie(O.inRange(t,e),"in range",t),any:(t,...e)=>ie(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>ie(O.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(O,{class:{value:O.class_},function:{value:O.function_},null:{value:O.null_}});Object.defineProperties(wr.assert,{class:{value:wr.assert.class_},function:{value:wr.assert.function_},null:{value:wr.assert.null_}});wr.default=O;Lu.exports=O;Lu.exports.default=O;Lu.exports.assert=wr.assert});var KD=k((WU,up)=>{"use strict";var Bu=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Nn=class{static fn(e){return(...r)=>new Nn((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(n,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Bu(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Nn.prototype,Promise.prototype);up.exports=Nn;up.exports.CancelError=Bu});var ZD=k((lp,hp)=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});function D3(t){return t.encrypted}var cp=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),D3(t)&&n&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};lp.default=cp;hp.exports=cp;hp.exports.default=cp});var JD=k((dp,pp)=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var x3=ZD(),A3=require("util"),C3=Number(process.versions.node.split(".")[0]),fp=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(c,...l))};r(t);let i=()=>{e.abort=Date.now(),(!e.response||C3>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,A3.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),x3.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?n(t.socket):t.prependOnceListener("socket",n);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",i)}),e};dp.default=fp;pp.exports=fp;pp.exports.default=fp});var nx=k((VU,gp)=>{"use strict";var{V4MAPPED:R3,ADDRCONFIG:T3,ALL:ix,promises:{Resolver:XD},lookup:k3}=require("dns"),{promisify:mp}=require("util"),O3=require("os"),Mn=Symbol("cacheableLookupCreateConnection"),yp=Symbol("cacheableLookupInstance"),QD=Symbol("expires"),F3=typeof ix=="number",ex=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},P3=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},tx=()=>{let t=!1,e=!1;for(let r of Object.values(O3.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},L3=t=>Symbol.iterator in t,rx={ttl:!0},B3={all:!0},Iu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new XD,lookup:o=k3}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=mp(o),this._resolver instanceof XD?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=mp(this._resolver.resolve4.bind(this._resolver)),this._resolve6=mp(this._resolver.resolve6.bind(this._resolver))),this._iface=tx(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&R3&&(F3&&r.hints&ix||n.length===0)?P3(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&T3){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,rx),this._resolve6(e,rx)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[QD]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}L3(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,B3);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[QD];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(ex(e),Mn in e)throw new Error("CacheableLookup has been already installed");e[Mn]=e.createConnection,e[yp]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[Mn](r,i))}uninstall(e){if(ex(e),e[Mn]){if(e[yp]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Mn],delete e[Mn],delete e[yp]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=tx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};gp.exports=Iu;gp.exports.default=Iu});var ax=k((YU,ox)=>{"use strict";var I3="text/plain",N3="us-ascii",sx=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),M3=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===N3)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==I3)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},j3=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return M3(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];sx(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])sx(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};ox.exports=j3});var lx=k((KU,cx)=>{cx.exports=ux;function ux(t,e){if(t&&e)return ux(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var bp=k((ZU,_p)=>{var hx=lx();_p.exports=hx(Nu);_p.exports.strict=hx(fx);Nu.proto=Nu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Nu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return fx(this)},configurable:!0})});function Nu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function fx(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var mx=k((JU,px)=>{var q3=bp(),H3=function(){},U3=function(t){return t.setHeader&&typeof t.abort=="function"},$3=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},dx=function(t,e,r){if(typeof e=="function")return dx(t,null,e);e||(e={}),r=q3(r||H3);var i=t._writableState,n=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return U3(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),$3(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};px.exports=dx});var _x=k((XU,gx)=>{var G3=bp(),z3=mx(),Ep=require("fs"),Ws=function(){},W3=/^v?\.0/.test(process.version),Mu=function(t){return typeof t=="function"},V3=function(t){return!W3||!Ep?!1:(t instanceof(Ep.ReadStream||Ws)||t instanceof(Ep.WriteStream||Ws))&&Mu(t.close)},Y3=function(t){return t.setHeader&&Mu(t.abort)},K3=function(t,e,r,i){i=G3(i);var n=!1;t.on("close",function(){n=!0}),z3(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,V3(t))return t.close(Ws);if(Y3(t))return t.abort();if(Mu(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},yx=function(t){t()},Z3=function(t,e){return t.pipe(e)},J3=function(){var t=Array.prototype.slice.call(arguments),e=Mu(t[t.length-1]||Ws)&&t.pop()||Ws;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return K3(n,o,a,function(u){r||(r=u),u&&i.forEach(yx),!o&&(i.forEach(yx),e(r))})});return t.reduce(Z3)};gx.exports=J3});var Ex=k((QU,bx)=>{"use strict";var{PassThrough:X3}=require("stream");bx.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new X3({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var wx=k((e7,jn)=>{"use strict";var{constants:Q3}=require("buffer"),e8=_x(),t8=Ex(),ju=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function qu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=Q3.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=e8(t,t8(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new ju)})}),i.getBufferedValue()}jn.exports=qu;jn.exports.default=qu;jn.exports.buffer=(t,e)=>qu(t,{...e,encoding:"buffer"});jn.exports.array=(t,e)=>qu(t,{...e,array:!0});jn.exports.MaxBufferError=ju});var Sx=k((r7,vx)=>{"use strict";var r8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),i8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),n8=new Set([500,502,503,504]),s8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},o8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function ki(t){let e=parseInt(t,10);return isFinite(e)?e:0}function a8(t){return t?n8.has(t.status):!0}function wp(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function u8(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}vx.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=wp(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=wp(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":u8(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&i8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||r8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=wp(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)s8[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return ki(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return ki(this._rescc["s-maxage"])}if(this._rescc["max-age"])return ki(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ki(this._rescc["stale-if-error"]),i=e+ki(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+ki(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+ki(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&a8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!o8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Hu=k((i7,Dx)=>{"use strict";Dx.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var Ax=k((n7,xx)=>{"use strict";var c8=require("stream").Readable,l8=Hu(),vp=class extends c8{constructor(e,r,i,n){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=l8(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};xx.exports=vp});var Rx=k((s7,Cx)=>{"use strict";var h8=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];Cx.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(h8));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var kx=k((o7,Tx)=>{"use strict";var f8=require("stream").PassThrough,d8=Rx(),p8=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new f8;return d8(t,e),t.pipe(e)};Tx.exports=p8});var Ox=k(Sp=>{Sp.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};Sp.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Bx=k((u7,Lx)=>{"use strict";var m8=require("events"),Fx=Ox(),y8=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Px=["sqlite","postgres","mysql","mongo","redis","tiered"],Dp=class extends m8{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:Fx.stringify,deserialize:Fx.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=y8(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let n=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Px.includes(this.opts.store.opts.dialect)||Px.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>n?i.getMany(s):i.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(n){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Lx.exports=Dp});var Mx=k((c7,Nx)=>{"use strict";var g8=require("events"),Uu=require("url"),_8=ax(),b8=wx(),xp=Sx(),Ix=Ax(),E8=Hu(),w8=kx(),v8=Bx(),Pt=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new v8({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=Ap(Uu.parse(r)),r={};else if(r instanceof Uu.URL)n=Ap(Uu.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=Ap({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...S8(n)},r.headers=E8(r.headers);let s=new g8,o=_8(Uu.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=xp.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let F=C.policy.responseHeaders();p=new Ix(u.statusCode,F,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new xp(h,p,h),p.fromCache=!1);let w;h.cache&&p.cachePolicy.storable()?(w=w8(p),(async()=>{try{let C=b8.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let F=await C,P={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:F},T=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(T=T?Math.min(T,h.maxTtl):h.maxTtl),await this.cache.set(a,P,T)}catch(C){s.emit("error",new Pt.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Pt.CacheError(C))}})(),s.emit("response",w||p),typeof i=="function"&&i(w||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new Pt.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=xp.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),w=new Ix(m.statusCode,p,m.body,m.url);w.cachePolicy=y,w.fromCache=!0,s.emit("response",w),typeof i=="function"&&i(w)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new Pt.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new Pt.CacheError(d))}})(),s}}};function S8(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function Ap(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Pt.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Pt.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Nx.exports=Pt});var qx=k((f7,jx)=>{"use strict";var D8=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];jx.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(D8)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Ux=k((d7,Hx)=>{"use strict";var{Transform:x8,PassThrough:A8}=require("stream"),Cp=require("zlib"),C8=qx();Hx.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Cp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new x8({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new A8({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?Cp.createBrotliDecompress():Cp.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),C8(t,s),t.pipe(n).pipe(o).pipe(s),s}});var Tp=k((p7,$x)=>{"use strict";var Rp=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[i,n]of this.oldCache.entries())this.onEviction(i,n);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};$x.exports=Rp});var Op=k((m7,Vx)=>{"use strict";var R8=require("events"),T8=require("tls"),k8=require("http2"),O8=Tp(),Qe=Symbol("currentStreamsCount"),Gx=Symbol("request"),xt=Symbol("cachedOriginSet"),qn=Symbol("gracefullyClosing"),F8=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],P8=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},L8=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,kp=(t,e)=>{for(let r of t)r[xt].length<e[xt].length&&r[xt].every(i=>e[xt].includes(i))&&r[Qe]+e[Qe]<=e.remoteSettings.maxConcurrentStreams&&Wx(r)},B8=(t,e)=>{for(let r of t)e[xt].length<r[xt].length&&e[xt].every(i=>r[xt].includes(i))&&e[Qe]+r[Qe]<=r.remoteSettings.maxConcurrentStreams&&Wx(e)},zx=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[Zt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},Wx=t=>{t[qn]=!0,t[Qe]===0&&t.close()},Zt=class extends R8{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new O8({maxSize:n})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let i of F8)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=Zt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[xt].includes(a)){let p=m[Qe];if(p>=y||m[qn]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
15
- Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,h=!1;try{let f=k8.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[Qe]=0,f[qn]=!1;let d=()=>f[Qe]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:w}of i)w(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of i)w(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[xt])if(p in this.queue[o]){let{listeners:w}=this.queue[o][p];for(;w.length!==0&&d();)w.shift().resolve(f);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[xt]=f.originSet,d()&&(y(),kp(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let w of i)w.reject(p);f.destroy();return}f[xt]=f.originSet;{let p=this.sessions;if(o in p){let w=p[o];w.splice(P8(w,f,L8),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[Qe]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),kp(this.sessions[o],f)})}),f[Gx]=f.request,f.request=(p,w)=>{if(f[qn])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[Gx](p,w);return f.ref(),++f[Qe],f[Qe]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[Qe],!f.destroyed&&!f.closed&&(B8(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let F=f[Qe]===0;F&&f.unref(),F&&(this._freeSessionsCount>this.maxFreeSessions||f[qn])?f.close():(kp(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return Zt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),T8.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Qe]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return zx({agent:this,isFree:!0})}get busySessions(){return zx({agent:this,isFree:!1})}};Zt.kCurrentStreamsCount=Qe;Zt.kGracefullyClosing=qn;Vx.exports={Agent:Zt,globalAgent:new Zt}});var Pp=k((y7,Yx)=>{"use strict";var{Readable:I8}=require("stream"),Fp=class extends I8{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Yx.exports=Fp});var Lp=k((g7,Kx)=>{"use strict";Kx.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Jx=k((_7,Zx)=>{"use strict";Zx.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var Qx=k((b7,Xx)=>{"use strict";Xx.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var tA=k((w7,eA)=>{"use strict";var Hn=(t,e,r)=>{eA.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Hn(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Hn(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Hn(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Hn(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Hn(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Hn(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var jp=k((v7,uA)=>{"use strict";var N8=require("http2"),{Writable:M8}=require("stream"),{Agent:rA,globalAgent:j8}=Op(),q8=Pp(),H8=Lp(),U8=Jx(),$8=Qx(),{ERR_INVALID_ARG_TYPE:Bp,ERR_INVALID_PROTOCOL:G8,ERR_HTTP_HEADERS_SENT:iA,ERR_INVALID_HTTP_TOKEN:z8,ERR_HTTP_INVALID_HEADER_VALUE:W8,ERR_INVALID_CHAR:V8}=tA(),{HTTP2_HEADER_STATUS:nA,HTTP2_HEADER_METHOD:sA,HTTP2_HEADER_PATH:oA,HTTP2_METHOD_CONNECT:Y8}=N8.constants,Je=Symbol("headers"),Ip=Symbol("origin"),Np=Symbol("session"),aA=Symbol("options"),$u=Symbol("flushedHeaders"),Vs=Symbol("jobs"),K8=/^[\^`\-\w!#$%&*+.|~]+$/,Z8=/[^\t\u0020-\u007E\u0080-\u00FF]/,Mp=class extends M8{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=H8(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[Np]=r.h2session;else if(r.agent===!1)this.agent=new rA({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new rA({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=j8;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new Bp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new G8(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[Je]=Object.create(null),this[Vs]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[Je])&&(this[Je].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[aA]=r,s===443?(this[Ip]=`https://${o}`,":authority"in this[Je]||(this[Je][":authority"]=o)):(this[Ip]=`https://${o}:${s}`,":authority"in this[Je]||(this[Je][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[$u]=!1}get method(){return this[Je][sA]}set method(e){e&&(this[Je][sA]=e.toUpperCase())}get path(){return this[Je][oA]}set path(e){e&&(this[Je][oA]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[Vs].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Vs].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[$u]||this.destroyed)return;this[$u]=!0;let e=this.method===Y8,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||U8(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new q8(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[nA],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[nA]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Vs])o();this.emit("socket",this.socket)};if(this[Np])try{r(this[Np].request(this[Je]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[Ip],this[aA],this[Je]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new Bp("name","string",e);return this[Je][e.toLowerCase()]}get headersSent(){return this[$u]}removeHeader(e){if(typeof e!="string")throw new Bp("name","string",e);if(this.headersSent)throw new iA("remove");delete this[Je][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new iA("set");if(typeof e!="string"||!K8.test(e)&&!$8(e))throw new z8("Header name",e);if(typeof r=="undefined")throw new W8(r,e);if(Z8.test(r))throw new V8("header content",e);this[Je][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[Vs].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};uA.exports=Mp});var lA=k((S7,cA)=>{"use strict";var J8=require("tls");cA.exports=(t={},e=J8.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var fA=k((D7,hA)=>{"use strict";var X8=require("net");hA.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),X8.isIP(e)?"":e}});var mA=k((x7,Hp)=>{"use strict";var dA=require("http"),qp=require("https"),Q8=lA(),e5=Tp(),t5=jp(),r5=fA(),i5=Lp(),Gu=new e5({maxSize:100}),Ys=new Map,pA=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},n5=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Gu.has(e)){if(Ys.has(e))return(await Ys.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=Q8(t);Ys.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Gu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=qp,u=qp.Agent.prototype.createConnection;i?i.createConnection===u?pA(i,s,t):s.destroy():a.createConnection===u?pA(a,s,t):s.destroy()}return Ys.delete(e),o}catch(s){throw Ys.delete(e),s}}return Gu.get(e)};Hp.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=i5(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||r5(e),e.port=e.port||(i?443:80),e._defaultAgent=i?qp.globalAgent:dA.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await n5(e)==="h2"?(n&&(e.agent=n.http2),new t5(e,r)):dA.request(e,r)};Hp.exports.protocolCache=Gu});var gA=k((A7,yA)=>{"use strict";var s5=require("http2"),o5=Op(),Up=jp(),a5=Pp(),u5=mA(),c5=(t,e,r)=>new Up(t,e,r),l5=(t,e,r)=>{let i=new Up(t,e,r);return i.end(),i};yA.exports={...s5,ClientRequest:Up,IncomingMessage:a5,...o5,request:c5,get:l5,auto:u5}});var Gp=k($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var _A=vr();$p.default=t=>_A.default.nodeStream(t)&&_A.default.function_(t.getBoundary)});var vA=k(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var EA=require("fs"),wA=require("util"),bA=vr(),h5=Gp(),f5=wA.promisify(EA.stat);zp.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(bA.default.string(t))return Buffer.byteLength(t);if(bA.default.buffer(t))return t.length;if(h5.default(t))return wA.promisify(t.getLength.bind(t))();if(t instanceof EA.ReadStream){let{size:r}=await f5(t.path);return r===0?void 0:r}}});var Vp=k(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});function d5(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Wp.default=d5});var SA=k(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var xA=k(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.TimeoutError=void 0;var p5=require("net"),m5=SA(),DA=Symbol("reentry"),y5=()=>{},zu=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Ks.TimeoutError=zu;Ks.default=(t,e,r)=>{if(DA in t)return y5;t[DA]=!0;let i=[],{once:n,unhandleAll:s}=m5.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new zu(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:p5.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var CA=k(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var AA=vr();Kp.default=t=>{t=t;let e={protocol:t.protocol,hostname:AA.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return AA.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var RA=k(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var g5=require("url"),_5=["protocol","host","hostname","port","pathname","search"];Zp.default=(t,e)=>{var r,i;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new g5.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of _5)e[s]&&(n[s]=e[s].toString());return n}});var TA=k(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Jp=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Xp.default=Jp});var em=k(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var b5=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Qp.default=b5});var OA=k(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.dnsLookupIpVersionToFamily=Oi.isDnsLookupIpVersion=void 0;var kA={auto:0,ipv4:4,ipv6:6};Oi.isDnsLookupIpVersion=t=>t in kA;Oi.dnsLookupIpVersionToFamily=t=>{if(Oi.isDnsLookupIpVersion(t))return kA[t];throw new Error("Invalid DNS lookup IP version")}});var tm=k(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.isResponseOk=void 0;Wu.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var PA=k(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var FA=new Set;rm.default=t=>{FA.has(t)||(FA.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var LA=k(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var De=vr(),E5=(t,e)=>{if(De.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");De.assert.any([De.default.string,De.default.undefined],t.encoding),De.assert.any([De.default.boolean,De.default.undefined],t.resolveBodyOnly),De.assert.any([De.default.boolean,De.default.undefined],t.methodRewriting),De.assert.any([De.default.boolean,De.default.undefined],t.isStream),De.assert.any([De.default.string,De.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},De.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):De.default.number(r)&&(t.retry.limit=r),De.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(De.default.number))),De.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!De.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!De.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!De.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!De.default.function_(i.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};im.default=E5});var BA=k(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.retryAfterStatusCodes=void 0;Zs.retryAfterStatusCodes=new Set([413,429,503]);var w5=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Zs.default=w5});var Qs=k(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.UnsupportedProtocolError=be.ReadError=be.TimeoutError=be.UploadError=be.CacheError=be.HTTPError=be.MaxRedirectsError=be.RequestError=be.setNonEnumerableProperties=be.knownHookEvents=be.withoutBody=be.kIsNormalizedAlready=void 0;var IA=require("util"),NA=require("stream"),v5=require("fs"),Xr=require("url"),MA=require("http"),nm=require("http"),S5=require("https"),D5=JD(),x5=nx(),jA=Mx(),A5=Ux(),C5=gA(),R5=Hu(),Y=vr(),T5=vA(),qA=Gp(),k5=Vp(),HA=xA(),O5=CA(),UA=RA(),F5=TA(),P5=em(),$A=OA(),L5=tm(),Qr=PA(),B5=LA(),I5=BA(),sm,qe=Symbol("request"),Ku=Symbol("response"),Un=Symbol("responseSize"),$n=Symbol("downloadedSize"),Gn=Symbol("bodySize"),zn=Symbol("uploadedSize"),Vu=Symbol("serverResponsesPiped"),GA=Symbol("unproxyEvents"),zA=Symbol("isFromCache"),om=Symbol("cancelTimeouts"),WA=Symbol("startedReading"),Wn=Symbol("stopReading"),Yu=Symbol("triggerRead"),ei=Symbol("body"),Js=Symbol("jobs"),VA=Symbol("originalResponse"),YA=Symbol("retryTimeout");be.kIsNormalizedAlready=Symbol("isNormalizedAlready");var N5=Y.default.string(process.versions.brotli);be.withoutBody=new Set(["GET","HEAD"]);be.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function M5(t){for(let e in t){let r=t[e];if(!Y.default.string(r)&&!Y.default.number(r)&&!Y.default.boolean(r)&&!Y.default.null_(r)&&!Y.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function j5(t){return Y.default.object(t)&&!("statusCode"in t)}var am=new F5.default,q5=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),H5=new Set([300,301,302,303,304,307,308]),U5=["context","body","json","form"];be.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of U5)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var Te=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof rc?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Ku]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,Y.default.string(r.stack)&&Y.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
14
+ `).reduce(pN,Object.create(null)),pN=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};Cv.exports=Fs});var wn=k((hU,Rv)=>{Rv.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Wa=k((fU,Tv)=>{"use strict";Tv.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var sd=k((pU,kv)=>{"use strict";var Va=["|","<",">","?",":"],nd=Va.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),mN=new Map(Va.map((t,e)=>[t,nd[e]])),yN=new Map(nd.map((t,e)=>[t,Va[e]]));kv.exports={encode:t=>Va.reduce((e,r)=>e.split(r).join(mN.get(r)),t),decode:t=>nd.reduce((e,r)=>e.split(r).join(yN.get(r)),t)}});var od=k((mU,Fv)=>{var{isAbsolute:gN,parse:Ov}=require("path").win32;Fv.exports=t=>{let e="",r=Ov(t);for(;gN(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Ov(t)}return[e,t]}});var Lv=k((yU,Pv)=>{"use strict";Pv.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var yd=k((bU,Yv)=>{"use strict";var Hv=La(),Uv=za(),$v=En(),zt=require("fs"),Bv=require("path"),Gt=_n(),_N=wn(),Gv=(t,e)=>e?(t=Gt(t).replace(/^\.(\/|$)/,""),_N(e)+"/"+t):Gt(t),bN=16*1024*1024,Iv=Symbol("process"),Nv=Symbol("file"),Mv=Symbol("directory"),ud=Symbol("symlink"),jv=Symbol("hardlink"),Ps=Symbol("header"),Ya=Symbol("read"),cd=Symbol("lstat"),Ka=Symbol("onlstat"),ld=Symbol("onread"),hd=Symbol("onreadlink"),fd=Symbol("openfile"),dd=Symbol("onopenfile"),Gr=Symbol("close"),Za=Symbol("mode"),pd=Symbol("awaitDrain"),ad=Symbol("ondrain"),Wt=Symbol("prefix"),qv=Symbol("hadError"),zv=Wa(),EN=sd(),Wv=od(),Vv=Lv(),Ja=zv(class extends Hv{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Gt(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||bN,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Gt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Gt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Wv(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=EN.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Gt(r.absolute||Bv.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ka](this.statCache.get(this.absolute)):this[cd]()}emit(e,...r){return e==="error"&&(this[qv]=!0),super.emit(e,...r)}[cd](){zt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ka](r)})}[Ka](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=vN(e),this.emit("stat",e),this[Iv]()}[Iv](){switch(this.type){case"File":return this[Nv]();case"Directory":return this[Mv]();case"SymbolicLink":return this[ud]();default:return this.end()}}[Za](e){return Vv(e,this.type==="Directory",this.portable)}[Wt](e){return Gv(e,this.prefix)}[Ps](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new $v({path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,mode:this[Za](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new Uv({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[Mv](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Ps](),this.end()}[ud](){zt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[hd](r)})}[hd](e){this.linkpath=Gt(e),this[Ps](),this.end()}[jv](e){this.type="Link",this.linkpath=Gt(Bv.relative(this.cwd,e)),this.stat.size=0,this[Ps](),this.end()}[Nv](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[jv](r)}this.linkCache.set(e,this.absolute)}if(this[Ps](),this.stat.size===0)return this.end();this[fd]()}[fd](){zt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[dd](r)})}[dd](e){if(this.fd=e,this[qv])return this[Gr]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Ya]()}[Ya](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;zt.read(e,r,i,n,s,(o,a)=>{if(o)return this[Gr](()=>this.emit("error",o));this[ld](a)})}[Gr](e){zt.close(this.fd,e)}[ld](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Gr](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[Gr](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[ad]():this[pd](()=>this[ad]())}[pd](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[ad](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Gr](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Ya]()}}),md=class extends Ja{[cd](){this[Ka](zt.lstatSync(this.absolute))}[ud](){this[hd](zt.readlinkSync(this.absolute))}[fd](){this[dd](zt.openSync(this.absolute,"r"))}[Ya](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=zt.readSync(r,i,n,s,o);this[ld](a),e=!1}finally{if(e)try{this[Gr](()=>{})}catch{}}}[pd](e){e()}[Gr](e){zt.closeSync(this.fd),e()}},wN=zv(class extends Hv{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Gt(e.path),this.mode=this[Za](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Gt(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Wv(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new $v({path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new Uv({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Wt](this.path),linkpath:this.type==="Link"?this[Wt](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Wt](e){return Gv(e,this.prefix)}[Za](e){return Vv(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Ja.Sync=md;Ja.Tar=wN;var vN=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";Yv.exports=Ja});var Zv=k((EU,Kv)=>{"use strict";Kv.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var gd=k((wU,Jv)=>{"use strict";Jv.exports=ge;ge.Node=vi;ge.create=ge;function ge(t){var e=this;if(e instanceof ge||(e=new ge),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}ge.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ge.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ge.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ge.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)DN(this,arguments[t]);return this.length};ge.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)xN(this,arguments[t]);return this.length};ge.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ge.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ge.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};ge.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};ge.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ge.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ge.prototype.map=function(t,e){e=e||this;for(var r=new ge,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};ge.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ge,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};ge.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};ge.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};ge.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ge.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ge.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};ge.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};ge.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=SN(this,n,r[i]);return s};ge.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function SN(t,e,r){var i=e===t.head?new vi(r,null,e,t):new vi(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function DN(t,e){t.tail=new vi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function xN(t,e){t.head=new vi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function vi(t,e,r,i){if(!(this instanceof vi))return new vi(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{Zv()(ge)}catch{}});var ou=k((SU,nS)=>{"use strict";var nu=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},AN=La(),CN=Kf(),RN=$a(),Ad=yd(),TN=Ad.Sync,kN=Ad.Tar,ON=gd(),Xv=Buffer.alloc(1024),eu=Symbol("onStat"),Xa=Symbol("ended"),Vt=Symbol("queue"),vn=Symbol("current"),Si=Symbol("process"),Qa=Symbol("processing"),Qv=Symbol("processJob"),Yt=Symbol("jobs"),_d=Symbol("jobDone"),tu=Symbol("addFSEntry"),eS=Symbol("addTarEntry"),vd=Symbol("stat"),Sd=Symbol("readdir"),ru=Symbol("onreaddir"),iu=Symbol("pipe"),tS=Symbol("entry"),bd=Symbol("entryOpt"),Dd=Symbol("writeEntryClass"),iS=Symbol("write"),Ed=Symbol("ondrain"),su=require("fs"),rS=require("path"),FN=Wa(),wd=_n(),Cd=FN(class extends AN{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=wd(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Dd]=Ad,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new CN.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Ed]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Ed]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Vt]=new ON,this[Yt]=0,this.jobs=+e.jobs||4,this[Qa]=!1,this[Xa]=!1}[iS](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Xa]=!0,this[Si](),this}write(e){if(this[Xa])throw new Error("write after end");return e instanceof RN?this[eS](e):this[tu](e),this.flowing}[eS](e){let r=wd(rS.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new nu(e.path,r,!1);i.entry=new kN(e,this[bd](i)),i.entry.on("end",n=>this[_d](i)),this[Yt]+=1,this[Vt].push(i)}this[Si]()}[tu](e){let r=wd(rS.resolve(this.cwd,e));this[Vt].push(new nu(e,r)),this[Si]()}[vd](e){e.pending=!0,this[Yt]+=1;let r=this.follow?"stat":"lstat";su[r](e.absolute,(i,n)=>{e.pending=!1,this[Yt]-=1,i?this.emit("error",i):this[eu](e,n)})}[eu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Si]()}[Sd](e){e.pending=!0,this[Yt]+=1,su.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Yt]-=1,r)return this.emit("error",r);this[ru](e,i)})}[ru](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Si]()}[Si](){if(!this[Qa]){this[Qa]=!0;for(let e=this[Vt].head;e!==null&&this[Yt]<this.jobs;e=e.next)if(this[Qv](e.value),e.value.ignore){let r=e.next;this[Vt].removeNode(e),e.next=r}this[Qa]=!1,this[Xa]&&!this[Vt].length&&this[Yt]===0&&(this.zip?this.zip.end(Xv):(super.write(Xv),super.end()))}}get[vn](){return this[Vt]&&this[Vt].head&&this[Vt].head.value}[_d](e){this[Vt].shift(),this[Yt]-=1,this[Si]()}[Qv](e){if(!e.pending){if(e.entry){e===this[vn]&&!e.piped&&this[iu](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[eu](e,this.statCache.get(e.absolute)):this[vd](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ru](e,this.readdirCache.get(e.absolute)):this[Sd](e),!e.readdir))){if(e.entry=this[tS](e),!e.entry){e.ignore=!0;return}e===this[vn]&&!e.piped&&this[iu](e)}}}[bd](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[tS](e){this[Yt]+=1;try{return new this[Dd](e.path,this[bd](e)).on("end",()=>this[_d](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Ed](){this[vn]&&this[vn].entry&&this[vn].entry.resume()}[iu](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[tu](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),xd=class extends Cd{constructor(e){super(e),this[Dd]=TN}pause(){}resume(){}[vd](e){let r=this.follow?"statSync":"lstatSync";this[eu](e,su[r](e.absolute))}[Sd](e,r){this[ru](e,su.readdirSync(e.absolute))}[iu](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[tu](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[iS](n)})}};Cd.Sync=xd;nS.exports=Cd});var kn=k(Bs=>{"use strict";var PN=Pf(),LN=require("events").EventEmitter,st=require("fs"),kd=st.writev;if(!kd){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;kd=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var Rn=Symbol("_autoClose"),Ot=Symbol("_close"),Ls=Symbol("_ended"),Ee=Symbol("_fd"),sS=Symbol("_finished"),Wr=Symbol("_flags"),Rd=Symbol("_flush"),Od=Symbol("_handleChunk"),Fd=Symbol("_makeBuf"),hu=Symbol("_mode"),au=Symbol("_needDrain"),An=Symbol("_onerror"),Tn=Symbol("_onopen"),Td=Symbol("_onread"),Dn=Symbol("_onwrite"),Vr=Symbol("_open"),gr=Symbol("_path"),Di=Symbol("_pos"),Kt=Symbol("_queue"),xn=Symbol("_read"),oS=Symbol("_readSize"),zr=Symbol("_reading"),uu=Symbol("_remain"),aS=Symbol("_size"),cu=Symbol("_write"),Sn=Symbol("_writing"),lu=Symbol("_defaultFlag"),Cn=Symbol("_errored"),fu=class extends PN{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Cn]=!1,this[Ee]=typeof r.fd=="number"?r.fd:null,this[gr]=e,this[oS]=r.readSize||16*1024*1024,this[zr]=!1,this[aS]=typeof r.size=="number"?r.size:1/0,this[uu]=this[aS],this[Rn]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Ee]=="number"?this[xn]():this[Vr]()}get fd(){return this[Ee]}get path(){return this[gr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Vr](){st.open(this[gr],"r",(e,r)=>this[Tn](e,r))}[Tn](e,r){e?this[An](e):(this[Ee]=r,this.emit("open",r),this[xn]())}[Fd](){return Buffer.allocUnsafe(Math.min(this[oS],this[uu]))}[xn](){if(!this[zr]){this[zr]=!0;let e=this[Fd]();if(e.length===0)return process.nextTick(()=>this[Td](null,0,e));st.read(this[Ee],e,0,e.length,null,(r,i,n)=>this[Td](r,i,n))}}[Td](e,r,i){this[zr]=!1,e?this[An](e):this[Od](r,i)&&this[xn]()}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[An](e){this[zr]=!0,this[Ot](),this.emit("error",e)}[Od](e,r){let i=!1;return this[uu]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[uu]<=0)&&(i=!1,this[Ot](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Ee]=="number"&&this[xn]();break;case"error":return this[Cn]?void 0:(this[Cn]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Pd=class extends fu{[Vr](){let e=!0;try{this[Tn](null,st.openSync(this[gr],"r")),e=!1}finally{e&&this[Ot]()}}[xn](){let e=!0;try{if(!this[zr]){this[zr]=!0;do{let r=this[Fd](),i=r.length===0?0:st.readSync(this[Ee],r,0,r.length,null);if(!this[Od](i,r))break}while(!0);this[zr]=!1}e=!1}finally{e&&this[Ot]()}}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.closeSync(e),this.emit("close")}}},du=class extends LN{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Cn]=!1,this[Sn]=!1,this[Ls]=!1,this[au]=!1,this[Kt]=[],this[gr]=e,this[Ee]=typeof r.fd=="number"?r.fd:null,this[hu]=r.mode===void 0?438:r.mode,this[Di]=typeof r.start=="number"?r.start:null,this[Rn]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Di]!==null?"r+":"w";this[lu]=r.flags===void 0,this[Wr]=this[lu]?i:r.flags,this[Ee]===null&&this[Vr]()}emit(e,r){if(e==="error"){if(this[Cn])return;this[Cn]=!0}return super.emit(e,r)}get fd(){return this[Ee]}get path(){return this[gr]}[An](e){this[Ot](),this[Sn]=!0,this.emit("error",e)}[Vr](){st.open(this[gr],this[Wr],this[hu],(e,r)=>this[Tn](e,r))}[Tn](e,r){this[lu]&&this[Wr]==="r+"&&e&&e.code==="ENOENT"?(this[Wr]="w",this[Vr]()):e?this[An](e):(this[Ee]=r,this.emit("open",r),this[Rd]())}end(e,r){return e&&this.write(e,r),this[Ls]=!0,!this[Sn]&&!this[Kt].length&&typeof this[Ee]=="number"&&this[Dn](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Ls]?(this.emit("error",new Error("write() after end()")),!1):this[Ee]===null||this[Sn]||this[Kt].length?(this[Kt].push(e),this[au]=!0,!1):(this[Sn]=!0,this[cu](e),!0)}[cu](e){st.write(this[Ee],e,0,e.length,this[Di],(r,i)=>this[Dn](r,i))}[Dn](e,r){e?this[An](e):(this[Di]!==null&&(this[Di]+=r),this[Kt].length?this[Rd]():(this[Sn]=!1,this[Ls]&&!this[sS]?(this[sS]=!0,this[Ot](),this.emit("finish")):this[au]&&(this[au]=!1,this.emit("drain"))))}[Rd](){if(this[Kt].length===0)this[Ls]&&this[Dn](null,0);else if(this[Kt].length===1)this[cu](this[Kt].pop());else{let e=this[Kt];this[Kt]=[],kd(this[Ee],e,this[Di],(r,i)=>this[Dn](r,i))}}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Ld=class extends du{[Vr](){let e;if(this[lu]&&this[Wr]==="r+")try{e=st.openSync(this[gr],this[Wr],this[hu])}catch(r){if(r.code==="ENOENT")return this[Wr]="w",this[Vr]();throw r}else e=st.openSync(this[gr],this[Wr],this[hu]);this[Tn](null,e)}[Ot](){if(this[Rn]&&typeof this[Ee]=="number"){let e=this[Ee];this[Ee]=null,st.closeSync(e),this.emit("close")}}[cu](e){let r=!0;try{this[Dn](null,st.writeSync(this[Ee],e,0,e.length,this[Di])),r=!1}finally{if(r)try{this[Ot]()}catch{}}}};Bs.ReadStream=fu;Bs.ReadStreamSync=Pd;Bs.WriteStream=du;Bs.WriteStreamSync=Ld});var Eu=k((AU,mS)=>{"use strict";var BN=Wa(),IN=En(),NN=require("events"),MN=gd(),jN=1024*1024,qN=$a(),uS=za(),HN=Kf(),{nextTick:UN}=require("process"),Bd=Buffer.from([31,139]),Et=Symbol("state"),xi=Symbol("writeEntry"),_r=Symbol("readEntry"),Id=Symbol("nextEntry"),cS=Symbol("processEntry"),wt=Symbol("extendedHeader"),Is=Symbol("globalExtendedHeader"),Yr=Symbol("meta"),lS=Symbol("emitMeta"),Se=Symbol("buffer"),br=Symbol("queue"),Ai=Symbol("ended"),hS=Symbol("emittedEnd"),Ci=Symbol("emit"),ot=Symbol("unzip"),pu=Symbol("consumeChunk"),mu=Symbol("consumeChunkSub"),Nd=Symbol("consumeBody"),fS=Symbol("consumeMeta"),dS=Symbol("consumeHeader"),yu=Symbol("consuming"),Md=Symbol("bufferConcat"),jd=Symbol("maybeEnd"),Ns=Symbol("writing"),Kr=Symbol("aborted"),gu=Symbol("onDone"),Ri=Symbol("sawValidEntry"),_u=Symbol("sawNullBlock"),bu=Symbol("sawEOF"),pS=Symbol("closeStream"),$N=t=>!0;mS.exports=BN(class extends NN{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Ri]=null,this.on(gu,r=>{(this[Et]==="begin"||this[Ri]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(gu,e.ondone):this.on(gu,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||jN,this.filter=typeof e.filter=="function"?e.filter:$N,this.writable=!0,this.readable=!1,this[br]=new MN,this[Se]=null,this[_r]=null,this[xi]=null,this[Et]="begin",this[Yr]="",this[wt]=null,this[Is]=null,this[Ai]=!1,this[ot]=null,this[Kr]=!1,this[_u]=!1,this[bu]=!1,this.on("end",()=>this[pS]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[dS](e,r){this[Ri]===null&&(this[Ri]=!1);let i;try{i=new IN(e,r,this[wt],this[Is])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[_u]?(this[bu]=!0,this[Et]==="begin"&&(this[Et]="header"),this[Ci]("eof")):(this[_u]=!0,this[Ci]("nullBlock"));else if(this[_u]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[xi]=new qN(i,this[wt],this[Is]);if(!this[Ri])if(s.remain){let o=()=>{s.invalid||(this[Ri]=!0)};s.on("end",o)}else this[Ri]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Ci]("ignoredEntry",s),this[Et]="ignore",s.resume()):s.size>0&&(this[Yr]="",s.on("data",o=>this[Yr]+=o),this[Et]="meta"):(this[wt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Ci]("ignoredEntry",s),this[Et]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Et]="body":(this[Et]="header",s.end()),this[_r]?this[br].push(s):(this[br].push(s),this[Id]())))}}}[pS](){UN(()=>this.emit("close"))}[cS](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[_r]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[Id]()),r=!1)):(this[_r]=null,r=!1),r}[Id](){do;while(this[cS](this[br].shift()));if(!this[br].length){let e=this[_r];!e||e.flowing||e.size===e.remain?this[Ns]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[Nd](e,r){let i=this[xi],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[Et]="header",this[xi]=null,i.end()),s.length}[fS](e,r){let i=this[xi],n=this[Nd](e,r);return this[xi]||this[lS](i),n}[Ci](e,r,i){!this[br].length&&!this[_r]?this.emit(e,r,i):this[br].push([e,r,i])}[lS](e){switch(this[Ci]("meta",this[Yr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[wt]=uS.parse(this[Yr],this[wt],!1);break;case"GlobalExtendedHeader":this[Is]=uS.parse(this[Yr],this[Is],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[wt]=this[wt]||Object.create(null),this[wt].path=this[Yr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[wt]=this[wt]||Object.create(null),this[wt].linkpath=this[Yr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Kr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Kr])return;if(this[ot]===null&&e){if(this[Se]&&(e=Buffer.concat([this[Se],e]),this[Se]=null),e.length<Bd.length)return this[Se]=e,!0;for(let i=0;this[ot]===null&&i<Bd.length;i++)e[i]!==Bd[i]&&(this[ot]=!1);if(this[ot]===null){let i=this[Ai];this[Ai]=!1,this[ot]=new HN.Unzip,this[ot].on("data",s=>this[pu](s)),this[ot].on("error",s=>this.abort(s)),this[ot].on("end",s=>{this[Ai]=!0,this[pu]()}),this[Ns]=!0;let n=this[ot][i?"end":"write"](e);return this[Ns]=!1,n}}this[Ns]=!0,this[ot]?this[ot].write(e):this[pu](e),this[Ns]=!1;let r=this[br].length?!1:this[_r]?this[_r].flowing:!0;return!r&&!this[br].length&&this[_r].once("drain",i=>this.emit("drain")),r}[Md](e){e&&!this[Kr]&&(this[Se]=this[Se]?Buffer.concat([this[Se],e]):e)}[jd](){if(this[Ai]&&!this[hS]&&!this[Kr]&&!this[yu]){this[hS]=!0;let e=this[xi];if(e&&e.blockRemain){let r=this[Se]?this[Se].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Se]&&e.write(this[Se]),e.end()}this[Ci](gu)}}[pu](e){if(this[yu])this[Md](e);else if(!e&&!this[Se])this[jd]();else{if(this[yu]=!0,this[Se]){this[Md](e);let r=this[Se];this[Se]=null,this[mu](r)}else this[mu](e);for(;this[Se]&&this[Se].length>=512&&!this[Kr]&&!this[bu];){let r=this[Se];this[Se]=null,this[mu](r)}this[yu]=!1}(!this[Se]||this[Ai])&&this[jd]()}[mu](e){let r=0,i=e.length;for(;r+512<=i&&!this[Kr]&&!this[bu];)switch(this[Et]){case"begin":case"header":this[dS](e,r),r+=512;break;case"ignore":case"body":r+=this[Nd](e,r);break;case"meta":r+=this[fS](e,r);break;default:throw new Error("invalid state: "+this[Et])}r<i&&(this[Se]?this[Se]=Buffer.concat([e.slice(r),this[Se]]):this[Se]=e.slice(r))}end(e){this[Kr]||(this[ot]?this[ot].end(e):(this[Ai]=!0,this.write(e)))}})});var wu=k((CU,bS)=>{"use strict";var GN=dn(),gS=Eu(),On=require("fs"),zN=kn(),yS=require("path"),qd=wn();bS.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=GN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&VN(i,e),i.noResume||WN(i),i.file&&i.sync?YN(i):i.file?KN(i,r):_S(i)};var WN=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},VN=(t,e)=>{let r=new Map(e.map(s=>[qd(s),!0])),i=t.filter,n=(s,o)=>{let a=o||yS.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(yS.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(qd(s)):s=>n(qd(s))},YN=t=>{let e=_S(t),r=t.file,i=!0,n;try{let s=On.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(On.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=On.openSync(r,"r");a<s.size;){let c=On.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{On.closeSync(n)}catch{}}},KN=(t,e)=>{let r=new gS(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),On.stat(n,(u,c)=>{if(u)a(u);else{let l=new zN.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},_S=t=>new gS(t)});var xS=k((RU,DS)=>{"use strict";var ZN=dn(),vu=ou(),ES=kn(),wS=wu(),vS=require("path");DS.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=ZN(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?JN(i,e):i.file?XN(i,e,r):i.sync?QN(i,e):eM(i,e)};var JN=(t,e)=>{let r=new vu.Sync(t),i=new ES.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),SS(r,e)},XN=(t,e,r)=>{let i=new vu(t),n=new ES.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Hd(i,e),r?s.then(r,r):s},SS=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?wS({file:vS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Hd=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return wS({file:vS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Hd(t,e));t.add(r)}t.end()},QN=(t,e)=>{let r=new vu.Sync(t);return SS(r,e),r},eM=(t,e)=>{let r=new vu(t);return Hd(r,e),r}});var Ud=k((TU,FS)=>{"use strict";var tM=dn(),AS=ou(),ft=require("fs"),CS=kn(),RS=wu(),TS=require("path"),kS=En();FS.exports=(t,e,r)=>{let i=tM(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?rM(i,e):nM(i,e,r)};var rM=(t,e)=>{let r=new AS.Sync(t),i=!0,n,s;try{try{n=ft.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=ft.openSync(t.file,"w+");else throw u}let o=ft.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=ft.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new kS(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}i=!1,iM(t,r,s,n,e)}finally{if(i)try{ft.closeSync(n)}catch{}}},iM=(t,e,r,i,n)=>{let s=new CS.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),sM(e,n)},nM=(t,e,r)=>{e=Array.from(e);let i=new AS(t),n=(o,a,u)=>{let c=(m,y)=>{m?ft.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return ft.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new kS(f);if(!p.cksumValid)return c(null,l);let w=512*Math.ceil(p.size/512);if(l+w+512>a||(l+=w+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,ft.read(o,f,0,512,l,d)};ft.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ft.open(t.file,u,c);if(l)return a(l);ft.fstat(h,(f,d)=>{if(f)return ft.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new CS.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),OS(i,e)})})};ft.open(t.file,u,c)});return r?s.then(r,r):s},sM=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?RS({file:TS.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},OS=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return RS({file:TS.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>OS(t,e));t.add(r)}t.end()}});var LS=k((kU,PS)=>{"use strict";var oM=dn(),aM=Ud();PS.exports=(t,e,r)=>{let i=oM(t);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),uM(i),aM(i,e,r)};var uM=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var NS=k((OU,IS)=>{var{promisify:BS}=require("util"),Zr=require("fs"),cM=t=>{if(!t)t={mode:511,fs:Zr};else if(typeof t=="object")t={mode:511,fs:Zr,...t};else if(typeof t=="number")t={mode:t,fs:Zr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Zr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Zr.mkdir,t.mkdirAsync=BS(t.mkdir),t.stat=t.stat||t.fs.stat||Zr.stat,t.statAsync=BS(t.stat),t.statSync=t.statSync||t.fs.statSync||Zr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Zr.mkdirSync,t};IS.exports=cM});var jS=k((FU,MS)=>{var lM=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:hM,parse:fM}=require("path"),dM=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=hM(t),lM==="win32"){let e=/[*|"<>?:]/,{root:r}=fM(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};MS.exports=dM});var GS=k((PU,$S)=>{var{dirname:qS}=require("path"),HS=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?HS(t,qS(e),e):void 0),US=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?US(t,qS(e),e):void 0}};$S.exports={findMade:HS,findMadeSync:US}});var zd=k((LU,WS)=>{var{dirname:zS}=require("path"),$d=(t,e,r)=>{e.recursive=!1;let i=zS(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return $d(i,e).then(s=>$d(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Gd=(t,e,r)=>{let i=zS(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Gd(t,e,Gd(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};WS.exports={mkdirpManual:$d,mkdirpManualSync:Gd}});var KS=k((BU,YS)=>{var{dirname:VS}=require("path"),{findMade:pM,findMadeSync:mM}=GS(),{mkdirpManual:yM,mkdirpManualSync:gM}=zd(),_M=(t,e)=>(e.recursive=!0,VS(t)===t?e.mkdirAsync(t,e):pM(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return yM(t,e);throw n}))),bM=(t,e)=>{if(e.recursive=!0,VS(t)===t)return e.mkdirSync(t,e);let i=mM(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return gM(t,e);throw n}};YS.exports={mkdirpNative:_M,mkdirpNativeSync:bM}});var QS=k((IU,XS)=>{var ZS=require("fs"),EM=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Wd=EM.replace(/^v/,"").split("."),JS=+Wd[0]>10||+Wd[0]==10&&+Wd[1]>=12,wM=JS?t=>t.mkdir===ZS.mkdir:()=>!1,vM=JS?t=>t.mkdirSync===ZS.mkdirSync:()=>!1;XS.exports={useNative:wM,useNativeSync:vM}});var sD=k((NU,nD)=>{var Fn=NS(),Pn=jS(),{mkdirpNative:eD,mkdirpNativeSync:tD}=KS(),{mkdirpManual:rD,mkdirpManualSync:iD}=zd(),{useNative:SM,useNativeSync:DM}=QS(),Ln=(t,e)=>(t=Pn(t),e=Fn(e),SM(e)?eD(t,e):rD(t,e)),xM=(t,e)=>(t=Pn(t),e=Fn(e),DM(e)?tD(t,e):iD(t,e));Ln.sync=xM;Ln.native=(t,e)=>eD(Pn(t),Fn(e));Ln.manual=(t,e)=>rD(Pn(t),Fn(e));Ln.nativeSync=(t,e)=>tD(Pn(t),Fn(e));Ln.manualSync=(t,e)=>iD(Pn(t),Fn(e));nD.exports=Ln});var fD=k((MU,hD)=>{"use strict";var vt=require("fs"),Ti=require("path"),AM=vt.lchown?"lchown":"chown",CM=vt.lchownSync?"lchownSync":"chownSync",aD=vt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),oD=(t,e,r)=>{try{return vt[CM](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},RM=(t,e,r)=>{try{return vt.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},TM=aD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):vt.chown(t,e,r,i)}:(t,e,r,i)=>i,Vd=aD?(t,e,r)=>{try{return oD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;RM(t,e,r)}}:(t,e,r)=>oD(t,e,r),kM=process.version,uD=(t,e,r)=>vt.readdir(t,e,r),OM=(t,e)=>vt.readdirSync(t,e);/^v4\./.test(kM)&&(uD=(t,e,r)=>vt.readdir(t,r));var Su=(t,e,r,i)=>{vt[AM](t,e,r,TM(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},cD=(t,e,r,i,n)=>{if(typeof e=="string")return vt.lstat(Ti.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,cD(t,o,r,i,n)});if(e.isDirectory())Yd(Ti.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Ti.resolve(t,e.name);Su(o,r,i,n)});else{let s=Ti.resolve(t,e.name);Su(s,r,i,n)}},Yd=(t,e,r,i)=>{uD(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Su(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Su(t,e,r,i)}};s.forEach(c=>cD(t,c,e,r,u))})},FM=(t,e,r,i)=>{if(typeof e=="string")try{let n=vt.lstatSync(Ti.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&lD(Ti.resolve(t,e.name),r,i),Vd(Ti.resolve(t,e.name),r,i)},lD=(t,e,r)=>{let i;try{i=OM(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Vd(t,e,r);throw n}return i&&i.length&&i.forEach(n=>FM(t,n,e,r)),Vd(t,e,r)};hD.exports=Yd;Yd.sync=lD});var yD=k((jU,Kd)=>{"use strict";var dD=sD(),St=require("fs"),Du=require("path"),pD=fD(),Ft=_n(),xu=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Au=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Cu=(t,e)=>t.get(Ft(e)),Ms=(t,e,r)=>t.set(Ft(e),r),PM=(t,e)=>{St.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Au(t,r&&r.code||"ENOTDIR")),e(r)})};Kd.exports=(t,e,r)=>{t=Ft(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,h=e.cache,f=Ft(e.cwd),d=(p,w)=>{p?r(p):(Ms(h,t,!0),w&&u?pD(w,o,a,C=>d(C)):s?St.chmod(t,n,r):r())};if(h&&Cu(h,t)===!0)return d();if(t===f)return PM(t,d);if(c)return dD(t,{mode:n}).then(p=>d(null,p),d);let y=Ft(Du.relative(f,t)).split("/");Ru(f,y,n,h,l,f,null,d)};var Ru=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Ft(Du.resolve(t+"/"+u));if(Cu(i,c))return Ru(c,e,r,i,n,s,o,a);St.mkdir(c,r,mD(c,e,r,i,n,s,o,a))},mD=(t,e,r,i,n,s,o,a)=>u=>{u?St.lstat(t,(c,l)=>{if(c)c.path=c.path&&Ft(c.path),a(c);else if(l.isDirectory())Ru(t,e,r,i,n,s,o,a);else if(n)St.unlink(t,h=>{if(h)return a(h);St.mkdir(t,r,mD(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new xu(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Ru(t,e,r,i,n,s,o,a))},LM=t=>{let e=!1,r="ENOTDIR";try{e=St.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Au(t,r)}};Kd.exports.sync=(t,e)=>{t=Ft(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,h=Ft(e.cwd),f=p=>{Ms(l,t,!0),p&&a&&pD.sync(p,s,o),n&&St.chmodSync(t,i)};if(l&&Cu(l,t)===!0)return f();if(t===h)return LM(h),f();if(u)return f(dD.sync(t,i));let m=Ft(Du.relative(h,t)).split("/"),y=null;for(let p=m.shift(),w=h;p&&(w+="/"+p);p=m.shift())if(w=Ft(Du.resolve(w)),!Cu(l,w))try{St.mkdirSync(w,i),y=y||w,Ms(l,w,!0)}catch{let F=St.lstatSync(w);if(F.isDirectory()){Ms(l,w,!0);continue}else if(c){St.unlinkSync(w),St.mkdirSync(w,i),y=y||w,Ms(l,w,!0);continue}else if(F.isSymbolicLink())return new xu(w,w+"/"+m.join("/"))}return f(y)}});var Jd=k((qU,gD)=>{var Zd=Object.create(null),{hasOwnProperty:BM}=Object.prototype;gD.exports=t=>(BM.call(Zd,t)||(Zd[t]=t.normalize("NFKD")),Zd[t])});var wD=k((HU,ED)=>{var _D=require("assert"),IM=Jd(),NM=wn(),{join:bD}=require("path"),MM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,jM=MM==="win32";ED.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=bD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);_D.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);_D(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=jM?["win32 parallelization disabled"]:c.map(f=>IM(NM(bD(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var DD=k((UU,SD)=>{var qM=process.env.__FAKE_PLATFORM__||process.platform,HM=qM==="win32",UM=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:$M,O_TRUNC:GM,O_WRONLY:zM,UV_FS_O_FILEMAP:vD=0}=UM.constants,WM=HM&&!!vD,VM=512*1024,YM=vD|GM|$M|zM;SD.exports=WM?t=>t<VM?YM:"w":()=>"w"});var op=k(($U,MD)=>{"use strict";var KM=require("assert"),ZM=Eu(),_e=require("fs"),JM=kn(),Er=require("path"),BD=yD(),xD=sd(),XM=wD(),QM=od(),dt=_n(),e3=wn(),t3=Jd(),AD=Symbol("onEntry"),ep=Symbol("checkFs"),CD=Symbol("checkFs2"),Ou=Symbol("pruneCache"),tp=Symbol("isReusable"),Dt=Symbol("makeFs"),rp=Symbol("file"),ip=Symbol("directory"),Fu=Symbol("link"),RD=Symbol("symlink"),TD=Symbol("hardlink"),kD=Symbol("unsupported"),OD=Symbol("checkPath"),Jr=Symbol("mkdir"),Ze=Symbol("onError"),Tu=Symbol("pending"),FD=Symbol("pend"),Bn=Symbol("unpend"),Xd=Symbol("ended"),Qd=Symbol("maybeClose"),np=Symbol("skip"),js=Symbol("doChown"),qs=Symbol("uid"),Hs=Symbol("gid"),Us=Symbol("checkedCwd"),ID=require("crypto"),ND=DD(),r3=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$s=r3==="win32",i3=(t,e)=>{if(!$s)return _e.unlink(t,e);let r=t+".DELETE."+ID.randomBytes(16).toString("hex");_e.rename(t,r,i=>{if(i)return e(i);_e.unlink(r,e)})},n3=t=>{if(!$s)return _e.unlinkSync(t);let e=t+".DELETE."+ID.randomBytes(16).toString("hex");_e.renameSync(t,e),_e.unlinkSync(e)},PD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,LD=t=>t3(e3(dt(t))).toLowerCase(),s3=(t,e)=>{e=LD(e);for(let r of t.keys()){let i=LD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},o3=t=>{for(let e of t.keys())t.delete(e)},Gs=class extends ZM{constructor(e){if(e||(e={}),e.ondone=r=>{this[Xd]=!0,this[Qd]()},super(e),this[Us]=!1,this.reservations=XM(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Tu]=0,this[Xd]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||$s,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=dt(Er.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[AD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Qd](){this[Xd]&&this[Tu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OD](e){if(this.strip){let r=dt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=dt(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=dt(e.path),i=r.split("/");if(i.includes("..")||$s&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=QM(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Er.isAbsolute(e.path)?e.absolute=dt(Er.resolve(e.path)):e.absolute=dt(Er.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:dt(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=Er.win32.parse(e.absolute);e.absolute=r+xD.encode(e.absolute.slice(r.length));let{root:i}=Er.win32.parse(e.path);e.path=i+xD.encode(e.path.slice(i.length))}return!0}[AD](e){if(!this[OD](e))return e.resume();switch(KM.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[ep](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[kD](e)}}[Ze](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Bn](),r.resume())}[Jr](e,r,i){BD(dt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[js](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qs](e){return PD(this.uid,e.uid,this.processUid)}[Hs](e){return PD(this.gid,e.gid,this.processGid)}[rp](e,r){let i=e.mode&4095||this.fmode,n=new JM.WriteStream(e.absolute,{flags:ND(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&_e.close(n.fd,()=>{}),n.write=()=>!0,this[Ze](u,e),r()});let s=1,o=u=>{if(u){n.fd&&_e.close(n.fd,()=>{}),this[Ze](u,e),r();return}--s===0&&_e.close(n.fd,c=>{c?this[Ze](c,e):this[Bn](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;_e.futimes(l,h,f,d=>d?_e.utimes(c,h,f,m=>o(m&&d)):o())}if(this[js](e)){s++;let h=this[qs](e),f=this[Hs](e);_e.fchown(l,h,f,d=>d?_e.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[Ze](u,e),r()}),e.pipe(a)),a.pipe(n)}[ip](e,r){let i=e.mode&4095||this.dmode;this[Jr](e.absolute,i,n=>{if(n){this[Ze](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Bn](),e.resume())};e.mtime&&!this.noMtime&&(s++,_e.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[js](e)&&(s++,_e.chown(e.absolute,this[qs](e),this[Hs](e),o)),o()})}[kD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[RD](e,r){this[Fu](e,e.linkpath,"symlink",r)}[TD](e,r){let i=dt(Er.resolve(this.cwd,e.linkpath));this[Fu](e,i,"link",r)}[FD](){this[Tu]++}[Bn](){this[Tu]--,this[Qd]()}[np](e){this[Bn](),e.resume()}[tp](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!$s}[ep](e){this[FD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[CD](e,i))}[Ou](e){e.type==="SymbolicLink"?o3(this.dirCache):e.type!=="Directory"&&s3(this.dirCache,e.absolute)}[CD](e,r){this[Ou](e);let i=a=>{this[Ou](e),r(a)},n=()=>{this[Jr](this.cwd,this.dmode,a=>{if(a){this[Ze](a,e),i();return}this[Us]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=dt(Er.dirname(e.absolute));if(a!==this.cwd)return this[Jr](a,this.dmode,u=>{if(u){this[Ze](u,e),i();return}o()})}o()},o=()=>{_e.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[np](e),i();return}if(a||this[tp](e,u))return this[Dt](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[Dt](h,e,i);return c?_e.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return _e.rmdir(e.absolute,c=>this[Dt](c,e,i))}if(e.absolute===this.cwd)return this[Dt](null,e,i);i3(e.absolute,c=>this[Dt](c,e,i))})};this[Us]?s():n()}[Dt](e,r,i){if(e){this[Ze](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[rp](r,i);case"Link":return this[TD](r,i);case"SymbolicLink":return this[RD](r,i);case"Directory":case"GNUDumpDir":return this[ip](r,i)}}[Fu](e,r,i,n){_e[i](r,e.absolute,s=>{s?this[Ze](s,e):(this[Bn](),e.resume()),n()})}},ku=t=>{try{return[null,t()]}catch(e){return[e,null]}},sp=class extends Gs{[Dt](e,r){return super[Dt](e,r,()=>{})}[ep](e){if(this[Ou](e),!this[Us]){let s=this[Jr](this.cwd,this.dmode);if(s)return this[Ze](s,e);this[Us]=!0}if(e.absolute!==this.cwd){let s=dt(Er.dirname(e.absolute));if(s!==this.cwd){let o=this[Jr](s,this.dmode);if(o)return this[Ze](o,e)}}let[r,i]=ku(()=>_e.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[np](e);if(r||this[tp](e,i))return this[Dt](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?ku(()=>{_e.chmodSync(e.absolute,e.mode)}):[];return this[Dt](a,e)}let[s]=ku(()=>_e.rmdirSync(e.absolute));this[Dt](s,e)}let[n]=e.absolute===this.cwd?[]:ku(()=>n3(e.absolute));this[Dt](n,e)}[rp](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{_e.closeSync(s)}catch(c){u=c}(a||u)&&this[Ze](a||u,e),r()},s;try{s=_e.openSync(e.absolute,ND(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[Ze](a,e)),e.pipe(o)),o.on("data",a=>{try{_e.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{_e.futimesSync(s,c,l)}catch(h){try{_e.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[js](e)){let c=this[qs](e),l=this[Hs](e);try{_e.fchownSync(s,c,l)}catch(h){try{_e.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[ip](e,r){let i=e.mode&4095||this.dmode,n=this[Jr](e.absolute,i);if(n){this[Ze](n,e),r();return}if(e.mtime&&!this.noMtime)try{_e.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[js](e))try{_e.chownSync(e.absolute,this[qs](e),this[Hs](e))}catch{}r(),e.resume()}[Jr](e,r){try{return BD.sync(dt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(i){return i}}[Fu](e,r,i,n){try{_e[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Ze](s,e)}}};Gs.Sync=sp;MD.exports=Gs});var $D=k((GU,UD)=>{"use strict";var a3=dn(),Pu=op(),qD=require("fs"),HD=kn(),jD=require("path"),ap=wn();UD.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let i=a3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&u3(i,e),i.file&&i.sync?c3(i):i.file?l3(i,r):i.sync?h3(i):f3(i)};var u3=(t,e)=>{let r=new Map(e.map(s=>[ap(s),!0])),i=t.filter,n=(s,o)=>{let a=o||jD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(jD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(ap(s)):s=>n(ap(s))},c3=t=>{let e=new Pu.Sync(t),r=t.file,i=qD.statSync(r),n=t.maxReadSize||16*1024*1024;new HD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},l3=(t,e)=>{let r=new Pu(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),qD.stat(n,(u,c)=>{if(u)a(u);else{let l=new HD.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},h3=t=>new Pu.Sync(t),f3=t=>new Pu(t)});var GD=k(Le=>{"use strict";Le.c=Le.create=xS();Le.r=Le.replace=Ud();Le.t=Le.list=wu();Le.u=Le.update=LS();Le.x=Le.extract=$D();Le.Pack=ou();Le.Unpack=op();Le.Parse=Eu();Le.ReadEntry=$a();Le.WriteEntry=yd();Le.Header=En();Le.Pax=za();Le.types=Xf()});var vr=k((wr,Lu)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var zD=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function d3(t){return zD.includes(t)}var p3=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...zD];function m3(t){return p3.includes(t)}var y3=["null","undefined","string","number","bigint","boolean","symbol"];function g3(t){return y3.includes(t)}function In(t){return e=>typeof e===t}var{toString:WD}=Object.prototype,zs=t=>{let e=WD.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(m3(e))return e},we=t=>e=>zs(e)===t;function O(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(O.observable(t))return"Observable";if(O.array(t))return"Array";if(O.buffer(t))return"Buffer";let e=zs(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}O.undefined=In("undefined");O.string=In("string");var _3=In("number");O.number=t=>_3(t)&&!O.nan(t);O.bigint=In("bigint");O.function_=In("function");O.null_=t=>t===null;O.class_=t=>O.function_(t)&&t.toString().startsWith("class ");O.boolean=t=>t===!0||t===!1;O.symbol=In("symbol");O.numericString=t=>O.string(t)&&!O.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));O.array=(t,e)=>Array.isArray(t)?O.function_(e)?t.every(e):!0:!1;O.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};O.blob=t=>we("Blob")(t);O.nullOrUndefined=t=>O.null_(t)||O.undefined(t);O.object=t=>!O.null_(t)&&(typeof t=="object"||O.function_(t));O.iterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};O.asyncIterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};O.generator=t=>{var e,r;return O.iterable(t)&&O.function_((e=t)===null||e===void 0?void 0:e.next)&&O.function_((r=t)===null||r===void 0?void 0:r.throw)};O.asyncGenerator=t=>O.asyncIterable(t)&&O.function_(t.next)&&O.function_(t.throw);O.nativePromise=t=>we("Promise")(t);var b3=t=>{var e,r;return O.function_((e=t)===null||e===void 0?void 0:e.then)&&O.function_((r=t)===null||r===void 0?void 0:r.catch)};O.promise=t=>O.nativePromise(t)||b3(t);O.generatorFunction=we("GeneratorFunction");O.asyncGeneratorFunction=t=>zs(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>zs(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=we("RegExp");O.date=we("Date");O.error=we("Error");O.map=t=>we("Map")(t);O.set=t=>we("Set")(t);O.weakMap=t=>we("WeakMap")(t);O.weakSet=t=>we("WeakSet")(t);O.int8Array=we("Int8Array");O.uint8Array=we("Uint8Array");O.uint8ClampedArray=we("Uint8ClampedArray");O.int16Array=we("Int16Array");O.uint16Array=we("Uint16Array");O.int32Array=we("Int32Array");O.uint32Array=we("Uint32Array");O.float32Array=we("Float32Array");O.float64Array=we("Float64Array");O.bigInt64Array=we("BigInt64Array");O.bigUint64Array=we("BigUint64Array");O.arrayBuffer=we("ArrayBuffer");O.sharedArrayBuffer=we("SharedArrayBuffer");O.dataView=we("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>we("URL")(t);O.urlString=t=>{if(!O.string(t))return!1;try{return new URL(t),!0}catch{return!1}};O.truthy=t=>!!t;O.falsy=t=>!t;O.nan=t=>Number.isNaN(t);O.primitive=t=>O.null_(t)||g3(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(WD.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>d3(zs(t));var E3=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&E3(t.length);O.inRange=(t,e)=>{if(O.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(O.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var w3=1,v3=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===w3&&O.string(t.nodeName)&&!O.plainObject(t)&&v3.every(e=>e in t);O.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var VD=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=VD(0);O.oddInteger=VD(1);O.emptyArray=t=>O.array(t)&&t.length===0;O.nonEmptyArray=t=>O.array(t)&&t.length>0;O.emptyString=t=>O.string(t)&&t.length===0;var S3=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||S3(t);O.nonEmptyString=t=>O.string(t)&&t.length>0;O.nonEmptyStringAndNotWhitespace=t=>O.string(t)&&!O.emptyStringOrWhitespace(t);O.emptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length===0;O.nonEmptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length>0;O.emptySet=t=>O.set(t)&&t.size===0;O.nonEmptySet=t=>O.set(t)&&t.size>0;O.emptyMap=t=>O.map(t)&&t.size===0;O.nonEmptyMap=t=>O.map(t)&&t.size>0;O.propertyKey=t=>O.any([O.string,O.number,O.symbol],t);O.formData=t=>we("FormData")(t);O.urlSearchParams=t=>we("URLSearchParams")(t);var YD=(t,e,r)=>{if(!O.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};O.any=(t,...e)=>(O.array(t)?t:[t]).some(i=>YD(Array.prototype.some,i,e));O.all=(t,...e)=>YD(Array.prototype.every,t,e);var ne=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${O(o)}\``))].join(", ")}`:`received value of type \`${O(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};wr.assert={undefined:t=>ne(O.undefined(t),"undefined",t),string:t=>ne(O.string(t),"string",t),number:t=>ne(O.number(t),"number",t),bigint:t=>ne(O.bigint(t),"bigint",t),function_:t=>ne(O.function_(t),"Function",t),null_:t=>ne(O.null_(t),"null",t),class_:t=>ne(O.class_(t),"Class",t),boolean:t=>ne(O.boolean(t),"boolean",t),symbol:t=>ne(O.symbol(t),"symbol",t),numericString:t=>ne(O.numericString(t),"string with a number",t),array:(t,e)=>{ne(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>ne(O.buffer(t),"Buffer",t),blob:t=>ne(O.blob(t),"Blob",t),nullOrUndefined:t=>ne(O.nullOrUndefined(t),"null or undefined",t),object:t=>ne(O.object(t),"Object",t),iterable:t=>ne(O.iterable(t),"Iterable",t),asyncIterable:t=>ne(O.asyncIterable(t),"AsyncIterable",t),generator:t=>ne(O.generator(t),"Generator",t),asyncGenerator:t=>ne(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>ne(O.nativePromise(t),"native Promise",t),promise:t=>ne(O.promise(t),"Promise",t),generatorFunction:t=>ne(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>ne(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>ne(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>ne(O.boundFunction(t),"Function",t),regExp:t=>ne(O.regExp(t),"RegExp",t),date:t=>ne(O.date(t),"Date",t),error:t=>ne(O.error(t),"Error",t),map:t=>ne(O.map(t),"Map",t),set:t=>ne(O.set(t),"Set",t),weakMap:t=>ne(O.weakMap(t),"WeakMap",t),weakSet:t=>ne(O.weakSet(t),"WeakSet",t),int8Array:t=>ne(O.int8Array(t),"Int8Array",t),uint8Array:t=>ne(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>ne(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>ne(O.int16Array(t),"Int16Array",t),uint16Array:t=>ne(O.uint16Array(t),"Uint16Array",t),int32Array:t=>ne(O.int32Array(t),"Int32Array",t),uint32Array:t=>ne(O.uint32Array(t),"Uint32Array",t),float32Array:t=>ne(O.float32Array(t),"Float32Array",t),float64Array:t=>ne(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>ne(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>ne(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>ne(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>ne(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>ne(O.dataView(t),"DataView",t),enumCase:(t,e)=>ne(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>ne(O.urlInstance(t),"URL",t),urlString:t=>ne(O.urlString(t),"string with a URL",t),truthy:t=>ne(O.truthy(t),"truthy",t),falsy:t=>ne(O.falsy(t),"falsy",t),nan:t=>ne(O.nan(t),"NaN",t),primitive:t=>ne(O.primitive(t),"primitive",t),integer:t=>ne(O.integer(t),"integer",t),safeInteger:t=>ne(O.safeInteger(t),"integer",t),plainObject:t=>ne(O.plainObject(t),"plain object",t),typedArray:t=>ne(O.typedArray(t),"TypedArray",t),arrayLike:t=>ne(O.arrayLike(t),"array-like",t),domElement:t=>ne(O.domElement(t),"HTMLElement",t),observable:t=>ne(O.observable(t),"Observable",t),nodeStream:t=>ne(O.nodeStream(t),"Node.js Stream",t),infinite:t=>ne(O.infinite(t),"infinite number",t),emptyArray:t=>ne(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>ne(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>ne(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>ne(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>ne(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>ne(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>ne(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>ne(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>ne(O.emptySet(t),"empty set",t),nonEmptySet:t=>ne(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>ne(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>ne(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>ne(O.propertyKey(t),"PropertyKey",t),formData:t=>ne(O.formData(t),"FormData",t),urlSearchParams:t=>ne(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>ne(O.evenInteger(t),"even integer",t),oddInteger:t=>ne(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>ne(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>ne(O.inRange(t,e),"in range",t),any:(t,...e)=>ne(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>ne(O.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(O,{class:{value:O.class_},function:{value:O.function_},null:{value:O.null_}});Object.defineProperties(wr.assert,{class:{value:wr.assert.class_},function:{value:wr.assert.function_},null:{value:wr.assert.null_}});wr.default=O;Lu.exports=O;Lu.exports.default=O;Lu.exports.assert=wr.assert});var KD=k((WU,up)=>{"use strict";var Bu=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Nn=class{static fn(e){return(...r)=>new Nn((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(n,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Bu(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Nn.prototype,Promise.prototype);up.exports=Nn;up.exports.CancelError=Bu});var ZD=k((lp,hp)=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});function D3(t){return t.encrypted}var cp=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),D3(t)&&n&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};lp.default=cp;hp.exports=cp;hp.exports.default=cp});var JD=k((dp,pp)=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var x3=ZD(),A3=require("util"),C3=Number(process.versions.node.split(".")[0]),fp=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(c,...l))};r(t);let i=()=>{e.abort=Date.now(),(!e.response||C3>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,A3.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),x3.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?n(t.socket):t.prependOnceListener("socket",n);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",i)}),e};dp.default=fp;pp.exports=fp;pp.exports.default=fp});var nx=k((VU,gp)=>{"use strict";var{V4MAPPED:R3,ADDRCONFIG:T3,ALL:ix,promises:{Resolver:XD},lookup:k3}=require("dns"),{promisify:mp}=require("util"),O3=require("os"),Mn=Symbol("cacheableLookupCreateConnection"),yp=Symbol("cacheableLookupInstance"),QD=Symbol("expires"),F3=typeof ix=="number",ex=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},P3=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},tx=()=>{let t=!1,e=!1;for(let r of Object.values(O3.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},L3=t=>Symbol.iterator in t,rx={ttl:!0},B3={all:!0},Iu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new XD,lookup:o=k3}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=mp(o),this._resolver instanceof XD?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=mp(this._resolver.resolve4.bind(this._resolver)),this._resolve6=mp(this._resolver.resolve6.bind(this._resolver))),this._iface=tx(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&R3&&(F3&&r.hints&ix||n.length===0)?P3(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&T3){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,rx),this._resolve6(e,rx)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[QD]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}L3(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,B3);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[QD];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(ex(e),Mn in e)throw new Error("CacheableLookup has been already installed");e[Mn]=e.createConnection,e[yp]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[Mn](r,i))}uninstall(e){if(ex(e),e[Mn]){if(e[yp]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Mn],delete e[Mn],delete e[yp]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=tx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};gp.exports=Iu;gp.exports.default=Iu});var ax=k((YU,ox)=>{"use strict";var I3="text/plain",N3="us-ascii",sx=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),M3=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===N3)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==I3)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},j3=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return M3(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];sx(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])sx(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};ox.exports=j3});var lx=k((KU,cx)=>{cx.exports=ux;function ux(t,e){if(t&&e)return ux(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var bp=k((ZU,_p)=>{var hx=lx();_p.exports=hx(Nu);_p.exports.strict=hx(fx);Nu.proto=Nu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Nu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return fx(this)},configurable:!0})});function Nu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function fx(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var mx=k((JU,px)=>{var q3=bp(),H3=function(){},U3=function(t){return t.setHeader&&typeof t.abort=="function"},$3=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},dx=function(t,e,r){if(typeof e=="function")return dx(t,null,e);e||(e={}),r=q3(r||H3);var i=t._writableState,n=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return U3(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),$3(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};px.exports=dx});var _x=k((XU,gx)=>{var G3=bp(),z3=mx(),Ep=require("fs"),Ws=function(){},W3=/^v?\.0/.test(process.version),Mu=function(t){return typeof t=="function"},V3=function(t){return!W3||!Ep?!1:(t instanceof(Ep.ReadStream||Ws)||t instanceof(Ep.WriteStream||Ws))&&Mu(t.close)},Y3=function(t){return t.setHeader&&Mu(t.abort)},K3=function(t,e,r,i){i=G3(i);var n=!1;t.on("close",function(){n=!0}),z3(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,V3(t))return t.close(Ws);if(Y3(t))return t.abort();if(Mu(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},yx=function(t){t()},Z3=function(t,e){return t.pipe(e)},J3=function(){var t=Array.prototype.slice.call(arguments),e=Mu(t[t.length-1]||Ws)&&t.pop()||Ws;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return K3(n,o,a,function(u){r||(r=u),u&&i.forEach(yx),!o&&(i.forEach(yx),e(r))})});return t.reduce(Z3)};gx.exports=J3});var Ex=k((QU,bx)=>{"use strict";var{PassThrough:X3}=require("stream");bx.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new X3({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var wx=k((e7,jn)=>{"use strict";var{constants:Q3}=require("buffer"),e8=_x(),t8=Ex(),ju=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function qu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=Q3.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=e8(t,t8(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new ju)})}),i.getBufferedValue()}jn.exports=qu;jn.exports.default=qu;jn.exports.buffer=(t,e)=>qu(t,{...e,encoding:"buffer"});jn.exports.array=(t,e)=>qu(t,{...e,array:!0});jn.exports.MaxBufferError=ju});var Sx=k((r7,vx)=>{"use strict";var r8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),i8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),n8=new Set([500,502,503,504]),s8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},o8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function ki(t){let e=parseInt(t,10);return isFinite(e)?e:0}function a8(t){return t?n8.has(t.status):!0}function wp(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function u8(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}vx.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=wp(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=wp(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":u8(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&i8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||r8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=wp(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)s8[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return ki(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return ki(this._rescc["s-maxage"])}if(this._rescc["max-age"])return ki(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ki(this._rescc["stale-if-error"]),i=e+ki(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+ki(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+ki(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&a8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!o8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Hu=k((i7,Dx)=>{"use strict";Dx.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var Ax=k((n7,xx)=>{"use strict";var c8=require("stream").Readable,l8=Hu(),vp=class extends c8{constructor(e,r,i,n){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=l8(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};xx.exports=vp});var Rx=k((s7,Cx)=>{"use strict";var h8=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];Cx.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(h8));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var kx=k((o7,Tx)=>{"use strict";var f8=require("stream").PassThrough,d8=Rx(),p8=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new f8;return d8(t,e),t.pipe(e)};Tx.exports=p8});var Ox=k(Sp=>{Sp.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};Sp.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Bx=k((u7,Lx)=>{"use strict";var m8=require("events"),Fx=Ox(),y8=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Px=["sqlite","postgres","mysql","mongo","redis","tiered"],Dp=class extends m8{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:Fx.stringify,deserialize:Fx.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=y8(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let n=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Px.includes(this.opts.store.opts.dialect)||Px.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>n?i.getMany(s):i.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(n){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Lx.exports=Dp});var Mx=k((c7,Nx)=>{"use strict";var g8=require("events"),Uu=require("url"),_8=ax(),b8=wx(),xp=Sx(),Ix=Ax(),E8=Hu(),w8=kx(),v8=Bx(),Pt=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new v8({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=Ap(Uu.parse(r)),r={};else if(r instanceof Uu.URL)n=Ap(Uu.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=Ap({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...S8(n)},r.headers=E8(r.headers);let s=new g8,o=_8(Uu.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=xp.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let F=C.policy.responseHeaders();p=new Ix(u.statusCode,F,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new xp(h,p,h),p.fromCache=!1);let w;h.cache&&p.cachePolicy.storable()?(w=w8(p),(async()=>{try{let C=b8.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let F=await C,P={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:F},T=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(T=T?Math.min(T,h.maxTtl):h.maxTtl),await this.cache.set(a,P,T)}catch(C){s.emit("error",new Pt.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Pt.CacheError(C))}})(),s.emit("response",w||p),typeof i=="function"&&i(w||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new Pt.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=xp.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),w=new Ix(m.statusCode,p,m.body,m.url);w.cachePolicy=y,w.fromCache=!0,s.emit("response",w),typeof i=="function"&&i(w)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new Pt.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new Pt.CacheError(d))}})(),s}}};function S8(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function Ap(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Pt.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Pt.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Nx.exports=Pt});var qx=k((f7,jx)=>{"use strict";var D8=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];jx.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(D8)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Ux=k((d7,Hx)=>{"use strict";var{Transform:x8,PassThrough:A8}=require("stream"),Cp=require("zlib"),C8=qx();Hx.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Cp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new x8({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new A8({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?Cp.createBrotliDecompress():Cp.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),C8(t,s),t.pipe(n).pipe(o).pipe(s),s}});var Tp=k((p7,$x)=>{"use strict";var Rp=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[i,n]of this.oldCache.entries())this.onEviction(i,n);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};$x.exports=Rp});var Op=k((m7,Vx)=>{"use strict";var R8=require("events"),T8=require("tls"),k8=require("http2"),O8=Tp(),Qe=Symbol("currentStreamsCount"),Gx=Symbol("request"),xt=Symbol("cachedOriginSet"),qn=Symbol("gracefullyClosing"),F8=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],P8=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},L8=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,kp=(t,e)=>{for(let r of t)r[xt].length<e[xt].length&&r[xt].every(i=>e[xt].includes(i))&&r[Qe]+e[Qe]<=e.remoteSettings.maxConcurrentStreams&&Wx(r)},B8=(t,e)=>{for(let r of t)e[xt].length<r[xt].length&&e[xt].every(i=>r[xt].includes(i))&&e[Qe]+r[Qe]<=r.remoteSettings.maxConcurrentStreams&&Wx(e)},zx=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[Zt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},Wx=t=>{t[qn]=!0,t[Qe]===0&&t.close()},Zt=class extends R8{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new O8({maxSize:n})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let i of F8)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=Zt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[xt].includes(a)){let p=m[Qe];if(p>=y||m[qn]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
15
+ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,h=!1;try{let f=k8.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[Qe]=0,f[qn]=!1;let d=()=>f[Qe]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:w}of i)w(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:w}of i)w(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[xt])if(p in this.queue[o]){let{listeners:w}=this.queue[o][p];for(;w.length!==0&&d();)w.shift().resolve(f);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[xt]=f.originSet,d()&&(y(),kp(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let w of i)w.reject(p);f.destroy();return}f[xt]=f.originSet;{let p=this.sessions;if(o in p){let w=p[o];w.splice(P8(w,f,L8),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[Qe]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),kp(this.sessions[o],f)})}),f[Gx]=f.request,f.request=(p,w)=>{if(f[qn])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[Gx](p,w);return f.ref(),++f[Qe],f[Qe]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[Qe],!f.destroyed&&!f.closed&&(B8(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let F=f[Qe]===0;F&&f.unref(),F&&(this._freeSessionsCount>this.maxFreeSessions||f[qn])?f.close():(kp(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return Zt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),T8.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Qe]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return zx({agent:this,isFree:!0})}get busySessions(){return zx({agent:this,isFree:!1})}};Zt.kCurrentStreamsCount=Qe;Zt.kGracefullyClosing=qn;Vx.exports={Agent:Zt,globalAgent:new Zt}});var Pp=k((y7,Yx)=>{"use strict";var{Readable:I8}=require("stream"),Fp=class extends I8{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Yx.exports=Fp});var Lp=k((g7,Kx)=>{"use strict";Kx.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Jx=k((_7,Zx)=>{"use strict";Zx.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var Qx=k((b7,Xx)=>{"use strict";Xx.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var tA=k((w7,eA)=>{"use strict";var Hn=(t,e,r)=>{eA.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Hn(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Hn(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Hn(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Hn(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Hn(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Hn(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var jp=k((v7,uA)=>{"use strict";var N8=require("http2"),{Writable:M8}=require("stream"),{Agent:rA,globalAgent:j8}=Op(),q8=Pp(),H8=Lp(),U8=Jx(),$8=Qx(),{ERR_INVALID_ARG_TYPE:Bp,ERR_INVALID_PROTOCOL:G8,ERR_HTTP_HEADERS_SENT:iA,ERR_INVALID_HTTP_TOKEN:z8,ERR_HTTP_INVALID_HEADER_VALUE:W8,ERR_INVALID_CHAR:V8}=tA(),{HTTP2_HEADER_STATUS:nA,HTTP2_HEADER_METHOD:sA,HTTP2_HEADER_PATH:oA,HTTP2_METHOD_CONNECT:Y8}=N8.constants,Je=Symbol("headers"),Ip=Symbol("origin"),Np=Symbol("session"),aA=Symbol("options"),$u=Symbol("flushedHeaders"),Vs=Symbol("jobs"),K8=/^[\^`\-\w!#$%&*+.|~]+$/,Z8=/[^\t\u0020-\u007E\u0080-\u00FF]/,Mp=class extends M8{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=H8(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[Np]=r.h2session;else if(r.agent===!1)this.agent=new rA({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new rA({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=j8;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new Bp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new G8(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[Je]=Object.create(null),this[Vs]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[Je])&&(this[Je].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[aA]=r,s===443?(this[Ip]=`https://${o}`,":authority"in this[Je]||(this[Je][":authority"]=o)):(this[Ip]=`https://${o}:${s}`,":authority"in this[Je]||(this[Je][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[$u]=!1}get method(){return this[Je][sA]}set method(e){e&&(this[Je][sA]=e.toUpperCase())}get path(){return this[Je][oA]}set path(e){e&&(this[Je][oA]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[Vs].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Vs].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[$u]||this.destroyed)return;this[$u]=!0;let e=this.method===Y8,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||U8(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new q8(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[nA],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[nA]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Vs])o();this.emit("socket",this.socket)};if(this[Np])try{r(this[Np].request(this[Je]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[Ip],this[aA],this[Je]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new Bp("name","string",e);return this[Je][e.toLowerCase()]}get headersSent(){return this[$u]}removeHeader(e){if(typeof e!="string")throw new Bp("name","string",e);if(this.headersSent)throw new iA("remove");delete this[Je][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new iA("set");if(typeof e!="string"||!K8.test(e)&&!$8(e))throw new z8("Header name",e);if(typeof r=="undefined")throw new W8(r,e);if(Z8.test(r))throw new V8("header content",e);this[Je][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[Vs].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};uA.exports=Mp});var lA=k((S7,cA)=>{"use strict";var J8=require("tls");cA.exports=(t={},e=J8.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var fA=k((D7,hA)=>{"use strict";var X8=require("net");hA.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),X8.isIP(e)?"":e}});var mA=k((x7,Hp)=>{"use strict";var dA=require("http"),qp=require("https"),Q8=lA(),e5=Tp(),t5=jp(),r5=fA(),i5=Lp(),Gu=new e5({maxSize:100}),Ys=new Map,pA=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},n5=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Gu.has(e)){if(Ys.has(e))return(await Ys.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=Q8(t);Ys.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Gu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=qp,u=qp.Agent.prototype.createConnection;i?i.createConnection===u?pA(i,s,t):s.destroy():a.createConnection===u?pA(a,s,t):s.destroy()}return Ys.delete(e),o}catch(s){throw Ys.delete(e),s}}return Gu.get(e)};Hp.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=i5(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||r5(e),e.port=e.port||(i?443:80),e._defaultAgent=i?qp.globalAgent:dA.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await n5(e)==="h2"?(n&&(e.agent=n.http2),new t5(e,r)):dA.request(e,r)};Hp.exports.protocolCache=Gu});var gA=k((A7,yA)=>{"use strict";var s5=require("http2"),o5=Op(),Up=jp(),a5=Pp(),u5=mA(),c5=(t,e,r)=>new Up(t,e,r),l5=(t,e,r)=>{let i=new Up(t,e,r);return i.end(),i};yA.exports={...s5,ClientRequest:Up,IncomingMessage:a5,...o5,request:c5,get:l5,auto:u5}});var Gp=k($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var _A=vr();$p.default=t=>_A.default.nodeStream(t)&&_A.default.function_(t.getBoundary)});var vA=k(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var EA=require("fs"),wA=require("util"),bA=vr(),h5=Gp(),f5=wA.promisify(EA.stat);zp.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(bA.default.string(t))return Buffer.byteLength(t);if(bA.default.buffer(t))return t.length;if(h5.default(t))return wA.promisify(t.getLength.bind(t))();if(t instanceof EA.ReadStream){let{size:r}=await f5(t.path);return r===0?void 0:r}}});var Vp=k(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});function d5(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Wp.default=d5});var SA=k(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var xA=k(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.TimeoutError=void 0;var p5=require("net"),m5=SA(),DA=Symbol("reentry"),y5=()=>{},zu=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Ks.TimeoutError=zu;Ks.default=(t,e,r)=>{if(DA in t)return y5;t[DA]=!0;let i=[],{once:n,unhandleAll:s}=m5.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new zu(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:p5.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var CA=k(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var AA=vr();Kp.default=t=>{t=t;let e={protocol:t.protocol,hostname:AA.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return AA.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var RA=k(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var g5=require("url"),_5=["protocol","host","hostname","port","pathname","search"];Zp.default=(t,e)=>{var r,i;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new g5.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of _5)e[s]&&(n[s]=e[s].toString());return n}});var TA=k(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Jp=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Xp.default=Jp});var em=k(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var b5=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Qp.default=b5});var OA=k(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.dnsLookupIpVersionToFamily=Oi.isDnsLookupIpVersion=void 0;var kA={auto:0,ipv4:4,ipv6:6};Oi.isDnsLookupIpVersion=t=>t in kA;Oi.dnsLookupIpVersionToFamily=t=>{if(Oi.isDnsLookupIpVersion(t))return kA[t];throw new Error("Invalid DNS lookup IP version")}});var tm=k(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.isResponseOk=void 0;Wu.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var PA=k(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var FA=new Set;rm.default=t=>{FA.has(t)||(FA.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var LA=k(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var De=vr(),E5=(t,e)=>{if(De.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");De.assert.any([De.default.string,De.default.undefined],t.encoding),De.assert.any([De.default.boolean,De.default.undefined],t.resolveBodyOnly),De.assert.any([De.default.boolean,De.default.undefined],t.methodRewriting),De.assert.any([De.default.boolean,De.default.undefined],t.isStream),De.assert.any([De.default.string,De.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},De.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):De.default.number(r)&&(t.retry.limit=r),De.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(De.default.number))),De.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!De.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!De.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!De.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!De.default.function_(i.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};im.default=E5});var BA=k(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.retryAfterStatusCodes=void 0;Zs.retryAfterStatusCodes=new Set([413,429,503]);var w5=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Zs.default=w5});var Qs=k(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.UnsupportedProtocolError=be.ReadError=be.TimeoutError=be.UploadError=be.CacheError=be.HTTPError=be.MaxRedirectsError=be.RequestError=be.setNonEnumerableProperties=be.knownHookEvents=be.withoutBody=be.kIsNormalizedAlready=void 0;var IA=require("util"),NA=require("stream"),v5=require("fs"),Xr=require("url"),MA=require("http"),nm=require("http"),S5=require("https"),D5=JD(),x5=nx(),jA=Mx(),A5=Ux(),C5=gA(),R5=Hu(),K=vr(),T5=vA(),qA=Gp(),k5=Vp(),HA=xA(),O5=CA(),UA=RA(),F5=TA(),P5=em(),$A=OA(),L5=tm(),Qr=PA(),B5=LA(),I5=BA(),sm,qe=Symbol("request"),Ku=Symbol("response"),Un=Symbol("responseSize"),$n=Symbol("downloadedSize"),Gn=Symbol("bodySize"),zn=Symbol("uploadedSize"),Vu=Symbol("serverResponsesPiped"),GA=Symbol("unproxyEvents"),zA=Symbol("isFromCache"),om=Symbol("cancelTimeouts"),WA=Symbol("startedReading"),Wn=Symbol("stopReading"),Yu=Symbol("triggerRead"),ei=Symbol("body"),Js=Symbol("jobs"),VA=Symbol("originalResponse"),YA=Symbol("retryTimeout");be.kIsNormalizedAlready=Symbol("isNormalizedAlready");var N5=K.default.string(process.versions.brotli);be.withoutBody=new Set(["GET","HEAD"]);be.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function M5(t){for(let e in t){let r=t[e];if(!K.default.string(r)&&!K.default.number(r)&&!K.default.boolean(r)&&!K.default.null_(r)&&!K.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function j5(t){return K.default.object(t)&&!("statusCode"in t)}var am=new F5.default,q5=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),H5=new Set([300,301,302,303,304,307,308]),U5=["context","body","json","form"];be.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of U5)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var Te=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof rc?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Ku]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,K.default.string(r.stack)&&K.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
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
- `)}`}}};be.RequestError=Te;var Zu=class extends Te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};be.MaxRedirectsError=Zu;var Ju=class extends Te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};be.HTTPError=Ju;var Xu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};be.CacheError=Xu;var Qu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};be.UploadError=Qu;var ec=class extends Te{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};be.TimeoutError=ec;var Xs=class extends Te{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}};be.ReadError=Xs;var tc=class extends Te{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};be.UnsupportedProtocolError=tc;var $5=["socket","connect","continue","information","upgrade","timeout"],rc=class extends NA.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[$n]=0,this[zn]=0,this.requestInitialized=!1,this[Vu]=new Set,this.redirects=[],this[Wn]=!1,this[Yu]=!1,this[Js]=[],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 nm.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),be.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 v5.ReadStream&&await q5(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[qe])===null||c===void 0||c.destroy();return}for(let h of this[Js])h();this[Js].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Te){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 Xr.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([$A.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=R5({...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 Xr.URLSearchParams)d=new Xr.URLSearchParams(r.searchParams);else{M5(r.searchParams),d=new Xr.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=UA.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=UA.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 Xr.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Xr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new tc(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=IA.promisify(d.bind(r.cookieJar)),m=IA.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(am.has(h)||am.set(h,new jA((d,m)=>{let y=d[qe](d,m);return Y.default.promise(y)&&(y.once=(p,w)=>{if(p==="error")y.catch(w);else if(p==="abort")(async()=>{try{(await y).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)sm||(sm=new x5.default),r.dnsCache=sm;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 be.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 be.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Qr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Qr.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Qr.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Qr.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Qr.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Qr.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Qr.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Qr.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,be.setNonEnumerableProperties([i,c],r),B5.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=be.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 NA.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!qA.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?(qA.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[ei]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[ei]=new Xr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[ei]=e.stringifyJson(e.json));let c=await T5.default(this[ei],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[Gn]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[VA]=e,r.decompress&&(e=A5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:MA.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[zA]=s.isFromCache,this[Un]=Number(e.headers["content-length"])||void 0,this[Ku]=e,e.once("end",()=>{this[Un]=this[$n],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Xs(a,this))}),e.once("aborted",()=>{this._beforeError(new Xs({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&&H5.has(n)){if(e.resume(),this[qe]&&(this[om](),delete this[qe],this[GA]()),(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[ei]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Zu(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Xr.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new Te("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&&!L5.isResponseOk(s)){this._beforeError(new Ju(s));return}e.on("readable",()=>{this[Yu]&&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[Vu])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;D5.default(e),this[om]=HA.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 HA.TimeoutError?new ec(u,this.timings,this):new Te(u.message,u,this),this._beforeError(u)}),this[GA]=k5.default(e,this,$5),this[qe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[ei],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Qu(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,O5.default(e)),delete r.url;let s,o=am.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 w in a)if(Y.default.undefined(a[w]))delete a[w];else if(Y.default.null_(a[w]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${w}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=N5?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let w=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(w)&&(o.headers.cookie=w)}for(let w of o.hooks.beforeRequest){let C=await w(o);if(!Y.default.undefined(C)){o.request=()=>C;break}}o.body&&this[ei]!==o.body&&(this[ei]=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 w=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(w!=null&&w.groups){let{socketPath:C,path:F}=w.groups;Object.assign(o,{socketPath:C,path:F,host:""})}}let f=h.protocol==="https:",d;o.http2?d=C5.auto:d=f?S5.request:MA.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[qe]=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=$A.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 w=await y(h,p);Y.default.undefined(w)&&(w=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),j5(w)?this._onRequest(w):this.writable?(this.once("finish",()=>{this._onResponse(w)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(w)}catch(w){throw w instanceof jA.CacheError?new Xu(w,this):new Te(w.message,w,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Te(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Wn])return;let{options:r}=this,i=this.retryCount+1;this[Wn]=!0,e instanceof Te||(e=new Te(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await P5.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:I5.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new Te(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 Te(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[YA]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Yu]=!0;let e=this[Ku];if(e&&!this[Wn]){e.readableLength&&(this[Yu]=!1);let r;for(;(r=e.read())!==null;){this[$n]+=r.length,this[WA]=!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[Js].push(n)}_writeRequest(e,r,i){this[qe].destroyed||(this._progressCallbacks.push(()=>{this[zn]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[qe].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(!(qe in this)){e();return}if(this[qe].destroyed){e();return}this[qe].end(i=>{i||(this[Gn]=this[zn],this.emit("uploadProgress",this.uploadProgress),this[qe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Js].push(r)}_destroy(e,r){var i;this[Wn]=!0,clearTimeout(this[YA]),qe in this&&(this[om](),!((i=this[Ku])===null||i===void 0)&&i.complete||this[qe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof Te)&&(e=new Te(e.message,e,this)),r(e)}get _isAboutToError(){return this[Wn]}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[qe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[VA])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[qe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Un]?e=this[$n]/this[Un]:this[Un]===this[$n]?e=1:e=0,{percent:e,transferred:this[$n],total:this[Un]}}get uploadProgress(){let e;return this[Gn]?e=this[zn]/this[Gn]:this[Gn]===this[zn]?e=1:e=0,{percent:e,transferred:this[zn],total:this[Gn]}}get timings(){var e;return(e=this[qe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[zA]}pipe(e,r){if(this[WA])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof nm.ServerResponse&&this[Vu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof nm.ServerResponse&&this[Vu].delete(e),super.unpipe(e),this}};be.default=rc});var eo=k(Lt=>{"use strict";var G5=Lt&&Lt.__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]}),z5=Lt&&Lt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&G5(e,t,r)};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.CancelError=Lt.ParseError=void 0;var KA=Qs(),um=class extends KA.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}};Lt.ParseError=um;var cm=class extends KA.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};Lt.CancelError=cm;z5(Qs(),Lt)});var JA=k(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var ZA=eo(),W5=(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 ZA.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new ZA.ParseError(s,t)}};lm.default=W5});var hm=k(ti=>{"use strict";var V5=ti&&ti.__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]}),Y5=ti&&ti.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V5(e,t,r)};Object.defineProperty(ti,"__esModule",{value:!0});var K5=require("events"),Z5=vr(),J5=KD(),ic=eo(),XA=JA(),QA=Qs(),X5=Vp(),Q5=em(),e1=tm(),ej=["request","response","redirect","uploadProgress","downloadProgress"];function t1(t){let e,r,i=new K5.EventEmitter,n=new J5((o,a,u)=>{let c=l=>{let h=new QA.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new ic.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Q5.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let w=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(w),{options:F}=h;if(C&&!F.decompress)m.body=p;else try{m.body=XA.default(m,F.responseType,F.parseJson,F.encoding)}catch(P){if(m.body=p.toString(),e1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,T]of F.hooks.afterResponse.entries())m=await T(m,async M=>{let S=QA.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},F);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let H of S.hooks.beforeRetry)await H(S);let D=t1(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new ic.RequestError(P.message,P,h));return}if(r=m,!e1.isResponseOk(m)){h._beforeError(new ic.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 ic.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,w;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Z5.default.nodeStream((w=y.request)===null||w===void 0?void 0:w.options.body)){f(y);return}c(m)}),X5.default(h,i,ej)};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 XA.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}ti.default=t1;Y5(eo(),ti)});var r1=k(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var tj=eo();function rj(t,...e){let r=(async()=>{if(t instanceof tj.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}fm.default=rj});var s1=k(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var i1=vr();function n1(t){for(let e of Object.values(t))(i1.default.plainObject(e)||i1.default.array(e))&&n1(e);return Object.freeze(t)}dm.default=n1});var a1=k(o1=>{"use strict";Object.defineProperty(o1,"__esModule",{value:!0})});var pm=k(Ct=>{"use strict";var ij=Ct&&Ct.__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]}),nj=Ct&&Ct.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ij(e,t,r)};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.defaultHandler=void 0;var u1=vr(),At=hm(),sj=r1(),sc=Qs(),oj=s1(),aj={RequestError:At.RequestError,CacheError:At.CacheError,ReadError:At.ReadError,HTTPError:At.HTTPError,MaxRedirectsError:At.MaxRedirectsError,TimeoutError:At.TimeoutError,ParseError:At.ParseError,CancelError:At.CancelError,UnsupportedProtocolError:At.UnsupportedProtocolError,UploadError:At.UploadError},uj=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:nc}=sc.default,c1=(...t)=>{let e;for(let r of t)e=nc(void 0,r,e);return e},cj=t=>t.isStream?new sc.default(void 0,t):At.default(t),lj=t=>"defaults"in t&&"options"in t.defaults,hj=["get","post","put","patch","head","delete"];Ct.defaultHandler=(t,e)=>e(t);var l1=(t,e)=>{if(t)for(let r of t)r(e)},h1=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?cj:c);if(u1.default.plainObject(i)){let l={...i,...n};sc.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{l1(t.options.hooks.init,n),l1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=nc(i,n,s!=null?s:t.options);if(h[sc.kIsNormalizedAlready]=!0,l)throw new At.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return sj.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)lj(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!==Ct.defaultHandler),s.length===0&&s.push(Ct.defaultHandler),h1({options:c1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=nc(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!u1.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 uj(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=nc(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 hj)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,aj),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:oj.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=c1,e};Ct.default=h1;nj(a1(),Ct)});var ym=k((Sr,oc)=>{"use strict";var fj=Sr&&Sr.__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]}),f1=Sr&&Sr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fj(e,t,r)};Object.defineProperty(Sr,"__esModule",{value:!0});var dj=require("url"),d1=pm(),pj={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 dj.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:[d1.defaultHandler],mutableDefaults:!1},mm=d1.default(pj);Sr.default=mm;oc.exports=mm;oc.exports.default=mm;oc.exports.__esModule=!0;f1(pm(),Sr);f1(hm(),Sr)});var E1=k((J7,b1)=>{function Rt(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))}b1.exports=Rt;Rt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Rt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Rt.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};Rt.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)};Rt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Rt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Rt.prototype.start=Rt.prototype.try;Rt.prototype.errors=function(){return this._errors};Rt.prototype.attempts=function(){return this._attempts};Rt.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 w1=k(Fi=>{var yj=E1();Fi.operation=function(t){var e=Fi.timeouts(t);return new yj(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Fi.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};Fi.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};Fi.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=Fi.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 S1=k((Q7,v1)=>{v1.exports=w1()});var x1=k((e$,D1)=>{var gj=S1();function _j(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=gj.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)}D1.exports=_j});var F1=k(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});function Ej(t){return t&&t.__esModule?t:{default:t}}var R1=Object.defineProperty,A1=Object.getOwnPropertySymbols,wj=Object.prototype.hasOwnProperty,vj=Object.prototype.propertyIsEnumerable,C1=(t,e,r)=>e in t?R1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Sj=(t,e)=>{for(var r in e||(e={}))wj.call(e,r)&&C1(t,r,e[r]);if(A1)for(var r of A1(e))vj.call(e,r)&&C1(t,r,e[r]);return t},Dj=(t,e)=>{for(var r in e)R1(t,r,{get:e[r],enumerable:!0})},xj=(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())}),T1={};Dj(T1,{configDir:()=>O1,darwinConfig:()=>Cm,getPathForPlatform:()=>Tm,getPlatform:()=>Am,linuxConfig:()=>lc,winConfig:()=>Rm});var Aj=require("fs/promises"),Cj=require("path"),k1=Ej(Cj);function Am(){return process.platform}function lc(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return k1.default.join(process.env.HOME,".config")}function Cm(){if(process.env.HOME!==void 0)return k1.default.join(process.env.HOME,"/Library/Application Support")}function Rm(){return process.env.APPDATA}function Tm({platform:t}){switch(t){case"linux":return lc();case"darwin":return Cm();case"win32":return Rm();default:return lc()}}function O1(){return xj(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:Am(),i=Tm({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield Aj.stat.call(void 0,i),i}catch{return}}})}Jt.__spreadValues=Sj;Jt.getPlatform=Am;Jt.linuxConfig=lc;Jt.darwinConfig=Cm;Jt.winConfig=Rm;Jt.getPathForPlatform=Tm;Jt.configDir=O1;Jt.config_dir_exports=T1});var P1=k(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var Rj=F1();km.configDir=Rj.configDir});var aR=oe(require("http")),uR=oe(require("https")),s0=oe(require("chalk")),yo=require("commander");var AR=oe(f0());function Pc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ns(t){return ns=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},ns(t)}function Lc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bc(t,e){if(e&&(ns(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lc(t)}function ui(t){return ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ui(t)}function ir(t,e){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ir(t,e)}function Ic(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&&ir(t,e)}function Nc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Mc(){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 Mi(t,e,r){return Mc()?Mi=Reflect.construct.bind():Mi=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&ir(c,o.prototype),c},Mi.apply(null,arguments)}function ss(t){var e=typeof Map=="function"?new Map:void 0;return ss=function(i){if(i===null||!Nc(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 Mi(i,arguments,ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ir(n,i)},ss(t)}var k0=oe(T0());var CR=oe(require("fs-extra")),mH=function(t){Ic(e,t);function e(r){var i;return Pc(this,e),i=Bc(this,ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(ss(Error));var RR=oe(require("fs")),TR=oe(require("path"));var IL=oe(require("fs")),NL=oe(require("path"));function W0(t){return typeof t=="undefined"||t===null}function FR(t){return typeof t=="object"&&t!==null}function PR(t){return Array.isArray(t)?t:W0(t)?[]:[t]}function LR(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 BR(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function IR(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var NR=W0,MR=FR,jR=PR,qR=BR,HR=IR,UR=LR,Pe={isNothing:NR,isObject:MR,toArray:jR,repeat:qR,isNegativeZero:HR,extend:UR};function V0(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
+ `)}`}}};be.RequestError=Te;var Zu=class extends Te{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};be.MaxRedirectsError=Zu;var Ju=class extends Te{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};be.HTTPError=Ju;var Xu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};be.CacheError=Xu;var Qu=class extends Te{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};be.UploadError=Qu;var ec=class extends Te{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};be.TimeoutError=ec;var Xs=class extends Te{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}};be.ReadError=Xs;var tc=class extends Te{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};be.UnsupportedProtocolError=tc;var $5=["socket","connect","continue","information","upgrade","timeout"],rc=class extends NA.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[$n]=0,this[zn]=0,this.requestInitialized=!1,this[Vu]=new Set,this.redirects=[],this[Wn]=!1,this[Yu]=!1,this[Js]=[],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 nm.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),be.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){K.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof v5.ReadStream&&await q5(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[qe])===null||c===void 0||c.destroy();return}for(let h of this[Js])h();this[Js].length=0,this.requestInitialized=!0}catch(l){if(l instanceof Te){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(K.default.object(e)&&!K.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),K.default.urlInstance(r.url)&&(r.url=new Xr.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),K.assert.any([K.default.string,K.default.undefined],r.method),K.assert.any([K.default.object,K.default.undefined],r.headers),K.assert.any([K.default.string,K.default.urlInstance,K.default.undefined],r.prefixUrl),K.assert.any([K.default.object,K.default.undefined],r.cookieJar),K.assert.any([K.default.object,K.default.string,K.default.undefined],r.searchParams),K.assert.any([K.default.object,K.default.string,K.default.undefined],r.cache),K.assert.any([K.default.object,K.default.number,K.default.undefined],r.timeout),K.assert.any([K.default.object,K.default.undefined],r.context),K.assert.any([K.default.object,K.default.undefined],r.hooks),K.assert.any([K.default.boolean,K.default.undefined],r.decompress),K.assert.any([K.default.boolean,K.default.undefined],r.ignoreInvalidCookies),K.assert.any([K.default.boolean,K.default.undefined],r.followRedirect),K.assert.any([K.default.number,K.default.undefined],r.maxRedirects),K.assert.any([K.default.boolean,K.default.undefined],r.throwHttpErrors),K.assert.any([K.default.boolean,K.default.undefined],r.http2),K.assert.any([K.default.boolean,K.default.undefined],r.allowGetBody),K.assert.any([K.default.string,K.default.undefined],r.localAddress),K.assert.any([$A.isDnsLookupIpVersion,K.default.undefined],r.dnsLookupIpVersion),K.assert.any([K.default.object,K.default.undefined],r.https),K.assert.any([K.default.boolean,K.default.undefined],r.rejectUnauthorized),r.https&&(K.assert.any([K.default.boolean,K.default.undefined],r.https.rejectUnauthorized),K.assert.any([K.default.function_,K.default.undefined],r.https.checkServerIdentity),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.certificateAuthority),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.key),K.assert.any([K.default.string,K.default.object,K.default.array,K.default.undefined],r.https.certificate),K.assert.any([K.default.string,K.default.undefined],r.https.passphrase),K.assert.any([K.default.string,K.default.buffer,K.default.array,K.default.undefined],r.https.pfx)),K.assert.any([K.default.object,K.default.undefined],r.cacheOptions),K.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=R5({...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(K.default.string(r.searchParams)||r.searchParams instanceof Xr.URLSearchParams)d=new Xr.URLSearchParams(r.searchParams);else{M5(r.searchParams),d=new Xr.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:"",K.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+="/")),K.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=UA.default(r.prefixUrl+r.url,r)}else(K.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=UA.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 Xr.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Xr.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new tc(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;K.assert.function_(d),K.assert.function_(m),d.length===4&&m.length===0&&(d=IA.promisify(d.bind(r.cookieJar)),m=IA.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(am.has(h)||am.set(h,new jA((d,m)=>{let y=d[qe](d,m);return K.default.promise(y)&&(y.once=(p,w)=>{if(p==="error")y.catch(w);else if(p==="abort")(async()=>{try{(await y).once("abort",w)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)sm||(sm=new x5.default),r.dnsCache=sm;else if(!K.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${K.default(r.dnsCache)}`);K.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 be.knownHookEvents)if(d in r.hooks)if(K.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${K.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of be.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Qr.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Qr.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Qr.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Qr.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Qr.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Qr.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Qr.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Qr.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,be.setNonEnumerableProperties([i,c],r),B5.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=!K.default.undefined(e.form),n=!K.default.undefined(e.json),s=!K.default.undefined(e.body),o=i||n||s,a=be.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 NA.Readable)&&!K.default.string(e.body)&&!K.default.buffer(e.body)&&!qA.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!K.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!K.default.string(r["content-type"]);s?(qA.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[ei]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[ei]=new Xr.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[ei]=e.stringifyJson(e.json));let c=await T5.default(this[ei],e.headers);K.default.undefined(r["content-length"])&&K.default.undefined(r["transfer-encoding"])&&!a&&!K.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Gn]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[VA]=e,r.decompress&&(e=A5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:MA.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[zA]=s.isFromCache,this[Un]=Number(e.headers["content-length"])||void 0,this[Ku]=e,e.once("end",()=>{this[Un]=this[$n],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Xs(a,this))}),e.once("aborted",()=>{this._beforeError(new Xs({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(K.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&&H5.has(n)){if(e.resume(),this[qe]&&(this[om](),delete this[qe],this[GA]()),(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[ei]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Zu(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Xr.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new Te("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&&!L5.isResponseOk(s)){this._beforeError(new Ju(s));return}e.on("readable",()=>{this[Yu]&&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[Vu])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;D5.default(e),this[om]=HA.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 HA.TimeoutError?new ec(u,this.timings,this):new Te(u.message,u,this),this._beforeError(u)}),this[GA]=k5.default(e,this,$5),this[qe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[ei],a=this.redirects.length===0?this:e;K.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new Qu(u,this))})):(this._unlockWrite(),K.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,O5.default(e)),delete r.url;let s,o=am.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 w in a)if(K.default.undefined(a[w]))delete a[w];else if(K.default.null_(a[w]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${w}\` header`);if(o.decompress&&K.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=N5?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let w=await o.cookieJar.getCookieString(o.url.toString());K.default.nonEmptyString(w)&&(o.headers.cookie=w)}for(let w of o.hooks.beforeRequest){let C=await w(o);if(!K.default.undefined(C)){o.request=()=>C;break}}o.body&&this[ei]!==o.body&&(this[ei]=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 w=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(w!=null&&w.groups){let{socketPath:C,path:F}=w.groups;Object.assign(o,{socketPath:C,path:F,host:""})}}let f=h.protocol==="https:",d;o.http2?d=C5.auto:d=f?S5.request:MA.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[qe]=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=$A.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 w=await y(h,p);K.default.undefined(w)&&(w=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),j5(w)?this._onRequest(w):this.writable?(this.once("finish",()=>{this._onResponse(w)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(w)}catch(w){throw w instanceof jA.CacheError?new Xu(w,this):new Te(w.message,w,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Te(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Wn])return;let{options:r}=this,i=this.retryCount+1;this[Wn]=!0,e instanceof Te||(e=new Te(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await P5.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:I5.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new Te(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 Te(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[YA]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Yu]=!0;let e=this[Ku];if(e&&!this[Wn]){e.readableLength&&(this[Yu]=!1);let r;for(;(r=e.read())!==null;){this[$n]+=r.length,this[WA]=!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[Js].push(n)}_writeRequest(e,r,i){this[qe].destroyed||(this._progressCallbacks.push(()=>{this[zn]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[qe].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(!(qe in this)){e();return}if(this[qe].destroyed){e();return}this[qe].end(i=>{i||(this[Gn]=this[zn],this.emit("uploadProgress",this.uploadProgress),this[qe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Js].push(r)}_destroy(e,r){var i;this[Wn]=!0,clearTimeout(this[YA]),qe in this&&(this[om](),!((i=this[Ku])===null||i===void 0)&&i.complete||this[qe].destroy()),e!==null&&!K.default.undefined(e)&&!(e instanceof Te)&&(e=new Te(e.message,e,this)),r(e)}get _isAboutToError(){return this[Wn]}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[qe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[VA])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[qe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Un]?e=this[$n]/this[Un]:this[Un]===this[$n]?e=1:e=0,{percent:e,transferred:this[$n],total:this[Un]}}get uploadProgress(){let e;return this[Gn]?e=this[zn]/this[Gn]:this[Gn]===this[zn]?e=1:e=0,{percent:e,transferred:this[zn],total:this[Gn]}}get timings(){var e;return(e=this[qe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[zA]}pipe(e,r){if(this[WA])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof nm.ServerResponse&&this[Vu].add(e),super.pipe(e,r)}unpipe(e){return e instanceof nm.ServerResponse&&this[Vu].delete(e),super.unpipe(e),this}};be.default=rc});var eo=k(Lt=>{"use strict";var G5=Lt&&Lt.__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]}),z5=Lt&&Lt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&G5(e,t,r)};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.CancelError=Lt.ParseError=void 0;var KA=Qs(),um=class extends KA.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}};Lt.ParseError=um;var cm=class extends KA.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};Lt.CancelError=cm;z5(Qs(),Lt)});var JA=k(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var ZA=eo(),W5=(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 ZA.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new ZA.ParseError(s,t)}};lm.default=W5});var hm=k(ti=>{"use strict";var V5=ti&&ti.__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]}),Y5=ti&&ti.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V5(e,t,r)};Object.defineProperty(ti,"__esModule",{value:!0});var K5=require("events"),Z5=vr(),J5=KD(),ic=eo(),XA=JA(),QA=Qs(),X5=Vp(),Q5=em(),e1=tm(),ej=["request","response","redirect","uploadProgress","downloadProgress"];function t1(t){let e,r,i=new K5.EventEmitter,n=new J5((o,a,u)=>{let c=l=>{let h=new QA.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new ic.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Q5.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let w=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(w),{options:F}=h;if(C&&!F.decompress)m.body=p;else try{m.body=XA.default(m,F.responseType,F.parseJson,F.encoding)}catch(P){if(m.body=p.toString(),e1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,T]of F.hooks.afterResponse.entries())m=await T(m,async M=>{let S=QA.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},F);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let H of S.hooks.beforeRetry)await H(S);let x=t1(S);return u(()=>{x.catch(()=>{}),x.cancel()}),x})}catch(P){h._beforeError(new ic.RequestError(P.message,P,h));return}if(r=m,!e1.isResponseOk(m)){h._beforeError(new ic.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 ic.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,w;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Z5.default.nodeStream((w=y.request)===null||w===void 0?void 0:w.options.body)){f(y);return}c(m)}),X5.default(h,i,ej)};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 XA.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}ti.default=t1;Y5(eo(),ti)});var r1=k(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var tj=eo();function rj(t,...e){let r=(async()=>{if(t instanceof tj.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}fm.default=rj});var s1=k(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var i1=vr();function n1(t){for(let e of Object.values(t))(i1.default.plainObject(e)||i1.default.array(e))&&n1(e);return Object.freeze(t)}dm.default=n1});var a1=k(o1=>{"use strict";Object.defineProperty(o1,"__esModule",{value:!0})});var pm=k(Ct=>{"use strict";var ij=Ct&&Ct.__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]}),nj=Ct&&Ct.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ij(e,t,r)};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.defaultHandler=void 0;var u1=vr(),At=hm(),sj=r1(),sc=Qs(),oj=s1(),aj={RequestError:At.RequestError,CacheError:At.CacheError,ReadError:At.ReadError,HTTPError:At.HTTPError,MaxRedirectsError:At.MaxRedirectsError,TimeoutError:At.TimeoutError,ParseError:At.ParseError,CancelError:At.CancelError,UnsupportedProtocolError:At.UnsupportedProtocolError,UploadError:At.UploadError},uj=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:nc}=sc.default,c1=(...t)=>{let e;for(let r of t)e=nc(void 0,r,e);return e},cj=t=>t.isStream?new sc.default(void 0,t):At.default(t),lj=t=>"defaults"in t&&"options"in t.defaults,hj=["get","post","put","patch","head","delete"];Ct.defaultHandler=(t,e)=>e(t);var l1=(t,e)=>{if(t)for(let r of t)r(e)},h1=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?cj:c);if(u1.default.plainObject(i)){let l={...i,...n};sc.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{l1(t.options.hooks.init,n),l1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=nc(i,n,s!=null?s:t.options);if(h[sc.kIsNormalizedAlready]=!0,l)throw new At.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return sj.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)lj(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!==Ct.defaultHandler),s.length===0&&s.push(Ct.defaultHandler),h1({options:c1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=nc(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!u1.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 uj(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=nc(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 hj)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,aj),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:oj.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=c1,e};Ct.default=h1;nj(a1(),Ct)});var ym=k((Sr,oc)=>{"use strict";var fj=Sr&&Sr.__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]}),f1=Sr&&Sr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fj(e,t,r)};Object.defineProperty(Sr,"__esModule",{value:!0});var dj=require("url"),d1=pm(),pj={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 dj.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:[d1.defaultHandler],mutableDefaults:!1},mm=d1.default(pj);Sr.default=mm;oc.exports=mm;oc.exports.default=mm;oc.exports.__esModule=!0;f1(pm(),Sr);f1(hm(),Sr)});var E1=k((J7,b1)=>{function Rt(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))}b1.exports=Rt;Rt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Rt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Rt.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};Rt.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)};Rt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Rt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Rt.prototype.start=Rt.prototype.try;Rt.prototype.errors=function(){return this._errors};Rt.prototype.attempts=function(){return this._attempts};Rt.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 w1=k(Fi=>{var yj=E1();Fi.operation=function(t){var e=Fi.timeouts(t);return new yj(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Fi.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};Fi.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};Fi.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=Fi.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 S1=k((Q7,v1)=>{v1.exports=w1()});var x1=k((e$,D1)=>{var gj=S1();function _j(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=gj.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)}D1.exports=_j});var F1=k(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});function Ej(t){return t&&t.__esModule?t:{default:t}}var R1=Object.defineProperty,A1=Object.getOwnPropertySymbols,wj=Object.prototype.hasOwnProperty,vj=Object.prototype.propertyIsEnumerable,C1=(t,e,r)=>e in t?R1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Sj=(t,e)=>{for(var r in e||(e={}))wj.call(e,r)&&C1(t,r,e[r]);if(A1)for(var r of A1(e))vj.call(e,r)&&C1(t,r,e[r]);return t},Dj=(t,e)=>{for(var r in e)R1(t,r,{get:e[r],enumerable:!0})},xj=(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())}),T1={};Dj(T1,{configDir:()=>O1,darwinConfig:()=>Cm,getPathForPlatform:()=>Tm,getPlatform:()=>Am,linuxConfig:()=>lc,winConfig:()=>Rm});var Aj=require("fs/promises"),Cj=require("path"),k1=Ej(Cj);function Am(){return process.platform}function lc(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return k1.default.join(process.env.HOME,".config")}function Cm(){if(process.env.HOME!==void 0)return k1.default.join(process.env.HOME,"/Library/Application Support")}function Rm(){return process.env.APPDATA}function Tm({platform:t}){switch(t){case"linux":return lc();case"darwin":return Cm();case"win32":return Rm();default:return lc()}}function O1(){return xj(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:Am(),i=Tm({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield Aj.stat.call(void 0,i),i}catch{return}}})}Jt.__spreadValues=Sj;Jt.getPlatform=Am;Jt.linuxConfig=lc;Jt.darwinConfig=Cm;Jt.winConfig=Rm;Jt.getPathForPlatform=Tm;Jt.configDir=O1;Jt.config_dir_exports=T1});var P1=k(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var Rj=F1();km.configDir=Rj.configDir});var aR=oe(require("http")),uR=oe(require("https")),s0=oe(require("chalk")),yo=require("commander");var AR=oe(f0());function Pc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ns(t){return ns=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},ns(t)}function Lc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bc(t,e){if(e&&(ns(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lc(t)}function ui(t){return ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ui(t)}function ir(t,e){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ir(t,e)}function Ic(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&&ir(t,e)}function Nc(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Mc(){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 Mi(t,e,r){return Mc()?Mi=Reflect.construct.bind():Mi=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&ir(c,o.prototype),c},Mi.apply(null,arguments)}function ss(t){var e=typeof Map=="function"?new Map:void 0;return ss=function(i){if(i===null||!Nc(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 Mi(i,arguments,ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ir(n,i)},ss(t)}var k0=oe(T0());var CR=oe(require("fs-extra")),mH=function(t){Ic(e,t);function e(r){var i;return Pc(this,e),i=Bc(this,ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(ss(Error));var RR=oe(require("fs")),TR=oe(require("path"));var IL=oe(require("fs")),NL=oe(require("path"));function W0(t){return typeof t=="undefined"||t===null}function FR(t){return typeof t=="object"&&t!==null}function PR(t){return Array.isArray(t)?t:W0(t)?[]:[t]}function LR(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 BR(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function IR(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var NR=W0,MR=FR,jR=PR,qR=BR,HR=IR,UR=LR,Pe={isNothing:NR,isObject:MR,toArray:jR,repeat:qR,isNegativeZero:HR,extend:UR};function V0(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 as(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=V0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}as.prototype=Object.create(Error.prototype);as.prototype.constructor=as;as.prototype.toString=function(e){return this.name+": "+V0(this,e)};var Xe=as;function zc(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 Wc(t,e){return Pe.repeat(" ",e-t.length)+t}function $R(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=zc(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),h),a=Pe.repeat(" ",e.indent)+Wc((t.line-u+1).toString(),l)+" | "+c.str+`
22
22
  `+a;for(c=zc(t.buffer,i[o],n[o],t.position,h),a+=Pe.repeat(" ",e.indent)+Wc((t.line+1).toString(),l)+" | "+c.str+`
@@ -51,13 +51,13 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}
51
51
  `,`1. Your spelling of example ${Dr.default.red(`"${e}"`)} might be incorrect.
52
52
  `,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Vn.default.resolve(t);await Sm(Vn.default.dirname(o))||(bt("The application path is not writable, please check folder permissions and try again."),bt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Vn.default.basename(o);try{await(0,Kn.mkdir)(o,{recursive:!0})}catch(p){bt("Unable to create project directory"),bt(p),process.exit(1)}let{isEmpty:u,conflicts:c}=Ds(o);u||(bt(`${Dr.default.dim(o)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o);let h=rf("Downloading files...");try{!r&&n?(_t(`
53
53
  Downloading files from repo ${Dr.default.cyan(e)}. This might take a moment.`),_t(),h.start(),await(0,Dm.default)(()=>wm(o,n),{retries:3})):(_t(`
54
- Downloading files${r?"":` for example ${Dr.default.cyan(e)}`}. This might take a moment.`),_t(),h.start(),await(0,Dm.default)(()=>vm(o,e),{retries:3}))}catch(p){throw new Yn(bj(p)?p.message:String(p))}finally{h.stop()}let f=Vn.default.join(o,"package.json"),d=(0,Kn.existsSync)(f),m=[];if(d){let p;try{p=(0,Kn.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return Vn.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var hc=require("fs");var q1=oe(require("chalk"));var Om=oe(require("os")),L1=oe(require("crypto")),B1=oe(require("path")),I1=oe(P1());function N1(t){let e=process.version,r=Om.default.type(),i=Om.default.arch();return`${t.name} ${t.version} ${e} ${r} ${i}`}async function M1(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,I1.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return B1.default.join(t,"turborepo","telemetry.json")}function j1({input:t,salt:e}){return L1.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Tj="TURBO_TELEMETRY_DEBUG",kj="TURBO_TELEMETRY_DISABLED",Oj="TURBO_TELEMETRY_MESSAGE_DISABLED",Fj="DO_NOT_TRACK",xr=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static async fromDefaultConfig(){let e=await M1(),r=(0,hc.readFileSync)(e,"utf-8"),i=JSON.parse(r);return new xr({configPath:e,config:i})}write(){let e=JSON.stringify(this.config,null,2);(0,hc.writeFileSync)(this.configPath,e)}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[Fj]||"0",r=process.env[kj]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[Oj]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(se.log(),se.bold("Attention:"),se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),se.underline(q1.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.write()}disable(){this.config.telemetry_enabled=!1,this.write()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date,this.write()),!0}oneWayHash(e){return j1({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[Tj]||"0";return e==="1"||e.toLowerCase()==="true"}};var G1=oe(ym());var H1=oe(require("crypto")),dc=new Uint8Array(256),fc=dc.length;function Fm(){return fc>dc.length-16&&(H1.default.randomFillSync(dc),fc=0),dc.slice(fc,fc+=16)}var He=[];for(let t=0;t<256;++t)He.push((t+256).toString(16).slice(1));function U1(t,e=0){return(He[t[e+0]]+He[t[e+1]]+He[t[e+2]]+He[t[e+3]]+"-"+He[t[e+4]]+He[t[e+5]]+"-"+He[t[e+6]]+He[t[e+7]]+"-"+He[t[e+8]]+He[t[e+9]]+"-"+He[t[e+10]]+He[t[e+11]]+He[t[e+12]]+He[t[e+13]]+He[t[e+14]]+He[t[e+15]]).toLowerCase()}var $1=oe(require("crypto")),Pm={randomUUID:$1.default.randomUUID};function Pj(t,e,r){if(Pm.randomUUID&&!e&&!t)return Pm.randomUUID();t=t||{};let i=t.random||(t.rng||Fm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return U1(i)}var pc=Pj;var Lj=20,Bj="/api/turborepo/v1/events",Pi=class{constructor({api:e,packageInfo:r,config:i,opts:n}){this.batchSize=Lj;this.timeout=250;this.sessionId=pc();this.eventBatches=[];this.events=[];let s=new URL(Bj,e);this.api=s.toString(),this.packageInfo=r,this.config=i,n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.batchSize&&(this.batchSize=n.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(G1.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":N1(this.packageInfo)}}))}track({key:e,value:r,parentId:i,isSensitive:n}){let s={id:pc(),key:e,value:n?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:i};return xr.isDebug()&&(se.log(),se.bold("[telemetry event]"),se.dimmed(JSON.stringify(s,null,2)),se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}};var ro=class extends Pi{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:e.toString()})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var mc=class extends Pi{trackExecutionEnv(){return this.track({key:"execution_env",value:process.env.VERCEL==="1"?"vercel":"local"})}};var Ij={"create-turbo":ro,"turbo-ignore":mc},Nj="https://telemetry.vercel.com";async function Lm({packageInfo:t,opts:e}){let r=Ij[t.name],i=await xr.fromDefaultConfig();return i.showAlert(),{telemetry:new r({api:Nj,packageInfo:t,config:i,opts:e})}}var io=oe(require("chalk"));var z1=require("commander"),W1="status",Mj=["enable","disable",W1];function jj(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();se.log(`Status: ${e?io.default.bold(io.default.green("Enabled")):io.default.bold(io.default.red("Disabled"))}`),se.log(),e?se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),se.log("Learn more: https://turbo.build/repo/docs/telemetry")}function qj(t,e){if(!e.telemetry){se.error("Telemetry client not found");return}t==="enable"?(e.telemetry.config.enable(),se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),se.bold("Success!")),se.log(),jj(e)}function Bm(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new z1.Argument("[action]","Action to perform").choices(Mj).default(W1)).action(qj)}var cR=require("proxy-agent");var Li={name:"create-turbo",version:"1.13.1",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",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:"^10.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 V1=oe(require("chalk")),Y1=oe(require("update-check"));var Uj=(0,Y1.default)(Li).catch(()=>null);async function Im(){try{let t=await Uj;t!=null&&t.latest&&(se.log(),se.log(V1.default.yellow.bold("A new version of `create-turbo` is available!")),se.log()),process.exit()}catch{}}var po=oe(require("path")),Ue=oe(require("chalk"));var ni=oe(require("chalk"),1),lC=oe(ya(),1),hC=oe(ba(),1),yC=oe(require("os"),1),gC=oe(fn(),1),lG=require("fs-extra");var mG=oe(ta(),1),gG=require("fs-extra"),bG=require("fs-extra"),wG=require("chalk"),bC=require("stream"),EC=require("util"),xG=require("fs-extra"),TG=require("chalk"),OG=require("fs-extra"),Bi=oe(require("path"),1),et=require("fs-extra"),wC=oe(fn(),1),vC=oe(require("path"),1),SC=require("fs-extra"),DC=oe(require("chalk"),1),Cr=oe(require("path"),1),xC=oe(fn(),1),mt=require("fs-extra"),AC=oe(ta(),1);var so=oe(require("path"),1),Xt=require("fs-extra"),es=oe(require("path"),1),Qt=require("fs-extra"),oo=oe(require("path"),1),er=require("fs-extra"),pt=oe(require("chalk"),1),FC=oe(ba(),1),PC=oe(fn(),1),LC=oe(ya(),1),BC=require("semver"),IC=oe(require("chalk"),1),$j=Object.create,jm=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,zj=Object.getOwnPropertyNames,Wj=Object.getPrototypeOf,Vj=Object.prototype.hasOwnProperty,fe=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Yj=(t,e)=>()=>(t&&(e=t(t=0)),e),le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kj=(t,e)=>{for(var r in e)jm(t,r,{get:e[r],enumerable:!0})},Zj=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zj(e))!Vj.call(t,n)&&n!==r&&jm(t,n,{get:()=>e[n],enumerable:!(i=Gj(e,n))||i.enumerable});return t},bc=(t,e,r)=>(r=t!=null?$j(Wj(t)):{},Zj(e||!t||!t.__esModule?jm(r,"default",{value:t,enumerable:!0}):r,t)),Q=Yj(()=>{}),Jj=le((t,e)=>{Q();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),Xj=le((t,e)=>{Q();var r=Jj().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(j,g,_){j[g]=_.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(j,g,_){return Object.defineProperty(j,g,{value:_,enumerable:!0,configurable:!0,writable:!0}),j[g]}try{d({},"")}catch{d=function(j,g,_){return j[g]=_}}function m(j,g,_,E){var R=g&&g.prototype instanceof T?g:T,x=Object.create(R.prototype),U=new G(E||[]);return u(x,"_invoke",{value:ne(j,_,U)}),x}function y(j,g,_){try{return{type:"normal",arg:j.call(g,_)}}catch(E){return{type:"throw",arg:E}}}s.wrap=m;var p="suspendedStart",w="suspendedYield",C="executing",F="completed",P={};function T(){}function M(){}function S(){}var D={};d(D,l,function(){return this});var H=Object.getPrototypeOf,z=H&&H(H(Z([])));z&&z!==o&&a.call(z,l)&&(D=z);var N=S.prototype=T.prototype=Object.create(D);function K(j){["next","throw","return"].forEach(function(g){d(j,g,function(_){return this._invoke(g,_)})})}function te(j,g){function _(R,x,U,$){var re=y(j[R],j,x);if(re.type!=="throw"){var V=re.arg,ue=V.value;return ue&&r(ue)=="object"&&a.call(ue,"__await")?g.resolve(ue.__await).then(function(J){_("next",J,U,$)},function(J){_("throw",J,U,$)}):g.resolve(ue).then(function(J){V.value=J,U(V)},function(J){return _("throw",J,U,$)})}$(re.arg)}var E;u(this,"_invoke",{value:function(R,x){function U(){return new g(function($,re){_(R,x,$,re)})}return E=E?E.then(U,U):U()}})}function ne(j,g,_){var E=p;return function(R,x){if(E===C)throw new Error("Generator is already running");if(E===F){if(R==="throw")throw x;return{value:n,done:!0}}for(_.method=R,_.arg=x;;){var U=_.delegate;if(U){var $=q(U,_);if($){if($===P)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(E===p)throw E=F,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);E=C;var re=y(j,g,_);if(re.type==="normal"){if(E=_.done?F:w,re.arg===P)continue;return{value:re.arg,done:_.done}}re.type==="throw"&&(E=F,_.method="throw",_.arg=re.arg)}}}function q(j,g){var _=g.method,E=j.iterator[_];if(E===n)return g.delegate=null,_==="throw"&&j.iterator.return&&(g.method="return",g.arg=n,q(j,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),P;var R=y(E,j.iterator,g.arg);if(R.type==="throw")return g.method="throw",g.arg=R.arg,g.delegate=null,P;var x=R.arg;return x?x.done?(g[j.resultName]=x.value,g.next=j.nextLoc,g.method!=="return"&&(g.method="next",g.arg=n),g.delegate=null,P):x:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,P)}function L(j){var g={tryLoc:j[0]};1 in j&&(g.catchLoc=j[1]),2 in j&&(g.finallyLoc=j[2],g.afterLoc=j[3]),this.tryEntries.push(g)}function B(j){var g=j.completion||{};g.type="normal",delete g.arg,j.completion=g}function G(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(L,this),this.reset(!0)}function Z(j){if(j||j===""){var g=j[l];if(g)return g.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var _=-1,E=function R(){for(;++_<j.length;)if(a.call(j,_))return R.value=j[_],R.done=!1,R;return R.value=n,R.done=!0,R};return E.next=E}}throw new TypeError(r(j)+" is not iterable")}return M.prototype=S,u(N,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:M,configurable:!0}),M.displayName=d(S,f,"GeneratorFunction"),s.isGeneratorFunction=function(j){var g=typeof j=="function"&&j.constructor;return!!g&&(g===M||(g.displayName||g.name)==="GeneratorFunction")},s.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,S):(j.__proto__=S,d(j,f,"GeneratorFunction")),j.prototype=Object.create(N),j},s.awrap=function(j){return{__await:j}},K(te.prototype),d(te.prototype,h,function(){return this}),s.AsyncIterator=te,s.async=function(j,g,_,E,R){R===void 0&&(R=Promise);var x=new te(m(j,g,_,E),R);return s.isGeneratorFunction(g)?x:x.next().then(function(U){return U.done?U.value:x.next()})},K(N),d(N,f,"Generator"),d(N,l,function(){return this}),d(N,"toString",function(){return"[object Generator]"}),s.keys=function(j){var g=Object(j),_=[];for(var E in g)_.push(E);return _.reverse(),function R(){for(;_.length;){var x=_.pop();if(x in g)return R.value=x,R.done=!1,R}return R.done=!0,R}},s.values=Z,G.prototype={constructor:G,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!j)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=n)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var g=this;function _(re,V){return x.type="throw",x.arg=j,g.next=re,V&&(g.method="next",g.arg=n),!!V}for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E],x=R.completion;if(R.tryLoc==="root")return _("end");if(R.tryLoc<=this.prev){var U=a.call(R,"catchLoc"),$=a.call(R,"finallyLoc");if(U&&$){if(this.prev<R.catchLoc)return _(R.catchLoc,!0);if(this.prev<R.finallyLoc)return _(R.finallyLoc)}else if(U){if(this.prev<R.catchLoc)return _(R.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return _(R.finallyLoc)}}}},abrupt:function(j,g){for(var _=this.tryEntries.length-1;_>=0;--_){var E=this.tryEntries[_];if(E.tryLoc<=this.prev&&a.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var R=E;break}}R&&(j==="break"||j==="continue")&&R.tryLoc<=g&&g<=R.finallyLoc&&(R=null);var x=R?R.completion:{};return x.type=j,x.arg=g,R?(this.method="next",this.next=R.finallyLoc,P):this.complete(x)},complete:function(j,g){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&g&&(this.next=g),P},finish:function(j){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.finallyLoc===j)return this.complete(_.completion,_.afterLoc),B(_),P}},catch:function(j){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===j){var E=_.completion;if(E.type==="throw"){var R=E.arg;B(_)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(j,g,_){return this.delegate={iterator:Z(j),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=n),P}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),Qj=le((t,e)=>{Q();var r=Xj()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),eq=le((t,e)=>{"use strict";Q();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),tq=le((t,e)=>{"use strict";Q();var r=eq(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),rq=le((t,e)=>{"use strict";Q();var r=tq(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),iq=le((t,e)=>{"use strict";Q();var r=fe("path"),i=fe("fs"),{promisify:n}=fe("util"),s=rq(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),nq=le((t,e)=>{"use strict";Q();var r=fe("fs"),{promisify:i}=fe("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),sq=le((t,e)=>{"use strict";Q();var r=fe("path"),i=iq(),n=nq(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),ao=le((t,e)=>{"use strict";Q();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),qm=le((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=fe("events"),n=fe("stream"),s=fe("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("buffer"),T=Symbol("pipes"),M=Symbol("bufferLength"),S=Symbol("bufferPush"),D=Symbol("bufferShift"),H=Symbol("objectMode"),z=Symbol("destroyed"),N=Symbol("emitData"),K=Symbol("emitEnd"),te=Symbol("emitEnd2"),ne=Symbol("async"),q=R=>Promise.resolve().then(R),L=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=L&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=L&&Symbol.iterator||Symbol("iterator not implemented"),Z=R=>R==="end"||R==="finish"||R==="prefinish",j=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,g=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),_=class{constructor(R,x,U){this.src=R,this.dest=x,this.opts=U,this.ondrain=()=>R[F](),x.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,x,U){super(R,x,U),this.proxyErrors=$=>x.emit("error",$),R.on("error",this.proxyErrors)}};e.exports=class J1 extends n{constructor(x){super(),this[w]=!1,this[C]=!1,this[T]=[],this[P]=[],this[H]=x&&x.objectMode||!1,this[H]?this[y]=null:this[y]=x&&x.encoding||null,this[y]==="buffer"&&(this[y]=null),this[ne]=x&&!!x.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[z]=!1,x&&x.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[P]}),x&&x.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[T]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(x){if(this[H])throw new Error("cannot set encoding in objectMode");if(this[y]&&x!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==x&&(this[p]=x?new s(x):null,this[P].length&&(this[P]=this[P].map(U=>this[p].write(U)))),this[y]=x}setEncoding(x){this.encoding=x}get objectMode(){return this[H]}set objectMode(x){this[H]=this[H]||!!x}get async(){return this[ne]}set async(x){this[ne]=this[ne]||!!x}write(x,U,$){if(this[o])throw new Error("write after end");if(this[z])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof U=="function"&&($=U,U="utf8"),U||(U="utf8");let re=this[ne]?q:V=>V();return!this[H]&&!Buffer.isBuffer(x)&&(g(x)?x=Buffer.from(x.buffer,x.byteOffset,x.byteLength):j(x)?x=Buffer.from(x):typeof x!="string"&&(this.objectMode=!0)),this[H]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):x.length?(typeof x=="string"&&!(U===this[y]&&!this[p].lastNeed)&&(x=Buffer.from(x,U)),Buffer.isBuffer(x)&&this[y]&&(x=this[p].write(x)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&re($),this.flowing)}read(x){if(this[z])return null;if(this[M]===0||x===0||x>this[M])return this[a](),null;this[H]&&(x=null),this[P].length>1&&!this[H]&&(this.encoding?this[P]=[this[P].join("")]:this[P]=[Buffer.concat(this[P],this[M])]);let U=this[f](x||null,this[P][0]);return this[a](),U}[f](x,U){return x===U.length||x===null?this[D]():(this[P][0]=U.slice(x),U=U.slice(0,x),this[M]-=x),this.emit("data",U),!this[P].length&&!this[o]&&this.emit("drain"),U}end(x,U,$){return typeof x=="function"&&($=x,x=null),typeof U=="function"&&($=U,U="utf8"),x&&this.write(x,U),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[z]||(this[C]=!1,this[w]=!0,this.emit("resume"),this[P].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[z]}get flowing(){return this[w]}get paused(){return this[C]}[S](x){this[H]?this[M]+=1:this[M]+=x.length,this[P].push(x)}[D](){return this[P].length&&(this[H]?this[M]-=1:this[M]-=this[P][0].length),this[P].shift()}[d](x){do;while(this[m](this[D]()));!x&&!this[P].length&&!this[o]&&this.emit("drain")}[m](x){return x?(this.emit("data",x),this.flowing):!1}pipe(x,U){if(this[z])return;let $=this[u];return U=U||{},x===r.stdout||x===r.stderr?U.end=!1:U.end=U.end!==!1,U.proxyErrors=!!U.proxyErrors,$?U.end&&x.end():(this[T].push(U.proxyErrors?new E(this,x,U):new _(this,x,U)),this[ne]?q(()=>this[F]()):this[F]()),x}unpipe(x){let U=this[T].find($=>$.dest===x);U&&(this[T].splice(this[T].indexOf(U),1),U.unpipe())}addListener(x,U){return this.on(x,U)}on(x,U){let $=super.on(x,U);return x==="data"&&!this[T].length&&!this.flowing?this[F]():x==="readable"&&this[M]!==0?super.emit("readable"):Z(x)&&this[u]?(super.emit(x),this.removeAllListeners(x)):x==="error"&&this[l]&&(this[ne]?q(()=>U.call(this,this[l])):U.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[z]&&this[P].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(x,U,...$){if(x!=="error"&&x!=="close"&&x!==z&&this[z])return;if(x==="data")return U?this[ne]?q(()=>this[N](U)):this[N](U):!1;if(x==="end")return this[K]();if(x==="close"){if(this[h]=!0,!this[u]&&!this[z])return;let V=super.emit("close");return this.removeAllListeners("close"),V}else if(x==="error"){this[l]=U;let V=super.emit("error",U);return this[a](),V}else if(x==="resume"){let V=super.emit("resume");return this[a](),V}else if(x==="finish"||x==="prefinish"){let V=super.emit(x);return this.removeAllListeners(x),V}let re=super.emit(x,U,...$);return this[a](),re}[N](x){for(let $ of this[T])$.dest.write(x)===!1&&this.pause();let U=super.emit("data",x);return this[a](),U}[K](){this[u]||(this[u]=!0,this.readable=!1,this[ne]?q(()=>this[te]()):this[te]())}[te](){if(this[p]){let U=this[p].end();if(U){for(let $ of this[T])$.dest.write(U);super.emit("data",U)}}for(let U of this[T])U.end();let x=super.emit("end");return this.removeAllListeners("end"),x}collect(){let x=[];this[H]||(x.dataLength=0);let U=this.promise();return this.on("data",$=>{x.push($),this[H]||(x.dataLength+=$.length)}),U.then(()=>x)}concat(){return this[H]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(x=>this[H]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?x.join(""):Buffer.concat(x,x.dataLength))}promise(){return new Promise((x,U)=>{this.on(z,()=>U(new Error("stream destroyed"))),this.on("error",$=>U($)),this.on("end",()=>x())})}[B](){return{next:()=>{let x=this.read();if(x!==null)return Promise.resolve({done:!1,value:x});if(this[o])return Promise.resolve({done:!0});let U=null,$=null,re=v=>{this.removeListener("data",V),this.removeListener("end",ue),$(v)},V=v=>{this.removeListener("error",re),this.removeListener("end",ue),this.pause(),U({value:v,done:!!this[o]})},ue=()=>{this.removeListener("error",re),this.removeListener("data",V),U({done:!0})},J=()=>re(new Error("stream destroyed"));return new Promise((v,I)=>{$=I,U=v,this.once(z,J),this.once("error",re),this.once("end",ue),this.once("data",V)})}}}[G](){return{next:()=>{let x=this.read();return{value:x,done:x===null}}}}destroy(x){return this[z]?(x?this.emit("error",x):this.emit(z),this):(this[z]=!0,this[P].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),x?this.emit("error",x):this.emit(z),this)}static isStream(x){return!!x&&(x instanceof J1||x instanceof n||x instanceof i&&(typeof x.pipe=="function"||typeof x.write=="function"&&typeof x.end=="function"))}}}),oq=le((t,e)=>{Q();var r=fe("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),X1=le((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=fe("events"),n=fe("stream"),s=fe("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("bufferLength"),T=Symbol("bufferPush"),M=Symbol("bufferShift"),S=Symbol("objectMode"),D=Symbol("destroyed"),H=Symbol("emitData"),z=Symbol("emitEnd"),N=Symbol("emitEnd2"),K=Symbol("async"),te=_=>Promise.resolve().then(_),ne=global._MP_NO_ITERATOR_SYMBOLS_!=="1",q=ne&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L=ne&&Symbol.iterator||Symbol("iterator not implemented"),B=_=>_==="end"||_==="finish"||_==="prefinish",G=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),j=class{constructor(_,E,R){this.src=_,this.dest=E,this.opts=R,this.ondrain=()=>_[F](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},g=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(_,E,R){super(_,E,R),this.proxyErrors=x=>E.emit("error",x),_.on("error",this.proxyErrors)}};e.exports=class Q1 extends n{constructor(E){super(),this[w]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[S]=E&&E.objectMode||!1,this[S]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[K]=E&&!!E.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[P]=0,this[D]=!1}get bufferLength(){return this[P]}get encoding(){return this[y]}set encoding(E){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[p]&&this[p].lastNeed||this[P]))throw new Error("cannot change encoding");this[y]!==E&&(this[p]=E?new s(E):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[p].write(R)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[S]}set objectMode(E){this[S]=this[S]||!!E}get async(){return this[K]}set async(E){this[K]=this[K]||!!E}write(E,R,x){if(this[o])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(x=R,R="utf8"),R||(R="utf8");let U=this[K]?te:$=>$();return!this[S]&&!Buffer.isBuffer(E)&&(Z(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):G(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[S]?(this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),x&&U(x),this.flowing):E.length?(typeof E=="string"&&!(R===this[y]&&!this[p].lastNeed)&&(E=Buffer.from(E,R)),Buffer.isBuffer(E)&&this[y]&&(E=this[p].write(E)),this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),x&&U(x),this.flowing):(this[P]!==0&&this.emit("readable"),x&&U(x),this.flowing)}read(E){if(this[D])return null;if(this[P]===0||E===0||E>this[P])return this[a](),null;this[S]&&(E=null),this.buffer.length>1&&!this[S]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[P])]);let R=this[f](E||null,this.buffer[0]);return this[a](),R}[f](E,R){return E===R.length||E===null?this[M]():(this.buffer[0]=R.slice(E),R=R.slice(0,E),this[P]-=E),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(E,R,x){return typeof E=="function"&&(x=E,E=null),typeof R=="function"&&(x=R,R="utf8"),E&&this.write(E,R),x&&this.once("end",x),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[D]||(this[C]=!1,this[w]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[D]}get flowing(){return this[w]}get paused(){return this[C]}[T](E){this[S]?this[P]+=1:this[P]+=E.length,this.buffer.push(E)}[M](){return this.buffer.length&&(this[S]?this[P]-=1:this[P]-=this.buffer[0].length),this.buffer.shift()}[d](E){do;while(this[m](this[M]()));!E&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,R){if(this[D])return;let x=this[u];return R=R||{},E===r.stdout||E===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,x?R.end&&E.end():(this.pipes.push(R.proxyErrors?new g(this,E,R):new j(this,E,R)),this[K]?te(()=>this[F]()):this[F]()),E}unpipe(E){let R=this.pipes.find(x=>x.dest===E);R&&(this.pipes.splice(this.pipes.indexOf(R),1),R.unpipe())}addListener(E,R){return this.on(E,R)}on(E,R){let x=super.on(E,R);return E==="data"&&!this.pipes.length&&!this.flowing?this[F]():E==="readable"&&this[P]!==0?super.emit("readable"):B(E)&&this[u]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[l]&&(this[K]?te(()=>R.call(this,this[l])):R.call(this,this[l])),x}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[D]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,R,...x){if(E!=="error"&&E!=="close"&&E!==D&&this[D])return;if(E==="data")return R?this[K]?te(()=>this[H](R)):this[H](R):!1;if(E==="end")return this[z]();if(E==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(E==="error"){this[l]=R;let $=super.emit("error",R);return this[a](),$}else if(E==="resume"){let $=super.emit("resume");return this[a](),$}else if(E==="finish"||E==="prefinish"){let $=super.emit(E);return this.removeAllListeners(E),$}let U=super.emit(E,R,...x);return this[a](),U}[H](E){for(let x of this.pipes)x.dest.write(E)===!1&&this.pause();let R=super.emit("data",E);return this[a](),R}[z](){this[u]||(this[u]=!0,this.readable=!1,this[K]?te(()=>this[N]()):this[N]())}[N](){if(this[p]){let R=this[p].end();if(R){for(let x of this.pipes)x.dest.write(R);super.emit("data",R)}}for(let R of this.pipes)R.end();let E=super.emit("end");return this.removeAllListeners("end"),E}collect(){let E=[];this[S]||(E.dataLength=0);let R=this.promise();return this.on("data",x=>{E.push(x),this[S]||(E.dataLength+=x.length)}),R.then(()=>E)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,R)=>{this.on(D,()=>R(new Error("stream destroyed"))),this.on("error",x=>R(x)),this.on("end",()=>E())})}[q](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let R=null,x=null,U=ue=>{this.removeListener("data",$),this.removeListener("end",re),x(ue)},$=ue=>{this.removeListener("error",U),this.removeListener("end",re),this.pause(),R({value:ue,done:!!this[o]})},re=()=>{this.removeListener("error",U),this.removeListener("data",$),R({done:!0})},V=()=>U(new Error("stream destroyed"));return new Promise((ue,J)=>{x=J,R=ue,this.once(D,V),this.once("error",U),this.once("end",re),this.once("data",$)})}}}[L](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[D]?(E?this.emit("error",E):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[P]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(D),this)}static isStream(E){return!!E&&(E instanceof Q1||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),eC=le(t=>{"use strict";Q();var e=fe("assert"),r=fe("buffer").Buffer,i=fe("zlib"),n=t.constants=oq(),s=X1(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),w=Symbol("strategy"),C=Symbol("ended"),F=Symbol("_defaultFullFlush"),P=class extends s{constructor(B,G){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[C]=!1,this[c]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new i[G](B)}catch(Z){throw new u(Z)}this[m]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[m](new u(Z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[f]),this.write(Object.assign(r.alloc(0),{[l]:B})))}end(B,G,Z){return B&&this.write(B,G),this.flush(this[h]),this[C]=!0,super.end(null,null,Z)}get ended(){return this[C]}write(B,G,Z){if(typeof G=="function"&&(Z=G,G="utf8"),typeof B=="string"&&(B=r.from(B,G)),this[y])return;e(this[d],"zlib binding closed");let j=this[d]._handle,g=j.close;j.close=()=>{};let _=this[d].close;this[d].close=()=>{},r.concat=x=>x;let E;try{let x=typeof B[l]=="number"?B[l]:this[l];E=this[d]._processChunk(B,x),r.concat=o}catch(x){r.concat=o,this[m](new u(x))}finally{this[d]&&(this[d]._handle=j,j.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",x=>this[m](new u(x)));let R;if(E)if(Array.isArray(E)&&E.length>0){R=this[a](r.from(E[0]));for(let x=1;x<E.length;x++)R=this[a](E[x])}else R=this[a](r.from(E));return Z&&Z(),R}[a](B){return super.write(B)}},T=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.Z_NO_FLUSH,B.finishFlush=B.finishFlush||n.Z_FINISH,super(B,G),this[f]=n.Z_FULL_FLUSH,this[p]=B.level,this[w]=B.strategy}params(B,G){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==B||this[w]!==G){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let Z=this[d].flush;this[d].flush=(j,g)=>{this.flush(j),g()};try{this[d].params(B,G)}finally{this[d].flush=Z}this[d]&&(this[p]=B,this[w]=G)}}}},M=class extends T{constructor(B){super(B,"Deflate")}},S=class extends T{constructor(B){super(B,"Inflate")}},D=Symbol("_portable"),H=class extends T{constructor(B){super(B,"Gzip"),this[D]=B&&!!B.portable}[a](B){return this[D]?(this[D]=!1,B[9]=255,super[a](B)):super[a](B)}},z=class extends T{constructor(B){super(B,"Gunzip")}},N=class extends T{constructor(B){super(B,"DeflateRaw")}},K=class extends T{constructor(B){super(B,"InflateRaw")}},te=class extends T{constructor(B){super(B,"Unzip")}},ne=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||n.BROTLI_OPERATION_FINISH,super(B,G),this[f]=n.BROTLI_OPERATION_FLUSH}},q=class extends ne{constructor(B){super(B,"BrotliCompress")}},L=class extends ne{constructor(B){super(B,"BrotliDecompress")}};t.Deflate=M,t.Inflate=S,t.Gzip=H,t.Gunzip=z,t.DeflateRaw=N,t.InflateRaw=K,t.Unzip=te,typeof i.BrotliCompress=="function"?(t.BrotliCompress=q,t.BrotliDecompress=L):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),uo=le((t,e)=>{Q();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Hm=le((t,e)=>{"use strict";Q();var r=qm(),i=uo(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),tC=le(t=>{"use strict";Q(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),aq=le((t,e)=>{"use strict";Q();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),co=le((t,e)=>{"use strict";Q();var r=tC(),i=fe("path").posix,n=aq(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,D,H,z){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(S)?this.decode(S,D||0,H,z):S&&this.set(S)}decode(S,D,H,z){if(D||(D=0),!S||!(S.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(S,D,100),this.mode=f(S,D+100,8),this.uid=f(S,D+108,8),this.gid=f(S,D+116,8),this.size=f(S,D+124,12),this.mtime=l(S,D+136,12),this.cksum=f(S,D+148,12),this[s](H),this[s](z,!0),this[o]=c(S,D+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(S,D+157,100),S.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(S,D+265,32),this.gname=c(S,D+297,32),this.devmaj=f(S,D+329,8),this.devmin=f(S,D+337,8),S[D+475]!==0){let K=c(S,D+345,155);this.path=K+"/"+this.path}else{let K=c(S,D+345,130);K&&(this.path=K+"/"+this.path),this.atime=l(S,D+476,12),this.ctime=l(S,D+488,12)}let N=8*32;for(let K=D;K<D+148;K++)N+=S[K];for(let K=D+156;K<D+512;K++)N+=S[K];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](S,D){for(let H in S)S[H]!==null&&S[H]!==void 0&&!(D&&H==="path")&&(this[H]=S[H])}encode(S,D){if(S||(S=this.block=Buffer.alloc(512),D=0),D||(D=0),!(S.length>=D+512))throw new Error("need 512 bytes for header");let H=this.ctime||this.atime?130:155,z=u(this.path||"",H),N=z[0],K=z[1];this.needPax=z[2],this.needPax=M(S,D,100,N)||this.needPax,this.needPax=p(S,D+100,8,this.mode)||this.needPax,this.needPax=p(S,D+108,8,this.uid)||this.needPax,this.needPax=p(S,D+116,8,this.gid)||this.needPax,this.needPax=p(S,D+124,12,this.size)||this.needPax,this.needPax=P(S,D+136,12,this.mtime)||this.needPax,S[D+156]=this[o].charCodeAt(0),this.needPax=M(S,D+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",D+257,8),this.needPax=M(S,D+265,32,this.uname)||this.needPax,this.needPax=M(S,D+297,32,this.gname)||this.needPax,this.needPax=p(S,D+329,8,this.devmaj)||this.needPax,this.needPax=p(S,D+337,8,this.devmin)||this.needPax,this.needPax=M(S,D+345,H,K)||this.needPax,S[D+475]!==0?this.needPax=M(S,D+345,155,K)||this.needPax:(this.needPax=M(S,D+345,130,K)||this.needPax,this.needPax=P(S,D+476,12,this.atime)||this.needPax,this.needPax=P(S,D+488,12,this.ctime)||this.needPax);let te=8*32;for(let ne=D;ne<D+148;ne++)te+=S[ne];for(let ne=D+156;ne<D+512;ne++)te+=S[ne];return this.cksum=te,p(S,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let D in S)S[D]!==null&&S[D]!==void 0&&(this[D]=S[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},u=(S,D)=>{let H=S,z="",N,K=i.parse(S).root||".";if(Buffer.byteLength(H)<100)N=[H,z,!1];else{z=i.dirname(H),H=i.basename(H);do Buffer.byteLength(H)<=100&&Buffer.byteLength(z)<=D?N=[H,z,!1]:Buffer.byteLength(H)>100&&Buffer.byteLength(z)<=D?N=[H.slice(0,100-1),z,!0]:(H=i.join(i.basename(z),H),z=i.dirname(z));while(z!==K&&!N);N||(N=[S.slice(0,100-1),"",!0])}return N},c=(S,D,H)=>S.slice(D,D+H).toString("utf8").replace(/\0.*/,""),l=(S,D,H)=>h(f(S,D,H)),h=S=>S===null?null:new Date(S*1e3),f=(S,D,H)=>S[D]&128?n.parse(S.slice(D,D+H)):m(S,D,H),d=S=>isNaN(S)?null:S,m=(S,D,H)=>d(parseInt(S.slice(D,D+H).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(S,D,H,z)=>z===null?!1:z>y[H]||z<0?(n.encode(z,S.slice(D,D+H)),!0):(w(S,D,H,z),!1),w=(S,D,H,z)=>S.write(C(z,H),D,H,"ascii"),C=(S,D)=>F(Math.floor(S).toString(8),D),F=(S,D)=>(S.length===D-1?S:new Array(D-S.length-1).join("0")+S+" ")+"\0",P=(S,D,H,z)=>z===null?!1:p(S,D,H,z.getTime()/1e3),T=new Array(156).join("\0"),M=(S,D,H,z)=>z===null?!1:(S.write(z+T,D,H,"utf8"),z.length!==Buffer.byteLength(z)||z.length>H);e.exports=a}),Um=le((t,e)=>{"use strict";Q();var r=co(),i=fe("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
54
+ Downloading files${r?"":` for example ${Dr.default.cyan(e)}`}. This might take a moment.`),_t(),h.start(),await(0,Dm.default)(()=>vm(o,e),{retries:3}))}catch(p){throw new Yn(bj(p)?p.message:String(p))}finally{h.stop()}let f=Vn.default.join(o,"package.json"),d=(0,Kn.existsSync)(f),m=[];if(d){let p;try{p=(0,Kn.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return Vn.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var hc=require("fs");var q1=oe(require("chalk"));var Om=oe(require("os")),L1=oe(require("crypto")),B1=oe(require("path")),I1=oe(P1());function N1(t){let e=process.version,r=Om.default.type(),i=Om.default.arch();return`${t.name} ${t.version} ${e} ${r} ${i}`}async function M1(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,I1.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return B1.default.join(t,"turborepo","telemetry.json")}function j1({input:t,salt:e}){return L1.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Tj="TURBO_TELEMETRY_DEBUG",kj="TURBO_TELEMETRY_DISABLED",Oj="TURBO_TELEMETRY_MESSAGE_DISABLED",Fj="DO_NOT_TRACK",xr=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static async fromDefaultConfig(){try{let e=await M1(),r=(0,hc.readFileSync)(e,"utf-8"),i=JSON.parse(r);return new xr({configPath:e,config:i})}catch{return}}write(){let e=JSON.stringify(this.config,null,2);(0,hc.writeFileSync)(this.configPath,e)}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[Fj]||"0",r=process.env[kj]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[Oj]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(se.log(),se.bold("Attention:"),se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),se.underline(q1.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.write()}disable(){this.config.telemetry_enabled=!1,this.write()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date,this.write()),!0}oneWayHash(e){return j1({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[Tj]||"0";return e==="1"||e.toLowerCase()==="true"}};var G1=oe(ym());var H1=oe(require("crypto")),dc=new Uint8Array(256),fc=dc.length;function Fm(){return fc>dc.length-16&&(H1.default.randomFillSync(dc),fc=0),dc.slice(fc,fc+=16)}var He=[];for(let t=0;t<256;++t)He.push((t+256).toString(16).slice(1));function U1(t,e=0){return(He[t[e+0]]+He[t[e+1]]+He[t[e+2]]+He[t[e+3]]+"-"+He[t[e+4]]+He[t[e+5]]+"-"+He[t[e+6]]+He[t[e+7]]+"-"+He[t[e+8]]+He[t[e+9]]+"-"+He[t[e+10]]+He[t[e+11]]+He[t[e+12]]+He[t[e+13]]+He[t[e+14]]+He[t[e+15]]).toLowerCase()}var $1=oe(require("crypto")),Pm={randomUUID:$1.default.randomUUID};function Pj(t,e,r){if(Pm.randomUUID&&!e&&!t)return Pm.randomUUID();t=t||{};let i=t.random||(t.rng||Fm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return U1(i)}var pc=Pj;var Lj=20,Bj="/api/turborepo/v1/events",Pi=class{constructor({api:e,packageInfo:r,config:i,opts:n}){this.batchSize=Lj;this.timeout=250;this.sessionId=pc();this.eventBatches=[];this.events=[];let s=new URL(Bj,e);this.api=s.toString(),this.packageInfo=r,this.config=i,n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.batchSize&&(this.batchSize=n.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(G1.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":N1(this.packageInfo)}}))}track({key:e,value:r,parentId:i,isSensitive:n}){let s={id:pc(),key:e,value:n?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:i};return xr.isDebug()&&(se.log(),se.bold("[telemetry event]"),se.dimmed(JSON.stringify(s,null,2)),se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}};var ro=class extends Pi{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:e.toString()})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var mc=class extends Pi{trackExecutionEnv(){return this.track({key:"execution_env",value:process.env.VERCEL==="1"?"vercel":"local"})}};var Ij={"create-turbo":ro,"turbo-ignore":mc},Nj="https://telemetry.vercel.com";async function Lm({packageInfo:t,opts:e}){let r=Ij[t.name],i=await xr.fromDefaultConfig();return i?(i.showAlert(),{telemetry:new r({api:Nj,packageInfo:t,config:i,opts:e})}):{telemetry:void 0}}var io=oe(require("chalk"));var z1=require("commander"),W1="status",Mj=["enable","disable",W1];function jj(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();se.log(`Status: ${e?io.default.bold(io.default.green("Enabled")):io.default.bold(io.default.red("Disabled"))}`),se.log(),e?se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),se.log("Learn more: https://turbo.build/repo/docs/telemetry")}function qj(t,e){if(!e.telemetry){se.error("Telemetry client not found");return}t==="enable"?(e.telemetry.config.enable(),se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),se.bold("Success!")),se.log(),jj(e)}function Bm(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new z1.Argument("[action]","Action to perform").choices(Mj).default(W1)).action(qj)}var cR=require("proxy-agent");var Li={name:"create-turbo",version:"1.13.2",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",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:"^10.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 V1=oe(require("chalk")),Y1=oe(require("update-check"));var Uj=(0,Y1.default)(Li).catch(()=>null);async function Im(){try{let t=await Uj;t!=null&&t.latest&&(se.log(),se.log(V1.default.yellow.bold("A new version of `create-turbo` is available!")),se.log()),process.exit()}catch{}}var po=oe(require("path")),Ue=oe(require("chalk"));var ni=oe(require("chalk"),1),lC=oe(ya(),1),hC=oe(ba(),1),yC=oe(require("os"),1),gC=oe(fn(),1),lG=require("fs-extra");var mG=oe(ta(),1),gG=require("fs-extra"),bG=require("fs-extra"),wG=require("chalk"),bC=require("stream"),EC=require("util"),xG=require("fs-extra"),TG=require("chalk"),OG=require("fs-extra"),Bi=oe(require("path"),1),et=require("fs-extra"),wC=oe(fn(),1),vC=oe(require("path"),1),SC=require("fs-extra"),DC=oe(require("chalk"),1),Cr=oe(require("path"),1),xC=oe(fn(),1),mt=require("fs-extra"),AC=oe(ta(),1);var so=oe(require("path"),1),Xt=require("fs-extra"),es=oe(require("path"),1),Qt=require("fs-extra"),oo=oe(require("path"),1),er=require("fs-extra"),pt=oe(require("chalk"),1),FC=oe(ba(),1),PC=oe(fn(),1),LC=oe(ya(),1),BC=require("semver"),IC=oe(require("chalk"),1),$j=Object.create,jm=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,zj=Object.getOwnPropertyNames,Wj=Object.getPrototypeOf,Vj=Object.prototype.hasOwnProperty,fe=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Yj=(t,e)=>()=>(t&&(e=t(t=0)),e),le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kj=(t,e)=>{for(var r in e)jm(t,r,{get:e[r],enumerable:!0})},Zj=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zj(e))!Vj.call(t,n)&&n!==r&&jm(t,n,{get:()=>e[n],enumerable:!(i=Gj(e,n))||i.enumerable});return t},bc=(t,e,r)=>(r=t!=null?$j(Wj(t)):{},Zj(e||!t||!t.__esModule?jm(r,"default",{value:t,enumerable:!0}):r,t)),ee=Yj(()=>{}),Jj=le((t,e)=>{ee();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),Xj=le((t,e)=>{ee();var r=Jj().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(q,g,_){q[g]=_.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(q,g,_){return Object.defineProperty(q,g,{value:_,enumerable:!0,configurable:!0,writable:!0}),q[g]}try{d({},"")}catch{d=function(q,g,_){return q[g]=_}}function m(q,g,_,E){var R=g&&g.prototype instanceof T?g:T,D=Object.create(R.prototype),U=new G(E||[]);return u(D,"_invoke",{value:te(q,_,U)}),D}function y(q,g,_){try{return{type:"normal",arg:q.call(g,_)}}catch(E){return{type:"throw",arg:E}}}s.wrap=m;var p="suspendedStart",w="suspendedYield",C="executing",F="completed",P={};function T(){}function M(){}function S(){}var x={};d(x,l,function(){return this});var H=Object.getPrototypeOf,W=H&&H(H(Z([])));W&&W!==o&&a.call(W,l)&&(x=W);var N=S.prototype=T.prototype=Object.create(x);function V(q){["next","throw","return"].forEach(function(g){d(q,g,function(_){return this._invoke(g,_)})})}function Q(q,g){function _(R,D,U,$){var ie=y(q[R],q,D);if(ie.type!=="throw"){var Y=ie.arg,ue=Y.value;return ue&&r(ue)=="object"&&a.call(ue,"__await")?g.resolve(ue.__await).then(function(J){_("next",J,U,$)},function(J){_("throw",J,U,$)}):g.resolve(ue).then(function(J){Y.value=J,U(Y)},function(J){return _("throw",J,U,$)})}$(ie.arg)}var E;u(this,"_invoke",{value:function(R,D){function U(){return new g(function($,ie){_(R,D,$,ie)})}return E=E?E.then(U,U):U()}})}function te(q,g,_){var E=p;return function(R,D){if(E===C)throw new Error("Generator is already running");if(E===F){if(R==="throw")throw D;return{value:n,done:!0}}for(_.method=R,_.arg=D;;){var U=_.delegate;if(U){var $=j(U,_);if($){if($===P)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(E===p)throw E=F,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);E=C;var ie=y(q,g,_);if(ie.type==="normal"){if(E=_.done?F:w,ie.arg===P)continue;return{value:ie.arg,done:_.done}}ie.type==="throw"&&(E=F,_.method="throw",_.arg=ie.arg)}}}function j(q,g){var _=g.method,E=q.iterator[_];if(E===n)return g.delegate=null,_==="throw"&&q.iterator.return&&(g.method="return",g.arg=n,j(q,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),P;var R=y(E,q.iterator,g.arg);if(R.type==="throw")return g.method="throw",g.arg=R.arg,g.delegate=null,P;var D=R.arg;return D?D.done?(g[q.resultName]=D.value,g.next=q.nextLoc,g.method!=="return"&&(g.method="next",g.arg=n),g.delegate=null,P):D:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,P)}function L(q){var g={tryLoc:q[0]};1 in q&&(g.catchLoc=q[1]),2 in q&&(g.finallyLoc=q[2],g.afterLoc=q[3]),this.tryEntries.push(g)}function B(q){var g=q.completion||{};g.type="normal",delete g.arg,q.completion=g}function G(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(L,this),this.reset(!0)}function Z(q){if(q||q===""){var g=q[l];if(g)return g.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var _=-1,E=function R(){for(;++_<q.length;)if(a.call(q,_))return R.value=q[_],R.done=!1,R;return R.value=n,R.done=!0,R};return E.next=E}}throw new TypeError(r(q)+" is not iterable")}return M.prototype=S,u(N,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:M,configurable:!0}),M.displayName=d(S,f,"GeneratorFunction"),s.isGeneratorFunction=function(q){var g=typeof q=="function"&&q.constructor;return!!g&&(g===M||(g.displayName||g.name)==="GeneratorFunction")},s.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,S):(q.__proto__=S,d(q,f,"GeneratorFunction")),q.prototype=Object.create(N),q},s.awrap=function(q){return{__await:q}},V(Q.prototype),d(Q.prototype,h,function(){return this}),s.AsyncIterator=Q,s.async=function(q,g,_,E,R){R===void 0&&(R=Promise);var D=new Q(m(q,g,_,E),R);return s.isGeneratorFunction(g)?D:D.next().then(function(U){return U.done?U.value:D.next()})},V(N),d(N,f,"Generator"),d(N,l,function(){return this}),d(N,"toString",function(){return"[object Generator]"}),s.keys=function(q){var g=Object(q),_=[];for(var E in g)_.push(E);return _.reverse(),function R(){for(;_.length;){var D=_.pop();if(D in g)return R.value=D,R.done=!1,R}return R.done=!0,R}},s.values=Z,G.prototype={constructor:G,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!q)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=n)},stop:function(){this.done=!0;var q=this.tryEntries[0].completion;if(q.type==="throw")throw q.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var g=this;function _(ie,Y){return D.type="throw",D.arg=q,g.next=ie,Y&&(g.method="next",g.arg=n),!!Y}for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E],D=R.completion;if(R.tryLoc==="root")return _("end");if(R.tryLoc<=this.prev){var U=a.call(R,"catchLoc"),$=a.call(R,"finallyLoc");if(U&&$){if(this.prev<R.catchLoc)return _(R.catchLoc,!0);if(this.prev<R.finallyLoc)return _(R.finallyLoc)}else if(U){if(this.prev<R.catchLoc)return _(R.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return _(R.finallyLoc)}}}},abrupt:function(q,g){for(var _=this.tryEntries.length-1;_>=0;--_){var E=this.tryEntries[_];if(E.tryLoc<=this.prev&&a.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var R=E;break}}R&&(q==="break"||q==="continue")&&R.tryLoc<=g&&g<=R.finallyLoc&&(R=null);var D=R?R.completion:{};return D.type=q,D.arg=g,R?(this.method="next",this.next=R.finallyLoc,P):this.complete(D)},complete:function(q,g){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&g&&(this.next=g),P},finish:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.finallyLoc===q)return this.complete(_.completion,_.afterLoc),B(_),P}},catch:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===q){var E=_.completion;if(E.type==="throw"){var R=E.arg;B(_)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(q,g,_){return this.delegate={iterator:Z(q),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=n),P}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),Qj=le((t,e)=>{ee();var r=Xj()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),eq=le((t,e)=>{"use strict";ee();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),tq=le((t,e)=>{"use strict";ee();var r=eq(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),rq=le((t,e)=>{"use strict";ee();var r=tq(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),iq=le((t,e)=>{"use strict";ee();var r=fe("path"),i=fe("fs"),{promisify:n}=fe("util"),s=rq(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),nq=le((t,e)=>{"use strict";ee();var r=fe("fs"),{promisify:i}=fe("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),sq=le((t,e)=>{"use strict";ee();var r=fe("path"),i=iq(),n=nq(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),ao=le((t,e)=>{"use strict";ee();var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),qm=le((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=fe("events"),n=fe("stream"),s=fe("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("buffer"),T=Symbol("pipes"),M=Symbol("bufferLength"),S=Symbol("bufferPush"),x=Symbol("bufferShift"),H=Symbol("objectMode"),W=Symbol("destroyed"),N=Symbol("emitData"),V=Symbol("emitEnd"),Q=Symbol("emitEnd2"),te=Symbol("async"),j=R=>Promise.resolve().then(R),L=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=L&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=L&&Symbol.iterator||Symbol("iterator not implemented"),Z=R=>R==="end"||R==="finish"||R==="prefinish",q=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,g=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),_=class{constructor(R,D,U){this.src=R,this.dest=D,this.opts=U,this.ondrain=()=>R[F](),D.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,D,U){super(R,D,U),this.proxyErrors=$=>D.emit("error",$),R.on("error",this.proxyErrors)}};e.exports=class J1 extends n{constructor(D){super(),this[w]=!1,this[C]=!1,this[T]=[],this[P]=[],this[H]=D&&D.objectMode||!1,this[H]?this[y]=null:this[y]=D&&D.encoding||null,this[y]==="buffer"&&(this[y]=null),this[te]=D&&!!D.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[W]=!1,D&&D.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[P]}),D&&D.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[T]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(D){if(this[H])throw new Error("cannot set encoding in objectMode");if(this[y]&&D!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==D&&(this[p]=D?new s(D):null,this[P].length&&(this[P]=this[P].map(U=>this[p].write(U)))),this[y]=D}setEncoding(D){this.encoding=D}get objectMode(){return this[H]}set objectMode(D){this[H]=this[H]||!!D}get async(){return this[te]}set async(D){this[te]=this[te]||!!D}write(D,U,$){if(this[o])throw new Error("write after end");if(this[W])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof U=="function"&&($=U,U="utf8"),U||(U="utf8");let ie=this[te]?j:Y=>Y();return!this[H]&&!Buffer.isBuffer(D)&&(g(D)?D=Buffer.from(D.buffer,D.byteOffset,D.byteLength):q(D)?D=Buffer.from(D):typeof D!="string"&&(this.objectMode=!0)),this[H]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[S](D),this[M]!==0&&this.emit("readable"),$&&ie($),this.flowing):D.length?(typeof D=="string"&&!(U===this[y]&&!this[p].lastNeed)&&(D=Buffer.from(D,U)),Buffer.isBuffer(D)&&this[y]&&(D=this[p].write(D)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[S](D),this[M]!==0&&this.emit("readable"),$&&ie($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&ie($),this.flowing)}read(D){if(this[W])return null;if(this[M]===0||D===0||D>this[M])return this[a](),null;this[H]&&(D=null),this[P].length>1&&!this[H]&&(this.encoding?this[P]=[this[P].join("")]:this[P]=[Buffer.concat(this[P],this[M])]);let U=this[f](D||null,this[P][0]);return this[a](),U}[f](D,U){return D===U.length||D===null?this[x]():(this[P][0]=U.slice(D),U=U.slice(0,D),this[M]-=D),this.emit("data",U),!this[P].length&&!this[o]&&this.emit("drain"),U}end(D,U,$){return typeof D=="function"&&($=D,D=null),typeof U=="function"&&($=U,U="utf8"),D&&this.write(D,U),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[W]||(this[C]=!1,this[w]=!0,this.emit("resume"),this[P].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[W]}get flowing(){return this[w]}get paused(){return this[C]}[S](D){this[H]?this[M]+=1:this[M]+=D.length,this[P].push(D)}[x](){return this[P].length&&(this[H]?this[M]-=1:this[M]-=this[P][0].length),this[P].shift()}[d](D){do;while(this[m](this[x]()));!D&&!this[P].length&&!this[o]&&this.emit("drain")}[m](D){return D?(this.emit("data",D),this.flowing):!1}pipe(D,U){if(this[W])return;let $=this[u];return U=U||{},D===r.stdout||D===r.stderr?U.end=!1:U.end=U.end!==!1,U.proxyErrors=!!U.proxyErrors,$?U.end&&D.end():(this[T].push(U.proxyErrors?new E(this,D,U):new _(this,D,U)),this[te]?j(()=>this[F]()):this[F]()),D}unpipe(D){let U=this[T].find($=>$.dest===D);U&&(this[T].splice(this[T].indexOf(U),1),U.unpipe())}addListener(D,U){return this.on(D,U)}on(D,U){let $=super.on(D,U);return D==="data"&&!this[T].length&&!this.flowing?this[F]():D==="readable"&&this[M]!==0?super.emit("readable"):Z(D)&&this[u]?(super.emit(D),this.removeAllListeners(D)):D==="error"&&this[l]&&(this[te]?j(()=>U.call(this,this[l])):U.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[P].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(D,U,...$){if(D!=="error"&&D!=="close"&&D!==W&&this[W])return;if(D==="data")return U?this[te]?j(()=>this[N](U)):this[N](U):!1;if(D==="end")return this[V]();if(D==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let Y=super.emit("close");return this.removeAllListeners("close"),Y}else if(D==="error"){this[l]=U;let Y=super.emit("error",U);return this[a](),Y}else if(D==="resume"){let Y=super.emit("resume");return this[a](),Y}else if(D==="finish"||D==="prefinish"){let Y=super.emit(D);return this.removeAllListeners(D),Y}let ie=super.emit(D,U,...$);return this[a](),ie}[N](D){for(let $ of this[T])$.dest.write(D)===!1&&this.pause();let U=super.emit("data",D);return this[a](),U}[V](){this[u]||(this[u]=!0,this.readable=!1,this[te]?j(()=>this[Q]()):this[Q]())}[Q](){if(this[p]){let U=this[p].end();if(U){for(let $ of this[T])$.dest.write(U);super.emit("data",U)}}for(let U of this[T])U.end();let D=super.emit("end");return this.removeAllListeners("end"),D}collect(){let D=[];this[H]||(D.dataLength=0);let U=this.promise();return this.on("data",$=>{D.push($),this[H]||(D.dataLength+=$.length)}),U.then(()=>D)}concat(){return this[H]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(D=>this[H]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?D.join(""):Buffer.concat(D,D.dataLength))}promise(){return new Promise((D,U)=>{this.on(W,()=>U(new Error("stream destroyed"))),this.on("error",$=>U($)),this.on("end",()=>D())})}[B](){return{next:()=>{let D=this.read();if(D!==null)return Promise.resolve({done:!1,value:D});if(this[o])return Promise.resolve({done:!0});let U=null,$=null,ie=v=>{this.removeListener("data",Y),this.removeListener("end",ue),$(v)},Y=v=>{this.removeListener("error",ie),this.removeListener("end",ue),this.pause(),U({value:v,done:!!this[o]})},ue=()=>{this.removeListener("error",ie),this.removeListener("data",Y),U({done:!0})},J=()=>ie(new Error("stream destroyed"));return new Promise((v,I)=>{$=I,U=v,this.once(W,J),this.once("error",ie),this.once("end",ue),this.once("data",Y)})}}}[G](){return{next:()=>{let D=this.read();return{value:D,done:D===null}}}}destroy(D){return this[W]?(D?this.emit("error",D):this.emit(W),this):(this[W]=!0,this[P].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),D?this.emit("error",D):this.emit(W),this)}static isStream(D){return!!D&&(D instanceof J1||D instanceof n||D instanceof i&&(typeof D.pipe=="function"||typeof D.write=="function"&&typeof D.end=="function"))}}}),oq=le((t,e)=>{ee();var r=fe("zlib").constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},r))}),X1=le((t,e)=>{"use strict";ee();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=fe("events"),n=fe("stream"),s=fe("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),w=Symbol("flowing"),C=Symbol("paused"),F=Symbol("resume"),P=Symbol("bufferLength"),T=Symbol("bufferPush"),M=Symbol("bufferShift"),S=Symbol("objectMode"),x=Symbol("destroyed"),H=Symbol("emitData"),W=Symbol("emitEnd"),N=Symbol("emitEnd2"),V=Symbol("async"),Q=_=>Promise.resolve().then(_),te=global._MP_NO_ITERATOR_SYMBOLS_!=="1",j=te&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L=te&&Symbol.iterator||Symbol("iterator not implemented"),B=_=>_==="end"||_==="finish"||_==="prefinish",G=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),q=class{constructor(_,E,R){this.src=_,this.dest=E,this.opts=R,this.ondrain=()=>_[F](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},g=class extends q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(_,E,R){super(_,E,R),this.proxyErrors=D=>E.emit("error",D),_.on("error",this.proxyErrors)}};e.exports=class Q1 extends n{constructor(E){super(),this[w]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[S]=E&&E.objectMode||!1,this[S]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=E&&!!E.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[P]=0,this[x]=!1}get bufferLength(){return this[P]}get encoding(){return this[y]}set encoding(E){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[p]&&this[p].lastNeed||this[P]))throw new Error("cannot change encoding");this[y]!==E&&(this[p]=E?new s(E):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[p].write(R)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[S]}set objectMode(E){this[S]=this[S]||!!E}get async(){return this[V]}set async(E){this[V]=this[V]||!!E}write(E,R,D){if(this[o])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(D=R,R="utf8"),R||(R="utf8");let U=this[V]?Q:$=>$();return!this[S]&&!Buffer.isBuffer(E)&&(Z(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):G(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[S]?(this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),D&&U(D),this.flowing):E.length?(typeof E=="string"&&!(R===this[y]&&!this[p].lastNeed)&&(E=Buffer.from(E,R)),Buffer.isBuffer(E)&&this[y]&&(E=this[p].write(E)),this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[T](E),this[P]!==0&&this.emit("readable"),D&&U(D),this.flowing):(this[P]!==0&&this.emit("readable"),D&&U(D),this.flowing)}read(E){if(this[x])return null;if(this[P]===0||E===0||E>this[P])return this[a](),null;this[S]&&(E=null),this.buffer.length>1&&!this[S]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[P])]);let R=this[f](E||null,this.buffer[0]);return this[a](),R}[f](E,R){return E===R.length||E===null?this[M]():(this.buffer[0]=R.slice(E),R=R.slice(0,E),this[P]-=E),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(E,R,D){return typeof E=="function"&&(D=E,E=null),typeof R=="function"&&(D=R,R="utf8"),E&&this.write(E,R),D&&this.once("end",D),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[F](){this[x]||(this[C]=!1,this[w]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[w]=!1,this[C]=!0}get destroyed(){return this[x]}get flowing(){return this[w]}get paused(){return this[C]}[T](E){this[S]?this[P]+=1:this[P]+=E.length,this.buffer.push(E)}[M](){return this.buffer.length&&(this[S]?this[P]-=1:this[P]-=this.buffer[0].length),this.buffer.shift()}[d](E){do;while(this[m](this[M]()));!E&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,R){if(this[x])return;let D=this[u];return R=R||{},E===r.stdout||E===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,D?R.end&&E.end():(this.pipes.push(R.proxyErrors?new g(this,E,R):new q(this,E,R)),this[V]?Q(()=>this[F]()):this[F]()),E}unpipe(E){let R=this.pipes.find(D=>D.dest===E);R&&(this.pipes.splice(this.pipes.indexOf(R),1),R.unpipe())}addListener(E,R){return this.on(E,R)}on(E,R){let D=super.on(E,R);return E==="data"&&!this.pipes.length&&!this.flowing?this[F]():E==="readable"&&this[P]!==0?super.emit("readable"):B(E)&&this[u]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[l]&&(this[V]?Q(()=>R.call(this,this[l])):R.call(this,this[l])),D}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[x]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,R,...D){if(E!=="error"&&E!=="close"&&E!==x&&this[x])return;if(E==="data")return R?this[V]?Q(()=>this[H](R)):this[H](R):!1;if(E==="end")return this[W]();if(E==="close"){if(this[h]=!0,!this[u]&&!this[x])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(E==="error"){this[l]=R;let $=super.emit("error",R);return this[a](),$}else if(E==="resume"){let $=super.emit("resume");return this[a](),$}else if(E==="finish"||E==="prefinish"){let $=super.emit(E);return this.removeAllListeners(E),$}let U=super.emit(E,R,...D);return this[a](),U}[H](E){for(let D of this.pipes)D.dest.write(E)===!1&&this.pause();let R=super.emit("data",E);return this[a](),R}[W](){this[u]||(this[u]=!0,this.readable=!1,this[V]?Q(()=>this[N]()):this[N]())}[N](){if(this[p]){let R=this[p].end();if(R){for(let D of this.pipes)D.dest.write(R);super.emit("data",R)}}for(let R of this.pipes)R.end();let E=super.emit("end");return this.removeAllListeners("end"),E}collect(){let E=[];this[S]||(E.dataLength=0);let R=this.promise();return this.on("data",D=>{E.push(D),this[S]||(E.dataLength+=D.length)}),R.then(()=>E)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,R)=>{this.on(x,()=>R(new Error("stream destroyed"))),this.on("error",D=>R(D)),this.on("end",()=>E())})}[j](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let R=null,D=null,U=ue=>{this.removeListener("data",$),this.removeListener("end",ie),D(ue)},$=ue=>{this.removeListener("error",U),this.removeListener("end",ie),this.pause(),R({value:ue,done:!!this[o]})},ie=()=>{this.removeListener("error",U),this.removeListener("data",$),R({done:!0})},Y=()=>U(new Error("stream destroyed"));return new Promise((ue,J)=>{D=J,R=ue,this.once(x,Y),this.once("error",U),this.once("end",ie),this.once("data",$)})}}}[L](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[x]?(E?this.emit("error",E):this.emit(x),this):(this[x]=!0,this.buffer.length=0,this[P]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(x),this)}static isStream(E){return!!E&&(E instanceof Q1||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),eC=le(t=>{"use strict";ee();var e=fe("assert"),r=fe("buffer").Buffer,i=fe("zlib"),n=t.constants=oq(),s=X1(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(B){super("zlib: "+B.message),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),w=Symbol("strategy"),C=Symbol("ended"),F=Symbol("_defaultFullFlush"),P=class extends s{constructor(B,G){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");super(B),this[y]=!1,this[C]=!1,this[c]=B,this[l]=B.flush,this[h]=B.finishFlush;try{this[d]=new i[G](B)}catch(Z){throw new u(Z)}this[m]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[m](new u(Z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(B){this.ended||(typeof B!="number"&&(B=this[f]),this.write(Object.assign(r.alloc(0),{[l]:B})))}end(B,G,Z){return B&&this.write(B,G),this.flush(this[h]),this[C]=!0,super.end(null,null,Z)}get ended(){return this[C]}write(B,G,Z){if(typeof G=="function"&&(Z=G,G="utf8"),typeof B=="string"&&(B=r.from(B,G)),this[y])return;e(this[d],"zlib binding closed");let q=this[d]._handle,g=q.close;q.close=()=>{};let _=this[d].close;this[d].close=()=>{},r.concat=D=>D;let E;try{let D=typeof B[l]=="number"?B[l]:this[l];E=this[d]._processChunk(B,D),r.concat=o}catch(D){r.concat=o,this[m](new u(D))}finally{this[d]&&(this[d]._handle=q,q.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",D=>this[m](new u(D)));let R;if(E)if(Array.isArray(E)&&E.length>0){R=this[a](r.from(E[0]));for(let D=1;D<E.length;D++)R=this[a](E[D])}else R=this[a](r.from(E));return Z&&Z(),R}[a](B){return super.write(B)}},T=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.Z_NO_FLUSH,B.finishFlush=B.finishFlush||n.Z_FINISH,super(B,G),this[f]=n.Z_FULL_FLUSH,this[p]=B.level,this[w]=B.strategy}params(B,G){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==B||this[w]!==G){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let Z=this[d].flush;this[d].flush=(q,g)=>{this.flush(q),g()};try{this[d].params(B,G)}finally{this[d].flush=Z}this[d]&&(this[p]=B,this[w]=G)}}}},M=class extends T{constructor(B){super(B,"Deflate")}},S=class extends T{constructor(B){super(B,"Inflate")}},x=Symbol("_portable"),H=class extends T{constructor(B){super(B,"Gzip"),this[x]=B&&!!B.portable}[a](B){return this[x]?(this[x]=!1,B[9]=255,super[a](B)):super[a](B)}},W=class extends T{constructor(B){super(B,"Gunzip")}},N=class extends T{constructor(B){super(B,"DeflateRaw")}},V=class extends T{constructor(B){super(B,"InflateRaw")}},Q=class extends T{constructor(B){super(B,"Unzip")}},te=class extends P{constructor(B,G){B=B||{},B.flush=B.flush||n.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||n.BROTLI_OPERATION_FINISH,super(B,G),this[f]=n.BROTLI_OPERATION_FLUSH}},j=class extends te{constructor(B){super(B,"BrotliCompress")}},L=class extends te{constructor(B){super(B,"BrotliDecompress")}};t.Deflate=M,t.Inflate=S,t.Gzip=H,t.Gunzip=W,t.DeflateRaw=N,t.InflateRaw=V,t.Unzip=Q,typeof i.BrotliCompress=="function"?(t.BrotliCompress=j,t.BrotliDecompress=L):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),uo=le((t,e)=>{ee();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Hm=le((t,e)=>{"use strict";ee();var r=qm(),i=uo(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),tC=le(t=>{"use strict";ee(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),aq=le((t,e)=>{"use strict";ee();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),co=le((t,e)=>{"use strict";ee();var r=tC(),i=fe("path").posix,n=aq(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,x,H,W){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(S)?this.decode(S,x||0,H,W):S&&this.set(S)}decode(S,x,H,W){if(x||(x=0),!S||!(S.length>=x+512))throw new Error("need 512 bytes for header");if(this.path=c(S,x,100),this.mode=f(S,x+100,8),this.uid=f(S,x+108,8),this.gid=f(S,x+116,8),this.size=f(S,x+124,12),this.mtime=l(S,x+136,12),this.cksum=f(S,x+148,12),this[s](H),this[s](W,!0),this[o]=c(S,x+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(S,x+157,100),S.slice(x+257,x+265).toString()==="ustar\x0000")if(this.uname=c(S,x+265,32),this.gname=c(S,x+297,32),this.devmaj=f(S,x+329,8),this.devmin=f(S,x+337,8),S[x+475]!==0){let V=c(S,x+345,155);this.path=V+"/"+this.path}else{let V=c(S,x+345,130);V&&(this.path=V+"/"+this.path),this.atime=l(S,x+476,12),this.ctime=l(S,x+488,12)}let N=8*32;for(let V=x;V<x+148;V++)N+=S[V];for(let V=x+156;V<x+512;V++)N+=S[V];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](S,x){for(let H in S)S[H]!==null&&S[H]!==void 0&&!(x&&H==="path")&&(this[H]=S[H])}encode(S,x){if(S||(S=this.block=Buffer.alloc(512),x=0),x||(x=0),!(S.length>=x+512))throw new Error("need 512 bytes for header");let H=this.ctime||this.atime?130:155,W=u(this.path||"",H),N=W[0],V=W[1];this.needPax=W[2],this.needPax=M(S,x,100,N)||this.needPax,this.needPax=p(S,x+100,8,this.mode)||this.needPax,this.needPax=p(S,x+108,8,this.uid)||this.needPax,this.needPax=p(S,x+116,8,this.gid)||this.needPax,this.needPax=p(S,x+124,12,this.size)||this.needPax,this.needPax=P(S,x+136,12,this.mtime)||this.needPax,S[x+156]=this[o].charCodeAt(0),this.needPax=M(S,x+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",x+257,8),this.needPax=M(S,x+265,32,this.uname)||this.needPax,this.needPax=M(S,x+297,32,this.gname)||this.needPax,this.needPax=p(S,x+329,8,this.devmaj)||this.needPax,this.needPax=p(S,x+337,8,this.devmin)||this.needPax,this.needPax=M(S,x+345,H,V)||this.needPax,S[x+475]!==0?this.needPax=M(S,x+345,155,V)||this.needPax:(this.needPax=M(S,x+345,130,V)||this.needPax,this.needPax=P(S,x+476,12,this.atime)||this.needPax,this.needPax=P(S,x+488,12,this.ctime)||this.needPax);let Q=8*32;for(let te=x;te<x+148;te++)Q+=S[te];for(let te=x+156;te<x+512;te++)Q+=S[te];return this.cksum=Q,p(S,x+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let x in S)S[x]!==null&&S[x]!==void 0&&(this[x]=S[x])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},u=(S,x)=>{let H=S,W="",N,V=i.parse(S).root||".";if(Buffer.byteLength(H)<100)N=[H,W,!1];else{W=i.dirname(H),H=i.basename(H);do Buffer.byteLength(H)<=100&&Buffer.byteLength(W)<=x?N=[H,W,!1]:Buffer.byteLength(H)>100&&Buffer.byteLength(W)<=x?N=[H.slice(0,100-1),W,!0]:(H=i.join(i.basename(W),H),W=i.dirname(W));while(W!==V&&!N);N||(N=[S.slice(0,100-1),"",!0])}return N},c=(S,x,H)=>S.slice(x,x+H).toString("utf8").replace(/\0.*/,""),l=(S,x,H)=>h(f(S,x,H)),h=S=>S===null?null:new Date(S*1e3),f=(S,x,H)=>S[x]&128?n.parse(S.slice(x,x+H)):m(S,x,H),d=S=>isNaN(S)?null:S,m=(S,x,H)=>d(parseInt(S.slice(x,x+H).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(S,x,H,W)=>W===null?!1:W>y[H]||W<0?(n.encode(W,S.slice(x,x+H)),!0):(w(S,x,H,W),!1),w=(S,x,H,W)=>S.write(C(W,H),x,H,"ascii"),C=(S,x)=>F(Math.floor(S).toString(8),x),F=(S,x)=>(S.length===x-1?S:new Array(x-S.length-1).join("0")+S+" ")+"\0",P=(S,x,H,W)=>W===null?!1:p(S,x,H,W.getTime()/1e3),T=new Array(156).join("\0"),M=(S,x,H,W)=>W===null?!1:(S.write(W+T,x,H,"utf8"),W.length!==Buffer.byteLength(W)||W.length>H);e.exports=a}),Um=le((t,e)=>{"use strict";ee();var r=co(),i=fe("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
55
55
  `,h=Buffer.byteLength(l),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+l}};n.parse=(u,c,l)=>new n(s(o(u),c),l);var s=(u,c)=>c?Object.keys(u).reduce((l,h)=>(l[h]=u[h],l),c):u,o=u=>u.replace(/\n$/,"").split(`
56
- `).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),lo=le((t,e)=>{Q(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),$m=le((t,e)=>{"use strict";Q(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),rC=le((t,e)=>{"use strict";Q();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),iC=le((t,e)=>{Q();var{isAbsolute:r,parse:i}=fe("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),uq=le((t,e)=>{"use strict";Q(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),nC=le((t,e)=>{"use strict";Q();var r=qm(),i=Um(),n=co(),s=fe("fs"),o=fe("path"),a=uo(),u=lo(),c=(_,E)=>E?(_=a(_).replace(/^\.(\/|$)/,""),u(E)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),w=Symbol("read"),C=Symbol("lstat"),F=Symbol("onlstat"),P=Symbol("onread"),T=Symbol("onreadlink"),M=Symbol("openfile"),S=Symbol("onopenfile"),D=Symbol("close"),H=Symbol("mode"),z=Symbol("awaitDrain"),N=Symbol("ondrain"),K=Symbol("prefix"),te=Symbol("hadError"),ne=$m(),q=rC(),L=iC(),B=uq(),G=ne(class extends r{constructor(_,E){if(E=E||{},super(E),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!E.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=E.maxReadSize||l,this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.preservePaths=!!E.preservePaths,this.cwd=a(E.cwd||process.cwd()),this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.prefix=E.prefix?a(E.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,U]=L(this.path);x&&(this.path=U,R=x)}this.win32=!!E.win32||process.platform==="win32",this.win32&&(this.path=q.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(E.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[F](this.statCache.get(this.absolute)):this[C]()}emit(_,...E){return _==="error"&&(this[te]=!0),super.emit(_,...E)}[C](){s.lstat(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[F](E)})}[F](_){this.statCache.set(this.absolute,_),this.stat=_,_.isFile()||(_.size=0),this.type=g(_),this.emit("stat",_),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[H](_){return B(_,this.type==="Directory",this.portable)}[K](_){return c(_,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,mode:this[H](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[T](E)})}[T](_){this.linkpath=a(_),this[p](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let E=this.linkCache.get(_);if(E.indexOf(this.cwd)===0)return this[y](E)}this.linkCache.set(_,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,E)=>{if(_)return this.emit("error",_);this[S](E)})}[S](_){if(this.fd=_,this[te])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let E=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(E),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:_,buf:E,offset:R,length:x,pos:U}=this;s.read(_,E,R,x,U,($,re)=>{if($)return this[D](()=>this.emit("error",$));this[P](re)})}[D](_){s.close(this.fd,_)}[P](_){if(_<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_===this.remain)for(let R=_;R<this.length&&_<this.blockRemain;R++)this.buf[R+this.offset]=0,_++,this.remain++;let E=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(E)?this[N]():this[z](()=>this[N]())}[z](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let E=new Error("writing more data than expected");return E.path=this.absolute,this.emit("error",E)}return this.remain-=_.length,this.blockRemain-=_.length,this.pos+=_.length,this.offset+=_.length,super.write(_)}[N](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[D](_=>_?this.emit("error",_):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[w]()}}),Z=class extends G{[C](){this[F](s.lstatSync(this.absolute))}[m](){this[T](s.readlinkSync(this.absolute))}[M](){this[S](s.openSync(this.absolute,"r"))}[w](){let _=!0;try{let{fd:E,buf:R,offset:x,length:U,pos:$}=this,re=s.readSync(E,R,x,U,$);this[P](re),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[z](_){_()}[D](_){s.closeSync(this.fd),_()}},j=ne(class extends r{constructor(_,E){E=E||{},super(E),this.preservePaths=!!E.preservePaths,this.portable=!!E.portable,this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=E.prefix||null,this.path=a(_.path),this.mode=this[H](_.mode),this.uid=this.portable?null:_.uid,this.gid=this.portable?null:_.gid,this.uname=this.portable?null:_.uname,this.gname=this.portable?null:_.gname,this.size=_.size,this.mtime=this.noMtime?null:E.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,U]=L(this.path);x&&(this.path=U,R=x)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),_.pipe(this)}[K](_){return c(_,this.prefix)}[H](_){return B(_,this.type==="Directory",this.portable)}write(_){let E=_.length;if(E>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=E,super.write(_)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=Z,G.Tar=j;var g=_=>_.isFile()?"File":_.isDirectory()?"Directory":_.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=G}),cq=le((t,e)=>{"use strict";Q(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),sC=le((t,e)=>{"use strict";Q(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{cq()(r)}catch{}}),Gm=le((t,e)=>{"use strict";Q();var r=class{constructor(g,_){this.path=g||"./",this.absolute=_,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=qm(),n=eC(),s=Hm(),o=nC(),a=o.Sync,u=o.Tar,c=sC(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),w=Symbol("processJob"),C=Symbol("jobs"),F=Symbol("jobDone"),P=Symbol("addFSEntry"),T=Symbol("addTarEntry"),M=Symbol("stat"),S=Symbol("readdir"),D=Symbol("onreaddir"),H=Symbol("pipe"),z=Symbol("entry"),N=Symbol("entryOpt"),K=Symbol("writeEntryClass"),te=Symbol("write"),ne=Symbol("ondrain"),q=fe("fs"),L=fe("path"),B=$m(),G=uo(),Z=B(class extends i{constructor(g){super(g),g=g||Object.create(null),this.opt=g,this.file=g.file||"",this.cwd=g.cwd||process.cwd(),this.maxReadSize=g.maxReadSize,this.preservePaths=!!g.preservePaths,this.strict=!!g.strict,this.noPax=!!g.noPax,this.prefix=G(g.prefix||""),this.linkCache=g.linkCache||new Map,this.statCache=g.statCache||new Map,this.readdirCache=g.readdirCache||new Map,this[K]=o,typeof g.onwarn=="function"&&this.on("warn",g.onwarn),this.portable=!!g.portable,this.zip=null,g.gzip?(typeof g.gzip!="object"&&(g.gzip={}),this.portable&&(g.gzip.portable=!0),this.zip=new n.Gzip(g.gzip),this.zip.on("data",_=>super.write(_)),this.zip.on("end",_=>super.end()),this.zip.on("drain",_=>this[ne]()),this.on("resume",_=>this.zip.resume())):this.on("drain",this[ne]),this.noDirRecurse=!!g.noDirRecurse,this.follow=!!g.follow,this.noMtime=!!g.noMtime,this.mtime=g.mtime||null,this.filter=typeof g.filter=="function"?g.filter:_=>!0,this[d]=new c,this[C]=0,this.jobs=+g.jobs||4,this[p]=!1,this[f]=!1}[te](g){return super.write(g)}add(g){return this.write(g),this}end(g){return g&&this.write(g),this[f]=!0,this[y](),this}write(g){if(this[f])throw new Error("write after end");return g instanceof s?this[T](g):this[P](g),this.flowing}[T](g){let _=G(L.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let E=new r(g.path,_,!1);E.entry=new u(g,this[N](E)),E.entry.on("end",R=>this[F](E)),this[C]+=1,this[d].push(E)}this[y]()}[P](g){let _=G(L.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[C]+=1;let _=this.follow?"stat":"lstat";q[_](g.absolute,(E,R)=>{g.pending=!1,this[C]-=1,E?this.emit("error",E):this[h](g,R)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[S](g){g.pending=!0,this[C]+=1,q.readdir(g.absolute,(_,E)=>{if(g.pending=!1,this[C]-=1,_)return this.emit("error",_);this[D](g,E)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let g=this[d].head;g!==null&&this[C]<this.jobs;g=g.next)if(this[w](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[F](g){this[d].shift(),this[C]-=1,this[y]()}[w](g){if(!g.pending){if(g.entry){g===this[m]&&!g.piped&&this[H](g);return}if(g.stat||(this.statCache.has(g.absolute)?this[h](g,this.statCache.get(g.absolute)):this[M](g)),!!g.stat&&!g.ignore&&!(!this.noDirRecurse&&g.stat.isDirectory()&&!g.readdir&&(this.readdirCache.has(g.absolute)?this[D](g,this.readdirCache.get(g.absolute)):this[S](g),!g.readdir))){if(g.entry=this[z](g),!g.entry){g.ignore=!0;return}g===this[m]&&!g.piped&&this[H](g)}}}[N](g){return{onwarn:(_,E,R)=>this.warn(_,E,R),noPax:this.noPax,cwd:this.cwd,absolute:g.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[z](g){this[C]+=1;try{return new this[K](g.path,this[N](g)).on("end",()=>this[F](g)).on("error",_=>this.emit("error",_))}catch(_){this.emit("error",_)}}[ne](){this[m]&&this[m].entry&&this[m].entry.resume()}[H](g){g.piped=!0,g.readdir&&g.readdir.forEach(R=>{let x=g.path,U=x==="./"?"":x.replace(/\/*$/,"/");this[P](U+R)});let _=g.entry,E=this.zip;E?_.on("data",R=>{E.write(R)||_.pause()}):_.on("data",R=>{super.write(R)||_.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),j=class extends Z{constructor(g){super(g),this[K]=a}pause(){}resume(){}[M](g){let _=this.follow?"statSync":"lstatSync";this[h](g,q[_](g.absolute))}[S](g,_){this[D](g,q.readdirSync(g.absolute))}[H](g){let _=g.entry,E=this.zip;g.readdir&&g.readdir.forEach(R=>{let x=g.path,U=x==="./"?"":x.replace(/\/*$/,"/");this[P](U+R)}),E?_.on("data",R=>{E.write(R)}):_.on("data",R=>{super[te](R)})}};Z.Sync=j,e.exports=Z}),ho=le(t=>{"use strict";Q();var e=X1(),r=fe("events").EventEmitter,i=fe("fs"),n=i.writev;if(!n){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;n=(E,R,x,U)=>{let $=(V,ue)=>U(V,ue,R),re=new _;re.oncomplete=$,g.writeBuffers(E,R,x,re)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),w=Symbol("_onopen"),C=Symbol("_onread"),F=Symbol("_onwrite"),P=Symbol("_open"),T=Symbol("_path"),M=Symbol("_pos"),S=Symbol("_queue"),D=Symbol("_read"),H=Symbol("_readSize"),z=Symbol("_reading"),N=Symbol("_remain"),K=Symbol("_size"),te=Symbol("_write"),ne=Symbol("_writing"),q=Symbol("_defaultFlag"),L=Symbol("_errored"),B=class extends e{constructor(g,_){if(_=_||{},super(_),this.readable=!0,this.writable=!1,typeof g!="string")throw new TypeError("path must be a string");this[L]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[T]=g,this[H]=_.readSize||16*1024*1024,this[z]=!1,this[K]=typeof _.size=="number"?_.size:1/0,this[N]=this[K],this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0,typeof this[u]=="number"?this[D]():this[P]()}get fd(){return this[u]}get path(){return this[T]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[P](){i.open(this[T],"r",(g,_)=>this[w](g,_))}[w](g,_){g?this[p](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[H],this[N]))}[D](){if(!this[z]){this[z]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[C](null,0,g));i.read(this[u],g,0,g.length,null,(_,E,R)=>this[C](_,E,R))}}[C](g,_,E){this[z]=!1,g?this[p](g):this[f](_,E)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[p](g){this[z]=!0,this[o](),this.emit("error",g)}[f](g,_){let E=!1;return this[N]-=g,g>0&&(E=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(E=!1,this[o](),super.end()),E}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[L]?void 0:(this[L]=!0,super.emit(g,_));default:return super.emit(g,_)}}},G=class extends B{[P](){let g=!0;try{this[w](null,i.openSync(this[T],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[z]){this[z]=!0;do{let _=this[d](),E=_.length===0?0:i.readSync(this[u],_,0,_.length,null);if(!this[f](E,_))break}while(!0);this[z]=!1}g=!1}finally{g&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[L]=!1,this[ne]=!1,this[a]=!1,this[y]=!1,this[S]=[],this[T]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[m]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let E=this[M]!==null?"r+":"w";this[q]=_.flags===void 0,this[l]=this[q]?E:_.flags,this[u]===null&&this[P]()}emit(g,_){if(g==="error"){if(this[L])return;this[L]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[T]}[p](g){this[o](),this[ne]=!0,this.emit("error",g)}[P](){i.open(this[T],this[l],this[m],(g,_)=>this[w](g,_))}[w](g,_){this[q]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[P]()):g?this[p](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[ne]&&!this[S].length&&typeof this[u]=="number"&&this[F](null,0),this}write(g,_){return typeof g=="string"&&(g=Buffer.from(g,_)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[ne]||this[S].length?(this[S].push(g),this[y]=!0,!1):(this[ne]=!0,this[te](g),!0)}[te](g){i.write(this[u],g,0,g.length,this[M],(_,E)=>this[F](_,E))}[F](g,_){g?this[p](g):(this[M]!==null&&(this[M]+=_),this[S].length?this[h]():(this[ne]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[F](null,0);else if(this[S].length===1)this[te](this[S].pop());else{let g=this[S];this[S]=[],n(this[u],g,this[M],(_,E)=>this[F](_,E))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},j=class extends Z{[P](){let g;if(this[q]&&this[l]==="r+")try{g=i.openSync(this[T],this[l],this[m])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[P]();throw _}else g=i.openSync(this[T],this[l],this[m]);this[w](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}[te](g){let _=!0;try{this[F](null,i.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=B,t.ReadStreamSync=G,t.WriteStream=Z,t.WriteStreamSync=j}),zm=le((t,e)=>{"use strict";Q();var r=$m(),i=co(),n=fe("events"),s=sC(),o=1024*1024,a=Hm(),u=Um(),c=eC(),{nextTick:l}=fe("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),w=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),F=Symbol("meta"),P=Symbol("emitMeta"),T=Symbol("buffer"),M=Symbol("queue"),S=Symbol("ended"),D=Symbol("emittedEnd"),H=Symbol("emit"),z=Symbol("unzip"),N=Symbol("consumeChunk"),K=Symbol("consumeChunkSub"),te=Symbol("consumeBody"),ne=Symbol("consumeMeta"),q=Symbol("consumeHeader"),L=Symbol("consuming"),B=Symbol("bufferConcat"),G=Symbol("maybeEnd"),Z=Symbol("writing"),j=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),E=Symbol("sawNullBlock"),R=Symbol("sawEOF"),x=Symbol("closeStream"),U=$=>!0;e.exports=r(class extends n{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,re=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,re=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:U,this.writable=!0,this.readable=!1,this[M]=new s,this[T]=null,this[m]=null,this[d]=null,this[f]="begin",this[F]="",this[w]=null,this[C]=null,this[S]=!1,this[z]=null,this[j]=!1,this[E]=!1,this[R]=!1,this.on("end",()=>this[x]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[q]($,re){this[_]===null&&(this[_]=!1);let V;try{V=new i($,re,this[w],this[C])}catch(ue){return this.warn("TAR_ENTRY_INVALID",ue)}if(V.nullBlock)this[E]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[H]("eof")):(this[E]=!0,this[H]("nullBlock"));else if(this[E]=!1,!V.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:V});else if(!V.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:V});else{let ue=V.type;if(/^(Symbolic)?Link$/.test(ue)&&!V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:V});else if(!/^(Symbolic)?Link$/.test(ue)&&V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:V});else{let J=this[d]=new a(V,this[w],this[C]);if(!this[_])if(J.remain){let v=()=>{J.invalid||(this[_]=!0)};J.on("end",v)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[H]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[F]="",J.on("data",v=>this[F]+=v),this[f]="meta"):(this[w]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[H]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[m]?this[M].push(J):(this[M].push(J),this[y]())))}}}[x](){l(()=>this.emit("close"))}[p]($){let re=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[m]=$,this.emit("entry",$),$.emittedEnd||($.on("end",V=>this[y]()),re=!1)):(this[m]=null,re=!1),re}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let $=this[m];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",re=>this.emit("drain"))}}[te]($,re){let V=this[d],ue=V.blockRemain,J=ue>=$.length&&re===0?$:$.slice(re,re+ue);return V.write(J),V.blockRemain||(this[f]="header",this[d]=null,V.end()),J.length}[ne]($,re){let V=this[d],ue=this[te]($,re);return this[d]||this[P](V),ue}[H]($,re,V){!this[M].length&&!this[m]?this.emit($,re,V):this[M].push([$,re,V])}[P]($){switch(this[H]("meta",this[F]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[F],this[w],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[F],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null),this[w].path=this[F].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null),this[w].linkpath=this[F].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+$.type)}}abort($){this[j]=!0,this.emit("abort",$),this.warn("TAR_ABORT",$,{recoverable:!1})}write($){if(this[j])return;if(this[z]===null&&$){if(this[T]&&($=Buffer.concat([this[T],$]),this[T]=null),$.length<h.length)return this[T]=$,!0;for(let V=0;this[z]===null&&V<h.length;V++)$[V]!==h[V]&&(this[z]=!1);if(this[z]===null){let V=this[S];this[S]=!1,this[z]=new c.Unzip,this[z].on("data",J=>this[N](J)),this[z].on("error",J=>this.abort(J)),this[z].on("end",J=>{this[S]=!0,this[N]()}),this[Z]=!0;let ue=this[z][V?"end":"write"]($);return this[Z]=!1,ue}}this[Z]=!0,this[z]?this[z].write($):this[N]($),this[Z]=!1;let re=this[M].length?!1:this[m]?this[m].flowing:!0;return!re&&!this[M].length&&this[m].once("drain",V=>this.emit("drain")),re}[B]($){$&&!this[j]&&(this[T]=this[T]?Buffer.concat([this[T],$]):$)}[G](){if(this[S]&&!this[D]&&!this[j]&&!this[L]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let re=this[T]?this[T].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${re} available)`,{entry:$}),this[T]&&$.write(this[T]),$.end()}this[H](g)}}[N]($){if(this[L])this[B]($);else if(!$&&!this[T])this[G]();else{if(this[L]=!0,this[T]){this[B]($);let re=this[T];this[T]=null,this[K](re)}else this[K]($);for(;this[T]&&this[T].length>=512&&!this[j]&&!this[R];){let re=this[T];this[T]=null,this[K](re)}this[L]=!1}(!this[T]||this[S])&&this[G]()}[K]($){let re=0,V=$.length;for(;re+512<=V&&!this[j]&&!this[R];)switch(this[f]){case"begin":case"header":this[q]($,re),re+=512;break;case"ignore":case"body":re+=this[te]($,re);break;case"meta":re+=this[ne]($,re);break;default:throw new Error("invalid state: "+this[f])}re<V&&(this[T]?this[T]=Buffer.concat([$.slice(re),this[T]]):this[T]=$.slice(re))}end($){this[j]||(this[z]?this[z].end($):(this[S]=!0,this.write($)))}})}),Wm=le((t,e)=>{"use strict";Q();var r=ao(),i=zm(),n=fe("fs"),s=ho(),o=fe("path"),a=lo();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,w;try{let C=n.statSync(y),F=d.maxReadSize||16*1024*1024;if(C.size<F)m.end(n.readFileSync(y));else{let P=0,T=Buffer.allocUnsafe(F);for(w=n.openSync(y,"r");P<C.size;){let M=n.readSync(w,T,0,F,P);P+=M,m.write(T.slice(0,M))}m.end()}p=!1}finally{if(p&&w)try{n.closeSync(w)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("end",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),lq=le((t,e)=>{"use strict";Q();var r=ao(),i=Gm(),n=ho(),s=Wm(),o=fe("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),w=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(w);let C=new Promise((F,P)=>{w.on("error",P),w.on("close",F),p.on("error",P)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),oC=le((t,e)=>{"use strict";Q();var r=ao(),i=Gm(),n=fe("fs"),s=ho(),o=Wm(),a=fe("path"),u=co();e.exports=(m,y,p)=>{let w=r(m);if(!w.file)throw new TypeError("file is required");if(w.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),w.sync?c(w,y):h(w,y,p)};var c=(m,y)=>{let p=new i.Sync(m),w=!0,C,F;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let P=n.fstatSync(C),T=Buffer.alloc(512);e:for(F=0;F<P.size;F+=512){for(let D=0,H=0;D<512;D+=H){if(H=n.readSync(C,T,D,T.length-D,F+D),F===0&&T[0]===31&&T[1]===139)throw new Error("cannot append to compressed archives");if(!H)break e}let M=new u(T);if(!M.cksumValid)break;let S=512*Math.ceil(M.size/512);if(F+S+512>P.size)break;F+=S,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}w=!1,l(m,p,F,C,y)}finally{if(w)try{n.closeSync(C)}catch{}}},l=(m,y,p,w,C)=>{let F=new s.WriteStreamSync(m.file,{fd:w,start:p});y.pipe(F),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let w=new i(m),C=(P,T,M)=>{let S=(K,te)=>{K?n.close(P,ne=>M(K)):M(null,te)},D=0;if(T===0)return S(null,0);let H=0,z=Buffer.alloc(512),N=(K,te)=>{if(K)return S(K);if(H+=te,H<512&&te)return n.read(P,z,H,z.length-H,D+H,N);if(D===0&&z[0]===31&&z[1]===139)return S(new Error("cannot append to compressed archives"));if(H<512)return S(null,D);let ne=new u(z);if(!ne.cksumValid)return S(null,D);let q=512*Math.ceil(ne.size/512);if(D+q+512>T||(D+=q+512,D>=T))return S(null,D);m.mtimeCache&&m.mtimeCache.set(ne.path,ne.mtime),H=0,n.read(P,z,0,512,D,N)};n.read(P,z,0,512,D,N)},F=new Promise((P,T)=>{w.on("error",T);let M="r+",S=(D,H)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,S);if(D)return T(D);n.fstat(H,(z,N)=>{if(z)return n.close(H,()=>T(z));C(H,N.size,(K,te)=>{if(K)return T(K);let ne=new s.WriteStream(m.file,{fd:H,start:te});w.pipe(ne),ne.on("error",T),ne.on("close",P),d(w,y)})})};n.open(m.file,M,S)});return p?F.then(p,p):F},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:w=>m.add(w)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:w=>m.add(w)}).then(w=>d(m,y));m.add(p)}m.end()}}),hq=le((t,e)=>{"use strict";Q();var r=ao(),i=oC();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),fq=le((t,e)=>{Q();var{promisify:r}=fe("util"),i=fe("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),dq=le((t,e)=>{Q();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=fe("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),pq=le((t,e)=>{Q();var{dirname:r}=fe("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),aC=le((t,e)=>{Q();var{dirname:r}=fe("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),mq=le((t,e)=>{Q();var{dirname:r}=fe("path"),{findMade:i,findMadeSync:n}=pq(),{mkdirpManual:s,mkdirpManualSync:o}=aC(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),yq=le((t,e)=>{Q();var r=fe("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),gq=le((t,e)=>{Q();var r=fq(),i=dq(),{mkdirpNative:n,mkdirpNativeSync:s}=mq(),{mkdirpManual:o,mkdirpManualSync:a}=aC(),{useNative:u,useNativeSync:c}=yq(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),_q=le((t,e)=>{"use strict";Q();var r=fe("fs"),i=fe("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(F,P,T)=>{try{return r[s](F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},u=(F,P,T)=>{try{return r.chownSync(F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(F,P,T,M)=>S=>{!S||S.code!=="EISDIR"?M(S):r.chown(F,P,T,M)}:(F,P,T,M)=>M,l=o?(F,P,T)=>{try{return a(F,P,T)}catch(M){if(M.code!=="EISDIR")throw M;u(F,P,T)}}:(F,P,T)=>a(F,P,T),h=process.version,f=(F,P,T)=>r.readdir(F,P,T),d=(F,P)=>r.readdirSync(F,P);/^v4\./.test(h)&&(f=(F,P,T)=>r.readdir(F,T));var m=(F,P,T,M)=>{r[n](F,P,T,c(F,P,T,S=>{M(S&&S.code!=="ENOENT"?S:null)}))},y=(F,P,T,M,S)=>{if(typeof P=="string")return r.lstat(i.resolve(F,P),(D,H)=>{if(D)return S(D.code!=="ENOENT"?D:null);H.name=P,y(F,H,T,M,S)});if(P.isDirectory())p(i.resolve(F,P.name),T,M,D=>{if(D)return S(D);let H=i.resolve(F,P.name);m(H,T,M,S)});else{let D=i.resolve(F,P.name);m(D,T,M,S)}},p=(F,P,T,M)=>{f(F,{withFileTypes:!0},(S,D)=>{if(S){if(S.code==="ENOENT")return M();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return M(S)}if(S||!D.length)return m(F,P,T,M);let H=D.length,z=null,N=K=>{if(!z){if(K)return M(z=K);if(--H===0)return m(F,P,T,M)}};D.forEach(K=>y(F,K,P,T,N))})},w=(F,P,T,M)=>{if(typeof P=="string")try{let S=r.lstatSync(i.resolve(F,P));S.name=P,P=S}catch(S){if(S.code==="ENOENT")return;throw S}P.isDirectory()&&C(i.resolve(F,P.name),T,M),l(i.resolve(F,P.name),T,M)},C=(F,P,T)=>{let M;try{M=d(F,{withFileTypes:!0})}catch(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return l(F,P,T);throw S}return M&&M.length&&M.forEach(S=>w(F,S,P,T)),l(F,P,T)};e.exports=p,p.sync=C}),bq=le((t,e)=>{"use strict";Q();var r=gq(),i=fe("fs"),n=fe("path"),s=_q(),o=uo(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,w)=>y.set(o(p),w),h=(y,p)=>{i.stat(y,(w,C)=>{(w||!C.isDirectory())&&(w=new u(y,w&&w.code||"ENOTDIR")),p(w)})};e.exports=(y,p,w)=>{y=o(y);let C=p.umask,F=p.mode|448,P=(F&C)!==0,T=p.uid,M=p.gid,S=typeof T=="number"&&typeof M=="number"&&(T!==p.processUid||M!==p.processGid),D=p.preserve,H=p.unlink,z=p.cache,N=o(p.cwd),K=(ne,q)=>{ne?w(ne):(l(z,y,!0),q&&S?s(q,T,M,L=>K(L)):P?i.chmod(y,F,w):w())};if(z&&c(z,y)===!0)return K();if(y===N)return h(y,K);if(D)return r(y,{mode:F}).then(ne=>K(null,ne),K);let te=o(n.relative(N,y)).split("/");f(N,te,F,z,H,N,null,K)};var f=(y,p,w,C,F,P,T,M)=>{if(!p.length)return M(null,T);let S=p.shift(),D=o(n.resolve(y+"/"+S));if(c(C,D))return f(D,p,w,C,F,P,T,M);i.mkdir(D,w,d(D,p,w,C,F,P,T,M))},d=(y,p,w,C,F,P,T,M)=>S=>{S?i.lstat(y,(D,H)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(H.isDirectory())f(y,p,w,C,F,P,T,M);else if(F)i.unlink(y,z=>{if(z)return M(z);i.mkdir(y,w,d(y,p,w,C,F,P,T,M))});else{if(H.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(S)}}):(T=T||y,f(y,p,w,C,F,P,T,M))},m=y=>{let p=!1,w="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){w=C.code}finally{if(!p)throw new u(y,w)}};e.exports.sync=(y,p)=>{y=o(y);let w=p.umask,C=p.mode|448,F=(C&w)!==0,P=p.uid,T=p.gid,M=typeof P=="number"&&typeof T=="number"&&(P!==p.processUid||T!==p.processGid),S=p.preserve,D=p.unlink,H=p.cache,z=o(p.cwd),N=ne=>{l(H,y,!0),ne&&M&&s.sync(ne,P,T),F&&i.chmodSync(y,C)};if(H&&c(H,y)===!0)return N();if(y===z)return m(z),N();if(S)return N(r.sync(y,C));let K=o(n.relative(z,y)).split("/"),te=null;for(let ne=K.shift(),q=z;ne&&(q+="/"+ne);ne=K.shift())if(q=o(n.resolve(q)),!c(H,q))try{i.mkdirSync(q,C),te=te||q,l(H,q,!0)}catch{let L=i.lstatSync(q);if(L.isDirectory()){l(H,q,!0);continue}else if(D){i.unlinkSync(q),i.mkdirSync(q,C),te=te||q,l(H,q,!0);continue}else if(L.isSymbolicLink())return new a(q,q+"/"+K.join("/"))}return N(te)}}),uC=le((t,e)=>{Q();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),Eq=le((t,e)=>{Q();var r=fe("assert"),i=uC(),n=lo(),{join:s}=fe("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((w,C)=>(w.length&&(C=s(w[w.length-1],C)),w.push(C||"/"),w),[]),h=new Set,f=p=>{let w=c.get(p);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(C=>u.get(C)),dirs:[...w.dirs].map(C=>u.get(C))}},d=p=>{let{paths:w,dirs:C}=f(p);return w.every(F=>F[0]===p)&&C.every(F=>F[0]instanceof Set&&F[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:w,dirs:C}=c.get(p),F=new Set;return w.forEach(P=>{let T=u.get(P);r.equal(T[0],p),T.length===1?u.delete(P):(T.shift(),typeof T[0]=="function"?F.add(T[0]):T[0].forEach(M=>F.add(M)))}),C.forEach(P=>{let T=u.get(P);r(T[0]instanceof Set),T[0].size===1&&T.length===1?u.delete(P):T[0].size===1?(T.shift(),F.add(T[0])):T[0].delete(p)}),h.delete(p),F.forEach(P=>m(P)),!0};return{check:d,reserve:(p,w)=>{p=a?["win32 parallelization disabled"]:p.map(F=>i(n(s(F))).toLowerCase());let C=new Set(p.map(F=>l(F)).reduce((F,P)=>F.concat(P)));return c.set(w,{dirs:C,paths:p}),p.forEach(F=>{let P=u.get(F);P?P.push(w):u.set(F,[w])}),C.forEach(F=>{let P=u.get(F);P?P[P.length-1]instanceof Set?P[P.length-1].add(w):P.push(new Set([w])):u.set(F,[new Set([w])])}),m(w)}}}}),wq=le((t,e)=>{Q();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||fe("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),cC=le((t,e)=>{"use strict";Q();var r=fe("assert"),i=zm(),n=fe("fs"),s=ho(),o=fe("path"),a=bq(),u=rC(),c=Eq(),l=iC(),h=uo(),f=lo(),d=uC(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),w=Symbol("pruneCache"),C=Symbol("isReusable"),F=Symbol("makeFs"),P=Symbol("file"),T=Symbol("directory"),M=Symbol("link"),S=Symbol("symlink"),D=Symbol("hardlink"),H=Symbol("unsupported"),z=Symbol("checkPath"),N=Symbol("mkdir"),K=Symbol("onError"),te=Symbol("pending"),ne=Symbol("pend"),q=Symbol("unpend"),L=Symbol("ended"),B=Symbol("maybeClose"),G=Symbol("skip"),Z=Symbol("doChown"),j=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),E=fe("crypto"),R=wq(),x=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,U=x==="win32",$=(b,W)=>{if(!U)return n.unlink(b,W);let ee=b+".DELETE."+E.randomBytes(16).toString("hex");n.rename(b,ee,ae=>{if(ae)return W(ae);n.unlink(ee,W)})},re=b=>{if(!U)return n.unlinkSync(b);let W=b+".DELETE."+E.randomBytes(16).toString("hex");n.renameSync(b,W),n.unlinkSync(W)},V=(b,W,ee)=>b===b>>>0?b:W===W>>>0?W:ee,ue=b=>d(f(h(b))).toLowerCase(),J=(b,W)=>{W=ue(W);for(let ee of b.keys()){let ae=ue(ee);(ae===W||ae.indexOf(W+"/")===0)&&b.delete(ee)}},v=b=>{for(let W of b.keys())b.delete(W)},I=class extends i{constructor(b){if(b||(b={}),b.ondone=W=>{this[L]=!0,this[B]()},super(b),this[_]=!1,this.reservations=c(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[te]=0,this[L]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=b.forceChown===!0,this.win32=!!b.win32||U,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",W=>this[m](W))}warn(b,W,ee={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(ee.recoverable=!1),super.warn(b,W,ee)}[B](){this[L]&&this[te]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[z](b){if(this.strip){let W=h(b.path).split("/");if(W.length<this.strip)return!1;if(b.path=W.slice(this.strip).join("/"),b.type==="Link"){let ee=h(b.linkpath).split("/");if(ee.length>=this.strip)b.linkpath=ee.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let W=h(b.path),ee=W.split("/");if(ee.includes("..")||U&&/^[a-z]:\.\.$/i.test(ee[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:W}),!1;let[ae,he]=l(W);ae&&(b.path=he,this.warn("TAR_ENTRY_INFO",`stripping ${ae} from absolute path`,{entry:b,path:W}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:W}=o.win32.parse(b.absolute);b.absolute=W+u.encode(b.absolute.slice(W.length));let{root:ee}=o.win32.parse(b.path);b.path=ee+u.encode(b.path.slice(ee.length))}return!0}[m](b){if(!this[z](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[H](b)}}[K](b,W){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:W}),this[q](),W.resume())}[N](b,W,ee){a(h(b),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:W,noChmod:this.noChmod},ee)}[Z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[j](b){return V(this.uid,b.uid,this.processUid)}[g](b){return V(this.gid,b.gid,this.processGid)}[P](b,W){let ee=b.mode&4095||this.fmode,ae=new s.WriteStream(b.absolute,{flags:R(b.size),mode:ee,autoClose:!1});ae.on("error",pe=>{ae.fd&&n.close(ae.fd,()=>{}),ae.write=()=>!0,this[K](pe,b),W()});let he=1,me=pe=>{if(pe){ae.fd&&n.close(ae.fd,()=>{}),this[K](pe,b),W();return}--he===0&&n.close(ae.fd,Fe=>{Fe?this[K](Fe,b):this[q](),W()})};ae.on("finish",pe=>{let Fe=b.absolute,Tt=ae.fd;if(b.mtime&&!this.noMtime){he++;let kt=b.atime||new Date,rs=b.mtime;n.futimes(Tt,kt,rs,is=>is?n.utimes(Fe,kt,rs,kc=>me(kc&&is)):me())}if(this[Z](b)){he++;let kt=this[j](b),rs=this[g](b);n.fchown(Tt,kt,rs,is=>is?n.chown(Fe,kt,rs,kc=>me(kc&&is)):me())}me()});let ye=this.transform&&this.transform(b)||b;ye!==b&&(ye.on("error",pe=>{this[K](pe,b),W()}),b.pipe(ye)),ye.pipe(ae)}[T](b,W){let ee=b.mode&4095||this.dmode;this[N](b.absolute,ee,ae=>{if(ae){this[K](ae,b),W();return}let he=1,me=ye=>{--he===0&&(W(),this[q](),b.resume())};b.mtime&&!this.noMtime&&(he++,n.utimes(b.absolute,b.atime||new Date,b.mtime,me)),this[Z](b)&&(he++,n.chown(b.absolute,this[j](b),this[g](b),me)),me()})}[H](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[S](b,W){this[M](b,b.linkpath,"symlink",W)}[D](b,W){let ee=h(o.resolve(this.cwd,b.linkpath));this[M](b,ee,"link",W)}[ne](){this[te]++}[q](){this[te]--,this[B]()}[G](b){this[q](),b.resume()}[C](b,W){return b.type==="File"&&!this.unlink&&W.isFile()&&W.nlink<=1&&!U}[y](b){this[ne]();let W=[b.path];b.linkpath&&W.push(b.linkpath),this.reservations.reserve(W,ee=>this[p](b,ee))}[w](b){b.type==="SymbolicLink"?v(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[p](b,W){this[w](b);let ee=ye=>{this[w](b),W(ye)},ae=()=>{this[N](this.cwd,this.dmode,ye=>{if(ye){this[K](ye,b),ee();return}this[_]=!0,he()})},he=()=>{if(b.absolute!==this.cwd){let ye=h(o.dirname(b.absolute));if(ye!==this.cwd)return this[N](ye,this.dmode,pe=>{if(pe){this[K](pe,b),ee();return}me()})}me()},me=()=>{n.lstat(b.absolute,(ye,pe)=>{if(pe&&(this.keep||this.newer&&pe.mtime>b.mtime)){this[G](b),ee();return}if(ye||this[C](b,pe))return this[F](null,b,ee);if(pe.isDirectory()){if(b.type==="Directory"){let Fe=!this.noChmod&&b.mode&&(pe.mode&4095)!==b.mode,Tt=kt=>this[F](kt,b,ee);return Fe?n.chmod(b.absolute,b.mode,Tt):Tt()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,Fe=>this[F](Fe,b,ee))}if(b.absolute===this.cwd)return this[F](null,b,ee);$(b.absolute,Fe=>this[F](Fe,b,ee))})};this[_]?he():ae()}[F](b,W,ee){if(b){this[K](b,W),ee();return}switch(W.type){case"File":case"OldFile":case"ContiguousFile":return this[P](W,ee);case"Link":return this[D](W,ee);case"SymbolicLink":return this[S](W,ee);case"Directory":case"GNUDumpDir":return this[T](W,ee)}}[M](b,W,ee,ae){n[ee](W,b.absolute,he=>{he?this[K](he,b):(this[q](),b.resume()),ae()})}},A=b=>{try{return[null,b()]}catch(W){return[W,null]}},X=class extends I{[F](b,W){return super[F](b,W,()=>{})}[y](b){if(this[w](b),!this[_]){let he=this[N](this.cwd,this.dmode);if(he)return this[K](he,b);this[_]=!0}if(b.absolute!==this.cwd){let he=h(o.dirname(b.absolute));if(he!==this.cwd){let me=this[N](he,this.dmode);if(me)return this[K](me,b)}}let[W,ee]=A(()=>n.lstatSync(b.absolute));if(ee&&(this.keep||this.newer&&ee.mtime>b.mtime))return this[G](b);if(W||this[C](b,ee))return this[F](null,b);if(ee.isDirectory()){if(b.type==="Directory"){let me=!this.noChmod&&b.mode&&(ee.mode&4095)!==b.mode,[ye]=me?A(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[F](ye,b)}let[he]=A(()=>n.rmdirSync(b.absolute));this[F](he,b)}let[ae]=b.absolute===this.cwd?[]:A(()=>re(b.absolute));this[F](ae,b)}[P](b,W){let ee=b.mode&4095||this.fmode,ae=ye=>{let pe;try{n.closeSync(he)}catch(Fe){pe=Fe}(ye||pe)&&this[K](ye||pe,b),W()},he;try{he=n.openSync(b.absolute,R(b.size),ee)}catch(ye){return ae(ye)}let me=this.transform&&this.transform(b)||b;me!==b&&(me.on("error",ye=>this[K](ye,b)),b.pipe(me)),me.on("data",ye=>{try{n.writeSync(he,ye,0,ye.length)}catch(pe){ae(pe)}}),me.on("end",ye=>{let pe=null;if(b.mtime&&!this.noMtime){let Fe=b.atime||new Date,Tt=b.mtime;try{n.futimesSync(he,Fe,Tt)}catch(kt){try{n.utimesSync(b.absolute,Fe,Tt)}catch{pe=kt}}}if(this[Z](b)){let Fe=this[j](b),Tt=this[g](b);try{n.fchownSync(he,Fe,Tt)}catch(kt){try{n.chownSync(b.absolute,Fe,Tt)}catch{pe=pe||kt}}}ae(pe)})}[T](b,W){let ee=b.mode&4095||this.dmode,ae=this[N](b.absolute,ee);if(ae){this[K](ae,b),W();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{n.chownSync(b.absolute,this[j](b),this[g](b))}catch{}W(),b.resume()}[N](b,W){try{return a.sync(h(b),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:W})}catch(ee){return ee}}[M](b,W,ee,ae){try{n[ee+"Sync"](W,b.absolute),ae(),b.resume()}catch(he){return this[K](he,b)}}};I.Sync=X,e.exports=I}),vq=le((t,e)=>{"use strict";Q();var r=ao(),i=cC(),n=fe("fs"),s=ho(),o=fe("path"),a=lo();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),w=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:w,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("close",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),Sq=le(t=>{"use strict";Q(),t.c=t.create=lq(),t.r=t.replace=oC(),t.t=t.list=Wm(),t.u=t.update=hq(),t.x=t.extract=vq(),t.Pack=Gm(),t.Unpack=cC(),t.Parse=zm(),t.ReadEntry=Hm(),t.WriteEntry=nC(),t.Header=co(),t.Pax=Um(),t.types=tC()}),Dq=le((t,e)=>{Q();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.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))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),xq=le(t=>{Q();var e=Dq();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),Aq=le((t,e)=>{Q(),e.exports=xq()}),Cq=le((t,e)=>{Q();var r=Aq();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),Rq={};Kj(Rq,{bold:()=>Pq,dimmed:()=>Bq,error:()=>jq,grey:()=>Iq,info:()=>Fq,item:()=>Nq,log:()=>Ni,turboBlue:()=>Xn,turboGradient:()=>kq,turboLoader:()=>Oq,turboRed:()=>pC,underline:()=>Lq,warn:()=>Mq,yellow:()=>mC});Q();var fC="#0099F7",dC="#F11712",Tq="#FFFF00",kq=(0,hC.default)(fC,dC),Xn=ni.default.hex(fC),pC=ni.default.hex(dC),mC=ni.default.hex(Tq),Oq=t=>(0,lC.default)({text:t,spinner:{frames:[" ",Xn("> "),Xn(">> "),Xn(">>>")]}}),Fq=(...t)=>{Ni(Xn.bold(">>>"),...t)},Pq=(...t)=>{Ni(ni.default.bold(...t))},Lq=(...t)=>{Ni(ni.default.underline(...t))},Bq=(...t)=>{Ni(ni.default.dim(...t))},Iq=(...t)=>{Ni(ni.default.grey(...t))},Nq=(...t)=>{Ni(Xn.bold(" \u2022"),...t)},Ni=(...t)=>{console.log(...t)},Mq=(...t)=>{console.error(mC.bold(">>>"),...t)},jq=(...t)=>{console.error(pC.bold(">>>"),...t)};Q();async function yc(t,e=[],r){let i={cwd:yC.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,gC.default)(t,e,i);return n.trim()}catch{return}}async function _C(){let[t,e,r,i]=await Promise.all([yc("yarnpkg",["--version"]),yc("npm",["--version"]),yc("pnpm",["--version"]),yc("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}Q();Q();Q();var uG=bc(Qj());Q();Q();function qq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Q();Q();function Nm(t){return Nm=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},Nm(t)}Q();function Hq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uq(t,e){if(e&&(Nm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hq(t)}Q();function _c(t){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_c(t)}Q();Q();function no(t,e){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},no(t,e)}function $q(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&&no(t,e)}Q();Q();function Gq(t){return Function.toString.call(t).indexOf("[native code]")!==-1}Q();Q();function zq(){if(typeof Reflect>"u"||!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 gc(t,e,r){return zq()?gc=Reflect.construct.bind():gc=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&no(u,s.prototype),u},gc.apply(null,arguments)}function Mm(t){var e=typeof Map=="function"?new Map:void 0;return Mm=function(r){if(r===null||!Gq(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return gc(r,arguments,_c(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),no(i,r)},Mm(t)}var cG=bc(sq()),fG=function(t){$q(e,t);function e(r){var i;return qq(this,e),i=Uq(this,_c(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Mm(Error));Q();Q();Q();Q();Q();Q();var SG=bc(Sq()),DG=(0,EC.promisify)(bC.Stream.pipeline);Q();Q();var RG=bc(Cq());Q();Q();Q();var ke=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,ke)}};Q();Q();Q();Q();var Wq=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function at({workspaceRoot:t}){let e=Cr.default.join(t,"package.json");try{return(0,mt.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ke(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new ke(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ec({workspaceRoot:t}){let{packageManager:e}=at({workspaceRoot:t});if(e)try{let r=Wq.exec(e);if(r){let[i,n]=r;return n}}catch{}}function fo({workspaceRoot:t}){let e=at({workspaceRoot:t}),r=Cr.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function K1({workspaceRoot:t}){let e=Cr.default.join(t,"pnpm-workspace.yaml");if((0,mt.existsSync)(e))try{let r=sl.load((0,mt.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ke(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function wc({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Cr.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Vm({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function vc({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,AC.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Cr.default.dirname(r),{name:n,description:s}=fo({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Cr.default.join(i,"node_modules")}}}):[]}function Vq({directory:t}){let e=Cr.default.resolve(process.cwd(),t);return{exists:(0,mt.existsSync)(e),absolute:e}}function si({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Yq({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Ar({project:t,options:e}){e!=null&&e.dry||(0,mt.rmSync)(t.paths.lockfile,{force:!0})}async function CC({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,mt.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,xC.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,mt.writeFile)(Cr.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,mt.rmSync)(t.paths.lockfile,{force:!0})}}function Kq({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ri({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=at({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=Kq({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${DC.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${vC.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,SC.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var ii={name:"pnpm",lock:"pnpm-lock.yaml"};async function RC(t){let e=Bi.default.join(t.workspaceRoot,ii.lock),r=Bi.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ec({workspaceRoot:t.workspaceRoot});return(0,et.existsSync)(e)||(0,et.existsSync)(r)||i===ii.name}async function Zq(t){if(!await RC(t))throw new ke("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=fo(t);return{name:e,description:r,packageManager:ii.name,paths:wc({root:t.workspaceRoot,lockFile:ii.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:K1(t),workspaces:vc({workspaceGlobs:K1(t),...t})}}}async function Jq(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(si({action:"create",packageManager:ii.name,project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,et.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,et.writeFileSync)(Bi.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
56
+ `).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),lo=le((t,e)=>{ee(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),$m=le((t,e)=>{"use strict";ee(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),rC=le((t,e)=>{"use strict";ee();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),iC=le((t,e)=>{ee();var{isAbsolute:r,parse:i}=fe("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),uq=le((t,e)=>{"use strict";ee(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),nC=le((t,e)=>{"use strict";ee();var r=qm(),i=Um(),n=co(),s=fe("fs"),o=fe("path"),a=uo(),u=lo(),c=(_,E)=>E?(_=a(_).replace(/^\.(\/|$)/,""),u(E)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),w=Symbol("read"),C=Symbol("lstat"),F=Symbol("onlstat"),P=Symbol("onread"),T=Symbol("onreadlink"),M=Symbol("openfile"),S=Symbol("onopenfile"),x=Symbol("close"),H=Symbol("mode"),W=Symbol("awaitDrain"),N=Symbol("ondrain"),V=Symbol("prefix"),Q=Symbol("hadError"),te=$m(),j=rC(),L=iC(),B=uq(),G=te(class extends r{constructor(_,E){if(E=E||{},super(E),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!E.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=E.maxReadSize||l,this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.preservePaths=!!E.preservePaths,this.cwd=a(E.cwd||process.cwd()),this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.prefix=E.prefix?a(E.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[D,U]=L(this.path);D&&(this.path=U,R=D)}this.win32=!!E.win32||process.platform==="win32",this.win32&&(this.path=j.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(E.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[F](this.statCache.get(this.absolute)):this[C]()}emit(_,...E){return _==="error"&&(this[Q]=!0),super.emit(_,...E)}[C](){s.lstat(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[F](E)})}[F](_){this.statCache.set(this.absolute,_),this.stat=_,_.isFile()||(_.size=0),this.type=g(_),this.emit("stat",_),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[H](_){return B(_,this.type==="Directory",this.portable)}[V](_){return c(_,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,mode:this[H](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[T](E)})}[T](_){this.linkpath=a(_),this[p](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let E=this.linkCache.get(_);if(E.indexOf(this.cwd)===0)return this[y](E)}this.linkCache.set(_,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,E)=>{if(_)return this.emit("error",_);this[S](E)})}[S](_){if(this.fd=_,this[Q])return this[x]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let E=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(E),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[w]()}[w](){let{fd:_,buf:E,offset:R,length:D,pos:U}=this;s.read(_,E,R,D,U,($,ie)=>{if($)return this[x](()=>this.emit("error",$));this[P](ie)})}[x](_){s.close(this.fd,_)}[P](_){if(_<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[x](()=>this.emit("error",R))}if(_>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[x](()=>this.emit("error",R))}if(_===this.remain)for(let R=_;R<this.length&&_<this.blockRemain;R++)this.buf[R+this.offset]=0,_++,this.remain++;let E=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(E)?this[N]():this[W](()=>this[N]())}[W](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let E=new Error("writing more data than expected");return E.path=this.absolute,this.emit("error",E)}return this.remain-=_.length,this.blockRemain-=_.length,this.pos+=_.length,this.offset+=_.length,super.write(_)}[N](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[x](_=>_?this.emit("error",_):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[w]()}}),Z=class extends G{[C](){this[F](s.lstatSync(this.absolute))}[m](){this[T](s.readlinkSync(this.absolute))}[M](){this[S](s.openSync(this.absolute,"r"))}[w](){let _=!0;try{let{fd:E,buf:R,offset:D,length:U,pos:$}=this,ie=s.readSync(E,R,D,U,$);this[P](ie),_=!1}finally{if(_)try{this[x](()=>{})}catch{}}}[W](_){_()}[x](_){s.closeSync(this.fd),_()}},q=te(class extends r{constructor(_,E){E=E||{},super(E),this.preservePaths=!!E.preservePaths,this.portable=!!E.portable,this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=E.prefix||null,this.path=a(_.path),this.mode=this[H](_.mode),this.uid=this.portable?null:_.uid,this.gid=this.portable?null:_.gid,this.uname=this.portable?null:_.uname,this.gname=this.portable?null:_.gname,this.size=_.size,this.mtime=this.noMtime?null:E.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[D,U]=L(this.path);D&&(this.path=U,R=D)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new n({path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[V](this.path),linkpath:this.type==="Link"?this[V](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),_.pipe(this)}[V](_){return c(_,this.prefix)}[H](_){return B(_,this.type==="Directory",this.portable)}write(_){let E=_.length;if(E>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=E,super.write(_)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=Z,G.Tar=q;var g=_=>_.isFile()?"File":_.isDirectory()?"Directory":_.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=G}),cq=le((t,e)=>{"use strict";ee(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),sC=le((t,e)=>{"use strict";ee(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{cq()(r)}catch{}}),Gm=le((t,e)=>{"use strict";ee();var r=class{constructor(g,_){this.path=g||"./",this.absolute=_,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=qm(),n=eC(),s=Hm(),o=nC(),a=o.Sync,u=o.Tar,c=sC(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),w=Symbol("processJob"),C=Symbol("jobs"),F=Symbol("jobDone"),P=Symbol("addFSEntry"),T=Symbol("addTarEntry"),M=Symbol("stat"),S=Symbol("readdir"),x=Symbol("onreaddir"),H=Symbol("pipe"),W=Symbol("entry"),N=Symbol("entryOpt"),V=Symbol("writeEntryClass"),Q=Symbol("write"),te=Symbol("ondrain"),j=fe("fs"),L=fe("path"),B=$m(),G=uo(),Z=B(class extends i{constructor(g){super(g),g=g||Object.create(null),this.opt=g,this.file=g.file||"",this.cwd=g.cwd||process.cwd(),this.maxReadSize=g.maxReadSize,this.preservePaths=!!g.preservePaths,this.strict=!!g.strict,this.noPax=!!g.noPax,this.prefix=G(g.prefix||""),this.linkCache=g.linkCache||new Map,this.statCache=g.statCache||new Map,this.readdirCache=g.readdirCache||new Map,this[V]=o,typeof g.onwarn=="function"&&this.on("warn",g.onwarn),this.portable=!!g.portable,this.zip=null,g.gzip?(typeof g.gzip!="object"&&(g.gzip={}),this.portable&&(g.gzip.portable=!0),this.zip=new n.Gzip(g.gzip),this.zip.on("data",_=>super.write(_)),this.zip.on("end",_=>super.end()),this.zip.on("drain",_=>this[te]()),this.on("resume",_=>this.zip.resume())):this.on("drain",this[te]),this.noDirRecurse=!!g.noDirRecurse,this.follow=!!g.follow,this.noMtime=!!g.noMtime,this.mtime=g.mtime||null,this.filter=typeof g.filter=="function"?g.filter:_=>!0,this[d]=new c,this[C]=0,this.jobs=+g.jobs||4,this[p]=!1,this[f]=!1}[Q](g){return super.write(g)}add(g){return this.write(g),this}end(g){return g&&this.write(g),this[f]=!0,this[y](),this}write(g){if(this[f])throw new Error("write after end");return g instanceof s?this[T](g):this[P](g),this.flowing}[T](g){let _=G(L.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let E=new r(g.path,_,!1);E.entry=new u(g,this[N](E)),E.entry.on("end",R=>this[F](E)),this[C]+=1,this[d].push(E)}this[y]()}[P](g){let _=G(L.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[C]+=1;let _=this.follow?"stat":"lstat";j[_](g.absolute,(E,R)=>{g.pending=!1,this[C]-=1,E?this.emit("error",E):this[h](g,R)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[S](g){g.pending=!0,this[C]+=1,j.readdir(g.absolute,(_,E)=>{if(g.pending=!1,this[C]-=1,_)return this.emit("error",_);this[x](g,E)})}[x](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let g=this[d].head;g!==null&&this[C]<this.jobs;g=g.next)if(this[w](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[F](g){this[d].shift(),this[C]-=1,this[y]()}[w](g){if(!g.pending){if(g.entry){g===this[m]&&!g.piped&&this[H](g);return}if(g.stat||(this.statCache.has(g.absolute)?this[h](g,this.statCache.get(g.absolute)):this[M](g)),!!g.stat&&!g.ignore&&!(!this.noDirRecurse&&g.stat.isDirectory()&&!g.readdir&&(this.readdirCache.has(g.absolute)?this[x](g,this.readdirCache.get(g.absolute)):this[S](g),!g.readdir))){if(g.entry=this[W](g),!g.entry){g.ignore=!0;return}g===this[m]&&!g.piped&&this[H](g)}}}[N](g){return{onwarn:(_,E,R)=>this.warn(_,E,R),noPax:this.noPax,cwd:this.cwd,absolute:g.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[W](g){this[C]+=1;try{return new this[V](g.path,this[N](g)).on("end",()=>this[F](g)).on("error",_=>this.emit("error",_))}catch(_){this.emit("error",_)}}[te](){this[m]&&this[m].entry&&this[m].entry.resume()}[H](g){g.piped=!0,g.readdir&&g.readdir.forEach(R=>{let D=g.path,U=D==="./"?"":D.replace(/\/*$/,"/");this[P](U+R)});let _=g.entry,E=this.zip;E?_.on("data",R=>{E.write(R)||_.pause()}):_.on("data",R=>{super.write(R)||_.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),q=class extends Z{constructor(g){super(g),this[V]=a}pause(){}resume(){}[M](g){let _=this.follow?"statSync":"lstatSync";this[h](g,j[_](g.absolute))}[S](g,_){this[x](g,j.readdirSync(g.absolute))}[H](g){let _=g.entry,E=this.zip;g.readdir&&g.readdir.forEach(R=>{let D=g.path,U=D==="./"?"":D.replace(/\/*$/,"/");this[P](U+R)}),E?_.on("data",R=>{E.write(R)}):_.on("data",R=>{super[Q](R)})}};Z.Sync=q,e.exports=Z}),ho=le(t=>{"use strict";ee();var e=X1(),r=fe("events").EventEmitter,i=fe("fs"),n=i.writev;if(!n){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;n=(E,R,D,U)=>{let $=(Y,ue)=>U(Y,ue,R),ie=new _;ie.oncomplete=$,g.writeBuffers(E,R,D,ie)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),w=Symbol("_onopen"),C=Symbol("_onread"),F=Symbol("_onwrite"),P=Symbol("_open"),T=Symbol("_path"),M=Symbol("_pos"),S=Symbol("_queue"),x=Symbol("_read"),H=Symbol("_readSize"),W=Symbol("_reading"),N=Symbol("_remain"),V=Symbol("_size"),Q=Symbol("_write"),te=Symbol("_writing"),j=Symbol("_defaultFlag"),L=Symbol("_errored"),B=class extends e{constructor(g,_){if(_=_||{},super(_),this.readable=!0,this.writable=!1,typeof g!="string")throw new TypeError("path must be a string");this[L]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[T]=g,this[H]=_.readSize||16*1024*1024,this[W]=!1,this[V]=typeof _.size=="number"?_.size:1/0,this[N]=this[V],this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0,typeof this[u]=="number"?this[x]():this[P]()}get fd(){return this[u]}get path(){return this[T]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[P](){i.open(this[T],"r",(g,_)=>this[w](g,_))}[w](g,_){g?this[p](g):(this[u]=_,this.emit("open",_),this[x]())}[d](){return Buffer.allocUnsafe(Math.min(this[H],this[N]))}[x](){if(!this[W]){this[W]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[C](null,0,g));i.read(this[u],g,0,g.length,null,(_,E,R)=>this[C](_,E,R))}}[C](g,_,E){this[W]=!1,g?this[p](g):this[f](_,E)&&this[x]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[p](g){this[W]=!0,this[o](),this.emit("error",g)}[f](g,_){let E=!1;return this[N]-=g,g>0&&(E=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(E=!1,this[o](),super.end()),E}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[x]();break;case"error":return this[L]?void 0:(this[L]=!0,super.emit(g,_));default:return super.emit(g,_)}}},G=class extends B{[P](){let g=!0;try{this[w](null,i.openSync(this[T],"r")),g=!1}finally{g&&this[o]()}}[x](){let g=!0;try{if(!this[W]){this[W]=!0;do{let _=this[d](),E=_.length===0?0:i.readSync(this[u],_,0,_.length,null);if(!this[f](E,_))break}while(!0);this[W]=!1}g=!1}finally{g&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[L]=!1,this[te]=!1,this[a]=!1,this[y]=!1,this[S]=[],this[T]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[m]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let E=this[M]!==null?"r+":"w";this[j]=_.flags===void 0,this[l]=this[j]?E:_.flags,this[u]===null&&this[P]()}emit(g,_){if(g==="error"){if(this[L])return;this[L]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[T]}[p](g){this[o](),this[te]=!0,this.emit("error",g)}[P](){i.open(this[T],this[l],this[m],(g,_)=>this[w](g,_))}[w](g,_){this[j]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[P]()):g?this[p](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[te]&&!this[S].length&&typeof this[u]=="number"&&this[F](null,0),this}write(g,_){return typeof g=="string"&&(g=Buffer.from(g,_)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[te]||this[S].length?(this[S].push(g),this[y]=!0,!1):(this[te]=!0,this[Q](g),!0)}[Q](g){i.write(this[u],g,0,g.length,this[M],(_,E)=>this[F](_,E))}[F](g,_){g?this[p](g):(this[M]!==null&&(this[M]+=_),this[S].length?this[h]():(this[te]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[F](null,0);else if(this[S].length===1)this[Q](this[S].pop());else{let g=this[S];this[S]=[],n(this[u],g,this[M],(_,E)=>this[F](_,E))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},q=class extends Z{[P](){let g;if(this[j]&&this[l]==="r+")try{g=i.openSync(this[T],this[l],this[m])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[P]();throw _}else g=i.openSync(this[T],this[l],this[m]);this[w](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}[Q](g){let _=!0;try{this[F](null,i.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=B,t.ReadStreamSync=G,t.WriteStream=Z,t.WriteStreamSync=q}),zm=le((t,e)=>{"use strict";ee();var r=$m(),i=co(),n=fe("events"),s=sC(),o=1024*1024,a=Hm(),u=Um(),c=eC(),{nextTick:l}=fe("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),w=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),F=Symbol("meta"),P=Symbol("emitMeta"),T=Symbol("buffer"),M=Symbol("queue"),S=Symbol("ended"),x=Symbol("emittedEnd"),H=Symbol("emit"),W=Symbol("unzip"),N=Symbol("consumeChunk"),V=Symbol("consumeChunkSub"),Q=Symbol("consumeBody"),te=Symbol("consumeMeta"),j=Symbol("consumeHeader"),L=Symbol("consuming"),B=Symbol("bufferConcat"),G=Symbol("maybeEnd"),Z=Symbol("writing"),q=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),E=Symbol("sawNullBlock"),R=Symbol("sawEOF"),D=Symbol("closeStream"),U=$=>!0;e.exports=r(class extends n{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,ie=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,ie=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:U,this.writable=!0,this.readable=!1,this[M]=new s,this[T]=null,this[m]=null,this[d]=null,this[f]="begin",this[F]="",this[w]=null,this[C]=null,this[S]=!1,this[W]=null,this[q]=!1,this[E]=!1,this[R]=!1,this.on("end",()=>this[D]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[j]($,ie){this[_]===null&&(this[_]=!1);let Y;try{Y=new i($,ie,this[w],this[C])}catch(ue){return this.warn("TAR_ENTRY_INVALID",ue)}if(Y.nullBlock)this[E]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[H]("eof")):(this[E]=!0,this[H]("nullBlock"));else if(this[E]=!1,!Y.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:Y});else if(!Y.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:Y});else{let ue=Y.type;if(/^(Symbolic)?Link$/.test(ue)&&!Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:Y});else if(!/^(Symbolic)?Link$/.test(ue)&&Y.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:Y});else{let J=this[d]=new a(Y,this[w],this[C]);if(!this[_])if(J.remain){let v=()=>{J.invalid||(this[_]=!0)};J.on("end",v)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[H]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[F]="",J.on("data",v=>this[F]+=v),this[f]="meta"):(this[w]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[H]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[m]?this[M].push(J):(this[M].push(J),this[y]())))}}}[D](){l(()=>this.emit("close"))}[p]($){let ie=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[m]=$,this.emit("entry",$),$.emittedEnd||($.on("end",Y=>this[y]()),ie=!1)):(this[m]=null,ie=!1),ie}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let $=this[m];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",ie=>this.emit("drain"))}}[Q]($,ie){let Y=this[d],ue=Y.blockRemain,J=ue>=$.length&&ie===0?$:$.slice(ie,ie+ue);return Y.write(J),Y.blockRemain||(this[f]="header",this[d]=null,Y.end()),J.length}[te]($,ie){let Y=this[d],ue=this[Q]($,ie);return this[d]||this[P](Y),ue}[H]($,ie,Y){!this[M].length&&!this[m]?this.emit($,ie,Y):this[M].push([$,ie,Y])}[P]($){switch(this[H]("meta",this[F]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=u.parse(this[F],this[w],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[F],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null),this[w].path=this[F].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null),this[w].linkpath=this[F].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+$.type)}}abort($){this[q]=!0,this.emit("abort",$),this.warn("TAR_ABORT",$,{recoverable:!1})}write($){if(this[q])return;if(this[W]===null&&$){if(this[T]&&($=Buffer.concat([this[T],$]),this[T]=null),$.length<h.length)return this[T]=$,!0;for(let Y=0;this[W]===null&&Y<h.length;Y++)$[Y]!==h[Y]&&(this[W]=!1);if(this[W]===null){let Y=this[S];this[S]=!1,this[W]=new c.Unzip,this[W].on("data",J=>this[N](J)),this[W].on("error",J=>this.abort(J)),this[W].on("end",J=>{this[S]=!0,this[N]()}),this[Z]=!0;let ue=this[W][Y?"end":"write"]($);return this[Z]=!1,ue}}this[Z]=!0,this[W]?this[W].write($):this[N]($),this[Z]=!1;let ie=this[M].length?!1:this[m]?this[m].flowing:!0;return!ie&&!this[M].length&&this[m].once("drain",Y=>this.emit("drain")),ie}[B]($){$&&!this[q]&&(this[T]=this[T]?Buffer.concat([this[T],$]):$)}[G](){if(this[S]&&!this[x]&&!this[q]&&!this[L]){this[x]=!0;let $=this[d];if($&&$.blockRemain){let ie=this[T]?this[T].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${ie} available)`,{entry:$}),this[T]&&$.write(this[T]),$.end()}this[H](g)}}[N]($){if(this[L])this[B]($);else if(!$&&!this[T])this[G]();else{if(this[L]=!0,this[T]){this[B]($);let ie=this[T];this[T]=null,this[V](ie)}else this[V]($);for(;this[T]&&this[T].length>=512&&!this[q]&&!this[R];){let ie=this[T];this[T]=null,this[V](ie)}this[L]=!1}(!this[T]||this[S])&&this[G]()}[V]($){let ie=0,Y=$.length;for(;ie+512<=Y&&!this[q]&&!this[R];)switch(this[f]){case"begin":case"header":this[j]($,ie),ie+=512;break;case"ignore":case"body":ie+=this[Q]($,ie);break;case"meta":ie+=this[te]($,ie);break;default:throw new Error("invalid state: "+this[f])}ie<Y&&(this[T]?this[T]=Buffer.concat([$.slice(ie),this[T]]):this[T]=$.slice(ie))}end($){this[q]||(this[W]?this[W].end($):(this[S]=!0,this.write($)))}})}),Wm=le((t,e)=>{"use strict";ee();var r=ao(),i=zm(),n=fe("fs"),s=ho(),o=fe("path"),a=lo();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,w;try{let C=n.statSync(y),F=d.maxReadSize||16*1024*1024;if(C.size<F)m.end(n.readFileSync(y));else{let P=0,T=Buffer.allocUnsafe(F);for(w=n.openSync(y,"r");P<C.size;){let M=n.readSync(w,T,0,F,P);P+=M,m.write(T.slice(0,M))}m.end()}p=!1}finally{if(p&&w)try{n.closeSync(w)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("end",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),lq=le((t,e)=>{"use strict";ee();var r=ao(),i=Gm(),n=ho(),s=Wm(),o=fe("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),w=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(w);let C=new Promise((F,P)=>{w.on("error",P),w.on("close",F),p.on("error",P)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),oC=le((t,e)=>{"use strict";ee();var r=ao(),i=Gm(),n=fe("fs"),s=ho(),o=Wm(),a=fe("path"),u=co();e.exports=(m,y,p)=>{let w=r(m);if(!w.file)throw new TypeError("file is required");if(w.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),w.sync?c(w,y):h(w,y,p)};var c=(m,y)=>{let p=new i.Sync(m),w=!0,C,F;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let P=n.fstatSync(C),T=Buffer.alloc(512);e:for(F=0;F<P.size;F+=512){for(let x=0,H=0;x<512;x+=H){if(H=n.readSync(C,T,x,T.length-x,F+x),F===0&&T[0]===31&&T[1]===139)throw new Error("cannot append to compressed archives");if(!H)break e}let M=new u(T);if(!M.cksumValid)break;let S=512*Math.ceil(M.size/512);if(F+S+512>P.size)break;F+=S,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}w=!1,l(m,p,F,C,y)}finally{if(w)try{n.closeSync(C)}catch{}}},l=(m,y,p,w,C)=>{let F=new s.WriteStreamSync(m.file,{fd:w,start:p});y.pipe(F),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let w=new i(m),C=(P,T,M)=>{let S=(V,Q)=>{V?n.close(P,te=>M(V)):M(null,Q)},x=0;if(T===0)return S(null,0);let H=0,W=Buffer.alloc(512),N=(V,Q)=>{if(V)return S(V);if(H+=Q,H<512&&Q)return n.read(P,W,H,W.length-H,x+H,N);if(x===0&&W[0]===31&&W[1]===139)return S(new Error("cannot append to compressed archives"));if(H<512)return S(null,x);let te=new u(W);if(!te.cksumValid)return S(null,x);let j=512*Math.ceil(te.size/512);if(x+j+512>T||(x+=j+512,x>=T))return S(null,x);m.mtimeCache&&m.mtimeCache.set(te.path,te.mtime),H=0,n.read(P,W,0,512,x,N)};n.read(P,W,0,512,x,N)},F=new Promise((P,T)=>{w.on("error",T);let M="r+",S=(x,H)=>{if(x&&x.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,S);if(x)return T(x);n.fstat(H,(W,N)=>{if(W)return n.close(H,()=>T(W));C(H,N.size,(V,Q)=>{if(V)return T(V);let te=new s.WriteStream(m.file,{fd:H,start:Q});w.pipe(te),te.on("error",T),te.on("close",P),d(w,y)})})};n.open(m.file,M,S)});return p?F.then(p,p):F},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:w=>m.add(w)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:w=>m.add(w)}).then(w=>d(m,y));m.add(p)}m.end()}}),hq=le((t,e)=>{"use strict";ee();var r=ao(),i=oC();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),fq=le((t,e)=>{ee();var{promisify:r}=fe("util"),i=fe("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),dq=le((t,e)=>{ee();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=fe("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),pq=le((t,e)=>{ee();var{dirname:r}=fe("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),aC=le((t,e)=>{ee();var{dirname:r}=fe("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),mq=le((t,e)=>{ee();var{dirname:r}=fe("path"),{findMade:i,findMadeSync:n}=pq(),{mkdirpManual:s,mkdirpManualSync:o}=aC(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),yq=le((t,e)=>{ee();var r=fe("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),gq=le((t,e)=>{ee();var r=fq(),i=dq(),{mkdirpNative:n,mkdirpNativeSync:s}=mq(),{mkdirpManual:o,mkdirpManualSync:a}=aC(),{useNative:u,useNativeSync:c}=yq(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),_q=le((t,e)=>{"use strict";ee();var r=fe("fs"),i=fe("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(F,P,T)=>{try{return r[s](F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},u=(F,P,T)=>{try{return r.chownSync(F,P,T)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(F,P,T,M)=>S=>{!S||S.code!=="EISDIR"?M(S):r.chown(F,P,T,M)}:(F,P,T,M)=>M,l=o?(F,P,T)=>{try{return a(F,P,T)}catch(M){if(M.code!=="EISDIR")throw M;u(F,P,T)}}:(F,P,T)=>a(F,P,T),h=process.version,f=(F,P,T)=>r.readdir(F,P,T),d=(F,P)=>r.readdirSync(F,P);/^v4\./.test(h)&&(f=(F,P,T)=>r.readdir(F,T));var m=(F,P,T,M)=>{r[n](F,P,T,c(F,P,T,S=>{M(S&&S.code!=="ENOENT"?S:null)}))},y=(F,P,T,M,S)=>{if(typeof P=="string")return r.lstat(i.resolve(F,P),(x,H)=>{if(x)return S(x.code!=="ENOENT"?x:null);H.name=P,y(F,H,T,M,S)});if(P.isDirectory())p(i.resolve(F,P.name),T,M,x=>{if(x)return S(x);let H=i.resolve(F,P.name);m(H,T,M,S)});else{let x=i.resolve(F,P.name);m(x,T,M,S)}},p=(F,P,T,M)=>{f(F,{withFileTypes:!0},(S,x)=>{if(S){if(S.code==="ENOENT")return M();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return M(S)}if(S||!x.length)return m(F,P,T,M);let H=x.length,W=null,N=V=>{if(!W){if(V)return M(W=V);if(--H===0)return m(F,P,T,M)}};x.forEach(V=>y(F,V,P,T,N))})},w=(F,P,T,M)=>{if(typeof P=="string")try{let S=r.lstatSync(i.resolve(F,P));S.name=P,P=S}catch(S){if(S.code==="ENOENT")return;throw S}P.isDirectory()&&C(i.resolve(F,P.name),T,M),l(i.resolve(F,P.name),T,M)},C=(F,P,T)=>{let M;try{M=d(F,{withFileTypes:!0})}catch(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return l(F,P,T);throw S}return M&&M.length&&M.forEach(S=>w(F,S,P,T)),l(F,P,T)};e.exports=p,p.sync=C}),bq=le((t,e)=>{"use strict";ee();var r=gq(),i=fe("fs"),n=fe("path"),s=_q(),o=uo(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,w)=>y.set(o(p),w),h=(y,p)=>{i.stat(y,(w,C)=>{(w||!C.isDirectory())&&(w=new u(y,w&&w.code||"ENOTDIR")),p(w)})};e.exports=(y,p,w)=>{y=o(y);let C=p.umask,F=p.mode|448,P=(F&C)!==0,T=p.uid,M=p.gid,S=typeof T=="number"&&typeof M=="number"&&(T!==p.processUid||M!==p.processGid),x=p.preserve,H=p.unlink,W=p.cache,N=o(p.cwd),V=(te,j)=>{te?w(te):(l(W,y,!0),j&&S?s(j,T,M,L=>V(L)):P?i.chmod(y,F,w):w())};if(W&&c(W,y)===!0)return V();if(y===N)return h(y,V);if(x)return r(y,{mode:F}).then(te=>V(null,te),V);let Q=o(n.relative(N,y)).split("/");f(N,Q,F,W,H,N,null,V)};var f=(y,p,w,C,F,P,T,M)=>{if(!p.length)return M(null,T);let S=p.shift(),x=o(n.resolve(y+"/"+S));if(c(C,x))return f(x,p,w,C,F,P,T,M);i.mkdir(x,w,d(x,p,w,C,F,P,T,M))},d=(y,p,w,C,F,P,T,M)=>S=>{S?i.lstat(y,(x,H)=>{if(x)x.path=x.path&&o(x.path),M(x);else if(H.isDirectory())f(y,p,w,C,F,P,T,M);else if(F)i.unlink(y,W=>{if(W)return M(W);i.mkdir(y,w,d(y,p,w,C,F,P,T,M))});else{if(H.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(S)}}):(T=T||y,f(y,p,w,C,F,P,T,M))},m=y=>{let p=!1,w="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){w=C.code}finally{if(!p)throw new u(y,w)}};e.exports.sync=(y,p)=>{y=o(y);let w=p.umask,C=p.mode|448,F=(C&w)!==0,P=p.uid,T=p.gid,M=typeof P=="number"&&typeof T=="number"&&(P!==p.processUid||T!==p.processGid),S=p.preserve,x=p.unlink,H=p.cache,W=o(p.cwd),N=te=>{l(H,y,!0),te&&M&&s.sync(te,P,T),F&&i.chmodSync(y,C)};if(H&&c(H,y)===!0)return N();if(y===W)return m(W),N();if(S)return N(r.sync(y,C));let V=o(n.relative(W,y)).split("/"),Q=null;for(let te=V.shift(),j=W;te&&(j+="/"+te);te=V.shift())if(j=o(n.resolve(j)),!c(H,j))try{i.mkdirSync(j,C),Q=Q||j,l(H,j,!0)}catch{let L=i.lstatSync(j);if(L.isDirectory()){l(H,j,!0);continue}else if(x){i.unlinkSync(j),i.mkdirSync(j,C),Q=Q||j,l(H,j,!0);continue}else if(L.isSymbolicLink())return new a(j,j+"/"+V.join("/"))}return N(Q)}}),uC=le((t,e)=>{ee();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),Eq=le((t,e)=>{ee();var r=fe("assert"),i=uC(),n=lo(),{join:s}=fe("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((w,C)=>(w.length&&(C=s(w[w.length-1],C)),w.push(C||"/"),w),[]),h=new Set,f=p=>{let w=c.get(p);if(!w)throw new Error("function does not have any path reservations");return{paths:w.paths.map(C=>u.get(C)),dirs:[...w.dirs].map(C=>u.get(C))}},d=p=>{let{paths:w,dirs:C}=f(p);return w.every(F=>F[0]===p)&&C.every(F=>F[0]instanceof Set&&F[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:w,dirs:C}=c.get(p),F=new Set;return w.forEach(P=>{let T=u.get(P);r.equal(T[0],p),T.length===1?u.delete(P):(T.shift(),typeof T[0]=="function"?F.add(T[0]):T[0].forEach(M=>F.add(M)))}),C.forEach(P=>{let T=u.get(P);r(T[0]instanceof Set),T[0].size===1&&T.length===1?u.delete(P):T[0].size===1?(T.shift(),F.add(T[0])):T[0].delete(p)}),h.delete(p),F.forEach(P=>m(P)),!0};return{check:d,reserve:(p,w)=>{p=a?["win32 parallelization disabled"]:p.map(F=>i(n(s(F))).toLowerCase());let C=new Set(p.map(F=>l(F)).reduce((F,P)=>F.concat(P)));return c.set(w,{dirs:C,paths:p}),p.forEach(F=>{let P=u.get(F);P?P.push(w):u.set(F,[w])}),C.forEach(F=>{let P=u.get(F);P?P[P.length-1]instanceof Set?P[P.length-1].add(w):P.push(new Set([w])):u.set(F,[new Set([w])])}),m(w)}}}}),wq=le((t,e)=>{ee();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||fe("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),cC=le((t,e)=>{"use strict";ee();var r=fe("assert"),i=zm(),n=fe("fs"),s=ho(),o=fe("path"),a=bq(),u=rC(),c=Eq(),l=iC(),h=uo(),f=lo(),d=uC(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),w=Symbol("pruneCache"),C=Symbol("isReusable"),F=Symbol("makeFs"),P=Symbol("file"),T=Symbol("directory"),M=Symbol("link"),S=Symbol("symlink"),x=Symbol("hardlink"),H=Symbol("unsupported"),W=Symbol("checkPath"),N=Symbol("mkdir"),V=Symbol("onError"),Q=Symbol("pending"),te=Symbol("pend"),j=Symbol("unpend"),L=Symbol("ended"),B=Symbol("maybeClose"),G=Symbol("skip"),Z=Symbol("doChown"),q=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),E=fe("crypto"),R=wq(),D=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,U=D==="win32",$=(b,z)=>{if(!U)return n.unlink(b,z);let re=b+".DELETE."+E.randomBytes(16).toString("hex");n.rename(b,re,ae=>{if(ae)return z(ae);n.unlink(re,z)})},ie=b=>{if(!U)return n.unlinkSync(b);let z=b+".DELETE."+E.randomBytes(16).toString("hex");n.renameSync(b,z),n.unlinkSync(z)},Y=(b,z,re)=>b===b>>>0?b:z===z>>>0?z:re,ue=b=>d(f(h(b))).toLowerCase(),J=(b,z)=>{z=ue(z);for(let re of b.keys()){let ae=ue(re);(ae===z||ae.indexOf(z+"/")===0)&&b.delete(re)}},v=b=>{for(let z of b.keys())b.delete(z)},I=class extends i{constructor(b){if(b||(b={}),b.ondone=z=>{this[L]=!0,this[B]()},super(b),this[_]=!1,this.reservations=c(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[Q]=0,this[L]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=b.forceChown===!0,this.win32=!!b.win32||U,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",z=>this[m](z))}warn(b,z,re={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(re.recoverable=!1),super.warn(b,z,re)}[B](){this[L]&&this[Q]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[W](b){if(this.strip){let z=h(b.path).split("/");if(z.length<this.strip)return!1;if(b.path=z.slice(this.strip).join("/"),b.type==="Link"){let re=h(b.linkpath).split("/");if(re.length>=this.strip)b.linkpath=re.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=h(b.path),re=z.split("/");if(re.includes("..")||U&&/^[a-z]:\.\.$/i.test(re[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:z}),!1;let[ae,he]=l(z);ae&&(b.path=he,this.warn("TAR_ENTRY_INFO",`stripping ${ae} from absolute path`,{entry:b,path:z}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:z}=o.win32.parse(b.absolute);b.absolute=z+u.encode(b.absolute.slice(z.length));let{root:re}=o.win32.parse(b.path);b.path=re+u.encode(b.path.slice(re.length))}return!0}[m](b){if(!this[W](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[H](b)}}[V](b,z){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:z}),this[j](),z.resume())}[N](b,z,re){a(h(b),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z,noChmod:this.noChmod},re)}[Z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[q](b){return Y(this.uid,b.uid,this.processUid)}[g](b){return Y(this.gid,b.gid,this.processGid)}[P](b,z){let re=b.mode&4095||this.fmode,ae=new s.WriteStream(b.absolute,{flags:R(b.size),mode:re,autoClose:!1});ae.on("error",pe=>{ae.fd&&n.close(ae.fd,()=>{}),ae.write=()=>!0,this[V](pe,b),z()});let he=1,me=pe=>{if(pe){ae.fd&&n.close(ae.fd,()=>{}),this[V](pe,b),z();return}--he===0&&n.close(ae.fd,Fe=>{Fe?this[V](Fe,b):this[j](),z()})};ae.on("finish",pe=>{let Fe=b.absolute,Tt=ae.fd;if(b.mtime&&!this.noMtime){he++;let kt=b.atime||new Date,rs=b.mtime;n.futimes(Tt,kt,rs,is=>is?n.utimes(Fe,kt,rs,kc=>me(kc&&is)):me())}if(this[Z](b)){he++;let kt=this[q](b),rs=this[g](b);n.fchown(Tt,kt,rs,is=>is?n.chown(Fe,kt,rs,kc=>me(kc&&is)):me())}me()});let ye=this.transform&&this.transform(b)||b;ye!==b&&(ye.on("error",pe=>{this[V](pe,b),z()}),b.pipe(ye)),ye.pipe(ae)}[T](b,z){let re=b.mode&4095||this.dmode;this[N](b.absolute,re,ae=>{if(ae){this[V](ae,b),z();return}let he=1,me=ye=>{--he===0&&(z(),this[j](),b.resume())};b.mtime&&!this.noMtime&&(he++,n.utimes(b.absolute,b.atime||new Date,b.mtime,me)),this[Z](b)&&(he++,n.chown(b.absolute,this[q](b),this[g](b),me)),me()})}[H](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[S](b,z){this[M](b,b.linkpath,"symlink",z)}[x](b,z){let re=h(o.resolve(this.cwd,b.linkpath));this[M](b,re,"link",z)}[te](){this[Q]++}[j](){this[Q]--,this[B]()}[G](b){this[j](),b.resume()}[C](b,z){return b.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!U}[y](b){this[te]();let z=[b.path];b.linkpath&&z.push(b.linkpath),this.reservations.reserve(z,re=>this[p](b,re))}[w](b){b.type==="SymbolicLink"?v(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[p](b,z){this[w](b);let re=ye=>{this[w](b),z(ye)},ae=()=>{this[N](this.cwd,this.dmode,ye=>{if(ye){this[V](ye,b),re();return}this[_]=!0,he()})},he=()=>{if(b.absolute!==this.cwd){let ye=h(o.dirname(b.absolute));if(ye!==this.cwd)return this[N](ye,this.dmode,pe=>{if(pe){this[V](pe,b),re();return}me()})}me()},me=()=>{n.lstat(b.absolute,(ye,pe)=>{if(pe&&(this.keep||this.newer&&pe.mtime>b.mtime)){this[G](b),re();return}if(ye||this[C](b,pe))return this[F](null,b,re);if(pe.isDirectory()){if(b.type==="Directory"){let Fe=!this.noChmod&&b.mode&&(pe.mode&4095)!==b.mode,Tt=kt=>this[F](kt,b,re);return Fe?n.chmod(b.absolute,b.mode,Tt):Tt()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,Fe=>this[F](Fe,b,re))}if(b.absolute===this.cwd)return this[F](null,b,re);$(b.absolute,Fe=>this[F](Fe,b,re))})};this[_]?he():ae()}[F](b,z,re){if(b){this[V](b,z),re();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[P](z,re);case"Link":return this[x](z,re);case"SymbolicLink":return this[S](z,re);case"Directory":case"GNUDumpDir":return this[T](z,re)}}[M](b,z,re,ae){n[re](z,b.absolute,he=>{he?this[V](he,b):(this[j](),b.resume()),ae()})}},A=b=>{try{return[null,b()]}catch(z){return[z,null]}},X=class extends I{[F](b,z){return super[F](b,z,()=>{})}[y](b){if(this[w](b),!this[_]){let he=this[N](this.cwd,this.dmode);if(he)return this[V](he,b);this[_]=!0}if(b.absolute!==this.cwd){let he=h(o.dirname(b.absolute));if(he!==this.cwd){let me=this[N](he,this.dmode);if(me)return this[V](me,b)}}let[z,re]=A(()=>n.lstatSync(b.absolute));if(re&&(this.keep||this.newer&&re.mtime>b.mtime))return this[G](b);if(z||this[C](b,re))return this[F](null,b);if(re.isDirectory()){if(b.type==="Directory"){let me=!this.noChmod&&b.mode&&(re.mode&4095)!==b.mode,[ye]=me?A(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[F](ye,b)}let[he]=A(()=>n.rmdirSync(b.absolute));this[F](he,b)}let[ae]=b.absolute===this.cwd?[]:A(()=>ie(b.absolute));this[F](ae,b)}[P](b,z){let re=b.mode&4095||this.fmode,ae=ye=>{let pe;try{n.closeSync(he)}catch(Fe){pe=Fe}(ye||pe)&&this[V](ye||pe,b),z()},he;try{he=n.openSync(b.absolute,R(b.size),re)}catch(ye){return ae(ye)}let me=this.transform&&this.transform(b)||b;me!==b&&(me.on("error",ye=>this[V](ye,b)),b.pipe(me)),me.on("data",ye=>{try{n.writeSync(he,ye,0,ye.length)}catch(pe){ae(pe)}}),me.on("end",ye=>{let pe=null;if(b.mtime&&!this.noMtime){let Fe=b.atime||new Date,Tt=b.mtime;try{n.futimesSync(he,Fe,Tt)}catch(kt){try{n.utimesSync(b.absolute,Fe,Tt)}catch{pe=kt}}}if(this[Z](b)){let Fe=this[q](b),Tt=this[g](b);try{n.fchownSync(he,Fe,Tt)}catch(kt){try{n.chownSync(b.absolute,Fe,Tt)}catch{pe=pe||kt}}}ae(pe)})}[T](b,z){let re=b.mode&4095||this.dmode,ae=this[N](b.absolute,re);if(ae){this[V](ae,b),z();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{n.chownSync(b.absolute,this[q](b),this[g](b))}catch{}z(),b.resume()}[N](b,z){try{return a.sync(h(b),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z})}catch(re){return re}}[M](b,z,re,ae){try{n[re+"Sync"](z,b.absolute),ae(),b.resume()}catch(he){return this[V](he,b)}}};I.Sync=X,e.exports=I}),vq=le((t,e)=>{"use strict";ee();var r=ao(),i=cC(),n=fe("fs"),s=ho(),o=fe("path"),a=lo();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,w=(C,F)=>{let P=F||o.parse(C).root||".",T=C===P?!1:y.has(C)?y.get(C):w(o.dirname(C),P);return y.set(C,T),T};d.filter=p?(C,F)=>p(C,F)&&w(a(C)):C=>w(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),w=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:w,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,w=d.file,C=new Promise((F,P)=>{y.on("error",P),y.on("close",F),n.stat(w,(T,M)=>{if(T)P(T);else{let S=new s.ReadStream(w,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),Sq=le(t=>{"use strict";ee(),t.c=t.create=lq(),t.r=t.replace=oC(),t.t=t.list=Wm(),t.u=t.update=hq(),t.x=t.extract=vq(),t.Pack=Gm(),t.Unpack=cC(),t.Parse=zm(),t.ReadEntry=Hm(),t.WriteEntry=nC(),t.Header=co(),t.Pax=Um(),t.types=tC()}),Dq=le((t,e)=>{ee();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.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))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),xq=le(t=>{ee();var e=Dq();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),Aq=le((t,e)=>{ee(),e.exports=xq()}),Cq=le((t,e)=>{ee();var r=Aq();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),Rq={};Kj(Rq,{bold:()=>Pq,dimmed:()=>Bq,error:()=>jq,grey:()=>Iq,info:()=>Fq,item:()=>Nq,log:()=>Ni,turboBlue:()=>Xn,turboGradient:()=>kq,turboLoader:()=>Oq,turboRed:()=>pC,underline:()=>Lq,warn:()=>Mq,yellow:()=>mC});ee();var fC="#0099F7",dC="#F11712",Tq="#FFFF00",kq=(0,hC.default)(fC,dC),Xn=ni.default.hex(fC),pC=ni.default.hex(dC),mC=ni.default.hex(Tq),Oq=t=>(0,lC.default)({text:t,spinner:{frames:[" ",Xn("> "),Xn(">> "),Xn(">>>")]}}),Fq=(...t)=>{Ni(Xn.bold(">>>"),...t)},Pq=(...t)=>{Ni(ni.default.bold(...t))},Lq=(...t)=>{Ni(ni.default.underline(...t))},Bq=(...t)=>{Ni(ni.default.dim(...t))},Iq=(...t)=>{Ni(ni.default.grey(...t))},Nq=(...t)=>{Ni(Xn.bold(" \u2022"),...t)},Ni=(...t)=>{console.log(...t)},Mq=(...t)=>{console.error(mC.bold(">>>"),...t)},jq=(...t)=>{console.error(pC.bold(">>>"),...t)};ee();async function yc(t,e=[],r){let i={cwd:yC.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,gC.default)(t,e,i);return n.trim()}catch{return}}async function _C(){let[t,e,r,i]=await Promise.all([yc("yarnpkg",["--version"]),yc("npm",["--version"]),yc("pnpm",["--version"]),yc("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}ee();ee();ee();var uG=bc(Qj());ee();ee();function qq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}ee();ee();function Nm(t){return Nm=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},Nm(t)}ee();function Hq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uq(t,e){if(e&&(Nm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hq(t)}ee();function _c(t){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_c(t)}ee();ee();function no(t,e){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},no(t,e)}function $q(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&&no(t,e)}ee();ee();function Gq(t){return Function.toString.call(t).indexOf("[native code]")!==-1}ee();ee();function zq(){if(typeof Reflect>"u"||!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 gc(t,e,r){return zq()?gc=Reflect.construct.bind():gc=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&no(u,s.prototype),u},gc.apply(null,arguments)}function Mm(t){var e=typeof Map=="function"?new Map:void 0;return Mm=function(r){if(r===null||!Gq(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return gc(r,arguments,_c(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),no(i,r)},Mm(t)}var cG=bc(sq()),fG=function(t){$q(e,t);function e(r){var i;return qq(this,e),i=Uq(this,_c(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Mm(Error));ee();ee();ee();ee();ee();ee();var SG=bc(Sq()),DG=(0,EC.promisify)(bC.Stream.pipeline);ee();ee();var RG=bc(Cq());ee();ee();ee();var ke=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,ke)}};ee();ee();ee();ee();var Wq=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function at({workspaceRoot:t}){let e=Cr.default.join(t,"package.json");try{return(0,mt.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new ke(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new ke(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ec({workspaceRoot:t}){let{packageManager:e}=at({workspaceRoot:t});if(e)try{let r=Wq.exec(e);if(r){let[i,n]=r;return n}}catch{}}function fo({workspaceRoot:t}){let e=at({workspaceRoot:t}),r=Cr.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function K1({workspaceRoot:t}){let e=Cr.default.join(t,"pnpm-workspace.yaml");if((0,mt.existsSync)(e))try{let r=sl.load((0,mt.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new ke(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function wc({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Cr.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function Vm({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function vc({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,AC.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Cr.default.dirname(r),{name:n,description:s}=fo({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Cr.default.join(i,"node_modules")}}}):[]}function Vq({directory:t}){let e=Cr.default.resolve(process.cwd(),t);return{exists:(0,mt.existsSync)(e),absolute:e}}function si({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function Yq({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function Ar({project:t,options:e}){e!=null&&e.dry||(0,mt.rmSync)(t.paths.lockfile,{force:!0})}async function CC({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,mt.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,xC.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,mt.writeFile)(Cr.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,mt.rmSync)(t.paths.lockfile,{force:!0})}}function Kq({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function ri({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=at({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=Kq({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${DC.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${vC.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,SC.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var ii={name:"pnpm",lock:"pnpm-lock.yaml"};async function RC(t){let e=Bi.default.join(t.workspaceRoot,ii.lock),r=Bi.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ec({workspaceRoot:t.workspaceRoot});return(0,et.existsSync)(e)||(0,et.existsSync)(r)||i===ii.name}async function Zq(t){if(!await RC(t))throw new ke("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=fo(t);return{name:e,description:r,packageManager:ii.name,paths:wc({root:t.workspaceRoot,lockFile:ii.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:K1(t),workspaces:vc({workspaceGlobs:K1(t),...t})}}}async function Jq(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(si({action:"create",packageManager:ii.name,project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,et.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,et.writeFileSync)(Bi.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
57
57
  ${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
58
- `)}`))),s&&(ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Xq(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({action:"remove",packageManager:ii.name,project:e}));let s=at({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,et.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,et.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,et.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Qq(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Bi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,et.rmSync)(e.paths.lockfile,{force:!0})}async function e6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Bi.default.relative(e.paths.root,e.paths.lockfile)} to ${ii.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,et.existsSync)(e.paths.lockfile))try{await(0,wC.default)(ii.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Ar({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await CC({project:e,options:r}),await s(),(0,et.rmSync)(Bi.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var t6={detect:RC,read:Zq,create:Jq,remove:Xq,clean:Qq,convertLock:e6};Q();var Qn={name:"npm",lock:"package-lock.json"};async function TC(t){let e=so.default.join(t.workspaceRoot,Qn.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,Xt.existsSync)(e)||r===Qn.name}async function r6(t){if(!await TC(t))throw new ke("Not an npm project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Qn.name,paths:wc({root:t.workspaceRoot,lockFile:Qn.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function i6(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(si({packageManager:Qn.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${so.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${so.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function n6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:Qn.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function s6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${so.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Xt.rmSync)(e.paths.lockfile,{force:!0})}async function o6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":Ar({project:e,options:r});break;case"npm":break;case"yarn":Ar({project:e,options:r});break}}var a6={detect:TC,read:r6,create:i6,remove:n6,clean:s6,convertLock:o6};Q();var Ii={name:"yarn",lock:"yarn.lock"};async function kC(t){let e=es.default.join(t.workspaceRoot,Ii.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,Qt.existsSync)(e)||r===Ii.name}async function u6(t){if(!await kC(t))throw new ke("Not a yarn project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ii.name,paths:wc({root:t.workspaceRoot,lockFile:Ii.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function c6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(si({packageManager:Ii.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${es.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${es.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Qt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Qt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function l6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:Ii.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Qt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Qt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function h6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${es.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Qt.rmSync)(e.paths.lockfile,{force:!0})}async function f6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${es.default.relative(e.paths.root,e.paths.lockfile)} to ${Ii.lock}`)};switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":n(),await CC({project:e,options:r});break;case"npm":Ar({project:e,options:r});break;case"yarn":break}}var d6={detect:kC,read:u6,create:c6,remove:l6,clean:h6,convertLock:f6};Q();var ts={name:"bun",lock:"bun.lockb"};async function OC(t){let e=oo.default.join(t.workspaceRoot,ts.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,er.existsSync)(e)||r===ts.name}async function p6(t){if(!await OC(t))throw new ke("Not a bun project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:ts.name,paths:wc({root:t.workspaceRoot,lockFile:ts.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function m6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Yq({project:e}))throw new ke("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(si({packageManager:ts.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${oo.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${oo.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,er.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,er.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function y6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:ts.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,er.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,er.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function g6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${oo.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,er.rmSync)(e.paths.lockfile,{force:!0})}async function _6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":break;case"npm":Ar({project:e,options:r});break;case"yarn":Ar({project:e,options:r});break}}var b6={detect:OC,read:p6,create:m6,remove:y6,clean:g6,convertLock:_6},Jn={pnpm:t6,yarn:d6,npm:a6,bun:b6};Q();async function Sc({root:t}){let{exists:e,absolute:r}=Vq({directory:t});if(!e)throw new ke(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Jn))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new ke("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}Q();var Zn=2,Ym=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Zn*t),...e)}header(t){this.blankLine(),this.logger(pt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Zn)} - ${this.dry?pt.default.yellow("SKIPPED | "):pt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,FC.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(pt.default.bold(this.gradient(`
58
+ `)}`))),s&&(ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})}))}async function Xq(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({action:"remove",packageManager:ii.name,project:e}));let s=at({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,et.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,et.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,et.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Qq(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Bi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,et.rmSync)(e.paths.lockfile,{force:!0})}async function e6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Bi.default.relative(e.paths.root,e.paths.lockfile)} to ${ii.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,et.existsSync)(e.paths.lockfile))try{await(0,wC.default)(ii.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{Ar({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await CC({project:e,options:r}),await s(),(0,et.rmSync)(Bi.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var t6={detect:RC,read:Zq,create:Jq,remove:Xq,clean:Qq,convertLock:e6};ee();var Qn={name:"npm",lock:"package-lock.json"};async function TC(t){let e=so.default.join(t.workspaceRoot,Qn.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,Xt.existsSync)(e)||r===Qn.name}async function r6(t){if(!await TC(t))throw new ke("Not an npm project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Qn.name,paths:wc({root:t.workspaceRoot,lockFile:Qn.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function i6(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(si({packageManager:Qn.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${so.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${so.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,Xt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function n6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:Qn.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Xt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Xt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function s6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${so.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Xt.rmSync)(e.paths.lockfile,{force:!0})}async function o6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":Ar({project:e,options:r});break;case"npm":break;case"yarn":Ar({project:e,options:r});break}}var a6={detect:TC,read:r6,create:i6,remove:n6,clean:s6,convertLock:o6};ee();var Ii={name:"yarn",lock:"yarn.lock"};async function kC(t){let e=es.default.join(t.workspaceRoot,Ii.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,Qt.existsSync)(e)||r===Ii.name}async function u6(t){if(!await kC(t))throw new ke("Not a yarn project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ii.name,paths:wc({root:t.workspaceRoot,lockFile:Ii.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function c6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(si({packageManager:Ii.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${es.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${es.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Qt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Qt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function l6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:Ii.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Qt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Qt.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function h6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${es.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Qt.rmSync)(e.paths.lockfile,{force:!0})}async function f6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${es.default.relative(e.paths.root,e.paths.lockfile)} to ${Ii.lock}`)};switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":n(),await CC({project:e,options:r});break;case"npm":Ar({project:e,options:r});break;case"yarn":break}}var d6={detect:kC,read:u6,create:c6,remove:l6,clean:h6,convertLock:f6};ee();var ts={name:"bun",lock:"bun.lockb"};async function OC(t){let e=oo.default.join(t.workspaceRoot,ts.lock),r=Ec({workspaceRoot:t.workspaceRoot});return(0,er.existsSync)(e)||r===ts.name}async function p6(t){if(!await OC(t))throw new ke("Not a bun project",{type:"package_manager-unexpected"});let e=at(t),{name:r,description:i}=fo(t),n=Vm({workspaces:e.workspaces});return{name:r,description:i,packageManager:ts.name,paths:wc({root:t.workspaceRoot,lockFile:ts.lock}),workspaceData:{globs:n,workspaces:vc({workspaceGlobs:n,...t})}}}async function m6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Yq({project:e}))throw new ke("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(si({packageManager:ts.name,action:"create",project:e}));let o=at({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${oo.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${oo.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,er.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ri({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{ri({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,er.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function y6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(si({packageManager:ts.name,action:"remove",project:e}));let s=at({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,er.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,er.rm)(a,{recursive:!0,force:!0})))}catch{throw new ke("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function g6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${oo.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,er.rmSync)(e.paths.lockfile,{force:!0})}async function _6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":Ar({project:e,options:r});break;case"bun":break;case"npm":Ar({project:e,options:r});break;case"yarn":Ar({project:e,options:r});break}}var b6={detect:OC,read:p6,create:m6,remove:y6,clean:g6,convertLock:_6},Jn={pnpm:t6,yarn:d6,npm:a6,bun:b6};ee();async function Sc({root:t}){let{exists:e,absolute:r}=Vq({directory:t});if(!e)throw new ke(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Jn))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new ke("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}ee();var Zn=2,Ym=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Zn*t),...e)}header(t){this.blankLine(),this.logger(pt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Zn)} - ${this.dry?pt.default.yellow("SKIPPED | "):pt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,FC.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(pt.default.bold(this.gradient(`
59
59
  >>> TURBOREPO
60
- `)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${pt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(Zn),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(Zn),"-",pt.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(Zn*3),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(Zn*3),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};Q();var Z1={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}],bun:[{name:"bun",template:"bun",command:"bun",installArgs:["install"],version:"latest",executable:"bunx",semver:"^1.0.1",default:!0}]};function Dc(t){let{version:e,name:r}=t;return e?Z1[r].find(i=>(0,BC.satisfies)(e,i.semver)):Z1[r].find(i=>i.default)}async function xc(t){let{to:e,logger:r,options:i}=t,n=r!=null?r:new Ym(i),s=Dc(e);if(!s)throw new ke("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(i!=null&&i.dry)){let o;n.interactive&&(o=(0,LC.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,PC.default)(s.command,s.installArgs,{cwd:t.project.paths.root}),o&&o.stop(),n.subStep("dependencies installed")}catch(a){throw n.subStepFailure("failed to install dependencies"),a}}}Q();async function NC({project:t,convertTo:e,logger:r,options:i}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager===e.name)throw new ke("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new ke(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"});let n=e;await Jn[t.packageManager].remove({project:t,to:n,logger:r,options:i}),await Jn[n.name].create({project:t,to:n,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(IC.default.yellow("Skipping install")):(await Jn[n.name].convertLock({project:t,to:n,logger:r,options:i}),await xc({project:t,to:n,logger:r,options:i})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Jn[t.packageManager].clean({project:t,logger:r})}Q();async function MC({root:t,to:e,options:r}){let i=new Ym({...r,interactive:!1}),[n,s]=await Promise.all([Sc({root:t}),_C()]);await NC({project:n,convertTo:{name:e,version:s[e]},logger:i,options:r})}var oi=require("child_process"),jC=oe(require("path")),qC=require("rimraf"),HC=`
60
+ `)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${pt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(Zn),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(Zn),"-",pt.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(Zn*3),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(Zn*3),"-",this.dry?pt.default.yellow("SKIPPED |"):pt.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};ee();var Z1={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}],bun:[{name:"bun",template:"bun",command:"bun",installArgs:["install"],version:"latest",executable:"bunx",semver:"^1.0.1",default:!0}]};function Dc(t){let{version:e,name:r}=t;return e?Z1[r].find(i=>(0,BC.satisfies)(e,i.semver)):Z1[r].find(i=>i.default)}async function xc(t){let{to:e,logger:r,options:i}=t,n=r!=null?r:new Ym(i),s=Dc(e);if(!s)throw new ke("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(i!=null&&i.dry)){let o;n.interactive&&(o=(0,LC.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,PC.default)(s.command,s.installArgs,{cwd:t.project.paths.root}),o&&o.stop(),n.subStep("dependencies installed")}catch(a){throw n.subStepFailure("failed to install dependencies"),a}}}ee();async function NC({project:t,convertTo:e,logger:r,options:i}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager===e.name)throw new ke("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new ke(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"});let n=e;await Jn[t.packageManager].remove({project:t,to:n,logger:r,options:i}),await Jn[n.name].create({project:t,to:n,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(IC.default.yellow("Skipping install")):(await Jn[n.name].convertLock({project:t,to:n,logger:r,options:i}),await xc({project:t,to:n,logger:r,options:i})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Jn[t.packageManager].clean({project:t,logger:r})}ee();async function MC({root:t,to:e,options:r}){let i=new Ym({...r,interactive:!1}),[n,s]=await Promise.all([Sc({root:t}),_C()]);await NC({project:n,convertTo:{name:e,version:s[e]},logger:i,options:r})}var oi=require("child_process"),jC=oe(require("path")),qC=require("rimraf"),HC=`
61
61
  # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
62
62
 
63
63
  # dependencies
@@ -82,9 +82,9 @@ yarn-error.log*
82
82
 
83
83
  # vercel
84
84
  .vercel
85
- `,E6="git rev-parse --is-inside-work-tree",w6="hg --cwd . root";function v6(){try{return(0,oi.execSync)(E6,{stdio:"ignore"}),!0}catch{}return!1}function S6(){try{return(0,oi.execSync)(w6,{stdio:"ignore"}),!0}catch{}return!1}function UC(t,e){let r=!1;try{return v6()||S6()?!1:((0,oi.execSync)("git init",{stdio:"ignore"}),(0,oi.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,oi.execSync)("git checkout -b main",{stdio:"ignore"}),GC(e),!0)}catch{if(r)try{(0,qC.sync)(jC.default.join(t,".git"))}catch{}return!1}}function Km(t){try{return GC(t),!0}catch{return!1}}function $C(){try{D6()}catch{}}function D6(){(0,oi.execSync)("git add -A",{stdio:"ignore"})}function GC(t){(0,oi.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}var zC=require("child_process"),Zm=oe(require("dns")),WC=oe(require("url"));function x6(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,zC.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:void 0}catch{}}function VC(){return new Promise(t=>{Zm.default.lookup("registry.yarnpkg.com",e=>{if(!e){t(!0);return}let r=x6();if(!r){t(!1);return}let{hostname:i}=WC.default.parse(r);if(!i){t(!1);return}Zm.default.lookup(i,n=>{t(n===null)})})})}var YC={name:"package-manager"};async function KC(t){let{project:e,prompts:r}=t,{root:i,packageManager:n}=r;if(n&&e.packageManager!==n.name)await MC({root:i,to:n.name,options:{skipInstall:!0}});else return{result:"not-applicable",...YC};return{result:"success",...YC}}var Jm=oe(require("path")),ai=require("fs-extra"),ZC=oe(require("semver/functions/prerelease"));var A6=new Set(["basic","default"]);function Ac(t){return A6.has(t)}var Bt=class extends Error{constructor(r,i){var n,s;super(r);this.name="TransformError",this.transform=(n=i==null?void 0:i.transform)!=null?n:"unknown",this.fatal=(s=i==null?void 0:i.fatal)!=null?s:!0,Error.captureStackTrace(this,Bt)}};var Cc={name:"official-starter"};async function JC(t){var c;let{prompts:e,example:r,opts:i}=t,n=Ac(r.name);if(!(!r.repo||r.repo.username==="vercel"&&r.repo.name==="turbo"))return{result:"not-applicable",...Cc};let o=Jm.default.join(e.root,"package.json"),a=Jm.default.join(e.root,"meta.json"),u=(0,ai.existsSync)(o);try{(0,ai.rmSync)(a,{force:!0})}catch{}if(u){let l;try{l=(0,ai.readJsonSync)(o)}catch{throw new Bt("Unable to read package.json",{transform:Cc.name,fatal:!1})}if(l){if(n&&(l.name=e.projectName),(c=l.devDependencies)!=null&&c.turbo){let h=(0,ZC.default)(Li.version)!==null;i.turboVersion?l.devDependencies.turbo=i.turboVersion:h?l.devDependencies.turbo="canary":l.devDependencies.turbo="latest"}try{(0,ai.writeJsonSync)(o,l,{spaces:2})}catch{throw new Bt("Unable to write package.json",{transform:Cc.name,fatal:!1})}}}return{result:"success",...Cc}}var XC=oe(require("path")),Qm=oe(require("fs-extra"));var Xm={name:"git-ignore"};async function QC(t){let{prompts:e}=t,r=XC.default.join(e.root,".gitignore");try{if(!Qm.default.existsSync(r))Qm.default.writeFileSync(r,HC);else return{result:"not-applicable",...Xm}}catch{throw new Bt("Unable to write .gitignore",{transform:Xm.name,fatal:!1})}return{result:"success",...Xm}}var Rc=require("fs-extra"),eR={name:"pnpm-eslint"},C6={"eslint.workingDirectories":[{mode:"auto"}]};async function tR(t){let{project:e,prompts:r}=t,{packageManager:i}=r;if((i==null?void 0:i.name)==="pnpm")await(0,Rc.mkdir)(`${e.paths.root}/.vscode`,{recursive:!0}),await(0,Rc.writeJson)(`${e.paths.root}/.vscode/settings.json`,C6,{spaces:2});else return{result:"not-applicable",...eR};return{result:"success",...eR}}var rR=[JC,QC,KC,tR];var e0=oe(require("inquirer"));async function iR({dir:t}){let e=await e0.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!t,default:"./my-turborepo",validate:i=>{let{valid:n,error:s}=Ra(i);return!n&&s?s:!0},filter:i=>i.trim()}),{projectDirectory:r=t}=e;return Ra(r)}async function nR({manager:t,skipTransforms:e}){if(e)return;let r=await Ss(),i=await e0.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm workspaces"},{pm:"pnpm",label:"pnpm workspaces"},{pm:"yarn",label:"yarn workspaces"},{pm:"bun",label:"bun workspaces (beta)"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:n=t}=i;return{name:n,version:r[n]}}var{turboGradient:t0,turboLoader:T6,info:sR,error:mo,warn:r0}=se;function k6(t){t.telemetry.trackOptionPackageManager(t.packageManager),t.telemetry.trackOptionSkipInstall(t.skipInstall),t.telemetry.trackOptionSkipTransforms(t.skipTransforms),t.telemetry.trackOptionExample(t.example),t.telemetry.trackOptionTurboVersion(t.turboVersion),t.telemetry.trackOptionExamplePath(t.examplePath)}function i0(t,e){if(e.trackCommandStatus({command:"create",status:"error"}),t instanceof Bt)mo(Ue.default.bold(t.transform),Ue.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof ke&&t.type!=="unknown")mo(Ue.default.red(t.message)),process.exit(1);else if(t instanceof Yn)mo(Ue.default.red("Unable to download template from Github")),mo(Ue.default.red(t.message)),process.exit(1);else throw t}var oR={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function n0(t,e,r){r.telemetry.trackCommandStatus({command:"create",status:"start"}),r.telemetry.trackArgumentPackageManager(e),r.telemetry.trackArgumentDirectory(!!t),k6(r);let{packageManager:i,skipInstall:n,skipTransforms:s}=r;se.log(Ue.default.bold(t0(`
85
+ `,E6="git rev-parse --is-inside-work-tree",w6="hg --cwd . root";function v6(){try{return(0,oi.execSync)(E6,{stdio:"ignore"}),!0}catch{}return!1}function S6(){try{return(0,oi.execSync)(w6,{stdio:"ignore"}),!0}catch{}return!1}function UC(t,e){let r=!1;try{return v6()||S6()?!1:((0,oi.execSync)("git init",{stdio:"ignore"}),(0,oi.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,oi.execSync)("git checkout -b main",{stdio:"ignore"}),GC(e),!0)}catch{if(r)try{(0,qC.sync)(jC.default.join(t,".git"))}catch{}return!1}}function Km(t){try{return GC(t),!0}catch{return!1}}function $C(){try{D6()}catch{}}function D6(){(0,oi.execSync)("git add -A",{stdio:"ignore"})}function GC(t){(0,oi.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}var zC=require("child_process"),Zm=oe(require("dns")),WC=oe(require("url"));function x6(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,zC.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:void 0}catch{}}function VC(){return new Promise(t=>{Zm.default.lookup("registry.yarnpkg.com",e=>{if(!e){t(!0);return}let r=x6();if(!r){t(!1);return}let{hostname:i}=WC.default.parse(r);if(!i){t(!1);return}Zm.default.lookup(i,n=>{t(n===null)})})})}var YC={name:"package-manager"};async function KC(t){let{project:e,prompts:r}=t,{root:i,packageManager:n}=r;if(n&&e.packageManager!==n.name)await MC({root:i,to:n.name,options:{skipInstall:!0}});else return{result:"not-applicable",...YC};return{result:"success",...YC}}var Jm=oe(require("path")),ai=require("fs-extra"),ZC=oe(require("semver/functions/prerelease"));var A6=new Set(["basic","default"]);function Ac(t){return A6.has(t)}var Bt=class extends Error{constructor(r,i){var n,s;super(r);this.name="TransformError",this.transform=(n=i==null?void 0:i.transform)!=null?n:"unknown",this.fatal=(s=i==null?void 0:i.fatal)!=null?s:!0,Error.captureStackTrace(this,Bt)}};var Cc={name:"official-starter"};async function JC(t){var c;let{prompts:e,example:r,opts:i}=t,n=Ac(r.name);if(!(!r.repo||r.repo.username==="vercel"&&r.repo.name==="turbo"))return{result:"not-applicable",...Cc};let o=Jm.default.join(e.root,"package.json"),a=Jm.default.join(e.root,"meta.json"),u=(0,ai.existsSync)(o);try{(0,ai.rmSync)(a,{force:!0})}catch{}if(u){let l;try{l=(0,ai.readJsonSync)(o)}catch{throw new Bt("Unable to read package.json",{transform:Cc.name,fatal:!1})}if(l){if(n&&(l.name=e.projectName),(c=l.devDependencies)!=null&&c.turbo){let h=(0,ZC.default)(Li.version)!==null;i.turboVersion?l.devDependencies.turbo=i.turboVersion:h?l.devDependencies.turbo="canary":l.devDependencies.turbo="latest"}try{(0,ai.writeJsonSync)(o,l,{spaces:2})}catch{throw new Bt("Unable to write package.json",{transform:Cc.name,fatal:!1})}}}return{result:"success",...Cc}}var XC=oe(require("path")),Qm=oe(require("fs-extra"));var Xm={name:"git-ignore"};async function QC(t){let{prompts:e}=t,r=XC.default.join(e.root,".gitignore");try{if(!Qm.default.existsSync(r))Qm.default.writeFileSync(r,HC);else return{result:"not-applicable",...Xm}}catch{throw new Bt("Unable to write .gitignore",{transform:Xm.name,fatal:!1})}return{result:"success",...Xm}}var Rc=require("fs-extra"),eR={name:"pnpm-eslint"},C6={"eslint.workingDirectories":[{mode:"auto"}]};async function tR(t){let{project:e,prompts:r}=t,{packageManager:i}=r;if((i==null?void 0:i.name)==="pnpm")await(0,Rc.mkdir)(`${e.paths.root}/.vscode`,{recursive:!0}),await(0,Rc.writeJson)(`${e.paths.root}/.vscode/settings.json`,C6,{spaces:2});else return{result:"not-applicable",...eR};return{result:"success",...eR}}var rR=[JC,QC,KC,tR];var e0=oe(require("inquirer"));async function iR({dir:t}){let e=await e0.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!t,default:"./my-turborepo",validate:i=>{let{valid:n,error:s}=Ra(i);return!n&&s?s:!0},filter:i=>i.trim()}),{projectDirectory:r=t}=e;return Ra(r)}async function nR({manager:t,skipTransforms:e}){if(e)return;let r=await Ss(),i=await e0.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm workspaces"},{pm:"pnpm",label:"pnpm workspaces"},{pm:"yarn",label:"yarn workspaces"},{pm:"bun",label:"bun workspaces (beta)"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:n=t}=i;return{name:n,version:r[n]}}var{turboGradient:t0,turboLoader:T6,info:sR,error:mo,warn:r0}=se;function k6(t){var e,r,i,n,s,o;(e=t.telemetry)==null||e.trackOptionPackageManager(t.packageManager),(r=t.telemetry)==null||r.trackOptionSkipInstall(t.skipInstall),(i=t.telemetry)==null||i.trackOptionSkipTransforms(t.skipTransforms),(n=t.telemetry)==null||n.trackOptionExample(t.example),(s=t.telemetry)==null||s.trackOptionTurboVersion(t.turboVersion),(o=t.telemetry)==null||o.trackOptionExamplePath(t.examplePath)}function i0(t,e){if(e==null||e.trackCommandStatus({command:"create",status:"error"}),t instanceof Bt)mo(Ue.default.bold(t.transform),Ue.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof ke&&t.type!=="unknown")mo(Ue.default.red(t.message)),process.exit(1);else if(t instanceof Yn)mo(Ue.default.red("Unable to download template from Github")),mo(Ue.default.red(t.message)),process.exit(1);else throw t}var oR={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function n0(t,e,r){var x,H,W,N;(x=r.telemetry)==null||x.trackCommandStatus({command:"create",status:"start"}),(H=r.telemetry)==null||H.trackArgumentPackageManager(e),(W=r.telemetry)==null||W.trackArgumentDirectory(!!t),k6(r);let{packageManager:i,skipInstall:n,skipTransforms:s}=r;se.log(Ue.default.bold(t0(`
86
86
  >>> TURBOREPO
87
- `))),sR("Welcome to Turborepo! Let's get you set up with a new codebase."),se.log();let o=i!=null?i:e,[a,u]=await Promise.all([VC(),Ss()]);a||(mo("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:c,projectName:l}=await iR({dir:t}),h=po.default.relative(process.cwd(),c),f=h==="",d=await nR({manager:o,skipTransforms:s});o&&r.skipTransforms&&r0("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:m,examplePath:y}=r,p=m&&m!=="default"?m:"basic",w={};try{w=await xm({appPath:c,example:p,isDefaultExample:Ac(p),examplePath:y})}catch(D){i0(D,r.telemetry)}let{hasPackageJson:C,availableScripts:F,repoInfo:P}=w;UC(c,`feat(create-turbo): create ${p}`);let T={};try{T=await Sc({root:c})}catch(D){i0(D,r.telemetry)}if(!s)for(let D of rR)try{let H=await D({example:{repo:P,name:p},project:T,prompts:{projectName:l,root:c,packageManager:d},opts:r});H.result==="success"&&($C(),Km(`feat(create-turbo): apply ${H.name} transform`))}catch(H){i0(H,r.telemetry)}let M=s||!d?{name:T.packageManager,version:u[T.packageManager]}:d;if(sR("Created a new Turborepo with the following:"),se.log(),T.workspaceData.workspaces.length>0){let D=T.workspaceData.workspaces.map(z=>({group:po.default.relative(c,z.paths.root).split(po.default.sep)[0]||"",title:po.default.relative(c,z.paths.root),description:z.description})).sort((z,N)=>z.title.localeCompare(N.title)),H;D.forEach(({group:z,title:N,description:K},te)=>{(te===0||z!==H)&&se.log(Ue.default.cyan(z)),se.log(` - ${Ue.default.bold(N)}${K?`: ${K}`:""}`),H=z})}else se.log(Ue.default.cyan("apps")),se.log(` - ${Ue.default.bold(l)}`);if(se.log(),C&&!n){if(r.skipTransforms&&!u[T.packageManager])r0(`Unable to install dependencies - "${p}" uses "${T.packageManager}" which could not be found.`),r0(`Try running without "--skip-transforms" to convert "${p}" to a package manager that is available on your system.`),se.log();else if(M.version){se.log("Installing packages. This might take a couple of minutes."),se.log();let D=T6("Installing dependencies...").start();await xc({project:T,to:M,options:{interactive:!1}}),Km("feat(create-turbo): install dependencies"),D.stop()}}f?se.log(`${Ue.default.bold(t0(">>> Success!"))} Your new Turborepo is ready.`):se.log(`${Ue.default.bold(t0(">>> Success!"))} Created a new Turborepo at "${h}".`);let S=Dc(M);S&&C&&(se.log(`Inside ${f?"this":"that"} directory, you can run several commands:`),se.log(),F.filter(D=>oR[D]).forEach(D=>{se.log(Ue.default.cyan(` ${S.command} run ${D}`)),se.log(` ${oR[D]} all apps and packages`),se.log()}),se.log("Turborepo will cache locally by default. For an additional"),se.log("speed boost, enable Remote Caching with Vercel by"),se.log("entering the following command:"),se.log(),se.log(Ue.default.cyan(` ${S.executable} turbo login`)),se.log(),se.log("We suggest that you begin by typing:"),se.log(),f||se.log(` ${Ue.default.cyan("cd")} ${h}`),se.log(Ue.default.cyan(` ${S.executable} turbo login`)),se.log()),r.telemetry.trackCommandStatus({command:"create",status:"end"})}var Tc,lR=new cR.ProxyAgent;aR.default.globalAgent=lR;uR.default.globalAgent=lR;var o0=new yo.Command;o0.name(s0.default.bold(se.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${s0.default.bold("<project-directory>")} [options]`).hook("preAction",async(t,e)=>{let{telemetry:r}=await Lm({packageInfo:{name:"create-turbo",version:Li.version}});e.addOption(new yo.Option("--telemetry").default(r).hideHelp()),Tc=r}).hook("postAction",async()=>{await(Tc==null?void 0:Tc.close())}).argument("[project-directory]").argument("[package-manager]").addOption(new yo.Option("-m, --package-manager <package-manager>","Specify the package manager to use").choices(["npm","yarn","pnpm","bun"])).option("--skip-install","Do not run a package manager install after creating the project",!1).option("--skip-transforms","Do not run any code transformation after creating the project",!1).option("--turbo-version <version>","Use a specific version of turbo (default: latest)").option("-e, --example [name]|[github-url]",`
87
+ `))),sR("Welcome to Turborepo! Let's get you set up with a new codebase."),se.log();let o=i!=null?i:e,[a,u]=await Promise.all([VC(),Ss()]);a||(mo("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:c,projectName:l}=await iR({dir:t}),h=po.default.relative(process.cwd(),c),f=h==="",d=await nR({manager:o,skipTransforms:s});o&&r.skipTransforms&&r0("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:m,examplePath:y}=r,p=m&&m!=="default"?m:"basic",w={};try{w=await xm({appPath:c,example:p,isDefaultExample:Ac(p),examplePath:y})}catch(V){i0(V,r.telemetry)}let{hasPackageJson:C,availableScripts:F,repoInfo:P}=w;UC(c,`feat(create-turbo): create ${p}`);let T={};try{T=await Sc({root:c})}catch(V){i0(V,r.telemetry)}if(!s)for(let V of rR)try{let Q=await V({example:{repo:P,name:p},project:T,prompts:{projectName:l,root:c,packageManager:d},opts:r});Q.result==="success"&&($C(),Km(`feat(create-turbo): apply ${Q.name} transform`))}catch(Q){i0(Q,r.telemetry)}let M=s||!d?{name:T.packageManager,version:u[T.packageManager]}:d;if(sR("Created a new Turborepo with the following:"),se.log(),T.workspaceData.workspaces.length>0){let V=T.workspaceData.workspaces.map(te=>({group:po.default.relative(c,te.paths.root).split(po.default.sep)[0]||"",title:po.default.relative(c,te.paths.root),description:te.description})).sort((te,j)=>te.title.localeCompare(j.title)),Q;V.forEach(({group:te,title:j,description:L},B)=>{(B===0||te!==Q)&&se.log(Ue.default.cyan(te)),se.log(` - ${Ue.default.bold(j)}${L?`: ${L}`:""}`),Q=te})}else se.log(Ue.default.cyan("apps")),se.log(` - ${Ue.default.bold(l)}`);if(se.log(),C&&!n){if(r.skipTransforms&&!u[T.packageManager])r0(`Unable to install dependencies - "${p}" uses "${T.packageManager}" which could not be found.`),r0(`Try running without "--skip-transforms" to convert "${p}" to a package manager that is available on your system.`),se.log();else if(M.version){se.log("Installing packages. This might take a couple of minutes."),se.log();let V=T6("Installing dependencies...").start();await xc({project:T,to:M,options:{interactive:!1}}),Km("feat(create-turbo): install dependencies"),V.stop()}}f?se.log(`${Ue.default.bold(t0(">>> Success!"))} Your new Turborepo is ready.`):se.log(`${Ue.default.bold(t0(">>> Success!"))} Created a new Turborepo at "${h}".`);let S=Dc(M);S&&C&&(se.log(`Inside ${f?"this":"that"} directory, you can run several commands:`),se.log(),F.filter(V=>oR[V]).forEach(V=>{se.log(Ue.default.cyan(` ${S.command} run ${V}`)),se.log(` ${oR[V]} all apps and packages`),se.log()}),se.log("Turborepo will cache locally by default. For an additional"),se.log("speed boost, enable Remote Caching with Vercel by"),se.log("entering the following command:"),se.log(),se.log(Ue.default.cyan(` ${S.executable} turbo login`)),se.log(),se.log("We suggest that you begin by typing:"),se.log(),f||se.log(` ${Ue.default.cyan("cd")} ${h}`),se.log(Ue.default.cyan(` ${S.executable} turbo login`)),se.log()),(N=r.telemetry)==null||N.trackCommandStatus({command:"create",status:"end"})}var Tc,lR=new cR.ProxyAgent;aR.default.globalAgent=lR;uR.default.globalAgent=lR;var o0=new yo.Command;o0.name(s0.default.bold(se.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${s0.default.bold("<project-directory>")} [options]`).hook("preAction",async(t,e)=>{let{telemetry:r}=await Lm({packageInfo:{name:"create-turbo",version:Li.version}});e.addOption(new yo.Option("--telemetry").default(r).hideHelp()),Tc=r}).hook("postAction",async()=>{await(Tc==null?void 0:Tc.close())}).argument("[project-directory]").argument("[package-manager]").addOption(new yo.Option("-m, --package-manager <package-manager>","Specify the package manager to use").choices(["npm","yarn","pnpm","bun"])).option("--skip-install","Do not run a package manager install after creating the project",!1).option("--skip-transforms","Do not run any code transformation after creating the project",!1).option("--turbo-version <version>","Use a specific version of turbo (default: latest)").option("-e, --example [name]|[github-url]",`
88
88
  An example to bootstrap the app with. You can use an example name
89
89
  from the official Turborepo repo or a GitHub URL. The URL can use
90
90
  any branch and/or subdirectory